I have using Sqlcipher for my database encryption. I am using SQLiteDatabase.openDatabase for creating, editing and read the sqlchiphered database. I could open ,read and edit properly but suddenly i got the follwing error and after that i couldnt open the database itself
12-25 17:59:07.961: E/Database(6794): SELECT locale FROM android_metadata failed
12-25 17:59:07.961: W/System.err(6794): net.sqlcipher.database.SQLiteException: file is encrypted or is not a database
12-25 17:59:07.966: W/System.err(6794): at net.sqlcipher.database.SQLiteDatabase.native_setLocale(Native Method)
12-25 17:59:07.966: W/System.err(6794): at net.sqlcipher.database.SQLiteDatabase.setLocale(Unknown Source)
12-25 17:59:07.966: W/System.err(6794): at net.sqlcipher.database.SQLiteDatabase.<init>(Unknown Source)
12-25 17:59:07.966: W/System.err(6794): at net.sqlcipher.database.SQLiteDatabase.<init>(Unknown Source)
i had checked for the problem but i couldnt get any useful info on this. So help on this problem to get me the solution
NOTE:
I had updated my sqlcipher and ran the app as a fresh one (Not an update to my previous app), it was wrking properply only but suddendly i got the above error and i couldnt open my db at all (till i clear data the application in application manager)
Currently i am using 2.2 version of SQLCipher
Thanks in Advance