From 705cbc763f909683846d19a9eb40230b28243c06 Mon Sep 17 00:00:00 2001 From: Jordan Liu Date: Fri, 9 Sep 2016 11:48:48 -0700 Subject: [PATCH] Add dial_string_replace key to CarrierConfig Add KEY_DIAL_STRING_REPLACE_STRING_ARRAY and default value (null) to CarrierConfigManager, and remove the references to the old config in core/res/res/values/[config.xml/symbols.xml] This value exists to fix http://b/17202092. We specify a map from dialstrings to replacements for roaming network service numbers which cannot be replaced on the carrier side. Merged-In: I852261596d3931f38d5f1c6b3d24ffe27f950458 Bug: 29873049 Change-Id: I99d97bb25ef57c178d004ae17d97a6c7672734e2 --- core/res/res/values/config.xml | 4 ++++ core/res/res/values/symbols.xml | 1 + .../java/android/telephony/CarrierConfigManager.java | 12 ++++++++++++ 3 files changed, 17 insertions(+) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 44cbc0f915273..05d9a28333b76 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -2220,6 +2220,10 @@ + + false + diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 206a910e4b7cd..5018e2fb63c05 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -2240,6 +2240,7 @@ + diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java index 6eb792b7aba89..77b562d34b05b 100644 --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -260,6 +260,17 @@ public class CarrierConfigManager { */ public static final String KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL = "carrier_wfc_ims_available_bool"; + /** + * Specifies a map from dialstrings to replacements for roaming network service numbers which + * cannot be replaced on the carrier side. + *

+ * Individual entries have the format: + * [dialstring to replace]:[replacement] + * @hide + */ + public static final String KEY_DIAL_STRING_REPLACE_STRING_ARRAY = + "dial_string_replace_string_array"; + /** * Flag specifying whether WFC over IMS supports the "wifi only" option. If false, the wifi * calling settings will not include an option for "wifi only". If true, the wifi calling @@ -813,6 +824,7 @@ public class CarrierConfigManager { sDefaults.putStringArray(KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY, null); sDefaults.putStringArray(KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY, null); sDefaults.putStringArray(KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY, null); + sDefaults.putStringArray(KEY_DIAL_STRING_REPLACE_STRING_ARRAY, null); sDefaults.putBoolean(KEY_FORCE_HOME_NETWORK_BOOL, false); sDefaults.putInt(KEY_GSM_DTMF_TONE_DELAY_INT, 0); sDefaults.putInt(KEY_IMS_DTMF_TONE_DELAY_INT, 0);