Android protects an mp3 file that is shared but still playable

how can I protect the mp3 file that I downloaded from my server (owner of legal content), sent via email, Bluetooth, etc.

I want the file to play on the media players of the device, so I will send it to ContentResolver.

I saw this in some official applications for our region, but I donโ€™t know how to mark / mark my files as not shared.

Thanks!

+4
source share
1 answer

how can I protect the mp3 file that I downloaded from my server (owner of legal content), sent via email, Bluetooth, etc.

Technically, you cannot, unless you are implementing your own MP3 player application and storing it there. If you rely on other applications to play music, then by definition other applications have access to music and can think with it, for example, share it via email, Bluetooth, etc.

However, in practice, if you run a media player to play your music, and you do not offer options for sharing via e-mail, Bluetooth, etc., then the user is unlikely to have convenient means to do it yourself, except for root devices.

+2
source

Source: https://habr.com/ru/post/1442574/


All Articles