diff options
| author | 2016-10-03 12:28:27 -0700 | |
|---|---|---|
| committer | 2016-10-18 13:15:18 -0700 | |
| commit | 5ac6f5c95d4a1a382059c7e8dda7a14ead09e46b (patch) | |
| tree | 9df3b4580840ff366c87be91feb962b902680b0d | |
| parent | e3618ad56222881f62c838a17584fe88c0fb7039 (diff) | |
Add key for sms_convert_destination_number
Add the CarrierConfig key
KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL
and remove the old configs. Note that this value no longer needs to be a
string-array, as CarrierConfigManager handles gid.
Bug: 29873049
Change-Id: I3edbcf5329177f6b370d08a09318c35c55e5e052
| -rw-r--r-- | api/current.txt | 1 | ||||
| -rw-r--r-- | api/system-current.txt | 1 | ||||
| -rw-r--r-- | api/test-current.txt | 1 | ||||
| -rwxr-xr-x | core/res/res/values-mcc204-mnc04/config.xml | 5 | ||||
| -rwxr-xr-x | core/res/res/values-mcc310-mnc004/config.xml | 3 | ||||
| -rwxr-xr-x | core/res/res/values-mcc311-mnc480/config.xml | 3 | ||||
| -rw-r--r-- | core/res/res/values/config.xml | 16 | ||||
| -rw-r--r-- | core/res/res/values/symbols.xml | 1 | ||||
| -rw-r--r-- | telephony/java/android/telephony/CarrierConfigManager.java | 8 |
9 files changed, 11 insertions, 28 deletions
diff --git a/api/current.txt b/api/current.txt index d062d9b01d53..56f0bb08ca19 100644 --- a/api/current.txt +++ b/api/current.txt @@ -36971,6 +36971,7 @@ package android.telephony { field public static final java.lang.String KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL = "show_iccid_in_sim_status_bool"; field public static final java.lang.String KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL = "show_onscreen_dial_button_bool"; field public static final java.lang.String KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL = "sim_network_unlock_allow_dismiss_bool"; + field public static final java.lang.String KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL = "sms_requires_destination_number_conversion_bool"; field public static final java.lang.String KEY_SUPPORT_CONFERENCE_CALL_BOOL = "support_conference_call_bool"; field public static final java.lang.String KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL = "support_pause_ims_video_calls_bool"; field public static final java.lang.String KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL = "support_swap_after_merge_bool"; diff --git a/api/system-current.txt b/api/system-current.txt index 7a69f766e30a..7617cafda116 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -40062,6 +40062,7 @@ package android.telephony { field public static final java.lang.String KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL = "show_iccid_in_sim_status_bool"; field public static final java.lang.String KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL = "show_onscreen_dial_button_bool"; field public static final java.lang.String KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL = "sim_network_unlock_allow_dismiss_bool"; + field public static final java.lang.String KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL = "sms_requires_destination_number_conversion_bool"; field public static final java.lang.String KEY_SUPPORT_CONFERENCE_CALL_BOOL = "support_conference_call_bool"; field public static final java.lang.String KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL = "support_pause_ims_video_calls_bool"; field public static final java.lang.String KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL = "support_swap_after_merge_bool"; diff --git a/api/test-current.txt b/api/test-current.txt index d4631c349fc3..9a21d460d398 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -37052,6 +37052,7 @@ package android.telephony { field public static final java.lang.String KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL = "show_iccid_in_sim_status_bool"; field public static final java.lang.String KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL = "show_onscreen_dial_button_bool"; field public static final java.lang.String KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL = "sim_network_unlock_allow_dismiss_bool"; + field public static final java.lang.String KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL = "sms_requires_destination_number_conversion_bool"; field public static final java.lang.String KEY_SUPPORT_CONFERENCE_CALL_BOOL = "support_conference_call_bool"; field public static final java.lang.String KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL = "support_pause_ims_video_calls_bool"; field public static final java.lang.String KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL = "support_swap_after_merge_bool"; diff --git a/core/res/res/values-mcc204-mnc04/config.xml b/core/res/res/values-mcc204-mnc04/config.xml index ddf0e9fa9a68..1d7a45b31eb6 100755 --- a/core/res/res/values-mcc204-mnc04/config.xml +++ b/core/res/res/values-mcc204-mnc04/config.xml @@ -32,10 +32,5 @@ --> <integer name="config_LTE_RSRP_threshold_type">0</integer> - <string-array translatable="false" name="config_sms_convert_destination_number_support"> - <item>true;BAE0000000000000</item> - <item>false</item> - </string-array> - <string translatable="false" name="prohibit_manual_network_selection_in_gobal_mode">true;BAE0000000000000</string> </resources> diff --git a/core/res/res/values-mcc310-mnc004/config.xml b/core/res/res/values-mcc310-mnc004/config.xml index cbe514514e36..63431a446ae5 100755 --- a/core/res/res/values-mcc310-mnc004/config.xml +++ b/core/res/res/values-mcc310-mnc004/config.xml @@ -35,8 +35,5 @@ <bool name="config_auto_attach_data_on_creation">false</bool> - <string-array translatable="false" name="config_sms_convert_destination_number_support"> - <item>true</item> - </string-array> <string translatable="false" name="prohibit_manual_network_selection_in_gobal_mode">true</string> </resources> diff --git a/core/res/res/values-mcc311-mnc480/config.xml b/core/res/res/values-mcc311-mnc480/config.xml index 714b3123c708..1301c4dd2f0d 100755 --- a/core/res/res/values-mcc311-mnc480/config.xml +++ b/core/res/res/values-mcc311-mnc480/config.xml @@ -60,9 +60,6 @@ --> <integer name="config_LTE_RSRP_threshold_type">0</integer> - <string-array translatable="false" name="config_sms_convert_destination_number_support"> - <item>true</item> - </string-array> <string translatable="false" name="prohibit_manual_network_selection_in_gobal_mode">true</string> </resources> diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 3d1acdf5f3a4..3d507b53594d 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -2328,22 +2328,6 @@ default scale-up transition. --> <bool name="config_overrideRemoteViewsActivityTransition">false</bool> - <!-- This config is used to check if the carrier requires converting destination - number before sending out a SMS. - Formats for this configuration as below: - [true or false][;optional gid] - The logic to pick up the configuration: - (1) If the "config_sms_convert_destination_number_support" array has no gid - special item, the last one will be picked - (2) If the "config_sms_convert_destination_number_support" array has gid special - item and it matches the current sim's gid, it will be picked. - (3) If the "config_sms_convert_destination_number_support" array has gid special - item but it doesn't match the current sim's gid, the last one without gid - will be picked --> - <string-array translatable="false" name="config_sms_convert_destination_number_support"> - <item>false</item> - </string-array> - <!-- The maximum bitmap size that can be written to a MediaMetadata object. This value is the max width/height allowed in dips.--> <dimen name="config_mediaMetadataBitmapMaxSize">320dp</dimen> diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 019a5e86ca79..76946db48246 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -2280,7 +2280,6 @@ <java-symbol type="bool" name="config_overrideRemoteViewsActivityTransition" /> <java-symbol type="layout" name="simple_account_item" /> - <java-symbol type="array" name="config_sms_convert_destination_number_support" /> <java-symbol type="string" name="prohibit_manual_network_selection_in_gobal_mode" /> <java-symbol type="id" name="profile_button" /> diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java index deed6d4fee78..d5bc45e73f1b 100644 --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -116,6 +116,13 @@ public class CarrierConfigManager { public static final String KEY_ALLOW_LOCAL_DTMF_TONES_BOOL = "allow_local_dtmf_tones_bool"; /** + * Determines if the carrier requires converting the destination number before sending out an + * SMS. Certain networks and numbering plans require different formats. + */ + public static final String KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL= + "sms_requires_destination_number_conversion_bool"; + + /** * If true, show an onscreen "Dial" button in the dialer. In practice this is used on all * platforms, even the ones with hard SEND/END keys, but for maximum flexibility it's controlled * by a flag here (which can be overridden on a per-product basis.) @@ -1086,6 +1093,7 @@ public class CarrierConfigManager { sDefaults.putBoolean(KEY_PREFER_2G_BOOL, true); sDefaults.putBoolean(KEY_SHOW_APN_SETTING_CDMA_BOOL, false); sDefaults.putBoolean(KEY_SHOW_CDMA_CHOICES_BOOL, false); + sDefaults.putBoolean(KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL, false); sDefaults.putBoolean(KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL, true); sDefaults.putBoolean(KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL, true); sDefaults.putBoolean(KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL, false); |