Android protect mp3 file form being shared, but still playable

十年热恋 提交于 2019-12-10 09:02:54

问题


how can I protect an mp3 file I downloaded from my server (legal content owner) from being forwarded via email, Bluetooth etc.

I wish the file be playable on device media player so i will send it to ContentResolver.

I have seen this on some official apps for our region, but i do not know how to flag/mark my files as non share-able.

Thank You!


回答1:


how can I protect an mp3 file I downloaded from my server (legal content owner) from being forwarded via email, Bluetooth etc.

Technically, you can't, unless you implement your own MP3 player app and store it in there. If you are relying upon other apps to play the music, then by definition other apps have access to the music and could conceivably do things with it, such as sharing it via email, Bluetooth, etc.

However, in practice, if you are the one starting up the media player to play your music, and you do not offer options for sharing via email, Bluetooth, etc., then the user is unlikely to have any convenient means to do so themselves, except on rooted devices.



来源:https://stackoverflow.com/questions/13106338/android-protect-mp3-file-form-being-shared-but-still-playable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!