I have been following the official documentation in order to start using SQLCipher Community Edition in the apps I´m developing. So, I made a proper gradle import as following:
compile 'net.zetetic:android-database-sqlcipher:3.5.9@aar'
I added the
@Override
public void onCreate() {
super.onCreate();
SQLiteDatabase.loadLibs(this);
}
in the MainApplication.java.
As my apps are already released, I have placed as well some migration code in onUpgrade() method in my instance of SQLiteOpenHelper class.
Unfortunately, although I upgraded the DB version number, I do the call:
getInstance().getReadableDatabase("testKey");
neither onUpgrade(), nor onCreate() methods won´t be called.
Did I miss something in the configuration?