Source code

Example script for changing all imports at KittyORM that import Android database classes to corresponding classes of SQLCipher:
#!/bin/bash
find . -name '*.java' -exec sed -i -e 's/android.database.sqlite/net.sqlcipher.database/g' {} \;
find . -name '*.java' -exec sed -i -e 's/android.database/net.sqlcipher/g' {} \;
Modifying methods of KittyDatabaseHelper.class for encryption support:
1public SQLiteDatabase getWritableDatabase(String pwd) {
2    return super.getWritableDatabase(pwd);
3}
4    
5public SQLiteDatabase getReadableDatabase(String pwd) {
6    return super.getReadableDatabase(pwd);
7}
Modifying сonstructor of KittyDatabase.class for adding support of database encryption:
1public KittyDatabase(Context ctx, String databasePassword) {
2    net.sqlcipher.database.SQLiteDatabase.loadLibs(ctx);
3
4    ... // Old constructor code 
5}