且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android的保护MP3文件的形式被共享,但仍然可玩

更新时间:2023-12-02 08:33:04


  

我怎么能保护我从我的服务器(法律内容所有者)从网上下载通过电子邮件转发一个mp3文件,支持蓝牙等。


块引用>

从技术上讲,你不能,除非你实现你自己的MP3播放器的应用程序,并将其存储在那里。如果您在其他应用程序依赖的定义其他应用程序来播放音乐的话可以访问音乐,可以想见,用它做的事情,比如通过电子邮件,蓝牙等分享。

然而,在实践中,如果你是一个启动媒体播放器来播放音乐,并且没有通过电子邮件,蓝牙等共享提供选项,则该用户不太可能有任何方便的手段,自己这样做,除了在扎根设备。

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!

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.