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

Commit f1b7d8d2 authored by Shai Barack's avatar Shai Barack Committed by Android (Google) Code Review
Browse files

Revert "Set normal sync mode for accounts DB"

This reverts commit 48bd513b.

Reason for revert: No impact when flag enabled, reverting this experiment

Change-Id: Ia0ddc93a77dcae7a072d57416570191a4f193edb
parent 48bd513b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -150,7 +150,6 @@ java_library_static {
    ],

    libs: [
        "accounts_flags_lib",
        "android.frameworks.location.altitude-V2-java",
        "android.hardware.common-V2-java",
        "android.hardware.gnss-V2-java",
@@ -179,7 +178,6 @@ java_library_static {
    ],

    static_libs: [
        "accounts_flags_lib",
        "android.frameworks.vibrator-V1-java", // AIDL
        "android.frameworks.devicestate-V1-java", // AIDL
        "android.hardware.authsecret-V1.0-java",
+0 −14
Original line number Diff line number Diff line
@@ -200,13 +200,6 @@ class AccountsDb implements AutoCloseable {
            super(context, ceDatabaseName, null, CE_DATABASE_VERSION);
        }

        @Override
        public void onConfigure(SQLiteDatabase db) {
            if (Flags.sqliteSyncNormal()) {
                db.execSQL("PRAGMA synchronous = NORMAL");
            }
        }

        /**
         * This call needs to be made while the mCacheLock is held.
         * @param db The database.
@@ -521,13 +514,6 @@ class AccountsDb implements AutoCloseable {
            mUserId = userId;
        }

        @Override
        public void onConfigure(SQLiteDatabase db) {
            if (Flags.sqliteSyncNormal()) {
                db.execSQL("PRAGMA synchronous = NORMAL");
            }
        }

        /**
         * This call needs to be made while the mCacheLock is held. The way to
         * ensure this is to get the lock any time a method is called ont the DatabaseHelper
+0 −17
Original line number Diff line number Diff line
package {
    default_team: "trendy_team_authentication",
}

java_aconfig_library {
    name: "accounts_flags_lib",
    aconfig_declarations: "accounts_flags",
}

aconfig_declarations {
    name: "accounts_flags",
    package: "com.android.server.accounts",
    container: "system",
    srcs: [
        "flags.aconfig",
    ],
}
+0 −9
Original line number Diff line number Diff line
package: "com.android.server.accounts"
container: "system"

flag {
     name: "sqlite_sync_normal"
     namespace: "system_performance"
     description: "Whether to enable normal sync mode for the accounts database."
     bug: "438408487"
}
 No newline at end of file