Hide files from APK Assets
Posted: Sun Jan 08, 2012 12:20 pm
When you build your Android application, you get a .APK file extension for distribution. This is a compressed file containing the files required by your completed application. The files can therefore easily be viewed and copied out by most archive extraction tools.
I know that SQLite cannot be encrypted for mobile use (yet) but I would like to know if it was possible to hide the Database file inside the application files as a custom property...or something? I believe you can use custom properties for this but I am checking I understand it correctly.
If I create a custom property named "DB" of a seperate sub stack and set the file link so that it appears in the custom property inspector is this then added to the application at build time allowing me to refer to it later i.e URL binfile etc and so on?
Basically is this actual file embedded in the sub stack custom property.... Searching through countless posts has failed to actually explain what happens to the file for the custom property.... or actually how to do it. I need to extract it and place it in a directory when the application is run... this at least hides it from the APK file... I hope.
Please can someone point me in the right direction....
I know that SQLite cannot be encrypted for mobile use (yet) but I would like to know if it was possible to hide the Database file inside the application files as a custom property...or something? I believe you can use custom properties for this but I am checking I understand it correctly.
If I create a custom property named "DB" of a seperate sub stack and set the file link so that it appears in the custom property inspector is this then added to the application at build time allowing me to refer to it later i.e URL binfile etc and so on?
Basically is this actual file embedded in the sub stack custom property.... Searching through countless posts has failed to actually explain what happens to the file for the custom property.... or actually how to do it. I need to extract it and place it in a directory when the application is run... this at least hides it from the APK file... I hope.
Please can someone point me in the right direction....