Disable SQLite WAL mode manually

Android P seems to default to WAL mode, we don't like it
This commit is contained in:
topjohnwu 2018-03-11 04:48:58 +08:00
parent 3c566becf6
commit 79ccb30dd2

View File

@ -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);