内部资源不安全apk :( [英] resource are insecure inside apk :(
问题描述
大家好,
我在res\raw中几乎没有电子声音文件[1mb +大小],我一次读2个并将它作为一个conposite声音混合并发送到audioTrack播放。
[在我没有加密的想法之前我曾经把它作为输入流读取并处理它然后然后释放内存然后取出下一个块]
现在当我知道它不安全时,我想保护那些元素的声音。
我尝试的程序:
样式1>
加密声音并打包在apk文件和主机谷歌。
解密声音文件在运行时混合播放。
问题:当我在内存中读取完整的1mb并在内存中解密时崩溃了
并且播放。
样式2>
解密并存储在缓存或临时文件中[从外部存储器占用空间]
问题:如果这个人没有sd c ard。
如果他们扎根它并从临时文件夹中复制解密的声音。
style 3, 4,5,....我需要帮助:(
提前感谢
Hi All,
I have few elementry sound files[1mb+ size] in res\raw , I am reading 2 at a time and mixing it as a conposite sound and sending it to audioTrack to play.
[before when I didn't got the idea of encrypting I used to read it as inputstream and process it then and there then release memory and then taking the next chunk]
Now when I know it is not secure ,I want to secure those elementry sounds.
the procedure I tried:
style 1>
encrypt the sound and pack in apk file and host in google.
decrypt the sound file at runtime and mix and play.
problem: It is crashing as I am reading the full 1mb in memory and decrypting in memory
and playing.
style 2>
decrypting and storing in cache or temporary file [taking space from external memory]
problem:If the person don't have sd card.
if they root it and copy the decrypted sound from temp folder.
style 3,4,5,.... Here I need helps :(
thanks in advance
推荐答案
加密文件是否很重要,或者只是试图让它们更难复制。如果只是不希望它们被复制,为什么不使用数据库文件系统,例如
基于SQLite的简单文件系统 [ ^ ]
只是想一想。
/ Darren
Is it important to encrypt your files or are you just attempting to make it harder to copy them. If its a case of just don't want them copied why not use a database file system like
Simple file system over SQLite[^]
Just a thought.
/Darren
这篇关于内部资源不安全apk :(的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!