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

Commit 8531328f authored by Junda Liu's avatar Junda Liu
Browse files

Add KEY_ENABLE_APPS_STRING_ARRAY carrier config key.

Value includes which apps need to be enabled for current carrier.

Bug: b/35924008
Test: make and manual

Change-Id: Icb089d4641610b0618a8717fa3fed8d3770d5f52
parent 78b3cbe4
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -688,6 +688,16 @@ public class CarrierConfigManager {
     */
    public static final String KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL = "hide_preferred_network_type_bool";

    /**
     * String array for package names that need to be enabled for this carrier.
     * If user has explicitly disabled some packages in the list, won't re-enable.
     * Other carrier specific apps which are not in this list may be disabled for current carrier,
     * and only be re-enabled when this config for another carrier includes it.
     *
     * @hide
     */
    public static final String KEY_ENABLE_APPS_STRING_ARRAY = "enable_apps_string_array";

    /**
     * Determine whether user can switch Wi-Fi preferred or Cellular preferred in calling preference.
     * Some operators support Wi-Fi Calling only, not VoLTE.
@@ -1305,6 +1315,7 @@ public class CarrierConfigManager {
        sDefaults.putBoolean(KEY_HIDE_IMS_APN_BOOL, false);
        sDefaults.putBoolean(KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL, false);
        sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL, false);
        sDefaults.putStringArray(KEY_ENABLE_APPS_STRING_ARRAY, null);
        sDefaults.putBoolean(KEY_EDITABLE_WFC_MODE_BOOL, true);
        sDefaults.putStringArray(KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY, null);
        sDefaults.putInt(KEY_WFC_SPN_FORMAT_IDX_INT, 0);