mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 14:57:39 +00:00
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) {
|
private SuDatabaseHelper(MagiskManager mm) {
|
||||||
pm = mm.getPackageManager();
|
pm = mm.getPackageManager();
|
||||||
mDb = openDatabase(mm);
|
mDb = openDatabase(mm);
|
||||||
|
mDb.disableWriteAheadLogging();
|
||||||
int version = mDb.getVersion();
|
int version = mDb.getVersion();
|
||||||
if (version < DATABASE_VER) {
|
if (version < DATABASE_VER) {
|
||||||
onUpgrade(mDb, version);
|
onUpgrade(mDb, version);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user