Disable SQLite WAL mode manually
Android P seems to default to WAL mode, we don't like it
This commit is contained in:
parent
3c566becf6
commit
79ccb30dd2
@ -53,6 +53,7 @@ public class SuDatabaseHelper {
|
||||
private SuDatabaseHelper(MagiskManager mm) {
|
||||
pm = mm.getPackageManager();
|
||||
mDb = openDatabase(mm);
|
||||
mDb.disableWriteAheadLogging();
|
||||
int version = mDb.getVersion();
|
||||
if (version < DATABASE_VER) {
|
||||
onUpgrade(mDb, version);
|
||||
|
Loading…
Reference in New Issue
Block a user