Closed UKMIITB closed 7 months ago
Hi @UKMIITB,
It is difficult to say what the root cause of your situation is given the information. This error is common and suggests that SQLCipher for Android was not able to decrypt a file path provided with the supplied password. A few follow-up questions:
SQLiteDatabase.loadLibs(...)
prior to attempt to interface with Room?This can happen if you are using the wrong/a different passphrase when re-opening the db.
@dazza5000 Your comment is right. I tried to reinstall my Android app with SQLCipher enabled, it worked. 👍🏼
Thanks.
Thanks for confirming that was the problem. Closing this now.
In a new update. Added sqlCipher for new database file.
implementation "net.zetetic:android-database-sqlcipher:4.5.4"
Implementation wise, I generate one passphrase & save in shared preference permanently. Then using hilt, initialise database as
Till now got one crash in Android 5, OPPO device