-
Notifications
You must be signed in to change notification settings - Fork 569
Updating SqlCipher from 1.1 to 2.2.2 error #103
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
Comments
Hi urspands, Can you verify all the new native .so files along with the new icudt46l.zip file are being included with the new application? You will have to upgrade the database format from 1x to 2x formats, but that will be a separate issue. |
Hi, -libraryjars libs/commons-codec.jar -keep public class net.sqlcipher.** { -keep public class net.sqlcipher.database.** { 09-11 14:21:48.950: I/Database(31543): sqlite returned: error code = 26, msg = file is encrypted or is not a database |
What do you mean by I need to update the database format from 1x to 2x? |
It looks like there maybe an issue with your ProGuard configuration, could you try integrating this with your current configuration? With regard to the database format upgrade, we added a per-page HMAC to the database in 2x. To upgrade a database there is a helper function you can invoke called |
Hi, File dbFile = mCtx.getDatabasePath(MddDbConstants.MDD_DB_NAME);
in the above code i have updated my DB version to 2 and i am trying to verify the version of the database by db.getVersion. The SQLiteDatabase.openOrCreateDatabase opens the version 2 DB fine, but it doesn't open the version 1 DB. Below is the logcat info It will be great if you could provide code snippet to update the old db. |
Hi urspands,
|
I am trying to update the sqlcipher from version 1.1 to 2.2.2. The new version of the sqlcipher works fine in a fresh install or when i run it from eclipse. But when I update the app which was previously using v1.1 sqlcipher with new v2.2.2, the library doesn't load properly. When i call the SQLiteDatabase.loadLibs(this), the app crashes. i get the below info in the logcat
09-11 11:21:56.887: I/Database(26277): JNI_OnLoad called
09-11 11:21:56.887: I/Database(26277): JNI_OnLoad register methods
09-11 11:21:56.887: E/Database(26277): Can't find SQLiteDatabase.mNativeHandle
09-11 11:21:56.887: E/Cursor(26277): Can't find net/sqlcipher/database/SQLiteCompiledSql
09-11 11:21:56.887: E/Cursor(26277): Can't find net/sqlcipher/database/SQLiteQuery
09-11 11:21:56.887: E/Cursor(26277): Can't find net/sqlcipher/database/SQLiteProgram
09-11 11:21:56.887: E/Cursor(26277): Can't find net/sqlcipher/database/SQLiteStatement
09-11 11:21:56.887: E/CursorWindow(26277): Can't find net/sqlcipher/CursorWindow
09-11 11:21:56.903: W/dalvikvm(26277): threadid=11: thread exiting with uncaught exception (group=0x40b73930)
The text was updated successfully, but these errors were encountered: