As we all know internal storage is not the right place to store big data in Android for many reasons that’s why we should rely on SD card. My app needs to store a lot of small videos and images in a cache folder, for this reason im using the standard “/sdcard/Android/cache” directory.
Problem is that internal storage is not that easy to read SDcard instead is easily readable and mountable elsewhere.
My idea is to override Input and Output File stream classes to introduce a xor operator or some other easy “scrambling” code. Would this be a good idea? Is there any better solution which does not add a lot of overhead?
If you have a lot of images you must have a DB backend, you just need to create a, don’t know, 32 chars key for every image and then when you write the files in cache split that key in 4/6/8 and write 4/6/8 files instead of one.
In this way it won’t be that easy to read the data because you must know which are the chunks and the chunks order is on the DB which is stored on intenrnal dir.
No overhead at all.