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

Commit e95de5ae authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert "Set normal sync mode for accounts DB"" into main

parents 032da0fb f1b7d8d2
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