Hi,
I am doing the SQLCipher version upgrade from v4.5.4 to v4.5.6.
The version upgrade is working for the most of the Android versions like 11,12,13, etc.
But when I tried the same on Android 8, the App crashes on the first launch only. On the successive launch, it works fine.
We have observed the below AndroidRuntime logs:
04-16 07:04:04.560 14162 15999 E SQLiteDatabase: android.database.sqlite.SQLiteDoneException
04-16 07:04:04.560 14162 15999 E SQLiteDatabase: at net.zetetic.database.sqlcipher.SQLiteConnection.nativeExecuteForLong(Native Method)
04-16 07:04:04.560 14162 15999 E SQLiteDatabase: at net.zetetic.database.sqlcipher.SQLiteConnection.executeForLong(SQLiteConnection.java:635)
…
…
04-16 07:04:04.561 14162 15999 E WS1_AppWrapperContentProvider: Awdb: getWritableDatabase error android.database.sqlite.SQLiteDoneException
04-16 07:04:04.561 14162 14162 V WS1_Utils: isUserUnlocked: true
I have used:
sqLiteConnection.executeForLong(“PRAGMA cipher_migrate;”, arrayOf(), null) method for migration.
If I am using
sqLiteConnection.executeRaw(“PRAGMA cipher_migrate;”, arrayOf(), null), the crash deos not occur on Android 8 but it starts showing error on Android 11,12,13 as file is not database(26).
Can you let us know if something like this is known and we have some solution this?
We have followed the guide to migrate to v4.5.6.