androidencryptionandroid-sqlitesqlcipher-android

Android and SQLite protection


I have an android app with a SQLite database of 100k+ lines, populated from a *.db file in assets folder.

I would like to make harder the database to be pulled out from the device.

First, what are the ways for someone to pull the database ?

So, what are the ways to make the database harder to pull :

Regards


Solution

  • Well if you want to protect the file must be on "Root" directory of android. For that, you need to download ".DB" file from the server and move it onto "root" directory. However, this needs an internet connection for the first time app running

    Another way is to use,

    SQliteCrypt - with SQLiteCrypt you can encrypt the SQLite database and User do not need to enter the password you can set the key in java file when extracting the data.that will be more secure, fast and reliable.