How to protect the mp3 file from read or copy on A

2019-07-17 19:53发布

I have mp3 files in root folder of my app, but some users have root rights and they can play or copy.
I want to protect my files, use them just in my app.
How can I do this?
Archiving is not a option.

2条回答
相关推荐>>
2楼-- · 2019-07-17 20:12

There is no way to prevent users from copying, modifying or deleting files on the filesystem if they have root access.

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).

查看更多
Juvenile、少年°
3楼-- · 2019-07-17 20:29

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.

查看更多
登录 后发表回答