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

Commit fa81bee2 authored by jackqdyulei's avatar jackqdyulei
Browse files

Add Settings Global value for anomaly config

1. ANOMALY_CONFIG_VERSION: version of the anomlay config
2. ANOMALY_CONFIG: a base64-encoded string of raw config.

Bug: 72385333
Test: Build
Change-Id: If990d2e00e019cc6d6a6c601de9a08bd5e649654
parent b4bb9dea
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -10254,6 +10254,20 @@ public final class Settings {
         */
        public static final String BATTERY_TIP_CONSTANTS = "battery_tip_constants";

        /**
         * An integer to show the version of the anomaly config. Ex: 1, which means
         * current version is 1.
         * @hide
         */
        public static final String ANOMALY_CONFIG_VERSION = "anomaly_config_version";

        /**
         * A base64-encoded string represents anomaly stats config, used for
         * {@link android.app.StatsManager}.
         * @hide
         */
        public static final String ANOMALY_CONFIG = "anomaly_config";

        /**
         * Always on display(AOD) specific settings
         * This is encoded as a key=value list, separated by commas. Ex:
+2 −0
Original line number Diff line number Diff line
@@ -109,6 +109,8 @@ public class SettingsBackupTest {
                    Settings.Global.ALWAYS_ON_DISPLAY_CONSTANTS,
                    Settings.Global.ANIMATOR_DURATION_SCALE,
                    Settings.Global.ANOMALY_DETECTION_CONSTANTS,
                    Settings.Global.ANOMALY_CONFIG,
                    Settings.Global.ANOMALY_CONFIG_VERSION,
                    Settings.Global.APN_DB_UPDATE_CONTENT_URL,
                    Settings.Global.APN_DB_UPDATE_METADATA_URL,
                    Settings.Global.APP_IDLE_CONSTANTS,