I’m using SQLCipher for android Implementation-Version: v3.5.4-5-g87be8c4
I’m getting below crash reports from play store of customers but stacktrace doesn’t give much information.
net.sqlcipher.database.SQLiteException:
at net.sqlcipher.database.SQLiteCompiledSql.native_compile (SQLiteCompiledSql.java)
at net.sqlcipher.database.SQLiteCompiledSql.compile (SQLiteCompiledSql.java:91)
at net.sqlcipher.database.SQLiteCompiledSql. (SQLiteCompiledSql.java:64)
at net.sqlcipher.database.SQLiteProgram. (SQLiteProgram.java:83)
at net.sqlcipher.database.SQLiteQuery. (SQLiteQuery.java:49)
at net.sqlcipher.database.SQLiteDirectCursorDriver.query (SQLiteDirectCursorDriver.java:42)
at net.sqlcipher.database.SQLiteDatabase.rawQueryWithFactory (SQLiteDatabase.java:1785)
at net.sqlcipher.database.SQLiteDatabase.rawQuery (SQLiteDatabase.java:1750)
at net.sqlcipher.database.SQLiteDatabase.keyDatabase (SQLiteDatabase.java:2404)
at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal (SQLiteDatabase.java:2333)
at net.sqlcipher.database.SQLiteDatabase.openDatabase (SQLiteDatabase.java:1114)
at net.sqlcipher.database.SQLiteDatabase.openDatabase (SQLiteDatabase.java:1006)
at net.sqlcipher.database.SQLiteOpenHelper.getReadableDatabase (SQLiteOpenHelper.java:249)
at net.sqlcipher.database.SQLiteOpenHelper.getReadableDatabase (SQLiteOpenHelper.java:214)
Generally there is message logged like “file is encrypted or not a database” which could lead opening db with wrong key.
I’m looking for what are possible scenarios when actual message is not logged in stacktrace ?