Skip to content
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

upgrading sqlcipher from 3 to 4 my app crashes #1088

Open
NaserKhoshfetrat opened this issue Oct 24, 2021 · 0 comments
Open

upgrading sqlcipher from 3 to 4 my app crashes #1088

NaserKhoshfetrat opened this issue Oct 24, 2021 · 0 comments

Comments

@NaserKhoshfetrat
Copy link

NaserKhoshfetrat commented Oct 24, 2021

I have used greendao generator with sqlcipher to encrypt database.
but when i am **upgrading sqlcipher from 3.5.7 to 4.4.3, my app crashes since my app cannot access the old encrypted database. I have already searched for a solution and found out that I need to run PRAGMA cipher_migrate in postKey of the SQLiteDatabaseHook to migrate my database.

process must be done as in this link
https://discuss.zetetic.net/t/upgrading-sqlcipher-for-android-from-3-to-4/3580
But i could not figure out how to perform this with greendao as orm?
any help regarding this upgrade is highly appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant