I have a set of encrypted files on my android device's sd card. My application reads the encrypted file using bufferedInputstream and generates the decrypted file in the application's internal storage. The application then reads the decrypted file(.pdf, .swf, .flv) to view it. How can I make sure that a user (including root user on rooted devices) can not access the decrypted files?
Once the user gains root, you are not able to prevent access to any file. As the security of android is based (mainly) on permissions in file system.
What you can do is store the decrypted content in the memory and delete the file (or avoid creating it in first place)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.