Added disallowed APN types configuration support

The change added the configuration support for disallowed APN
types for WWAN or WLAN transport. This is to meet carrier policy
that certain traffic for APN types are not allowed on given
transport.

Bug: 135551751
Test: Manual + unit tests
Change-Id: I63c44d1e774b7491929406929e1a5a556db9515a
This commit is contained in:
Jack Yu
2019-06-28 16:42:37 -07:00
parent f405e83cdc
commit ac9a731d27

View File

@@ -835,6 +835,19 @@ public class CarrierConfigManager {
public static final String KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS =
"carrier_metered_roaming_apn_types_strings";
/**
* APN types that are not allowed on cellular
* @hide
*/
public static final String KEY_CARRIER_WWAN_DISALLOWED_APN_TYPES_STRING_ARRAY =
"carrier_wwan_disallowed_apn_types_string_array";
/**
* APN types that are not allowed on IWLAN
* @hide
*/
public static final String KEY_CARRIER_WLAN_DISALLOWED_APN_TYPES_STRING_ARRAY =
"carrier_wlan_disallowed_apn_types_string_array";
/**
* CDMA carrier ERI (Enhanced Roaming Indicator) file name
* @hide
@@ -3133,6 +3146,10 @@ public class CarrierConfigManager {
new String[]{"default", "mms", "dun", "supl"});
sDefaults.putStringArray(KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS,
new String[]{"default", "mms", "dun", "supl"});
sDefaults.putStringArray(KEY_CARRIER_WWAN_DISALLOWED_APN_TYPES_STRING_ARRAY,
new String[]{""});
sDefaults.putStringArray(KEY_CARRIER_WLAN_DISALLOWED_APN_TYPES_STRING_ARRAY,
new String[]{""});
sDefaults.putIntArray(KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY,
new int[]{
4, /* IS95A */