简体   繁体   English

如何在Android上保护mp3文件不被读取或复制?

[英]How to protect the mp3 file from read or copy on Android?

I have mp3 files in root folder of my app, but some users have root rights and they can play or copy. 我的应用程序的根文件夹中有mp3文件,但有些用户拥有root权限,可以播放或复制。
I want to protect my files, use them just in my app. 我想保护我的文件,只在我的应用程序中使用它们。
How can I do this? 我怎样才能做到这一点?
Archiving is not a option. 存档不是一种选择。

There is no way to prevent users from copying, modifying or deleting files on the filesystem if they have root access. 如果用户具有root访问权限,则无法阻止用户复制,修改或删除文件系统上的文件。

Archiving would be the only way, because converting your files back to mp3 would take some effort (reversing your android application in order to retrieve the packing algorithm). 存档是唯一的方法,因为将文件转换回mp3需要花费一些精力(反转你的Android应用程序以检索打包算法)。

You may encrypt your files to make extraction harder but that won't work against qualified person because you'll have to keep decryption key somewhere on device or inside app. 您可以对文件进行加密以使提取更难,但这对合格人员无效,因为您必须在设备或应用内部的某处保留解密密钥。 You should accept the fact that any of your resource might be extracted and stop worrying. 您应该接受以下事实:您的任何资源都可能被提取并且不再担心。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM