Task: Fix SQLite "No Such Table" Error When Copying Database from Assets on Android P (API 28+)
Task: Fix SQLite "No Such Table" Error When Copying Database from Assets on Android P (API 28+): a task in Terminal-Lego-15k (Harbor dataset). On Android P (API level 28) and above, SQLite was updated to use WAL (Write-Ahead Logging) journal mode by default. When using SQLiteOpenHelper , calling…
The task
On Android P (API level 28) and above, SQLite was updated to use WAL (Write-Ahead Logging) journal mode by default. When using `SQLiteOpenHelper`, calling `getReadableDatabase()` or `getWritableDatabase()` before copying the pre-packaged database from assets causes Android to create an empty database file with WAL…
Part of PrimeIntellect/Terminal-Lego-15k.