SQLiteException with latest release 3.4.0


#1

Hi, I have recently upgraded to the latest version of SQLCipher (3.4.0) for Android and I realized that in some devices there’s an exception when opening the databse through the openOrCreateDatabase method.

The piece of stracktrace that I’ve got is like this:

Caused by: net.sqlcipher.database.SQLiteException: attempt to write a readonly database: DELETE failed setting locale
at net.sqlcipher.database.SQLiteDatabase.native_setLocale(Native Method)
at net.sqlcipher.database.SQLiteDatabase.setLocale(SQLiteDatabase.java:2474)
at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal(SQLiteDatabase.java:2338)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1087)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1028)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1002)
at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:1128)
at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:1157)

Here are some of the devices where the exception is thrown:

  • ZTE Blade V6.
  • Remid Note 3.
  • Galaxy Tab S 10.5.

#2

Hello @bertolanza

Is that something you can replicate with the SQLCipher for Android test suite on those devices? Thanks!


#3

Unfortunately not because I don’t have any of those devices. I have seen the exception in the Google Play Developer Console. However I will try to recover more information about it. Thanks.