Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test whether database is encrypted after adding SQLCipher?

After adding the SQLCipher libs, and adding calls to

SQLiteDatabase.loadLibs(context);

How do I confirm that my app database is encrypted?

I tried accessing the .db via adb. adb shell says permissions denied or error when trying to access the db file for inspection.

like image 260
Adí Avatar asked Dec 06 '25 03:12

Adí


1 Answers

I tried accessing the .db via adb. adb shell says permissions denied or error when trying to access the db file for inspection.

Use an emulator and DDMS or adb pull (see this blog post for a shell script for the latter).

Or use adb shell run-as on a production device, assuming the device isn't seriously old.

However, you still will be unable to open the database, unless you are using a SQLCipher-enabled copy of sqlite3 or some other client.

like image 130
CommonsWare Avatar answered Dec 11 '25 02:12

CommonsWare