Default to FULL synchronous mode for sqlite DBs in system server
Test: change pin and immediately crash the kernel with adb shell 'su root sh -c "echo c >/proc/sysrq-trigger"' and boot Bug: 112175067 Change-Id: Ia5f43f3118e2297fbea43c805ef2f4577bf8a9bf
This commit is contained in:
@@ -28,6 +28,7 @@ import android.content.pm.PackageManager;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.Resources.Theme;
|
||||
import android.database.sqlite.SQLiteCompatibilityWalFlags;
|
||||
import android.database.sqlite.SQLiteGlobal;
|
||||
import android.os.BaseBundle;
|
||||
import android.os.Binder;
|
||||
import android.os.Build;
|
||||
@@ -355,6 +356,10 @@ public final class SystemServer {
|
||||
Binder.setWarnOnBlocking(true);
|
||||
// The system server should always load safe labels
|
||||
PackageItemInfo.setForceSafeLabels(true);
|
||||
|
||||
// Default to FULL within the system server.
|
||||
SQLiteGlobal.sDefaultSyncMode = SQLiteGlobal.SYNC_MODE_FULL;
|
||||
|
||||
// Deactivate SQLiteCompatibilityWalFlags until settings provider is initialized
|
||||
SQLiteCompatibilityWalFlags.init(null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user