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

Commit c522c310 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

[DO NOT MERGE] Add country blacklist support am: 97dad931

Change-Id: Idfb887291164bd0962b1e78e2646a0d9ad6ad5ca
parents 1fa842bd 97dad931
Loading
Loading
Loading
Loading
+24 −2
Original line number Diff line number Diff line
@@ -9904,13 +9904,34 @@ public final class Settings {
         * List of ISO country codes in which eUICC UI is shown. Country codes should be separated
         * by comma.
         *
         * <p>Used to hide eUICC UI from users who are currently in countries no carriers support
         * eUICC.
         * Note: if {@link #EUICC_SUPPORTED_COUNTRIES} is empty, then {@link
         * #EUICC_UNSUPPORTED_COUNTRIES} is used.
         *
         * <p>Used to hide eUICC UI from users who are currently in countries where no carriers
         * support eUICC.
         *
         * @hide
         */
        //TODO(b/77914569) Changes this to System Api.
        public static final String EUICC_SUPPORTED_COUNTRIES = "euicc_supported_countries";
        /**
         * List of ISO country codes in which eUICC UI is not shown. Country codes should be
         * separated by comma.
         *
         * Note: if {@link #EUICC_SUPPORTED_COUNTRIES} is empty, then {@link
         * #EUICC_UNSUPPORTED_COUNTRIES} is used.
         *
         * <p>Used to hide eUICC UI from users who are currently in countries where no carriers
         * support eUICC.
         *
         * @hide
         */
        //TODO(b/77914569) Changes this to System Api.
        public static final String EUICC_UNSUPPORTED_COUNTRIES = "euicc_unsupported_countries";
        private static final Validator EUICC_UNSUPPORTED_COUNTRIES_VALIDATOR =
                new SettingsValidators.ComponentNameListValidator(",");
        /**
         * Whether any activity can be resized. When this is true, any
         * activity, regardless of manifest values, can be resized for multi-window.
@@ -13876,6 +13897,7 @@ public final class Settings {
            VALIDATORS.put(DYNAMIC_POWER_SAVINGS_DISABLE_THRESHOLD,
                    DYNAMIC_POWER_SAVINGS_VALIDATOR);
            VALIDATORS.put(BLUETOOTH_ON, BLUETOOTH_ON_VALIDATOR);
            VALIDATORS.put(EUICC_UNSUPPORTED_COUNTRIES, EUICC_UNSUPPORTED_COUNTRIES_VALIDATOR);
            VALIDATORS.put(PRIVATE_DNS_MODE, PRIVATE_DNS_MODE_VALIDATOR);
            VALIDATORS.put(PRIVATE_DNS_SPECIFIER, PRIVATE_DNS_SPECIFIER_VALIDATOR);
            VALIDATORS.put(SOFT_AP_TIMEOUT_ENABLED, SOFT_AP_TIMEOUT_ENABLED_VALIDATOR);
+1 −0
Original line number Diff line number Diff line
@@ -385,6 +385,7 @@ message GlobalSettingsProto {

        optional SettingProto provisioned = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
        optional SettingProto factory_reset_timeout_millis = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
        optional SettingProto unsupported_countries = 3 [ (android.privacy).dest = DEST_AUTOMATIC ];
    }
    optional Euicc euicc = 52;

+3 −0
Original line number Diff line number Diff line
@@ -641,6 +641,9 @@ class SettingsProtoDumpUtil {
        dumpSetting(s, p,
                Settings.Global.EUICC_FACTORY_RESET_TIMEOUT_MILLIS,
                GlobalSettingsProto.Euicc.FACTORY_RESET_TIMEOUT_MILLIS);
        dumpSetting(s, p,
                Settings.Global.EUICC_UNSUPPORTED_COUNTRIES,
                GlobalSettingsProto.Euicc.UNSUPPORTED_COUNTRIES);
        p.end(euiccToken);

        dumpSetting(s, p,