New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting random crashes "Couldn't open db for writing (will try to read only) net.sqlcipher.database.SQLiteException: file is encrypted or is not a database: , while compiling: select count(*) from sqlite_master;" #290
Comments
Hello @RaduPopescu29, Is this something you are able to reproduce within the SQLCipher for Android test suite? Are you certain you are always providing the correct password when you call |
I did observed the same error on Samsung S7, Android 6.0.1. |
I'm also observing the same issue randomly on HTC one, Android 6.0 with the following log. Any help or update on the issue please? `
` |
Can you run the SQLCipher for Android test suite? Can you confirm that you are always providing the same password to |
I am using a ContentProvider with cipher.SQLiteOpenHelper and CursorLoaders to display data.
In the ContentProvider onCreate method I have SQLiteDatabase.loadLibs(getContext()). In the query method ot he ContentProvider i have
final SQLiteDatabase db = database.getReadableDatabase(password); which gives this error:
file is encrypted or is not a database: , while compiling: select count() from sqlite_master;
net.sqlcipher.database.SQLiteException: file is encrypted or is not a database: , while compiling: select count() from sqlite_master;
I am using a CursorLoader to query data. This does not happen all the time. With a fresh install everything works well, but when I reopen the app I constantly gets this crash.
I am using net.zetetic:android-database-sqlcipher:3.5.4@aar, Android version 6.0.1.
Any ideas?
The text was updated successfully, but these errors were encountered: