Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e0368f4 authored by Rubin Xu's avatar Rubin Xu
Browse files

Disable write-ahead log on LockSettingsStorage

As WAL is suspected to be causing data loss on F2FS filesystem.

Bug: 170438530
Test: atest com.android.server.locksettings
Change-Id: I4a7e7e9960a08a7f3f1ce7c2ef9498d4a8f8747f
parent 80e87134
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -800,7 +800,7 @@ class LockSettingsStorage {

        public DatabaseHelper(Context context) {
            super(context, DATABASE_NAME, null, DATABASE_VERSION);
            setWriteAheadLoggingEnabled(true);
            setWriteAheadLoggingEnabled(false);
            // Memory optimization - close idle connections after 30s of inactivity
            setIdleConnectionTimeout(IDLE_CONNECTION_TIMEOUT_MS);
        }