Commit 79ccb30d authored by topjohnwu's avatar topjohnwu

Disable SQLite WAL mode manually

Android P seems to default to WAL mode, we don't like it
parent 3c566bec
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment