I have some backup/restore function inside my app and that cause problem when using >= Android 9, SQLite databases do use journal_mode WAL instead of DELETE which they used on older phones. My SQLLite version is 3.25.2
More information:
I am using Sugar ORM that is fully integrated into my project. The Sugar ORM using own classes, for instance, SugarDb that extends SQLiteOpenHelper and the Class is read-only.
Questions:
- How and where to check if the journal_mode is WAL for the *.db file?
- How to correctly copy/restore the *.db file when SQLite journal_mode is WAL?
- How and where to switch the SQLite journal_mode from WAL to DELETE for all handhelds?