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

Commit 25b3ce28 authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Added new config to indicate read-only apn types.

am: 923963ff

Change-Id: I49a9e1ae11944af6cf0a433c40119ca97381c5cd
parents 97b3a2f5 923963ff
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -660,6 +660,13 @@ public class CarrierConfigManager {
     */
    public static final String KEY_ALLOW_ADDING_APNS_BOOL = "allow_adding_apns_bool";

    /**
     * APN types that user is not allowed to modify
     * @hide
     */
    public static final String KEY_READ_ONLY_APN_TYPES_STRING_ARRAY =
            "read_only_apn_types_string_array";

    /**
     * Boolean indicating if intent for emergency call state changes should be broadcast
     * @hide
@@ -1012,6 +1019,7 @@ public class CarrierConfigManager {
        sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING, "");
        sDefaults.putBoolean(KEY_CSP_ENABLED_BOOL, false);
        sDefaults.putBoolean(KEY_ALLOW_ADDING_APNS_BOOL, true);
        sDefaults.putStringArray(KEY_READ_ONLY_APN_TYPES_STRING_ARRAY, null);
        sDefaults.putBoolean(KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL, false);
        sDefaults.putBoolean(KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL, false);
        sDefaults.putBoolean(KEY_DISABLE_SEVERE_WHEN_EXTREME_DISABLED_BOOL, true);
+12 −0
Original line number Diff line number Diff line
@@ -140,6 +140,18 @@ public class PhoneConstants {
    /** APN type for Emergency PDN. This is not an IA apn, but is used
     * for access to carrier services in an emergency call situation. */
    public static final String APN_TYPE_EMERGENCY = "emergency";
    /** Array of all APN types */
    public static final String[] APN_TYPES = {APN_TYPE_DEFAULT,
            APN_TYPE_MMS,
            APN_TYPE_SUPL,
            APN_TYPE_DUN,
            APN_TYPE_HIPRI,
            APN_TYPE_FOTA,
            APN_TYPE_IMS,
            APN_TYPE_CBS,
            APN_TYPE_IA,
            APN_TYPE_EMERGENCY
    };

    public static final int RIL_CARD_MAX_APPS    = 8;