1 /*
2  * Copyright (C) 2015 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package android.telephony;
18 
19 import android.annotation.NonNull;
20 import android.annotation.Nullable;
21 import android.annotation.RequiresPermission;
22 import android.annotation.SuppressLint;
23 import android.annotation.SystemApi;
24 import android.annotation.SystemService;
25 import android.content.Context;
26 import android.os.PersistableBundle;
27 import android.os.RemoteException;
28 import android.os.ServiceManager;
29 import android.service.carrier.CarrierService;
30 import android.telephony.ims.ImsReasonInfo;
31 
32 import com.android.internal.telephony.ICarrierConfigLoader;
33 
34 /**
35  * Provides access to telephony configuration values that are carrier-specific.
36  */
37 @SystemService(Context.CARRIER_CONFIG_SERVICE)
38 public class CarrierConfigManager {
39     private final static String TAG = "CarrierConfigManager";
40 
41     /**
42      * Extra included in {@link #ACTION_CARRIER_CONFIG_CHANGED} to indicate the slot index that the
43      * broadcast is for.
44      */
45     public static final String EXTRA_SLOT_INDEX = "android.telephony.extra.SLOT_INDEX";
46 
47     /**
48      * Optional extra included in {@link #ACTION_CARRIER_CONFIG_CHANGED} to indicate the
49      * subscription index that the broadcast is for, if a valid one is available.
50      */
51     public static final String EXTRA_SUBSCRIPTION_INDEX =
52             SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX;
53 
54     /**
55      * @hide
56      */
CarrierConfigManager()57     public CarrierConfigManager() {
58     }
59 
60     /**
61      * This intent is broadcast by the system when carrier config changes. An int is specified in
62      * {@link #EXTRA_SLOT_INDEX} to indicate the slot index that this is for. An optional int extra
63      * {@link #EXTRA_SUBSCRIPTION_INDEX} is included to indicate the subscription index if a valid
64      * one is available for the slot index.
65      */
66     public static final String
67             ACTION_CARRIER_CONFIG_CHANGED = "android.telephony.action.CARRIER_CONFIG_CHANGED";
68 
69     // Below are the keys used in carrier config bundles. To add a new variable, define the key and
70     // give it a default value in sDefaults. If you need to ship a per-network override in the
71     // system image, that can be added in packages/apps/CarrierConfig.
72 
73     /**
74      * This flag specifies whether VoLTE availability is based on provisioning. By default this is
75      * false.
76      */
77     public static final String
78             KEY_CARRIER_VOLTE_PROVISIONED_BOOL = "carrier_volte_provisioned_bool";
79 
80    /**
81     * Boolean indicating if the "Call barring" item is visible in the Call Settings menu.
82     * true means visible. false means gone.
83     * @hide
84     */
85     public static final String KEY_CALL_BARRING_VISIBILITY_BOOL =
86             "call_barring_visibility_bool";
87 
88     /**
89      * Flag indicating whether the Phone app should ignore EVENT_SIM_NETWORK_LOCKED
90      * events from the Sim.
91      * If true, this will prevent the IccNetworkDepersonalizationPanel from being shown, and
92      * effectively disable the "Sim network lock" feature.
93      */
94     public static final String
95             KEY_IGNORE_SIM_NETWORK_LOCKED_EVENTS_BOOL = "ignore_sim_network_locked_events_bool";
96 
97     /**
98      * When checking if a given number is the voicemail number, if this flag is true
99      * then in addition to comparing the given number to the voicemail number, we also compare it
100      * to the mdn. If this flag is false, the given number is only compared to the voicemail number.
101      * By default this value is false.
102      */
103     public static final String KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL =
104             "mdn_is_additional_voicemail_number_bool";
105 
106     /**
107      * Flag indicating whether the Phone app should provide a "Dismiss" button on the SIM network
108      * unlock screen. The default value is true. If set to false, there will be *no way* to dismiss
109      * the SIM network unlock screen if you don't enter the correct unlock code. (One important
110      * consequence: there will be no way to make an Emergency Call if your SIM is network-locked and
111      * you don't know the PIN.)
112      */
113     public static final String
114             KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL = "sim_network_unlock_allow_dismiss_bool";
115 
116     /** Flag indicating if the phone is a world phone */
117     public static final String KEY_WORLD_PHONE_BOOL = "world_phone_bool";
118 
119     /**
120      * Flag to require or skip entitlement checks.
121      * If true, entitlement checks will be executed if device has been configured for it,
122      * If false, entitlement checks will be skipped.
123      */
124     public static final String
125             KEY_REQUIRE_ENTITLEMENT_CHECKS_BOOL = "require_entitlement_checks_bool";
126 
127     /**
128      * Flag indicating whether radio is to be restarted on error PDP_FAIL_REGULAR_DEACTIVATION
129      * This is false by default.
130      */
131     public static final String
132             KEY_RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION_BOOL =
133                     "restart_radio_on_pdp_fail_regular_deactivation_bool";
134 
135     /**
136      * If true, enable vibration (haptic feedback) for key presses in the EmergencyDialer activity.
137      * The pattern is set on a per-platform basis using config_virtualKeyVibePattern. To be
138      * consistent with the regular Dialer, this value should agree with the corresponding values
139      * from config.xml under apps/Contacts.
140      */
141     public static final String
142             KEY_ENABLE_DIALER_KEY_VIBRATION_BOOL = "enable_dialer_key_vibration_bool";
143 
144     /** Flag indicating if dtmf tone type is enabled */
145     public static final String KEY_DTMF_TYPE_ENABLED_BOOL = "dtmf_type_enabled_bool";
146 
147     /** Flag indicating if auto retry is enabled */
148     public static final String KEY_AUTO_RETRY_ENABLED_BOOL = "auto_retry_enabled_bool";
149 
150     /**
151      * Determine whether we want to play local DTMF tones in a call, or just let the radio/BP handle
152      * playing of the tones.
153      */
154     public static final String KEY_ALLOW_LOCAL_DTMF_TONES_BOOL = "allow_local_dtmf_tones_bool";
155 
156     /**
157      * Determines if the carrier requires that a tone be played to the remote party when an app is
158      * recording audio during a call (e.g. using a call recording app).
159      * <p>
160      * Note: This requires the Telephony config_supports_telephony_audio_device overlay to be true
161      * in order to work.
162      * @hide
163      */
164     public static final String KEY_PLAY_CALL_RECORDING_TONE_BOOL = "play_call_recording_tone_bool";
165     /**
166      * Determines if the carrier requires converting the destination number before sending out an
167      * SMS. Certain networks and numbering plans require different formats.
168      */
169     public static final String KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL=
170             "sms_requires_destination_number_conversion_bool";
171 
172     /**
173      * If true, show an onscreen "Dial" button in the dialer. In practice this is used on all
174      * platforms, even the ones with hard SEND/END keys, but for maximum flexibility it's controlled
175      * by a flag here (which can be overridden on a per-product basis.)
176      */
177     public static final String KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL = "show_onscreen_dial_button_bool";
178 
179     /** Determines if device implements a noise suppression device for in call audio. */
180     public static final String
181             KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL = "has_in_call_noise_suppression_bool";
182 
183     /**
184      * Determines if the current device should allow emergency numbers to be logged in the Call Log.
185      * (Some carriers require that emergency calls *not* be logged, presumably to avoid the risk of
186      * accidental redialing from the call log UI. This is a good idea, so the default here is
187      * false.)
188      */
189     public static final String
190             KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL = "allow_emergency_numbers_in_call_log_bool";
191 
192     /** If true, removes the Voice Privacy option from Call Settings */
193     public static final String KEY_VOICE_PRIVACY_DISABLE_UI_BOOL = "voice_privacy_disable_ui_bool";
194 
195     /** Control whether users can reach the carrier portions of Cellular Network Settings. */
196     public static final String
197             KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL = "hide_carrier_network_settings_bool";
198 
199     /**
200      * Control whether users receive a simplified network settings UI and improved network
201      * selection.
202      */
203     public static final String
204             KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL = "simplified_network_settings_bool";
205 
206     /** Control whether users can reach the SIM lock settings. */
207     public static final String
208             KEY_HIDE_SIM_LOCK_SETTINGS_BOOL = "hide_sim_lock_settings_bool";
209 
210     /** Control whether users can edit APNs in Settings. */
211     public static final String KEY_APN_EXPAND_BOOL = "apn_expand_bool";
212 
213     /** Control whether users can choose a network operator. */
214     public static final String KEY_OPERATOR_SELECTION_EXPAND_BOOL = "operator_selection_expand_bool";
215 
216     /** Used in Cellular Network Settings for preferred network type. */
217     public static final String KEY_PREFER_2G_BOOL = "prefer_2g_bool";
218 
219     /** Show cdma network mode choices 1x, 3G, global etc. */
220     public static final String KEY_SHOW_CDMA_CHOICES_BOOL = "show_cdma_choices_bool";
221 
222     /** CDMA activation goes through HFA */
223     public static final String KEY_USE_HFA_FOR_PROVISIONING_BOOL = "use_hfa_for_provisioning_bool";
224 
225     /**
226      * CDMA activation goes through OTASP.
227      * <p>
228      * TODO: This should be combined with config_use_hfa_for_provisioning and implemented as an enum
229      * (NONE, HFA, OTASP).
230      */
231     public static final String KEY_USE_OTASP_FOR_PROVISIONING_BOOL = "use_otasp_for_provisioning_bool";
232 
233     /** Display carrier settings menu if true */
234     public static final String KEY_CARRIER_SETTINGS_ENABLE_BOOL = "carrier_settings_enable_bool";
235 
236     /** Does not display additional call setting for IMS phone based on GSM Phone */
237     public static final String KEY_ADDITIONAL_CALL_SETTING_BOOL = "additional_call_setting_bool";
238 
239     /** Show APN Settings for some CDMA carriers */
240     public static final String KEY_SHOW_APN_SETTING_CDMA_BOOL = "show_apn_setting_cdma_bool";
241 
242     /** After a CDMA conference call is merged, the swap button should be displayed. */
243     public static final String KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL = "support_swap_after_merge_bool";
244 
245     /**
246      * Determine whether user can edit voicemail number in Settings.
247      */
248     public static final String KEY_EDITABLE_VOICEMAIL_NUMBER_SETTING_BOOL =
249             "editable_voicemail_number_setting_bool";
250 
251     /**
252      * Since the default voicemail number is empty, if a SIM card does not have a voicemail number
253      * available the user cannot use voicemail. This flag allows the user to edit the voicemail
254      * number in such cases, and is false by default.
255      */
256     public static final String KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL= "editable_voicemail_number_bool";
257 
258     /**
259      * Determine whether the voicemail notification is persistent in the notification bar. If true,
260      * the voicemail notifications cannot be dismissed from the notification bar.
261      */
262     public static final String
263             KEY_VOICEMAIL_NOTIFICATION_PERSISTENT_BOOL = "voicemail_notification_persistent_bool";
264 
265     /** For IMS video over LTE calls, determines whether video pause signalling is supported. */
266     public static final String
267             KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL = "support_pause_ims_video_calls_bool";
268 
269     /**
270      * Disables dialing "*228" (OTASP provisioning) on CDMA carriers where it is not supported or is
271      * potentially harmful by locking the SIM to 3G.
272      */
273     public static final String
274             KEY_DISABLE_CDMA_ACTIVATION_CODE_BOOL = "disable_cdma_activation_code_bool";
275 
276     /**
277      * List of RIL radio technologies (See {@link ServiceState} {@code RIL_RADIO_TECHNOLOGY_*}
278      * constants) which support only a single data connection at a time. Some carriers do not
279      * support multiple pdp on UMTS.
280      */
281     public static final String
282             KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY = "only_single_dc_allowed_int_array";
283 
284     /**
285      * Override the platform's notion of a network operator being considered roaming.
286      * Value is string array of MCCMNCs to be considered roaming for 3GPP RATs.
287      */
288     public static final String
289             KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY = "gsm_roaming_networks_string_array";
290 
291     /**
292      * Override the platform's notion of a network operator being considered not roaming.
293      * Value is string array of MCCMNCs to be considered not roaming for 3GPP RATs.
294      */
295     public static final String
296             KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY = "gsm_nonroaming_networks_string_array";
297 
298     /**
299      * Override the device's configuration for the ImsService to use for this SIM card.
300      */
301     public static final String KEY_CONFIG_IMS_PACKAGE_OVERRIDE_STRING =
302             "config_ims_package_override_string";
303 
304     /**
305      * Override the package that will manage {@link SubscriptionPlan}
306      * information instead of the {@link CarrierService} that defines this
307      * value.
308      *
309      * @see SubscriptionManager#getSubscriptionPlans(int)
310      * @see SubscriptionManager#setSubscriptionPlans(int, java.util.List)
311      */
312     @SystemApi
313     public static final String KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING =
314             "config_plans_package_override_string";
315 
316     /**
317      * Override the platform's notion of a network operator being considered roaming.
318      * Value is string array of SIDs to be considered roaming for 3GPP2 RATs.
319      */
320     public static final String
321             KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY = "cdma_roaming_networks_string_array";
322 
323     /**
324      * Override the platform's notion of a network operator being considered non roaming.
325      * Value is string array of SIDs to be considered not roaming for 3GPP2 RATs.
326      */
327     public static final String
328             KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY = "cdma_nonroaming_networks_string_array";
329 
330     /**
331      * Override the platform's notion of a network operator being considered non roaming.
332      * If true all networks are considered as home network a.k.a non-roaming.  When false,
333      * the 2 pairs of CMDA and GSM roaming/non-roaming arrays are consulted.
334      *
335      * @see #KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY
336      * @see #KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY
337      * @see #KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY
338      * @see #KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY
339      */
340     public static final String
341             KEY_FORCE_HOME_NETWORK_BOOL = "force_home_network_bool";
342 
343     /**
344      * Flag specifying whether VoLTE should be available for carrier, independent of carrier
345      * provisioning. If false: hard disabled. If true: then depends on carrier provisioning,
346      * availability, etc.
347      */
348     public static final String KEY_CARRIER_VOLTE_AVAILABLE_BOOL = "carrier_volte_available_bool";
349 
350     /**
351      * Flag specifying whether video telephony is available for carrier. If false: hard disabled.
352      * If true: then depends on carrier provisioning, availability, etc.
353      */
354     public static final String KEY_CARRIER_VT_AVAILABLE_BOOL = "carrier_vt_available_bool";
355 
356     /**
357      * Flag specifying whether the carrier wants to notify the user when a VT call has been handed
358      * over from WIFI to LTE.
359      * <p>
360      * The handover notification is sent as a
361      * {@link TelephonyManager#EVENT_HANDOVER_VIDEO_FROM_WIFI_TO_LTE}
362      * {@link android.telecom.Connection} event, which an {@link android.telecom.InCallService}
363      * should use to trigger the display of a user-facing message.
364      * <p>
365      * The Connection event is sent to the InCallService only once, the first time it occurs.
366      * @hide
367      */
368     public static final String KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL =
369             "notify_handover_video_from_wifi_to_lte_bool";
370 
371     /**
372      * Flag specifying whether the carrier wants to notify the user when a VT call has been handed
373      * over from LTE to WIFI.
374      * <p>
375      * The handover notification is sent as a
376      * {@link TelephonyManager#EVENT_HANDOVER_VIDEO_FROM_LTE_TO_WIFI}
377      * {@link android.telecom.Connection} event, which an {@link android.telecom.InCallService}
378      * should use to trigger the display of a user-facing message.
379      * @hide
380      */
381     public static final String KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL =
382             "notify_handover_video_from_lte_to_wifi_bool";
383 
384     /**
385      * Flag specifying whether the carrier supports downgrading a video call (tx, rx or tx/rx)
386      * directly to an audio call.
387      * @hide
388      */
389     public static final String KEY_SUPPORT_DOWNGRADE_VT_TO_AUDIO_BOOL =
390             "support_downgrade_vt_to_audio_bool";
391 
392     /**
393      * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default
394      * voicemail number.
395      * When empty string, no default voicemail number is specified.
396      */
397     public static final String KEY_DEFAULT_VM_NUMBER_STRING = "default_vm_number_string";
398 
399     /**
400      * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default
401      * voicemail number for roaming network.
402      * When empty string, no default voicemail number is specified for roaming network.
403      * @hide
404      */
405     public static final String KEY_DEFAULT_VM_NUMBER_ROAMING_STRING =
406             "default_vm_number_roaming_string";
407 
408     /**
409      * Flag that specifies to use the user's own phone number as the voicemail number when there is
410      * no pre-loaded voicemail number on the SIM card.
411      * <p>
412      * {@link #KEY_DEFAULT_VM_NUMBER_STRING} takes precedence over this flag.
413      * <p>
414      * If false, the system default (*86) will be used instead.
415      */
416     public static final String KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL =
417             "config_telephony_use_own_number_for_voicemail_bool";
418 
419     /**
420      * When {@code true}, changes to the mobile data enabled switch will not cause the VT
421      * registration state to change.  That is, turning on or off mobile data will not cause VT to be
422      * enabled or disabled.
423      * When {@code false}, disabling mobile data will cause VT to be de-registered.
424      * <p>
425      * See also {@link #KEY_VILTE_DATA_IS_METERED_BOOL}.
426      * @hide
427      */
428     public static final String KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS =
429             "ignore_data_enabled_changed_for_video_calls";
430 
431     /**
432      * Flag indicating whether data used for a video call over LTE is metered or not.
433      * <p>
434      * When {@code true}, if the device hits the data limit or data is disabled during a ViLTE call,
435      * the call will be downgraded to audio-only (or paused if
436      * {@link #KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL} is {@code true}).
437      *
438      * @hide
439      */
440     public static final String KEY_VILTE_DATA_IS_METERED_BOOL = "vilte_data_is_metered_bool";
441 
442     /**
443      * Flag specifying whether WFC over IMS should be available for carrier: independent of
444      * carrier provisioning. If false: hard disabled. If true: then depends on carrier
445      * provisioning, availability etc.
446      */
447     public static final String KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL = "carrier_wfc_ims_available_bool";
448 
449     /**
450      * Specifies a map from dialstrings to replacements for roaming network service numbers which
451      * cannot be replaced on the carrier side.
452      * <p>
453      * Individual entries have the format:
454      * [dialstring to replace]:[replacement]
455      */
456     public static final String KEY_DIAL_STRING_REPLACE_STRING_ARRAY =
457             "dial_string_replace_string_array";
458 
459     /**
460      * Flag specifying whether WFC over IMS supports the "wifi only" option.  If false, the wifi
461      * calling settings will not include an option for "wifi only".  If true, the wifi calling
462      * settings will include an option for "wifi only"
463      * <p>
464      * By default, it is assumed that WFC supports "wifi only".
465      */
466     public static final String KEY_CARRIER_WFC_SUPPORTS_WIFI_ONLY_BOOL =
467             "carrier_wfc_supports_wifi_only_bool";
468 
469     /**
470      * Default WFC_IMS_MODE for home network   0: WIFI_ONLY
471      *                                         1: CELLULAR_PREFERRED
472      *                                         2: WIFI_PREFERRED
473      * @hide
474      */
475     public static final String KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT =
476             "carrier_default_wfc_ims_mode_int";
477 
478     /**
479      * Default WFC_IMS_MODE for roaming
480      * See {@link KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT} for valid values.
481      *
482      * @hide
483      */
484     public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT =
485             "carrier_default_wfc_ims_roaming_mode_int";
486 
487     /**
488      * Default WFC_IMS_enabled: true VoWiFi by default is on
489      *                          false VoWiFi by default is off
490      * @hide
491      */
492     public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL =
493             "carrier_default_wfc_ims_enabled_bool";
494 
495     /**
496      * Default WFC_IMS_roaming_enabled: true VoWiFi roaming by default is on
497      *                                  false VoWiFi roaming by default is off
498      * @hide
499      */
500     public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL =
501             "carrier_default_wfc_ims_roaming_enabled_bool";
502 
503     /**
504      * Flag indicating whether failed calls due to no service should prompt the user to enable
505      * WIFI calling.  When {@code true}, if the user attempts to establish a call when there is no
506      * service available, they are connected to WIFI, and WIFI calling is disabled, a different
507      * call failure message will be used to encourage the user to enable WIFI calling.
508      * @hide
509      */
510     public static final String KEY_CARRIER_PROMOTE_WFC_ON_CALL_FAIL_BOOL =
511             "carrier_promote_wfc_on_call_fail_bool";
512 
513     /** Flag specifying whether provisioning is required for VOLTE. */
514     public static final String KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL
515             = "carrier_volte_provisioning_required_bool";
516 
517     /**
518      * Flag specifying if WFC provisioning depends on VoLTE provisioning.
519      *
520      * {@code false}: default value; honor actual WFC provisioning state.
521      * {@code true}: when VoLTE is not provisioned, treat WFC as not provisioned; when VoLTE is
522      *               provisioned, honor actual WFC provisioning state.
523      *
524      * As of now, Verizon is the only carrier enforcing this dependency in their
525      * WFC awareness and activation requirements.
526      *
527      * @hide
528      *  */
529     public static final String KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL
530             = "carrier_volte_override_wfc_provisioning_bool";
531 
532     /**
533      * Override the device's configuration for the cellular data service to use for this SIM card.
534      * @hide
535      */
536     public static final String KEY_CARRIER_DATA_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING
537             = "carrier_data_service_wwan_package_override_string";
538 
539     /**
540      * Override the device's configuration for the IWLAN data service to use for this SIM card.
541      * @hide
542      */
543     public static final String KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING
544             = "carrier_data_service_wlan_package_override_string";
545 
546     /** Flag specifying whether VoLTE TTY is supported. */
547     public static final String KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL
548             = "carrier_volte_tty_supported_bool";
549 
550     /**
551      * Flag specifying whether IMS service can be turned off. If false then the service will not be
552      * turned-off completely, but individual features can be disabled.
553      */
554     public static final String KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL
555             = "carrier_allow_turnoff_ims_bool";
556 
557     /**
558      * Flag specifying whether Generic Bootstrapping Architecture capable SIM is required for IMS.
559      */
560     public static final String KEY_CARRIER_IMS_GBA_REQUIRED_BOOL
561             = "carrier_ims_gba_required_bool";
562 
563     /**
564      * Flag specifying whether IMS instant lettering is available for the carrier.  {@code True} if
565      * instant lettering is available for the carrier, {@code false} otherwise.
566      */
567     public static final String KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL =
568             "carrier_instant_lettering_available_bool";
569 
570     /*
571      * Flag specifying whether IMS should be the first phone attempted for E911 even if the
572      * phone is not in service.
573      */
574     public static final String KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL
575             = "carrier_use_ims_first_for_emergency_bool";
576 
577     /**
578      * When IMS instant lettering is available for a carrier (see
579      * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines the list of characters
580      * which may not be contained in messages.  Should be specified as a regular expression suitable
581      * for use with {@link String#matches(String)}.
582      */
583     public static final String KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING =
584             "carrier_instant_lettering_invalid_chars_string";
585 
586     /**
587      * When IMS instant lettering is available for a carrier (see
588      * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines a list of characters which
589      * must be escaped with a backslash '\' character.  Should be specified as a string containing
590      * the characters to be escaped.  For example to escape quote and backslash the string would be
591      * a quote and a backslash.
592      */
593     public static final String KEY_CARRIER_INSTANT_LETTERING_ESCAPED_CHARS_STRING =
594             "carrier_instant_lettering_escaped_chars_string";
595 
596     /**
597      * When IMS instant lettering is available for a carrier (see
598      * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines the character encoding
599      * which will be used when determining the length of messages.  Used in the InCall UI to limit
600      * the number of characters the user may type.  If empty-string, the instant lettering
601      * message size limit will be enforced on a 1:1 basis.  That is, each character will count
602      * towards the messages size limit as a single bye.  If a character encoding is specified, the
603      * message size limit will be based on the number of bytes in the message per the specified
604      * encoding.
605      */
606     public static final String KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING =
607             "carrier_instant_lettering_encoding_string";
608 
609     /**
610      * When IMS instant lettering is available for a carrier (see
611      * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), the length limit for messages.  Used
612      * in the InCall UI to ensure the user cannot enter more characters than allowed by the carrier.
613      * See also {@link #KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING} for more information on how
614      * the length of the message is calculated.
615      */
616     public static final String KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT =
617             "carrier_instant_lettering_length_limit_int";
618 
619     /**
620      * If Voice Radio Technology is RIL_RADIO_TECHNOLOGY_LTE:14 or RIL_RADIO_TECHNOLOGY_UNKNOWN:0
621      * this is the value that should be used instead. A configuration value of
622      * RIL_RADIO_TECHNOLOGY_UNKNOWN:0 means there is no replacement value and that the default
623      * assumption for phone type (GSM) should be used.
624      */
625     public static final String KEY_VOLTE_REPLACEMENT_RAT_INT = "volte_replacement_rat_int";
626 
627     /**
628      * The default sim call manager to use when the default dialer doesn't implement one. A sim call
629      * manager can control and route outgoing and incoming phone calls, even if they're placed
630      * using another connection service (PSTN, for example).
631      */
632     public static final String KEY_DEFAULT_SIM_CALL_MANAGER_STRING = "default_sim_call_manager_string";
633 
634     /**
635      * The default flag specifying whether ETWS/CMAS test setting is forcibly disabled in
636      * Settings->More->Emergency broadcasts menu even though developer options is turned on.
637      */
638     public static final String KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL =
639             "carrier_force_disable_etws_cmas_test_bool";
640 
641     /**
642      * The default flag specifying whether "Turn on Notifications" option will be always shown in
643      * Settings->More->Emergency broadcasts menu regardless developer options is turned on or not.
644      */
645     public static final String KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL =
646             "always_show_emergency_alert_onoff_bool";
647 
648     /**
649      * The flag to disable cell broadcast severe alert when extreme alert is disabled.
650      * @hide
651      */
652     public static final String KEY_DISABLE_SEVERE_WHEN_EXTREME_DISABLED_BOOL =
653             "disable_severe_when_extreme_disabled_bool";
654 
655     /**
656      * The message expiration time in milliseconds for duplicate detection purposes.
657      * @hide
658      */
659     public static final String KEY_MESSAGE_EXPIRATION_TIME_LONG =
660             "message_expiration_time_long";
661 
662     /**
663      * The data call retry configuration for different types of APN.
664      * @hide
665      */
666     public static final String KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS =
667             "carrier_data_call_retry_config_strings";
668 
669     /**
670      * Delay in milliseconds between trying APN from the pool
671      * @hide
672      */
673     public static final String KEY_CARRIER_DATA_CALL_APN_DELAY_DEFAULT_LONG =
674             "carrier_data_call_apn_delay_default_long";
675 
676     /**
677      * Faster delay in milliseconds between trying APN from the pool
678      * @hide
679      */
680     public static final String KEY_CARRIER_DATA_CALL_APN_DELAY_FASTER_LONG =
681             "carrier_data_call_apn_delay_faster_long";
682 
683     /**
684      * Delay in milliseconds for retrying APN after disconnect
685      * @hide
686      */
687     public static final String KEY_CARRIER_DATA_CALL_APN_RETRY_AFTER_DISCONNECT_LONG =
688             "carrier_data_call_apn_retry_after_disconnect_long";
689 
690     /**
691      * Data call setup permanent failure causes by the carrier
692      */
693     public static final String KEY_CARRIER_DATA_CALL_PERMANENT_FAILURE_STRINGS =
694             "carrier_data_call_permanent_failure_strings";
695 
696     /**
697      * Default APN types that are metered by the carrier
698      * @hide
699      */
700     public static final String KEY_CARRIER_METERED_APN_TYPES_STRINGS =
701             "carrier_metered_apn_types_strings";
702     /**
703      * Default APN types that are roaming-metered by the carrier
704      * @hide
705      */
706     public static final String KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS =
707             "carrier_metered_roaming_apn_types_strings";
708 
709     /**
710      * Default APN types that are metered on IWLAN by the carrier
711      * @hide
712      */
713     public static final String KEY_CARRIER_METERED_IWLAN_APN_TYPES_STRINGS =
714             "carrier_metered_iwlan_apn_types_strings";
715 
716     /**
717      * CDMA carrier ERI (Enhanced Roaming Indicator) file name
718      * @hide
719      */
720     public static final String KEY_CARRIER_ERI_FILE_NAME_STRING =
721             "carrier_eri_file_name_string";
722 
723     /* The following 3 fields are related to carrier visual voicemail. */
724 
725     /**
726      * The carrier number mobile outgoing (MO) sms messages are sent to.
727      */
728     public static final String KEY_VVM_DESTINATION_NUMBER_STRING = "vvm_destination_number_string";
729 
730     /**
731      * The port through which the mobile outgoing (MO) sms messages are sent through.
732      */
733     public static final String KEY_VVM_PORT_NUMBER_INT = "vvm_port_number_int";
734 
735     /**
736      * The type of visual voicemail protocol the carrier adheres to. See {@link TelephonyManager}
737      * for possible values. For example {@link TelephonyManager#VVM_TYPE_OMTP}.
738      */
739     public static final String KEY_VVM_TYPE_STRING = "vvm_type_string";
740 
741     /**
742      * Whether cellular data is required to access visual voicemail.
743      */
744     public static final String KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL =
745         "vvm_cellular_data_required_bool";
746 
747     /**
748      * The default OMTP visual voicemail client prefix to use. Defaulted to "//VVM"
749      */
750     public static final String KEY_VVM_CLIENT_PREFIX_STRING =
751             "vvm_client_prefix_string";
752 
753     /**
754      * Whether to use SSL to connect to the visual voicemail IMAP server. Defaulted to false.
755      */
756     public static final String KEY_VVM_SSL_ENABLED_BOOL = "vvm_ssl_enabled_bool";
757 
758     /**
759      * A set of capabilities that should not be used even if it is reported by the visual voicemail
760      * IMAP CAPABILITY command.
761      */
762     public static final String KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY =
763             "vvm_disabled_capabilities_string_array";
764 
765     /**
766      * Whether legacy mode should be used when the visual voicemail client is disabled.
767      *
768      * <p>Legacy mode is a mode that on the carrier side visual voicemail is still activated, but on
769      * the client side all network operations are disabled. SMSs are still monitored so a new
770      * message SYNC SMS will be translated to show a message waiting indicator, like traditional
771      * voicemails.
772      *
773      * <p>This is for carriers that does not support VVM deactivation so voicemail can continue to
774      * function without the data cost.
775      */
776     public static final String KEY_VVM_LEGACY_MODE_ENABLED_BOOL =
777             "vvm_legacy_mode_enabled_bool";
778 
779     /**
780      * Whether to prefetch audio data on new voicemail arrival, defaulted to true.
781      */
782     public static final String KEY_VVM_PREFETCH_BOOL = "vvm_prefetch_bool";
783 
784     /**
785      * The package name of the carrier's visual voicemail app to ensure that dialer visual voicemail
786      * and carrier visual voicemail are not active at the same time.
787      *
788      * @deprecated use {@link #KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY}.
789      */
790     @Deprecated
791     public static final String KEY_CARRIER_VVM_PACKAGE_NAME_STRING = "carrier_vvm_package_name_string";
792 
793     /**
794      * A list of the carrier's visual voicemail app package names to ensure that dialer visual
795      * voicemail and carrier visual voicemail are not active at the same time.
796      */
797     public static final String KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY =
798             "carrier_vvm_package_name_string_array";
799 
800     /**
801      * Flag specifying whether ICCID is showed in SIM Status screen, default to false.
802      */
803     public static final String KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL = "show_iccid_in_sim_status_bool";
804 
805     /**
806      * Flag specifying whether the {@link android.telephony.SignalStrength} is shown in the SIM
807      * Status screen. The default value is true.
808      */
809     public static final String KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL =
810         "show_signal_strength_in_sim_status_bool";
811 
812     /**
813      * Flag specifying whether an additional (client initiated) intent needs to be sent on System
814      * update
815      */
816     public static final String KEY_CI_ACTION_ON_SYS_UPDATE_BOOL = "ci_action_on_sys_update_bool";
817 
818     /**
819      * Intent to be sent for the additional action on System update
820      */
821     public static final String KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING =
822             "ci_action_on_sys_update_intent_string";
823 
824     /**
825      * Extra to be included in the intent sent for additional action on System update
826      */
827     public static final String KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING =
828             "ci_action_on_sys_update_extra_string";
829 
830     /**
831      * Value of extra included in intent sent for additional action on System update
832      */
833     public static final String KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING =
834             "ci_action_on_sys_update_extra_val_string";
835 
836     /**
837      * Specifies the amount of gap to be added in millis between postdial DTMF tones. When a
838      * non-zero value is specified, the UE shall wait for the specified amount of time before it
839      * sends out successive DTMF tones on the network.
840      */
841     public static final String KEY_GSM_DTMF_TONE_DELAY_INT = "gsm_dtmf_tone_delay_int";
842 
843     /**
844      * Specifies the amount of gap to be added in millis between DTMF tones. When a non-zero value
845      * is specified, the UE shall wait for the specified amount of time before it sends out
846      * successive DTMF tones on the network.
847      */
848     public static final String KEY_IMS_DTMF_TONE_DELAY_INT = "ims_dtmf_tone_delay_int";
849 
850     /**
851      * Specifies the amount of gap to be added in millis between postdial DTMF tones. When a
852      * non-zero value is specified, the UE shall wait for the specified amount of time before it
853      * sends out successive DTMF tones on the network.
854      */
855     public static final String KEY_CDMA_DTMF_TONE_DELAY_INT = "cdma_dtmf_tone_delay_int";
856 
857     /**
858      * Some carriers will send call forwarding responses for voicemail in a format that is not 3gpp
859      * compliant, which causes issues during parsing. This causes the
860      * {@link com.android.internal.telephony.CallForwardInfo#number} to contain non-numerical
861      * characters instead of a number.
862      *
863      * If true, we will detect the non-numerical characters and replace them with "Voicemail".
864      * @hide
865      */
866     public static final String KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL =
867             "call_forwarding_map_non_number_to_voicemail_bool";
868 
869     /**
870      * Determines whether conference calls are supported by a carrier.  When {@code true},
871      * conference calling is supported, {@code false otherwise}.
872      */
873     public static final String KEY_SUPPORT_CONFERENCE_CALL_BOOL = "support_conference_call_bool";
874 
875     /**
876      * Determines whether a maximum size limit for IMS conference calls is enforced on the device.
877      * When {@code true}, IMS conference calls will be limited to at most
878      * {@link #KEY_IMS_CONFERENCE_SIZE_LIMIT_INT} participants.  When {@code false}, no attempt is made
879      * to limit the number of participants in a conference (the carrier will raise an error when an
880      * attempt is made to merge too many participants into a conference).
881      */
882     public static final String KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL =
883             "is_ims_conference_size_enforced_bool";
884 
885     /**
886      * Determines the maximum number of participants the carrier supports for a conference call.
887      * This number is exclusive of the current device.  A conference between 3 devices, for example,
888      * would have a size limit of 2 participants.
889      * Enforced when {@link #KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL} is {@code true}.
890      */
891     public static final String KEY_IMS_CONFERENCE_SIZE_LIMIT_INT = "ims_conference_size_limit_int";
892 
893     /**
894      * Determines whether manage IMS conference calls is supported by a carrier.  When {@code true},
895      * manage IMS conference call is supported, {@code false otherwise}.
896      * @hide
897      */
898     public static final String KEY_SUPPORT_MANAGE_IMS_CONFERENCE_CALL_BOOL =
899             "support_manage_ims_conference_call_bool";
900 
901     /**
902      * Determines whether High Definition audio property is displayed in the dialer UI.
903      * If {@code false}, remove the HD audio property from the connection so that HD audio related
904      * UI is not displayed. If {@code true}, keep HD audio property as it is configured.
905      */
906     public static final String KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL =
907             "display_hd_audio_property_bool";
908 
909     /**
910      * Determines whether IMS conference calls are supported by a carrier.  When {@code true},
911      * IMS conference calling is supported, {@code false} otherwise.
912      * @hide
913      */
914     public static final String KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL =
915             "support_ims_conference_call_bool";
916 
917     /**
918      * Determines whether video conference calls are supported by a carrier.  When {@code true},
919      * video calls can be merged into conference calls, {@code false} otherwiwse.
920      * <p>
921      * Note: even if video conference calls are not supported, audio calls may be merged into a
922      * conference if {@link #KEY_SUPPORT_CONFERENCE_CALL_BOOL} is {@code true}.
923      * @hide
924      */
925     public static final String KEY_SUPPORT_VIDEO_CONFERENCE_CALL_BOOL =
926             "support_video_conference_call_bool";
927 
928     /**
929      * Determine whether user can toggle Enhanced 4G LTE Mode in Settings.
930      */
931     public static final String KEY_EDITABLE_ENHANCED_4G_LTE_BOOL = "editable_enhanced_4g_lte_bool";
932 
933     /**
934      * Determines whether the Enhanced 4G LTE toggle will be shown in the settings. When this
935      * option is {@code true}, the toggle will be hidden regardless of whether the device and
936      * carrier supports 4G LTE or not.
937      */
938     public static final String KEY_HIDE_ENHANCED_4G_LTE_BOOL = "hide_enhanced_4g_lte_bool";
939 
940     /**
941      * Default Enhanced 4G LTE mode enabled. When this is {@code true}, Enhanced 4G LTE mode by
942      * default is on, otherwise if {@code false}, Enhanced 4G LTE mode by default is off.
943      * @hide
944      */
945     public static final String KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL =
946             "enhanced_4g_lte_on_by_default_bool";
947 
948     /**
949      * Determine whether IMS apn can be shown.
950      */
951     public static final String KEY_HIDE_IMS_APN_BOOL = "hide_ims_apn_bool";
952 
953     /**
954      * Determine whether preferred network type can be shown.
955      */
956     public static final String KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL = "hide_preferred_network_type_bool";
957 
958     /**
959      * String array for package names that need to be enabled for this carrier.
960      * If user has explicitly disabled some packages in the list, won't re-enable.
961      * Other carrier specific apps which are not in this list may be disabled for current carrier,
962      * and only be re-enabled when this config for another carrier includes it.
963      *
964      * @hide
965      */
966     public static final String KEY_ENABLE_APPS_STRING_ARRAY = "enable_apps_string_array";
967 
968     /**
969      * Determine whether user can switch Wi-Fi preferred or Cellular preferred in calling preference.
970      * Some operators support Wi-Fi Calling only, not VoLTE.
971      * They don't need "Cellular preferred" option.
972      * In this case, set uneditalbe attribute for preferred preference.
973      * @hide
974      */
975     public static final String KEY_EDITABLE_WFC_MODE_BOOL = "editable_wfc_mode_bool";
976 
977      /**
978       * Flag to indicate if Wi-Fi needs to be disabled in ECBM
979       * @hide
980       **/
981      public static final String
982               KEY_CONFIG_WIFI_DISABLE_IN_ECBM = "config_wifi_disable_in_ecbm";
983 
984     /**
985      * List operator-specific error codes and indices of corresponding error strings in
986      * wfcOperatorErrorAlertMessages and wfcOperatorErrorNotificationMessages.
987      *
988      * Example: "REG09|0" specifies error code "REG09" and index "0". This index will be
989      * used to find alert and notification messages in wfcOperatorErrorAlertMessages and
990      * wfcOperatorErrorNotificationMessages.
991      *
992      * @hide
993      */
994     public static final String KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY =
995             "wfc_operator_error_codes_string_array";
996 
997     /**
998      * Indexes of SPN format strings in wfcSpnFormats and wfcDataSpnFormats.
999      * @hide
1000      */
1001     public static final String KEY_WFC_SPN_FORMAT_IDX_INT = "wfc_spn_format_idx_int";
1002     /** @hide */
1003     public static final String KEY_WFC_DATA_SPN_FORMAT_IDX_INT = "wfc_data_spn_format_idx_int";
1004 
1005     /**
1006      * The Component Name of the activity that can setup the emergency addrees for WiFi Calling
1007      * as per carrier requirement.
1008      * @hide
1009      */
1010      public static final String KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING =
1011             "wfc_emergency_address_carrier_app_string";
1012 
1013     /**
1014      * Unconditionally override the carrier name string using #KEY_CARRIER_NAME_STRING.
1015      *
1016      * If true, then the carrier name string will be #KEY_CARRIER_NAME_STRING, unconditionally.
1017      *
1018      * <p>If false, then the override will be performed conditionally and the
1019      * #KEY_CARRIER_NAME_STRING will have the lowest-precedence; it will only be used in the event
1020      * that the name string would otherwise be empty, allowing it to serve as a last-resort. If
1021      * used, this value functions in place of the SPN on any/all ICC records for the corresponding
1022      * subscription.
1023      */
1024     public static final String KEY_CARRIER_NAME_OVERRIDE_BOOL = "carrier_name_override_bool";
1025 
1026     /**
1027      * String to identify carrier name in CarrierConfig app. This string overrides SPN if
1028      * #KEY_CARRIER_NAME_OVERRIDE_BOOL is true; otherwise, it will be used if its value is provided
1029      * and SPN is unavailable
1030      */
1031     public static final String KEY_CARRIER_NAME_STRING = "carrier_name_string";
1032 
1033     /**
1034      * If this is true, the SIM card (through Customer Service Profile EF file) will be able to
1035      * prevent manual operator selection. If false, this SIM setting will be ignored and manual
1036      * operator selection will always be available. See CPHS4_2.WW6, CPHS B.4.7.1 for more
1037      * information
1038      */
1039     public static final String KEY_CSP_ENABLED_BOOL = "csp_enabled_bool";
1040 
1041     /**
1042      * Allow user to add APNs
1043      */
1044     public static final String KEY_ALLOW_ADDING_APNS_BOOL = "allow_adding_apns_bool";
1045 
1046     /**
1047      * APN types that user is not allowed to modify
1048      * @hide
1049      */
1050     public static final String KEY_READ_ONLY_APN_TYPES_STRING_ARRAY =
1051             "read_only_apn_types_string_array";
1052 
1053     /**
1054      * APN fields that user is not allowed to modify
1055      * @hide
1056      */
1057     public static final String KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY =
1058             "read_only_apn_fields_string_array";
1059 
1060     /**
1061      * Boolean indicating if intent for emergency call state changes should be broadcast
1062      * @hide
1063      */
1064     public static final String KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL =
1065             "broadcast_emergency_call_state_changes_bool";
1066 
1067     /**
1068       * Indicates whether STK LAUNCH_BROWSER command is disabled.
1069       * If {@code true}, then the browser will not be launched
1070       * on UI for the LAUNCH_BROWSER STK command.
1071       * @hide
1072       */
1073     public static final String KEY_STK_DISABLE_LAUNCH_BROWSER_BOOL =
1074             "stk_disable_launch_browser_bool";
1075 
1076     /**
1077      * Boolean indicating if show data RAT icon on status bar even when data is disabled
1078      * @hide
1079      */
1080     public static final String KEY_ALWAYS_SHOW_DATA_RAT_ICON_BOOL =
1081             "always_show_data_rat_icon_bool";
1082 
1083     /**
1084      * Boolean to decide whether to show precise call failed cause to user
1085      * @hide
1086      */
1087     public static final String KEY_SHOW_PRECISE_FAILED_CAUSE_BOOL =
1088             "show_precise_failed_cause_bool";
1089 
1090     // These variables are used by the MMS service and exposed through another API, {@link
1091     // SmsManager}. The variable names and string values are copied from there.
1092     public static final String KEY_MMS_ALIAS_ENABLED_BOOL = "aliasEnabled";
1093     public static final String KEY_MMS_ALLOW_ATTACH_AUDIO_BOOL = "allowAttachAudio";
1094     public static final String KEY_MMS_APPEND_TRANSACTION_ID_BOOL = "enabledTransID";
1095     public static final String KEY_MMS_GROUP_MMS_ENABLED_BOOL = "enableGroupMms";
1096     public static final String KEY_MMS_MMS_DELIVERY_REPORT_ENABLED_BOOL = "enableMMSDeliveryReports";
1097     public static final String KEY_MMS_MMS_ENABLED_BOOL = "enabledMMS";
1098     public static final String KEY_MMS_MMS_READ_REPORT_ENABLED_BOOL = "enableMMSReadReports";
1099     public static final String KEY_MMS_MULTIPART_SMS_ENABLED_BOOL = "enableMultipartSMS";
1100     public static final String KEY_MMS_NOTIFY_WAP_MMSC_ENABLED_BOOL = "enabledNotifyWapMMSC";
1101     public static final String KEY_MMS_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES_BOOL = "sendMultipartSmsAsSeparateMessages";
1102     public static final String KEY_MMS_SHOW_CELL_BROADCAST_APP_LINKS_BOOL = "config_cellBroadcastAppLinks";
1103     public static final String KEY_MMS_SMS_DELIVERY_REPORT_ENABLED_BOOL = "enableSMSDeliveryReports";
1104     public static final String KEY_MMS_SUPPORT_HTTP_CHARSET_HEADER_BOOL = "supportHttpCharsetHeader";
1105     public static final String KEY_MMS_SUPPORT_MMS_CONTENT_DISPOSITION_BOOL = "supportMmsContentDisposition";
1106     public static final String KEY_MMS_ALIAS_MAX_CHARS_INT = "aliasMaxChars";
1107     public static final String KEY_MMS_ALIAS_MIN_CHARS_INT = "aliasMinChars";
1108     public static final String KEY_MMS_HTTP_SOCKET_TIMEOUT_INT = "httpSocketTimeout";
1109     public static final String KEY_MMS_MAX_IMAGE_HEIGHT_INT = "maxImageHeight";
1110     public static final String KEY_MMS_MAX_IMAGE_WIDTH_INT = "maxImageWidth";
1111     public static final String KEY_MMS_MAX_MESSAGE_SIZE_INT = "maxMessageSize";
1112     public static final String KEY_MMS_MESSAGE_TEXT_MAX_SIZE_INT = "maxMessageTextSize";
1113     public static final String KEY_MMS_RECIPIENT_LIMIT_INT = "recipientLimit";
1114     public static final String KEY_MMS_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD_INT = "smsToMmsTextLengthThreshold";
1115     public static final String KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT = "smsToMmsTextThreshold";
1116     public static final String KEY_MMS_SUBJECT_MAX_LENGTH_INT = "maxSubjectLength";
1117     public static final String KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING = "emailGatewayNumber";
1118     public static final String KEY_MMS_HTTP_PARAMS_STRING = "httpParams";
1119     public static final String KEY_MMS_NAI_SUFFIX_STRING = "naiSuffix";
1120     public static final String KEY_MMS_UA_PROF_TAG_NAME_STRING = "uaProfTagName";
1121     public static final String KEY_MMS_UA_PROF_URL_STRING = "uaProfUrl";
1122     public static final String KEY_MMS_USER_AGENT_STRING = "userAgent";
1123     /** @hide */
1124     public static final String KEY_MMS_CLOSE_CONNECTION_BOOL = "mmsCloseConnection";
1125 
1126     /**
1127      * If carriers require differentiate un-provisioned status: cold sim or out of credit sim
1128      * a package name and activity name can be provided to launch a supported carrier application
1129      * that check the sim provisioning status
1130      * The first element is the package name and the second element is the activity name
1131      * of the provisioning app
1132      * example:
1133      * <item>com.google.android.carrierPackageName</item>
1134      * <item>com.google.android.carrierPackageName.CarrierActivityName</item>
1135      * The ComponentName of the carrier activity that can setup the device and activate with the
1136      * network as part of the Setup Wizard flow.
1137      * @hide
1138      */
1139      public static final String KEY_CARRIER_SETUP_APP_STRING = "carrier_setup_app_string";
1140 
1141     /**
1142      * Defines carrier-specific actions which act upon
1143      * com.android.internal.telephony.CARRIER_SIGNAL_REDIRECTED, used for customization of the
1144      * default carrier app
1145      * Format: "CARRIER_ACTION_IDX, ..."
1146      * Where {@code CARRIER_ACTION_IDX} is an integer defined in
1147      * {@link com.android.carrierdefaultapp.CarrierActionUtils CarrierActionUtils}
1148      * Example:
1149      * {@link com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_DISABLE_METERED_APNS
1150      * disable_metered_apns}
1151      * @hide
1152      */
1153     public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY =
1154             "carrier_default_actions_on_redirection_string_array";
1155 
1156     /**
1157      * Defines carrier-specific actions which act upon
1158      * com.android.internal.telephony.CARRIER_SIGNAL_REQUEST_NETWORK_FAILED
1159      * and configured signal args:
1160      * {@link com.android.internal.telephony.TelephonyIntents#EXTRA_APN_TYPE_KEY apnType},
1161      * {@link com.android.internal.telephony.TelephonyIntents#EXTRA_ERROR_CODE_KEY errorCode}
1162      * used for customization of the default carrier app
1163      * Format:
1164      * {
1165      *     "APN_1, ERROR_CODE_1 : CARRIER_ACTION_IDX_1, CARRIER_ACTION_IDX_2...",
1166      *     "APN_1, ERROR_CODE_2 : CARRIER_ACTION_IDX_1 "
1167      * }
1168      * Where {@code APN_1} is a string defined in
1169      * {@link com.android.internal.telephony.PhoneConstants PhoneConstants}
1170      * Example: "default"
1171      *
1172      * {@code ERROR_CODE_1} is an integer defined in
1173      * {@link com.android.internal.telephony.dataconnection.DcFailCause DcFailure}
1174      * Example:
1175      * {@link com.android.internal.telephony.dataconnection.DcFailCause#MISSING_UNKNOWN_APN}
1176      *
1177      * {@code CARRIER_ACTION_IDX_1} is an integer defined in
1178      * {@link com.android.carrierdefaultapp.CarrierActionUtils CarrierActionUtils}
1179      * Example:
1180      * {@link com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_DISABLE_METERED_APNS}
1181      * @hide
1182      */
1183     public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_DCFAILURE_STRING_ARRAY =
1184             "carrier_default_actions_on_dcfailure_string_array";
1185 
1186     /**
1187      * Defines carrier-specific actions which act upon
1188      * com.android.internal.telephony.CARRIER_SIGNAL_RESET, used for customization of the
1189      * default carrier app
1190      * Format: "CARRIER_ACTION_IDX, ..."
1191      * Where {@code CARRIER_ACTION_IDX} is an integer defined in
1192      * {@link com.android.carrierdefaultapp.CarrierActionUtils CarrierActionUtils}
1193      * Example:
1194      * {@link com.android.carrierdefaultapp.CarrierActionUtils
1195      * #CARRIER_ACTION_CANCEL_ALL_NOTIFICATIONS clear all notifications on reset}
1196      * @hide
1197      */
1198     public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_RESET =
1199             "carrier_default_actions_on_reset_string_array";
1200 
1201     /**
1202      * Defines carrier-specific actions which act upon
1203      * com.android.internal.telephony.CARRIER_SIGNAL_DEFAULT_NETWORK_AVAILABLE,
1204      * used for customization of the default carrier app
1205      * Format:
1206      * {
1207      *     "true : CARRIER_ACTION_IDX_1",
1208      *     "false: CARRIER_ACTION_IDX_2"
1209      * }
1210      * Where {@code true} is a boolean indicates default network available/unavailable
1211      * Where {@code CARRIER_ACTION_IDX} is an integer defined in
1212      * {@link com.android.carrierdefaultapp.CarrierActionUtils CarrierActionUtils}
1213      * Example:
1214      * {@link com.android.carrierdefaultapp.CarrierActionUtils
1215      * #CARRIER_ACTION_ENABLE_DEFAULT_URL_HANDLER enable the app as the default URL handler}
1216      * @hide
1217      */
1218     public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_DEFAULT_NETWORK_AVAILABLE =
1219             "carrier_default_actions_on_default_network_available_string_array";
1220     /**
1221      * Defines a list of acceptable redirection url for default carrier app
1222      * @hides
1223      */
1224     public static final String KEY_CARRIER_DEFAULT_REDIRECTION_URL_STRING_ARRAY =
1225             "carrier_default_redirection_url_string_array";
1226 
1227     /**
1228      * Each config includes the componentName of the carrier app, followed by a list of interesting
1229      * signals(declared in the manifest) which could wake up the app.
1230      * @see com.android.internal.telephony.TelephonyIntents
1231      * Example:
1232      * <item>com.google.android.carrierAPK/.CarrierSignalReceiverA:
1233      * com.android.internal.telephony.CARRIER_SIGNAL_REDIRECTED,
1234      * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE
1235      * </item>
1236      * <item>com.google.android.carrierAPK/.CarrierSignalReceiverB:
1237      * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE
1238      * </item>
1239      * @hide
1240      */
1241     public static final String KEY_CARRIER_APP_WAKE_SIGNAL_CONFIG_STRING_ARRAY =
1242             "carrier_app_wake_signal_config";
1243 
1244     /**
1245      * Each config includes the componentName of the carrier app, followed by a list of interesting
1246      * signals for the app during run-time. The list of signals(intents) are targeting on run-time
1247      * broadcast receivers only, aiming to avoid unnecessary wake-ups and should not be declared in
1248      * the app's manifest.
1249      * @see com.android.internal.telephony.TelephonyIntents
1250      * Example:
1251      * <item>com.google.android.carrierAPK/.CarrierSignalReceiverA:
1252      * com.android.internal.telephony.CARRIER_SIGNAL_REQUEST_NETWORK_FAILED,
1253      * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE
1254      * </item>
1255      * <item>com.google.android.carrierAPK/.CarrierSignalReceiverB:
1256      * com.android.internal.telephony.CARRIER_SIGNAL_REQUEST_NETWORK_FAILED
1257      * </item>
1258      * @hide
1259      */
1260     public static final String KEY_CARRIER_APP_NO_WAKE_SIGNAL_CONFIG_STRING_ARRAY =
1261             "carrier_app_no_wake_signal_config";
1262 
1263     /**
1264      * Default value for {@link Settings.Global#DATA_ROAMING}
1265      * @hide
1266      */
1267     public static final String KEY_CARRIER_DEFAULT_DATA_ROAMING_ENABLED_BOOL =
1268             "carrier_default_data_roaming_enabled_bool";
1269 
1270     /**
1271      * Determines whether the carrier supports making non-emergency phone calls while the phone is
1272      * in emergency callback mode.  Default value is {@code true}, meaning that non-emergency calls
1273      * are allowed in emergency callback mode.
1274      */
1275     public static final String KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL =
1276             "allow_non_emergency_calls_in_ecm_bool";
1277 
1278     /**
1279      * Flag indicating whether to allow carrier video calls to emergency numbers.
1280      * When {@code true}, video calls to emergency numbers will be allowed.  When {@code false},
1281      * video calls to emergency numbers will be initiated as audio-only calls instead.
1282      */
1283     public static final String KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL =
1284             "allow_emergency_video_calls_bool";
1285 
1286     /**
1287      * Flag indicating whether the carrier supports RCS presence indication for video calls.  When
1288      * {@code true}, the carrier supports RCS presence indication for video calls.  When presence
1289      * is supported, the device should use the
1290      * {@link android.provider.ContactsContract.Data#CARRIER_PRESENCE} bit mask and set the
1291      * {@link android.provider.ContactsContract.Data#CARRIER_PRESENCE_VT_CAPABLE} bit to indicate
1292      * whether each contact supports video calling.  The UI is made aware that presence is enabled
1293      * via {@link android.telecom.PhoneAccount#CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE}
1294      * and can choose to hide or show the video calling icon based on whether a contact supports
1295      * video.
1296      */
1297     public static final String KEY_USE_RCS_PRESENCE_BOOL = "use_rcs_presence_bool";
1298 
1299     /**
1300      * The duration in seconds that platform call and message blocking is disabled after the user
1301      * contacts emergency services. Platform considers values for below cases:
1302      *  1) 0 <= VALUE <= 604800(one week): the value will be used as the duration directly.
1303      *  2) VALUE > 604800(one week): will use the default value as duration instead.
1304      *  3) VALUE < 0: block will be disabled forever until user re-eanble block manually,
1305      *     the suggested value to disable forever is -1.
1306      * See {@code android.provider.BlockedNumberContract#notifyEmergencyContact(Context)}
1307      * See {@code android.provider.BlockedNumberContract#isBlocked(Context, String)}.
1308      */
1309     public static final String KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT =
1310             "duration_blocking_disabled_after_emergency_int";
1311 
1312     /**
1313      * Determines whether to enable enhanced call blocking feature on the device.
1314      * @see SystemContract#ENHANCED_SETTING_KEY_BLOCK_UNREGISTERED
1315      * @see SystemContract#ENHANCED_SETTING_KEY_BLOCK_PRIVATE
1316      * @see SystemContract#ENHANCED_SETTING_KEY_BLOCK_PAYPHONE
1317      * @see SystemContract#ENHANCED_SETTING_KEY_BLOCK_UNKNOWN
1318      *
1319      * <p>
1320      * 1. For Single SIM(SS) device, it can be customized in both carrier_config_mccmnc.xml
1321      *    and vendor.xml.
1322      * <p>
1323      * 2. For Dual SIM(DS) device, it should be customized in vendor.xml, since call blocking
1324      *    function is used regardless of SIM.
1325      * <p>
1326      * If {@code true} enable enhanced call blocking feature on the device, {@code false} otherwise.
1327      * @hide
1328      */
1329     public static final String KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL =
1330             "support_enhanced_call_blocking_bool";
1331 
1332     /**
1333      * For carriers which require an empty flash to be sent before sending the normal 3-way calling
1334      * flash, the duration in milliseconds of the empty flash to send.  When {@code 0}, no empty
1335      * flash is sent.
1336      */
1337     public static final String KEY_CDMA_3WAYCALL_FLASH_DELAY_INT = "cdma_3waycall_flash_delay_int";
1338 
1339     /**
1340      * The CDMA roaming mode (aka CDMA system select).
1341      *
1342      * <p>The value should be one of the CDMA_ROAMING_MODE_ constants in {@link TelephonyManager}.
1343      * Values other than {@link TelephonyManager#CDMA_ROAMING_MODE_RADIO_DEFAULT} (which is the
1344      * default) will take precedence over user selection.
1345      *
1346      * @see TelephonyManager#CDMA_ROAMING_MODE_RADIO_DEFAULT
1347      * @see TelephonyManager#CDMA_ROAMING_MODE_HOME
1348      * @see TelephonyManager#CDMA_ROAMING_MODE_AFFILIATED
1349      * @see TelephonyManager#CDMA_ROAMING_MODE_ANY
1350      */
1351     public static final String KEY_CDMA_ROAMING_MODE_INT = "cdma_roaming_mode_int";
1352 
1353 
1354     /**
1355      * Boolean indicating if support is provided for directly dialing FDN number from FDN list.
1356      * If false, this feature is not supported.
1357      * @hide
1358      */
1359     public static final String KEY_SUPPORT_DIRECT_FDN_DIALING_BOOL =
1360             "support_direct_fdn_dialing_bool";
1361 
1362     /**
1363      * Report IMEI as device id even if it's a CDMA/LTE phone.
1364      *
1365      * @hide
1366      */
1367     public static final String KEY_FORCE_IMEI_BOOL = "force_imei_bool";
1368 
1369     /**
1370      * The families of Radio Access Technologies that will get clustered and ratcheted,
1371      * ie, we will report transitions up within the family, but not down until we change
1372      * cells.  This prevents flapping between base technologies and higher techs that are
1373      * granted on demand within the cell.
1374      * @hide
1375      */
1376     public static final String KEY_RATCHET_RAT_FAMILIES =
1377             "ratchet_rat_families";
1378 
1379     /**
1380      * Flag indicating whether some telephony logic will treat a call which was formerly a video
1381      * call as if it is still a video call.  When {@code true}:
1382      * <p>
1383      * Logic which will automatically drop a video call which takes place over WIFI when a
1384      * voice call is answered (see {@link #KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL}.
1385      * <p>
1386      * Logic which determines whether the user can use TTY calling.
1387      */
1388     public static final String KEY_TREAT_DOWNGRADED_VIDEO_CALLS_AS_VIDEO_CALLS_BOOL =
1389             "treat_downgraded_video_calls_as_video_calls_bool";
1390 
1391     /**
1392      * When {@code true}, if the user is in an ongoing video call over WIFI and answers an incoming
1393      * audio call, the video call will be disconnected before the audio call is answered.  This is
1394      * in contrast to the usual expected behavior where a foreground video call would be put into
1395      * the background and held when an incoming audio call is answered.
1396      */
1397     public static final String KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL =
1398             "drop_video_call_when_answering_audio_call_bool";
1399 
1400     /**
1401      * Flag indicating whether the carrier supports merging wifi calls when VoWIFI is disabled.
1402      * This can happen in the case of a carrier which allows offloading video calls to WIFI
1403      * separately of whether voice over wifi is enabled.  In such a scenario when two video calls
1404      * are downgraded to voice, they remain over wifi.  However, if VoWIFI is disabled, these calls
1405      * cannot be merged.
1406      */
1407     public static final String KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL =
1408             "allow_merge_wifi_calls_when_vowifi_off_bool";
1409 
1410     /**
1411      * Flag indicating whether the carrier supports the Hold command while in an IMS call.
1412      * <p>
1413      * The device configuration value {@code config_device_respects_hold_carrier_config} ultimately
1414      * controls whether this carrier configuration option is used.  Where
1415      * {@code config_device_respects_hold_carrier_config} is false, the value of the
1416      * {@link #KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL} carrier configuration option is ignored.
1417      * @hide
1418      */
1419     public static final String KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL = "allow_hold_in_ims_call";
1420 
1421     /**
1422      * Flag indicating whether the carrier supports call deflection for an incoming IMS call.
1423      * @hide
1424      */
1425     public static final String KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL =
1426             "carrier_allow_deflect_ims_call_bool";
1427 
1428     /**
1429      * Flag indicating whether the carrier always wants to play an "on-hold" tone when a call has
1430      * been remotely held.
1431      * <p>
1432      * When {@code true}, if the IMS stack indicates that the call session has been held, a signal
1433      * will be sent from Telephony to play an audible "on-hold" tone played to the user.
1434      * When {@code false}, a hold tone will only be played if the audio session becomes inactive.
1435      * @hide
1436      */
1437     public static final String KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL =
1438             "always_play_remote_hold_tone_bool";
1439 
1440     /**
1441      * When true, indicates that adding a call is disabled when there is an ongoing video call
1442      * or when there is an ongoing call on wifi which was downgraded from video and VoWifi is
1443      * turned off.
1444      */
1445     public static final String KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL =
1446             "allow_add_call_during_video_call";
1447 
1448     /**
1449      * When true, indicates that the HD audio icon in the in-call screen should not be shown for
1450      * VoWifi calls.
1451      * @hide
1452      */
1453     public static final String KEY_WIFI_CALLS_CAN_BE_HD_AUDIO = "wifi_calls_can_be_hd_audio";
1454 
1455     /**
1456      * When true, indicates that the HD audio icon in the in-call screen should not be shown for
1457      * video calls.
1458      * @hide
1459      */
1460     public static final String KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO = "video_calls_can_be_hd_audio";
1461 
1462     /**
1463      * When true, indicates that the HD audio icon in the in-call screen should be shown for
1464      * GSM/CDMA calls.
1465      * @hide
1466      */
1467     public static final String KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO =
1468             "gsm_cdma_calls_can_be_hd_audio";
1469 
1470     /**
1471      * Whether system apps are allowed to use fallback if carrier video call is not available.
1472      * Defaults to {@code true}.
1473      *
1474      * @hide
1475      */
1476     public static final String KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL =
1477             "allow_video_calling_fallback_bool";
1478 
1479     /**
1480      * Defines operator-specific {@link ImsReasonInfo} mappings.
1481      *
1482      * Format: "ORIGINAL_CODE|MESSAGE|NEW_CODE"
1483      * Where {@code ORIGINAL_CODE} corresponds to a {@link ImsReasonInfo#getCode()} code,
1484      * {@code MESSAGE} corresponds to an expected {@link ImsReasonInfo#getExtraMessage()} string,
1485      * and {@code NEW_CODE} is the new {@code ImsReasonInfo#CODE_*} which this combination of
1486      * original code and message shall be remapped to.
1487      *
1488      * Note: If {@code *} is specified for the original code, any ImsReasonInfo with the matching
1489      * {@code MESSAGE} will be remapped to {@code NEW_CODE}.
1490      *
1491      * Example: "501|call completion elsewhere|1014"
1492      * When the {@link ImsReasonInfo#getCode()} is {@link ImsReasonInfo#CODE_USER_TERMINATED} and
1493      * the {@link ImsReasonInfo#getExtraMessage()} is {@code "call completion elsewhere"},
1494      * {@link ImsReasonInfo#CODE_ANSWERED_ELSEWHERE} shall be used as the {@link ImsReasonInfo}
1495      * code instead.
1496      * @hide
1497      */
1498     public static final String KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY =
1499             "ims_reasoninfo_mapping_string_array";
1500 
1501     /**
1502      * When {@code false}, use default title for Enhanced 4G LTE Mode settings.
1503      * When {@code true}, use the variant.
1504      * @hide
1505      */
1506     public static final String KEY_ENHANCED_4G_LTE_TITLE_VARIANT_BOOL =
1507             "enhanced_4g_lte_title_variant_bool";
1508 
1509     /**
1510      * Indicates whether the carrier wants to notify the user when handover of an LTE video call to
1511      * WIFI fails.
1512      * <p>
1513      * When {@code true}, if a video call starts on LTE and the modem reports a failure to handover
1514      * the call to WIFI or if no handover success is reported within 60 seconds of call initiation,
1515      * the {@link android.telephony.TelephonyManager#EVENT_HANDOVER_TO_WIFI_FAILED} event is raised
1516      * on the connection.
1517      * @hide
1518      */
1519     public static final String KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL =
1520             "notify_vt_handover_to_wifi_failure_bool";
1521 
1522     /**
1523      * A upper case list of CNAP names that are unhelpful to the user for distinguising calls and
1524      * should be filtered out of the CNAP information. This includes CNAP names such as "WIRELESS
1525      * CALLER" or "UNKNOWN NAME". By default, if there are no filtered names for this carrier, null
1526      * is returned.
1527      * @hide
1528      */
1529     public static final String KEY_FILTERED_CNAP_NAMES_STRING_ARRAY = "filtered_cnap_names_string_array";
1530 
1531     /**
1532      * The RCS configuration server URL. This URL is used to initiate RCS provisioning.
1533      */
1534     public static final String KEY_RCS_CONFIG_SERVER_URL_STRING = "rcs_config_server_url_string";
1535 
1536     /**
1537      * Determine whether user can change Wi-Fi Calling preference in roaming.
1538      * {@code false} - roaming preference {@link KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT} is
1539      *                 the same as home preference {@link KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT}
1540      *                 and cannot be changed.
1541      * {@code true}  - roaming preference can be changed by user independently.
1542      *
1543      * @hide
1544      */
1545     public static final String KEY_EDITABLE_WFC_ROAMING_MODE_BOOL =
1546             "editable_wfc_roaming_mode_bool";
1547 
1548    /**
1549      * Determine whether current lpp_mode used for E-911 needs to be kept persistently.
1550      * {@code false} - not keeping the lpp_mode means using default configuration of gps.conf
1551      *                 when sim is not presented.
1552      * {@code true}  - current lpp_profile of carrier will be kepted persistently
1553      *                 even after sim is removed.
1554      *
1555      * @hide
1556      */
1557     public static final String KEY_PERSIST_LPP_MODE_BOOL = "persist_lpp_mode_bool";
1558 
1559     /**
1560      * Carrier specified WiFi networks.
1561      * @hide
1562      */
1563     public static final String KEY_CARRIER_WIFI_STRING_ARRAY = "carrier_wifi_string_array";
1564 
1565     /**
1566      * Time delay (in ms) after which we show the notification to switch the preferred
1567      * network.
1568      * @hide
1569      */
1570     public static final String KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT =
1571             "network_notification_delay_int";
1572 
1573     /**
1574      * Time delay (in ms) after which we show the notification for emergency calls,
1575      * while the device is registered over WFC. Default value is -1, which indicates
1576      * that this notification is not pertinent for a particular carrier. We've added a delay
1577      * to prevent false positives.
1578      * @hide
1579      */
1580     public static final String KEY_EMERGENCY_NOTIFICATION_DELAY_INT =
1581             "emergency_notification_delay_int";
1582 
1583     /**
1584      * When {@code true}, the carrier allows the user of the
1585      * {@link TelephonyManager#sendUssdRequest(String, TelephonyManager.UssdResponseCallback,
1586      * Handler)} API to perform USSD requests.  {@code True} by default.
1587      * @hide
1588      */
1589     public static final String KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL =
1590             "allow_ussd_requests_via_telephony_manager_bool";
1591 
1592     /**
1593      * Indicates whether the carrier supports 3gpp call forwarding MMI codes while roaming. If
1594      * false, the user will be notified that call forwarding is not available when the MMI code
1595      * fails.
1596      */
1597     public static final String KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL =
1598         "support_3gpp_call_forwarding_while_roaming_bool";
1599 
1600     /**
1601      * Boolean indicating whether to display voicemail number as default call forwarding number in
1602      * call forwarding settings.
1603      * If true, display vm number when cf number is null.
1604      * If false, display the cf number from network.
1605      * By default this value is false.
1606      * @hide
1607      */
1608     public static final String KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL =
1609             "display_voicemail_number_as_default_call_forwarding_number";
1610 
1611     /**
1612      * When {@code true}, the user will be notified when they attempt to place an international call
1613      * when the call is placed using wifi calling.
1614      * @hide
1615      */
1616     public static final String KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL =
1617             "notify_international_call_on_wfc_bool";
1618 
1619     /**
1620      * Flag specifying whether to show an alert dialog for video call charges.
1621      * By default this value is {@code false}.
1622      * @hide
1623      */
1624     public static final String KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL =
1625             "show_video_call_charges_alert_dialog_bool";
1626 
1627     /**
1628      * An array containing custom call forwarding number prefixes that will be blocked while the
1629      * device is reporting that it is roaming. By default, there are no custom call
1630      * forwarding prefixes and none of these numbers will be filtered. If one or more entries are
1631      * present, the system will not complete the call and display an error message.
1632      *
1633      * To display a message to the user when call forwarding fails for 3gpp MMI codes while roaming,
1634      * use the {@link #KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL} option instead.
1635      */
1636     public static final String KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY =
1637             "call_forwarding_blocks_while_roaming_string_array";
1638 
1639     /**
1640      * The day of the month (1-31) on which the data cycle rolls over.
1641      * <p>
1642      * If the current month does not have this day, the cycle will roll over at
1643      * the start of the next month.
1644      * <p>
1645      * This setting may be still overridden by explicit user choice. By default,
1646      * the platform value will be used.
1647      */
1648     public static final String KEY_MONTHLY_DATA_CYCLE_DAY_INT =
1649             "monthly_data_cycle_day_int";
1650 
1651     /**
1652      * When {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, {@link #KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG},
1653      * or {@link #KEY_DATA_WARNING_THRESHOLD_BYTES_LONG} are set to this value, the platform default
1654      * value will be used for that key.
1655      *
1656      * @hide
1657      */
1658     @Deprecated
1659     public static final int DATA_CYCLE_USE_PLATFORM_DEFAULT = -1;
1660 
1661     /**
1662      * Flag indicating that a data cycle threshold should be disabled.
1663      * <p>
1664      * If {@link #KEY_DATA_WARNING_THRESHOLD_BYTES_LONG} is set to this value, the platform's
1665      * default data warning, if one exists, will be disabled. A user selected data warning will not
1666      * be overridden.
1667      * <p>
1668      * If {@link #KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG} is set to this value, the platform's
1669      * default data limit, if one exists, will be disabled. A user selected data limit will not be
1670      * overridden.
1671      */
1672     public static final int DATA_CYCLE_THRESHOLD_DISABLED = -2;
1673 
1674     /**
1675      * Controls the data usage warning.
1676      * <p>
1677      * If the user uses more than this amount of data in their billing cycle, as defined by
1678      * {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, the user will be alerted about the usage.
1679      * If the value is set to {@link #DATA_CYCLE_THRESHOLD_DISABLED}, the data usage warning will
1680      * be disabled.
1681      * <p>
1682      * This setting may be overridden by explicit user choice. By default, the platform value
1683      * will be used.
1684      */
1685     public static final String KEY_DATA_WARNING_THRESHOLD_BYTES_LONG =
1686             "data_warning_threshold_bytes_long";
1687 
1688     /**
1689      * Controls if the device should automatically notify the user as they reach
1690      * their cellular data warning. When set to {@code false} the carrier is
1691      * expected to have implemented their own notification mechanism.
1692      * @hide
1693      */
1694     public static final String KEY_DATA_WARNING_NOTIFICATION_BOOL =
1695             "data_warning_notification_bool";
1696 
1697     /**
1698      * Controls the cellular data limit.
1699      * <p>
1700      * If the user uses more than this amount of data in their billing cycle, as defined by
1701      * {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, cellular data will be turned off by the user's
1702      * phone. If the value is set to {@link #DATA_CYCLE_THRESHOLD_DISABLED}, the data limit will be
1703      * disabled.
1704      * <p>
1705      * This setting may be overridden by explicit user choice. By default, the platform value
1706      * will be used.
1707      */
1708     public static final String KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG =
1709             "data_limit_threshold_bytes_long";
1710 
1711     /**
1712      * Controls if the device should automatically notify the user as they reach
1713      * their cellular data limit. When set to {@code false} the carrier is
1714      * expected to have implemented their own notification mechanism.
1715      * @hide
1716      */
1717     public static final String KEY_DATA_LIMIT_NOTIFICATION_BOOL =
1718             "data_limit_notification_bool";
1719 
1720     /**
1721      * Controls if the device should automatically notify the user when rapid
1722      * cellular data usage is observed. When set to {@code false} the carrier is
1723      * expected to have implemented their own notification mechanism.
1724      * @hide
1725      */
1726     public static final String KEY_DATA_RAPID_NOTIFICATION_BOOL =
1727             "data_rapid_notification_bool";
1728 
1729     /**
1730      * Offset to be reduced from rsrp threshold while calculating signal strength level.
1731      * @hide
1732      */
1733     public static final String KEY_LTE_EARFCNS_RSRP_BOOST_INT = "lte_earfcns_rsrp_boost_int";
1734 
1735     /**
1736      * List of EARFCN (E-UTRA Absolute Radio Frequency Channel Number,
1737      * Reference: 3GPP TS 36.104 5.4.3) inclusive ranges on which lte_rsrp_boost_int
1738      * will be applied. Format of the String array is expected to be {"erafcn1_start-earfcn1_end",
1739      * "earfcn2_start-earfcn2_end" ... }
1740      * @hide
1741      */
1742     public static final String KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY =
1743             "boosted_lte_earfcns_string_array";
1744 
1745     /**
1746      * Determine whether to use only RSRP for the number of LTE signal bars.
1747      * @hide
1748      */
1749     public static final String KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL =
1750             "use_only_rsrp_for_lte_signal_bar_bool";
1751 
1752     /**
1753      * Key identifying if voice call barring notification is required to be shown to the user.
1754      * @hide
1755      */
1756     public static final String KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL =
1757             "disable_voice_barring_notification_bool";
1758 
1759     /**
1760      * List of operators considered non-roaming which won't show roaming icon.
1761      * <p>
1762      * Can use mcc or mcc+mnc as item. For example, 302 or 21407.
1763      * If operators, 21404 and 21407, make roaming agreements, users of 21404 should not see
1764      * the roaming icon as using 21407 network.
1765      * @hide
1766      */
1767     public static final String KEY_NON_ROAMING_OPERATOR_STRING_ARRAY =
1768             "non_roaming_operator_string_array";
1769 
1770     /**
1771      * List of operators considered roaming with the roaming icon.
1772      * <p>
1773      * Can use mcc or mcc+mnc as item. For example, 302 or 21407.
1774      * If operators, 21404 and 21407, make roaming agreements, users of 21404 should see
1775      * the roaming icon as using 21407 network.
1776      * <p>
1777      * A match on this supersedes a match on {@link #KEY_NON_ROAMING_OPERATOR_STRING_ARRAY}.
1778      * @hide
1779      */
1780     public static final String KEY_ROAMING_OPERATOR_STRING_ARRAY =
1781             "roaming_operator_string_array";
1782 
1783     /**
1784      * URL from which the proto containing the public key of the Carrier used for
1785      * IMSI encryption will be downloaded.
1786      * @hide
1787      */
1788     public static final String IMSI_KEY_DOWNLOAD_URL_STRING = "imsi_key_download_url_string";
1789 
1790     /**
1791      * Identifies if the key is available for WLAN or EPDG or both. The value is a bitmask.
1792      * 0 indicates that neither EPDG or WLAN is enabled.
1793      * 1 indicates that key type {@link TelephonyManager#KEY_TYPE_EPDG} is enabled.
1794      * 2 indicates that key type {@link TelephonyManager#KEY_TYPE_WLAN} is enabled.
1795      * 3 indicates that both are enabled.
1796      * @hide
1797      */
1798     public static final String IMSI_KEY_AVAILABILITY_INT = "imsi_key_availability_int";
1799 
1800 
1801     /**
1802      * Key identifying if the CDMA Caller ID presentation and suppression MMI codes
1803      * should be converted to 3GPP CLIR codes when a multimode (CDMA+UMTS+LTE) device is roaming
1804      * on a 3GPP network. Specifically *67<number> will be converted to #31#<number> and
1805      * *82<number> will be converted to *31#<number> before dialing a call when this key is
1806      * set TRUE and device is roaming on a 3GPP network.
1807      * @hide
1808      */
1809     public static final String KEY_CONVERT_CDMA_CALLER_ID_MMI_CODES_WHILE_ROAMING_ON_3GPP_BOOL =
1810             "convert_cdma_caller_id_mmi_codes_while_roaming_on_3gpp_bool";
1811 
1812     /**
1813      * Flag specifying whether IMS registration state menu is shown in Status Info setting,
1814      * default to false.
1815      * @hide
1816      */
1817     public static final String KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL =
1818             "show_ims_registration_status_bool";
1819 
1820     /**
1821      * Flag indicating whether the carrier supports RTT over IMS.
1822      */
1823     public static final String KEY_RTT_SUPPORTED_BOOL = "rtt_supported_bool";
1824 
1825     /**
1826      * The flag to disable the popup dialog which warns the user of data charges.
1827      * @hide
1828      */
1829     public static final String KEY_DISABLE_CHARGE_INDICATION_BOOL =
1830             "disable_charge_indication_bool";
1831 
1832     /**
1833      * Boolean indicating whether to skip the call forwarding (CF) fail-to-disable dialog.
1834      * The logic used to determine whether we succeeded in disabling is carrier specific,
1835      * so the dialog may not always be accurate.
1836      * {@code false} - show CF fail-to-disable dialog.
1837      * {@code true}  - skip showing CF fail-to-disable dialog.
1838      *
1839      * @hide
1840      */
1841     public static final String KEY_SKIP_CF_FAIL_TO_DISABLE_DIALOG_BOOL =
1842             "skip_cf_fail_to_disable_dialog_bool";
1843 
1844     /**
1845      * List of the FAC (feature access codes) to dial as a normal call.
1846      * @hide
1847      */
1848     public static final String KEY_FEATURE_ACCESS_CODES_STRING_ARRAY =
1849             "feature_access_codes_string_array";
1850 
1851     /**
1852      * Determines if the carrier wants to identify high definition calls in the call log.
1853      * @hide
1854      */
1855     public static final String KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL =
1856             "identify_high_definition_calls_in_call_log_bool";
1857 
1858     /**
1859      * Flag specifying whether to use the {@link ServiceState} roaming status, which can be
1860      * affected by other carrier configs (e.g.
1861      * {@link #KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY}), when setting the SPN display.
1862      * <p>
1863      * If {@code true}, the SPN display uses {@link ServiceState#getRoaming}.
1864      * If {@code false} the SPN display checks if the current MCC/MNC is different from the
1865      * SIM card's MCC/MNC.
1866      *
1867      * @see KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY
1868      * @see KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY
1869      * @see KEY_NON_ROAMING_OPERATOR_STRING_ARRAY
1870      * @see KEY_ROAMING_OPERATOR_STRING_ARRAY
1871      * @see KEY_FORCE_HOME_NETWORK_BOOL
1872      *
1873      * @hide
1874      */
1875     public static final String KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL =
1876             "spn_display_rule_use_roaming_from_service_state_bool";
1877 
1878     /**
1879      * Determines whether any carrier has been identified and its specific config has been applied,
1880      * default to false.
1881      * @hide
1882      */
1883     public static final String KEY_CARRIER_CONFIG_APPLIED_BOOL = "carrier_config_applied_bool";
1884 
1885     /**
1886      * Determines whether we should show a warning asking the user to check with their carrier
1887      * on pricing when the user enabled data roaming.
1888      * default to false.
1889      * @hide
1890      */
1891     public static final String KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL =
1892             "check_pricing_with_carrier_data_roaming_bool";
1893 
1894     /**
1895      * A list of 4 LTE RSRP thresholds above which a signal level is considered POOR,
1896      * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.
1897      *
1898      * Note that the min and max thresholds are fixed at -140 and -44, as explained in
1899      * TS 136.133 9.1.4 - RSRP Measurement Report Mapping.
1900      * <p>
1901      * See SignalStrength#MAX_LTE_RSRP and SignalStrength#MIN_LTE_RSRP. Any signal level outside
1902      * these boundaries is considered invalid.
1903      * @hide
1904      */
1905     public static final String KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY =
1906             "lte_rsrp_thresholds_int_array";
1907 
1908     /**
1909      * Decides when clients try to bind to iwlan network service, which package name will
1910      * the binding intent go to.
1911      * @hide
1912      */
1913     public static final String KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING
1914              = "carrier_network_service_wlan_package_override_string";
1915 
1916     /**
1917      * Decides when clients try to bind to wwan (cellular) network service, which package name will
1918      * the binding intent go to.
1919      * @hide
1920      */
1921     public static final String KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING
1922             = "carrier_network_service_wwan_package_override_string";
1923 
1924     /**
1925      * A list of 4 LTE RSCP thresholds above which a signal level is considered POOR,
1926      * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.
1927      *
1928      * Note that the min and max thresholds are fixed at -120 and -24, as set in 3GPP TS 27.007
1929      * section 8.69.
1930      * <p>
1931      * See SignalStrength#MAX_WCDMA_RSCP and SignalStrength#MIN_WDCMA_RSCP. Any signal level outside
1932      * these boundaries is considered invalid.
1933      * @hide
1934      */
1935     public static final String KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY =
1936             "wcdma_rscp_thresholds_int_array";
1937 
1938     /**
1939      * The default measurement to use for signal strength reporting. If this is not specified, the
1940      * RSSI is used.
1941      * <p>
1942      * e.g.) To use RSCP by default, set the value to "rscp". The signal strength level will
1943      * then be determined by #KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY
1944      * <p>
1945      * Currently this only supports the value "rscp"
1946      * @hide
1947      */
1948     public static final String KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING =
1949             "wcdma_default_signal_strength_measurement_string";
1950 
1951     /**
1952      * When a partial sms / mms message stay in raw table for too long without being completed,
1953      * we expire them and delete them from the raw table. This carrier config defines the
1954      * expiration time.
1955      * @hide
1956      */
1957     public static final String KEY_UNDELIVERED_SMS_MESSAGE_EXPIRATION_TIME =
1958             "undelivered_sms_message_expiration_time";
1959 
1960     /** The default value for every variable. */
1961     private final static PersistableBundle sDefaults;
1962 
1963     static {
1964         sDefaults = new PersistableBundle();
sDefaults.putBoolean(KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL, true)1965         sDefaults.putBoolean(KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL, false)1966         sDefaults.putBoolean(KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL, false);
sDefaults.putBoolean(KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL, false)1967         sDefaults.putBoolean(KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL, false);
sDefaults.putBoolean(KEY_ADDITIONAL_CALL_SETTING_BOOL, true)1968         sDefaults.putBoolean(KEY_ADDITIONAL_CALL_SETTING_BOOL, true);
sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL, false)1969         sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_LOCAL_DTMF_TONES_BOOL, true)1970         sDefaults.putBoolean(KEY_ALLOW_LOCAL_DTMF_TONES_BOOL, true);
sDefaults.putBoolean(KEY_PLAY_CALL_RECORDING_TONE_BOOL, false)1971         sDefaults.putBoolean(KEY_PLAY_CALL_RECORDING_TONE_BOOL, false);
sDefaults.putBoolean(KEY_APN_EXPAND_BOOL, true)1972         sDefaults.putBoolean(KEY_APN_EXPAND_BOOL, true);
sDefaults.putBoolean(KEY_AUTO_RETRY_ENABLED_BOOL, false)1973         sDefaults.putBoolean(KEY_AUTO_RETRY_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_SETTINGS_ENABLE_BOOL, false)1974         sDefaults.putBoolean(KEY_CARRIER_SETTINGS_ENABLE_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VOLTE_AVAILABLE_BOOL, false)1975         sDefaults.putBoolean(KEY_CARRIER_VOLTE_AVAILABLE_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VT_AVAILABLE_BOOL, false)1976         sDefaults.putBoolean(KEY_CARRIER_VT_AVAILABLE_BOOL, false);
sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL, false)1977         sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL, false);
sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL, false)1978         sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_DOWNGRADE_VT_TO_AUDIO_BOOL, true)1979         sDefaults.putBoolean(KEY_SUPPORT_DOWNGRADE_VT_TO_AUDIO_BOOL, true);
sDefaults.putString(KEY_DEFAULT_VM_NUMBER_STRING, "")1980         sDefaults.putString(KEY_DEFAULT_VM_NUMBER_STRING, "");
sDefaults.putString(KEY_DEFAULT_VM_NUMBER_ROAMING_STRING, "")1981         sDefaults.putString(KEY_DEFAULT_VM_NUMBER_ROAMING_STRING, "");
sDefaults.putBoolean(KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL, false)1982         sDefaults.putBoolean(KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL, false);
sDefaults.putBoolean(KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS, true)1983         sDefaults.putBoolean(KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS, true);
sDefaults.putBoolean(KEY_VILTE_DATA_IS_METERED_BOOL, true)1984         sDefaults.putBoolean(KEY_VILTE_DATA_IS_METERED_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL, false)1985         sDefaults.putBoolean(KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_WFC_SUPPORTS_WIFI_ONLY_BOOL, false)1986         sDefaults.putBoolean(KEY_CARRIER_WFC_SUPPORTS_WIFI_ONLY_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL, false)1987         sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL, false)1988         sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_PROMOTE_WFC_ON_CALL_FAIL_BOOL, false)1989         sDefaults.putBoolean(KEY_CARRIER_PROMOTE_WFC_ON_CALL_FAIL_BOOL, false);
sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT, 2)1990         sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT, 2);
sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT, 2)1991         sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT, 2);
sDefaults.putBoolean(KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL, false)1992         sDefaults.putBoolean(KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL, false)1993         sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL, false)1994         sDefaults.putBoolean(KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL, true)1995         sDefaults.putBoolean(KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL, true)1996         sDefaults.putBoolean(KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_IMS_GBA_REQUIRED_BOOL, false)1997         sDefaults.putBoolean(KEY_CARRIER_IMS_GBA_REQUIRED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL, false)1998         sDefaults.putBoolean(KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL, true)1999         sDefaults.putBoolean(KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL, true);
sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "")2000         sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "")2001         sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "")2002         sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "")2003         sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING, "")2004         sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING, "");
sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ESCAPED_CHARS_STRING, "")2005         sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ESCAPED_CHARS_STRING, "");
sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING, "")2006         sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING, "");
sDefaults.putInt(KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT, 64)2007         sDefaults.putInt(KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT, 64);
sDefaults.putBoolean(KEY_DISABLE_CDMA_ACTIVATION_CODE_BOOL, false)2008         sDefaults.putBoolean(KEY_DISABLE_CDMA_ACTIVATION_CODE_BOOL, false);
sDefaults.putBoolean(KEY_DTMF_TYPE_ENABLED_BOOL, false)2009         sDefaults.putBoolean(KEY_DTMF_TYPE_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_ENABLE_DIALER_KEY_VIBRATION_BOOL, true)2010         sDefaults.putBoolean(KEY_ENABLE_DIALER_KEY_VIBRATION_BOOL, true);
sDefaults.putBoolean(KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL, false)2011         sDefaults.putBoolean(KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL, false);
sDefaults.putBoolean(KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL, false)2012         sDefaults.putBoolean(KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL, false);
sDefaults.putBoolean(KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL, false)2013         sDefaults.putBoolean(KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL, false);
sDefaults.putBoolean(KEY_HIDE_SIM_LOCK_SETTINGS_BOOL, false)2014         sDefaults.putBoolean(KEY_HIDE_SIM_LOCK_SETTINGS_BOOL, false);
2015 
sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONED_BOOL, false)2016         sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONED_BOOL, false);
sDefaults.putBoolean(KEY_CALL_BARRING_VISIBILITY_BOOL, false)2017         sDefaults.putBoolean(KEY_CALL_BARRING_VISIBILITY_BOOL, false);
sDefaults.putBoolean(KEY_IGNORE_SIM_NETWORK_LOCKED_EVENTS_BOOL, false)2018         sDefaults.putBoolean(KEY_IGNORE_SIM_NETWORK_LOCKED_EVENTS_BOOL, false);
sDefaults.putBoolean(KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL, false)2019         sDefaults.putBoolean(KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL, false);
sDefaults.putBoolean(KEY_OPERATOR_SELECTION_EXPAND_BOOL, true)2020         sDefaults.putBoolean(KEY_OPERATOR_SELECTION_EXPAND_BOOL, true);
sDefaults.putBoolean(KEY_PREFER_2G_BOOL, true)2021         sDefaults.putBoolean(KEY_PREFER_2G_BOOL, true);
sDefaults.putBoolean(KEY_SHOW_APN_SETTING_CDMA_BOOL, false)2022         sDefaults.putBoolean(KEY_SHOW_APN_SETTING_CDMA_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_CDMA_CHOICES_BOOL, false)2023         sDefaults.putBoolean(KEY_SHOW_CDMA_CHOICES_BOOL, false);
sDefaults.putBoolean(KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL, false)2024         sDefaults.putBoolean(KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL, true)2025         sDefaults.putBoolean(KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL, true);
sDefaults.putBoolean(KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL, true)2026         sDefaults.putBoolean(KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL, false)2027         sDefaults.putBoolean(KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL, true)2028         sDefaults.putBoolean(KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL, true);
sDefaults.putBoolean(KEY_USE_HFA_FOR_PROVISIONING_BOOL, false)2029         sDefaults.putBoolean(KEY_USE_HFA_FOR_PROVISIONING_BOOL, false);
sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_SETTING_BOOL, true)2030         sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_SETTING_BOOL, true);
sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL, false)2031         sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL, false);
sDefaults.putBoolean(KEY_USE_OTASP_FOR_PROVISIONING_BOOL, false)2032         sDefaults.putBoolean(KEY_USE_OTASP_FOR_PROVISIONING_BOOL, false);
sDefaults.putBoolean(KEY_VOICEMAIL_NOTIFICATION_PERSISTENT_BOOL, false)2033         sDefaults.putBoolean(KEY_VOICEMAIL_NOTIFICATION_PERSISTENT_BOOL, false);
sDefaults.putBoolean(KEY_VOICE_PRIVACY_DISABLE_UI_BOOL, false)2034         sDefaults.putBoolean(KEY_VOICE_PRIVACY_DISABLE_UI_BOOL, false);
sDefaults.putBoolean(KEY_WORLD_PHONE_BOOL, false)2035         sDefaults.putBoolean(KEY_WORLD_PHONE_BOOL, false);
sDefaults.putBoolean(KEY_REQUIRE_ENTITLEMENT_CHECKS_BOOL, true)2036         sDefaults.putBoolean(KEY_REQUIRE_ENTITLEMENT_CHECKS_BOOL, true);
sDefaults.putBoolean(KEY_RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION_BOOL, false)2037         sDefaults.putBoolean(KEY_RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION_BOOL, false);
sDefaults.putInt(KEY_VOLTE_REPLACEMENT_RAT_INT, 0)2038         sDefaults.putInt(KEY_VOLTE_REPLACEMENT_RAT_INT, 0);
sDefaults.putString(KEY_DEFAULT_SIM_CALL_MANAGER_STRING, "")2039         sDefaults.putString(KEY_DEFAULT_SIM_CALL_MANAGER_STRING, "");
sDefaults.putString(KEY_VVM_DESTINATION_NUMBER_STRING, "")2040         sDefaults.putString(KEY_VVM_DESTINATION_NUMBER_STRING, "");
sDefaults.putInt(KEY_VVM_PORT_NUMBER_INT, 0)2041         sDefaults.putInt(KEY_VVM_PORT_NUMBER_INT, 0);
sDefaults.putString(KEY_VVM_TYPE_STRING, "")2042         sDefaults.putString(KEY_VVM_TYPE_STRING, "");
sDefaults.putBoolean(KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL, false)2043         sDefaults.putBoolean(KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL, false);
sDefaults.putString(KEY_VVM_CLIENT_PREFIX_STRING,"//VVM")2044         sDefaults.putString(KEY_VVM_CLIENT_PREFIX_STRING,"//VVM");
sDefaults.putBoolean(KEY_VVM_SSL_ENABLED_BOOL,false)2045         sDefaults.putBoolean(KEY_VVM_SSL_ENABLED_BOOL,false);
sDefaults.putStringArray(KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY, null)2046         sDefaults.putStringArray(KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_VVM_LEGACY_MODE_ENABLED_BOOL,false)2047         sDefaults.putBoolean(KEY_VVM_LEGACY_MODE_ENABLED_BOOL,false);
sDefaults.putBoolean(KEY_VVM_PREFETCH_BOOL, true)2048         sDefaults.putBoolean(KEY_VVM_PREFETCH_BOOL, true);
sDefaults.putString(KEY_CARRIER_VVM_PACKAGE_NAME_STRING, "")2049         sDefaults.putString(KEY_CARRIER_VVM_PACKAGE_NAME_STRING, "");
sDefaults.putStringArray(KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY, null)2050         sDefaults.putStringArray(KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL, false)2051         sDefaults.putBoolean(KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL, true)2052         sDefaults.putBoolean(KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL, true);
sDefaults.putBoolean(KEY_CI_ACTION_ON_SYS_UPDATE_BOOL, false)2053         sDefaults.putBoolean(KEY_CI_ACTION_ON_SYS_UPDATE_BOOL, false);
sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING, "")2054         sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING, "");
sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING, "")2055         sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING, "");
sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING, "")2056         sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING, "");
sDefaults.putBoolean(KEY_CSP_ENABLED_BOOL, false)2057         sDefaults.putBoolean(KEY_CSP_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_ADDING_APNS_BOOL, true)2058         sDefaults.putBoolean(KEY_ALLOW_ADDING_APNS_BOOL, true);
sDefaults.putStringArray(KEY_READ_ONLY_APN_TYPES_STRING_ARRAY, new String[] {"dun"})2059         sDefaults.putStringArray(KEY_READ_ONLY_APN_TYPES_STRING_ARRAY, new String[] {"dun"});
sDefaults.putStringArray(KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY, null)2060         sDefaults.putStringArray(KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL, false)2061         sDefaults.putBoolean(KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL, false);
sDefaults.putBoolean(KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL, false)2062         sDefaults.putBoolean(KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL, false);
sDefaults.putBoolean(KEY_DISABLE_SEVERE_WHEN_EXTREME_DISABLED_BOOL, true)2063         sDefaults.putBoolean(KEY_DISABLE_SEVERE_WHEN_EXTREME_DISABLED_BOOL, true);
sDefaults.putLong(KEY_MESSAGE_EXPIRATION_TIME_LONG, 86400000L)2064         sDefaults.putLong(KEY_MESSAGE_EXPIRATION_TIME_LONG, 86400000L);
sDefaults.putStringArray(KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS, new String[]{ "default:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000," + "320000:5000,640000:5000,1280000:5000,1800000:5000", "mms:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000," + "320000:5000,640000:5000,1280000:5000,1800000:5000", "others:max_retries=3, 5000, 5000, 5000"})2065         sDefaults.putStringArray(KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS, new String[]{
2066                 "default:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000,"
2067                         + "320000:5000,640000:5000,1280000:5000,1800000:5000",
2068                 "mms:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000,"
2069                         + "320000:5000,640000:5000,1280000:5000,1800000:5000",
2070                 "others:max_retries=3, 5000, 5000, 5000"});
sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_DEFAULT_LONG, 20000)2071         sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_DEFAULT_LONG, 20000);
sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_FASTER_LONG, 3000)2072         sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_FASTER_LONG, 3000);
sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_RETRY_AFTER_DISCONNECT_LONG, 10000)2073         sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_RETRY_AFTER_DISCONNECT_LONG, 10000);
sDefaults.putString(KEY_CARRIER_ERI_FILE_NAME_STRING, "eri.xml")2074         sDefaults.putString(KEY_CARRIER_ERI_FILE_NAME_STRING, "eri.xml");
sDefaults.putInt(KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT, 7200)2075         sDefaults.putInt(KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT, 7200);
sDefaults.putStringArray(KEY_CARRIER_METERED_APN_TYPES_STRINGS, new String[]{"default", "mms", "dun", "supl"})2076         sDefaults.putStringArray(KEY_CARRIER_METERED_APN_TYPES_STRINGS,
2077                 new String[]{"default", "mms", "dun", "supl"});
sDefaults.putStringArray(KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS, new String[]{"default", "mms", "dun", "supl"})2078         sDefaults.putStringArray(KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS,
2079                 new String[]{"default", "mms", "dun", "supl"});
2080         // By default all APNs should be unmetered if the device is on IWLAN. However, we add
2081         // default APN as metered here as a workaround for P because in some cases, a data
2082         // connection was brought up on cellular, but later on the device camped on IWLAN. That
2083         // data connection was incorrectly treated as unmetered due to the current RAT IWLAN.
2084         // Marking it as metered for now can workaround the issue.
2085         // Todo: This will be fixed in Q when IWLAN full refactoring is completed.
sDefaults.putStringArray(KEY_CARRIER_METERED_IWLAN_APN_TYPES_STRINGS, new String[]{"default"})2086         sDefaults.putStringArray(KEY_CARRIER_METERED_IWLAN_APN_TYPES_STRINGS,
2087                 new String[]{"default"});
2088 
sDefaults.putIntArray(KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY, new int[]{ 4, 5, 6, 7, 8, 12 })2089         sDefaults.putIntArray(KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY,
2090                 new int[]{
2091                     4, /* IS95A */
2092                     5, /* IS95B */
2093                     6, /* 1xRTT */
2094                     7, /* EVDO_0 */
2095                     8, /* EVDO_A */
2096                     12 /* EVDO_B */
2097                 });
sDefaults.putStringArray(KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY, null)2098         sDefaults.putStringArray(KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY, null)2099         sDefaults.putStringArray(KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY, null);
sDefaults.putString(KEY_CONFIG_IMS_PACKAGE_OVERRIDE_STRING, null)2100         sDefaults.putString(KEY_CONFIG_IMS_PACKAGE_OVERRIDE_STRING, null);
sDefaults.putStringArray(KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY, null)2101         sDefaults.putStringArray(KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY, null)2102         sDefaults.putStringArray(KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_DIAL_STRING_REPLACE_STRING_ARRAY, null)2103         sDefaults.putStringArray(KEY_DIAL_STRING_REPLACE_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_FORCE_HOME_NETWORK_BOOL, false)2104         sDefaults.putBoolean(KEY_FORCE_HOME_NETWORK_BOOL, false);
sDefaults.putInt(KEY_GSM_DTMF_TONE_DELAY_INT, 0)2105         sDefaults.putInt(KEY_GSM_DTMF_TONE_DELAY_INT, 0);
sDefaults.putInt(KEY_IMS_DTMF_TONE_DELAY_INT, 0)2106         sDefaults.putInt(KEY_IMS_DTMF_TONE_DELAY_INT, 0);
sDefaults.putInt(KEY_CDMA_DTMF_TONE_DELAY_INT, 100)2107         sDefaults.putInt(KEY_CDMA_DTMF_TONE_DELAY_INT, 100);
sDefaults.putBoolean(KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL, false)2108         sDefaults.putBoolean(KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL, false);
sDefaults.putInt(KEY_CDMA_3WAYCALL_FLASH_DELAY_INT , 0)2109         sDefaults.putInt(KEY_CDMA_3WAYCALL_FLASH_DELAY_INT , 0);
sDefaults.putBoolean(KEY_SUPPORT_CONFERENCE_CALL_BOOL, true)2110         sDefaults.putBoolean(KEY_SUPPORT_CONFERENCE_CALL_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL, true)2111         sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_MANAGE_IMS_CONFERENCE_CALL_BOOL, true)2112         sDefaults.putBoolean(KEY_SUPPORT_MANAGE_IMS_CONFERENCE_CALL_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_VIDEO_CONFERENCE_CALL_BOOL, false)2113         sDefaults.putBoolean(KEY_SUPPORT_VIDEO_CONFERENCE_CALL_BOOL, false);
sDefaults.putBoolean(KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL, false)2114         sDefaults.putBoolean(KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL, false);
sDefaults.putInt(KEY_IMS_CONFERENCE_SIZE_LIMIT_INT, 5)2115         sDefaults.putInt(KEY_IMS_CONFERENCE_SIZE_LIMIT_INT, 5);
sDefaults.putBoolean(KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL, true)2116         sDefaults.putBoolean(KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL, true);
sDefaults.putBoolean(KEY_EDITABLE_ENHANCED_4G_LTE_BOOL, true)2117         sDefaults.putBoolean(KEY_EDITABLE_ENHANCED_4G_LTE_BOOL, true);
sDefaults.putBoolean(KEY_HIDE_ENHANCED_4G_LTE_BOOL, false)2118         sDefaults.putBoolean(KEY_HIDE_ENHANCED_4G_LTE_BOOL, false);
sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL, true)2119         sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL, true);
sDefaults.putBoolean(KEY_HIDE_IMS_APN_BOOL, false)2120         sDefaults.putBoolean(KEY_HIDE_IMS_APN_BOOL, false);
sDefaults.putBoolean(KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL, false)2121         sDefaults.putBoolean(KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL, false)2122         sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL, false);
sDefaults.putStringArray(KEY_ENABLE_APPS_STRING_ARRAY, null)2123         sDefaults.putStringArray(KEY_ENABLE_APPS_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_EDITABLE_WFC_MODE_BOOL, true)2124         sDefaults.putBoolean(KEY_EDITABLE_WFC_MODE_BOOL, true);
sDefaults.putStringArray(KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY, null)2125         sDefaults.putStringArray(KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY, null);
sDefaults.putInt(KEY_WFC_SPN_FORMAT_IDX_INT, 0)2126         sDefaults.putInt(KEY_WFC_SPN_FORMAT_IDX_INT, 0);
sDefaults.putInt(KEY_WFC_DATA_SPN_FORMAT_IDX_INT, 0)2127         sDefaults.putInt(KEY_WFC_DATA_SPN_FORMAT_IDX_INT, 0);
sDefaults.putString(KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING, "")2128         sDefaults.putString(KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING, "");
sDefaults.putBoolean(KEY_CONFIG_WIFI_DISABLE_IN_ECBM, false)2129         sDefaults.putBoolean(KEY_CONFIG_WIFI_DISABLE_IN_ECBM, false);
sDefaults.putBoolean(KEY_CARRIER_NAME_OVERRIDE_BOOL, false)2130         sDefaults.putBoolean(KEY_CARRIER_NAME_OVERRIDE_BOOL, false);
sDefaults.putString(KEY_CARRIER_NAME_STRING, "")2131         sDefaults.putString(KEY_CARRIER_NAME_STRING, "");
sDefaults.putBoolean(KEY_SUPPORT_DIRECT_FDN_DIALING_BOOL, false)2132         sDefaults.putBoolean(KEY_SUPPORT_DIRECT_FDN_DIALING_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_DEFAULT_DATA_ROAMING_ENABLED_BOOL, false)2133         sDefaults.putBoolean(KEY_CARRIER_DEFAULT_DATA_ROAMING_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_SKIP_CF_FAIL_TO_DISABLE_DIALOG_BOOL, false)2134         sDefaults.putBoolean(KEY_SKIP_CF_FAIL_TO_DISABLE_DIALOG_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL, false)2135         sDefaults.putBoolean(KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL, false);
2136 
2137         // MMS defaults
sDefaults.putBoolean(KEY_MMS_ALIAS_ENABLED_BOOL, false)2138         sDefaults.putBoolean(KEY_MMS_ALIAS_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_MMS_ALLOW_ATTACH_AUDIO_BOOL, true)2139         sDefaults.putBoolean(KEY_MMS_ALLOW_ATTACH_AUDIO_BOOL, true);
sDefaults.putBoolean(KEY_MMS_APPEND_TRANSACTION_ID_BOOL, false)2140         sDefaults.putBoolean(KEY_MMS_APPEND_TRANSACTION_ID_BOOL, false);
sDefaults.putBoolean(KEY_MMS_GROUP_MMS_ENABLED_BOOL, true)2141         sDefaults.putBoolean(KEY_MMS_GROUP_MMS_ENABLED_BOOL, true);
sDefaults.putBoolean(KEY_MMS_MMS_DELIVERY_REPORT_ENABLED_BOOL, false)2142         sDefaults.putBoolean(KEY_MMS_MMS_DELIVERY_REPORT_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_MMS_MMS_ENABLED_BOOL, true)2143         sDefaults.putBoolean(KEY_MMS_MMS_ENABLED_BOOL, true);
sDefaults.putBoolean(KEY_MMS_MMS_READ_REPORT_ENABLED_BOOL, false)2144         sDefaults.putBoolean(KEY_MMS_MMS_READ_REPORT_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_MMS_MULTIPART_SMS_ENABLED_BOOL, true)2145         sDefaults.putBoolean(KEY_MMS_MULTIPART_SMS_ENABLED_BOOL, true);
sDefaults.putBoolean(KEY_MMS_NOTIFY_WAP_MMSC_ENABLED_BOOL, false)2146         sDefaults.putBoolean(KEY_MMS_NOTIFY_WAP_MMSC_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_MMS_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES_BOOL, false)2147         sDefaults.putBoolean(KEY_MMS_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES_BOOL, false);
sDefaults.putBoolean(KEY_MMS_SHOW_CELL_BROADCAST_APP_LINKS_BOOL, true)2148         sDefaults.putBoolean(KEY_MMS_SHOW_CELL_BROADCAST_APP_LINKS_BOOL, true);
sDefaults.putBoolean(KEY_MMS_SMS_DELIVERY_REPORT_ENABLED_BOOL, true)2149         sDefaults.putBoolean(KEY_MMS_SMS_DELIVERY_REPORT_ENABLED_BOOL, true);
sDefaults.putBoolean(KEY_MMS_SUPPORT_HTTP_CHARSET_HEADER_BOOL, false)2150         sDefaults.putBoolean(KEY_MMS_SUPPORT_HTTP_CHARSET_HEADER_BOOL, false);
sDefaults.putBoolean(KEY_MMS_SUPPORT_MMS_CONTENT_DISPOSITION_BOOL, true)2151         sDefaults.putBoolean(KEY_MMS_SUPPORT_MMS_CONTENT_DISPOSITION_BOOL, true);
sDefaults.putBoolean(KEY_MMS_CLOSE_CONNECTION_BOOL, false)2152         sDefaults.putBoolean(KEY_MMS_CLOSE_CONNECTION_BOOL, false);
sDefaults.putInt(KEY_MMS_ALIAS_MAX_CHARS_INT, 48)2153         sDefaults.putInt(KEY_MMS_ALIAS_MAX_CHARS_INT, 48);
sDefaults.putInt(KEY_MMS_ALIAS_MIN_CHARS_INT, 2)2154         sDefaults.putInt(KEY_MMS_ALIAS_MIN_CHARS_INT, 2);
sDefaults.putInt(KEY_MMS_HTTP_SOCKET_TIMEOUT_INT, 60 * 1000)2155         sDefaults.putInt(KEY_MMS_HTTP_SOCKET_TIMEOUT_INT, 60 * 1000);
sDefaults.putInt(KEY_MMS_MAX_IMAGE_HEIGHT_INT, 480)2156         sDefaults.putInt(KEY_MMS_MAX_IMAGE_HEIGHT_INT, 480);
sDefaults.putInt(KEY_MMS_MAX_IMAGE_WIDTH_INT, 640)2157         sDefaults.putInt(KEY_MMS_MAX_IMAGE_WIDTH_INT, 640);
sDefaults.putInt(KEY_MMS_MAX_MESSAGE_SIZE_INT, 300 * 1024)2158         sDefaults.putInt(KEY_MMS_MAX_MESSAGE_SIZE_INT, 300 * 1024);
sDefaults.putInt(KEY_MMS_MESSAGE_TEXT_MAX_SIZE_INT, -1)2159         sDefaults.putInt(KEY_MMS_MESSAGE_TEXT_MAX_SIZE_INT, -1);
sDefaults.putInt(KEY_MMS_RECIPIENT_LIMIT_INT, Integer.MAX_VALUE)2160         sDefaults.putInt(KEY_MMS_RECIPIENT_LIMIT_INT, Integer.MAX_VALUE);
sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD_INT, -1)2161         sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD_INT, -1);
sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT, -1)2162         sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT, -1);
sDefaults.putInt(KEY_MMS_SUBJECT_MAX_LENGTH_INT, 40)2163         sDefaults.putInt(KEY_MMS_SUBJECT_MAX_LENGTH_INT, 40);
sDefaults.putString(KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING, "")2164         sDefaults.putString(KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING, "");
sDefaults.putString(KEY_MMS_HTTP_PARAMS_STRING, "")2165         sDefaults.putString(KEY_MMS_HTTP_PARAMS_STRING, "");
sDefaults.putString(KEY_MMS_NAI_SUFFIX_STRING, "")2166         sDefaults.putString(KEY_MMS_NAI_SUFFIX_STRING, "");
sDefaults.putString(KEY_MMS_UA_PROF_TAG_NAME_STRING, "x-wap-profile")2167         sDefaults.putString(KEY_MMS_UA_PROF_TAG_NAME_STRING, "x-wap-profile");
sDefaults.putString(KEY_MMS_UA_PROF_URL_STRING, "")2168         sDefaults.putString(KEY_MMS_UA_PROF_URL_STRING, "");
sDefaults.putString(KEY_MMS_USER_AGENT_STRING, "")2169         sDefaults.putString(KEY_MMS_USER_AGENT_STRING, "");
sDefaults.putBoolean(KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL, true)2170         sDefaults.putBoolean(KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL, true);
sDefaults.putBoolean(KEY_USE_RCS_PRESENCE_BOOL, false)2171         sDefaults.putBoolean(KEY_USE_RCS_PRESENCE_BOOL, false);
sDefaults.putBoolean(KEY_FORCE_IMEI_BOOL, false)2172         sDefaults.putBoolean(KEY_FORCE_IMEI_BOOL, false);
sDefaults.putInt( KEY_CDMA_ROAMING_MODE_INT, TelephonyManager.CDMA_ROAMING_MODE_RADIO_DEFAULT)2173         sDefaults.putInt(
2174                 KEY_CDMA_ROAMING_MODE_INT, TelephonyManager.CDMA_ROAMING_MODE_RADIO_DEFAULT);
sDefaults.putString(KEY_RCS_CONFIG_SERVER_URL_STRING, "")2175         sDefaults.putString(KEY_RCS_CONFIG_SERVER_URL_STRING, "");
2176 
2177         // Carrier Signalling Receivers
sDefaults.putString(KEY_CARRIER_SETUP_APP_STRING, "")2178         sDefaults.putString(KEY_CARRIER_SETUP_APP_STRING, "");
sDefaults.putStringArray(KEY_CARRIER_APP_WAKE_SIGNAL_CONFIG_STRING_ARRAY, new String[]{ "com.android.carrierdefaultapp/.CarrierDefaultBroadcastReceiver:" + "com.android.internal.telephony.CARRIER_SIGNAL_RESET" })2179         sDefaults.putStringArray(KEY_CARRIER_APP_WAKE_SIGNAL_CONFIG_STRING_ARRAY,
2180                 new String[]{
2181                         "com.android.carrierdefaultapp/.CarrierDefaultBroadcastReceiver:"
2182                                 + "com.android.internal.telephony.CARRIER_SIGNAL_RESET"
2183                 });
sDefaults.putStringArray(KEY_CARRIER_APP_NO_WAKE_SIGNAL_CONFIG_STRING_ARRAY, null)2184         sDefaults.putStringArray(KEY_CARRIER_APP_NO_WAKE_SIGNAL_CONFIG_STRING_ARRAY, null);
2185 
2186 
2187         // Default carrier app configurations
sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY, new String[]{ "9, 4, 1" })2188         sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY,
2189                 new String[]{
2190                         "9, 4, 1"
2191                         //9: CARRIER_ACTION_REGISTER_NETWORK_AVAIL
2192                         //4: CARRIER_ACTION_DISABLE_METERED_APNS
2193                         //1: CARRIER_ACTION_SHOW_PORTAL_NOTIFICATION
2194                 });
sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_RESET, new String[]{ "6, 8" })2195         sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_RESET, new String[]{
2196                 "6, 8"
2197                 //6: CARRIER_ACTION_CANCEL_ALL_NOTIFICATIONS
2198                 //8: CARRIER_ACTION_DISABLE_DEFAULT_URL_HANDLER
2199                 });
sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_DEFAULT_NETWORK_AVAILABLE, new String[] { String.valueOf(false) + ": 7", String.valueOf(true) + ": 8" })2200         sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_DEFAULT_NETWORK_AVAILABLE,
2201                 new String[] {
2202                         String.valueOf(false) + ": 7",
2203                         //7: CARRIER_ACTION_ENABLE_DEFAULT_URL_HANDLER
2204                         String.valueOf(true) + ": 8"
2205                         //8: CARRIER_ACTION_DISABLE_DEFAULT_URL_HANDLER
2206                 });
sDefaults.putStringArray(KEY_CARRIER_DEFAULT_REDIRECTION_URL_STRING_ARRAY, null)2207         sDefaults.putStringArray(KEY_CARRIER_DEFAULT_REDIRECTION_URL_STRING_ARRAY, null);
2208 
sDefaults.putInt(KEY_MONTHLY_DATA_CYCLE_DAY_INT, DATA_CYCLE_USE_PLATFORM_DEFAULT)2209         sDefaults.putInt(KEY_MONTHLY_DATA_CYCLE_DAY_INT, DATA_CYCLE_USE_PLATFORM_DEFAULT);
sDefaults.putLong(KEY_DATA_WARNING_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT)2210         sDefaults.putLong(KEY_DATA_WARNING_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT);
sDefaults.putBoolean(KEY_DATA_WARNING_NOTIFICATION_BOOL, true)2211         sDefaults.putBoolean(KEY_DATA_WARNING_NOTIFICATION_BOOL, true);
sDefaults.putLong(KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT)2212         sDefaults.putLong(KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT);
sDefaults.putBoolean(KEY_DATA_LIMIT_NOTIFICATION_BOOL, true)2213         sDefaults.putBoolean(KEY_DATA_LIMIT_NOTIFICATION_BOOL, true);
sDefaults.putBoolean(KEY_DATA_RAPID_NOTIFICATION_BOOL, true)2214         sDefaults.putBoolean(KEY_DATA_RAPID_NOTIFICATION_BOOL, true);
2215 
2216         // Rat families: {GPRS, EDGE}, {EVDO, EVDO_A, EVDO_B}, {UMTS, HSPA, HSDPA, HSUPA, HSPAP},
2217         // {LTE, LTE_CA}
2218         // Order is important - lowest precidence first
sDefaults.putStringArray(KEY_RATCHET_RAT_FAMILIES, new String[]{"1,2","7,8,12","3,11,9,10,15","14,19"})2219         sDefaults.putStringArray(KEY_RATCHET_RAT_FAMILIES,
2220                 new String[]{"1,2","7,8,12","3,11,9,10,15","14,19"});
sDefaults.putBoolean(KEY_TREAT_DOWNGRADED_VIDEO_CALLS_AS_VIDEO_CALLS_BOOL, false)2221         sDefaults.putBoolean(KEY_TREAT_DOWNGRADED_VIDEO_CALLS_AS_VIDEO_CALLS_BOOL, false);
sDefaults.putBoolean(KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL, false)2222         sDefaults.putBoolean(KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL, true)2223         sDefaults.putBoolean(KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL, true);
sDefaults.putBoolean(KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL, true)2224         sDefaults.putBoolean(KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL, true);
sDefaults.putBoolean(KEY_WIFI_CALLS_CAN_BE_HD_AUDIO, true)2225         sDefaults.putBoolean(KEY_WIFI_CALLS_CAN_BE_HD_AUDIO, true);
sDefaults.putBoolean(KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO, true)2226         sDefaults.putBoolean(KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO, true);
sDefaults.putBoolean(KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO, false)2227         sDefaults.putBoolean(KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO, false);
sDefaults.putBoolean(KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL, true)2228         sDefaults.putBoolean(KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL, true);
2229 
sDefaults.putStringArray(KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY, null)2230         sDefaults.putStringArray(KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_BOOL, false)2231         sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_BOOL, false);
sDefaults.putBoolean(KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL, false)2232         sDefaults.putBoolean(KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL, false);
sDefaults.putStringArray(KEY_FILTERED_CNAP_NAMES_STRING_ARRAY, null)2233         sDefaults.putStringArray(KEY_FILTERED_CNAP_NAMES_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_EDITABLE_WFC_ROAMING_MODE_BOOL, false)2234         sDefaults.putBoolean(KEY_EDITABLE_WFC_ROAMING_MODE_BOOL, false);
sDefaults.putBoolean(KEY_STK_DISABLE_LAUNCH_BROWSER_BOOL, false)2235         sDefaults.putBoolean(KEY_STK_DISABLE_LAUNCH_BROWSER_BOOL, false);
sDefaults.putBoolean(KEY_PERSIST_LPP_MODE_BOOL, true)2236         sDefaults.putBoolean(KEY_PERSIST_LPP_MODE_BOOL, true);
sDefaults.putStringArray(KEY_CARRIER_WIFI_STRING_ARRAY, null)2237         sDefaults.putStringArray(KEY_CARRIER_WIFI_STRING_ARRAY, null);
sDefaults.putInt(KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT, -1)2238         sDefaults.putInt(KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT, -1);
sDefaults.putInt(KEY_EMERGENCY_NOTIFICATION_DELAY_INT, -1)2239         sDefaults.putInt(KEY_EMERGENCY_NOTIFICATION_DELAY_INT, -1);
sDefaults.putBoolean(KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL, true)2240         sDefaults.putBoolean(KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL, true)2241         sDefaults.putBoolean(KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL, true);
sDefaults.putBoolean(KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL, false)2242         sDefaults.putBoolean(KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL,
2243                 false);
sDefaults.putBoolean(KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL, false)2244         sDefaults.putBoolean(KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL, false)2245         sDefaults.putBoolean(KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL, false);
sDefaults.putStringArray(KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY, null)2246         sDefaults.putStringArray(KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY,
2247                 null);
sDefaults.putInt(KEY_LTE_EARFCNS_RSRP_BOOST_INT, 0)2248         sDefaults.putInt(KEY_LTE_EARFCNS_RSRP_BOOST_INT, 0);
sDefaults.putStringArray(KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY, null)2249         sDefaults.putStringArray(KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL, false)2250         sDefaults.putBoolean(KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL, false);
sDefaults.putBoolean(KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL, false)2251         sDefaults.putBoolean(KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL, false);
sDefaults.putInt(IMSI_KEY_AVAILABILITY_INT, 0)2252         sDefaults.putInt(IMSI_KEY_AVAILABILITY_INT, 0);
sDefaults.putString(IMSI_KEY_DOWNLOAD_URL_STRING, null)2253         sDefaults.putString(IMSI_KEY_DOWNLOAD_URL_STRING, null);
sDefaults.putBoolean(KEY_CONVERT_CDMA_CALLER_ID_MMI_CODES_WHILE_ROAMING_ON_3GPP_BOOL, false)2254         sDefaults.putBoolean(KEY_CONVERT_CDMA_CALLER_ID_MMI_CODES_WHILE_ROAMING_ON_3GPP_BOOL,
2255                 false);
sDefaults.putStringArray(KEY_NON_ROAMING_OPERATOR_STRING_ARRAY, null)2256         sDefaults.putStringArray(KEY_NON_ROAMING_OPERATOR_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_ROAMING_OPERATOR_STRING_ARRAY, null)2257         sDefaults.putStringArray(KEY_ROAMING_OPERATOR_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL, false)2258         sDefaults.putBoolean(KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL, false);
sDefaults.putBoolean(KEY_RTT_SUPPORTED_BOOL, false)2259         sDefaults.putBoolean(KEY_RTT_SUPPORTED_BOOL, false);
sDefaults.putBoolean(KEY_DISABLE_CHARGE_INDICATION_BOOL, false)2260         sDefaults.putBoolean(KEY_DISABLE_CHARGE_INDICATION_BOOL, false);
sDefaults.putStringArray(KEY_FEATURE_ACCESS_CODES_STRING_ARRAY, null)2261         sDefaults.putStringArray(KEY_FEATURE_ACCESS_CODES_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL, false)2262         sDefaults.putBoolean(KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_PRECISE_FAILED_CAUSE_BOOL, false)2263         sDefaults.putBoolean(KEY_SHOW_PRECISE_FAILED_CAUSE_BOOL, false);
sDefaults.putBoolean(KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL, false)2264         sDefaults.putBoolean(KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL, false);
sDefaults.putBoolean(KEY_ALWAYS_SHOW_DATA_RAT_ICON_BOOL, false)2265         sDefaults.putBoolean(KEY_ALWAYS_SHOW_DATA_RAT_ICON_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL, false)2266         sDefaults.putBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL, false);
sDefaults.putBoolean(KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL, false)2267         sDefaults.putBoolean(KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL, false);
sDefaults.putIntArray(KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY, new int[] { -128, -118, -108, -98, })2268         sDefaults.putIntArray(KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY,
2269                 new int[] {
2270                         -128, /* SIGNAL_STRENGTH_POOR */
2271                         -118, /* SIGNAL_STRENGTH_MODERATE */
2272                         -108, /* SIGNAL_STRENGTH_GOOD */
2273                         -98,  /* SIGNAL_STRENGTH_GREAT */
2274                 });
sDefaults.putIntArray(KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY, new int[] { -115, -105, -95, -85 })2275         sDefaults.putIntArray(KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY,
2276                 new int[] {
2277                         -115,  /* SIGNAL_STRENGTH_POOR */
2278                         -105, /* SIGNAL_STRENGTH_MODERATE */
2279                         -95, /* SIGNAL_STRENGTH_GOOD */
2280                         -85  /* SIGNAL_STRENGTH_GREAT */
2281                 });
sDefaults.putString(KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING, "")2282         sDefaults.putString(KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING, "");
2283     }
2284 
2285     /**
2286      * Gets the configuration values for a particular subscription, which is associated with a
2287      * specific SIM card. If an invalid subId is used, the returned config will contain default
2288      * values. After using this method to get the configuration bundle,
2289      * {@link #isConfigForIdentifiedCarrier(PersistableBundle)} should be called to confirm whether
2290      * any carrier specific configuration has been applied.
2291      *
2292      * <p>Requires Permission:
2293      * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
2294      *
2295      * @param subId the subscription ID, normally obtained from {@link SubscriptionManager}.
2296      * @return A {@link PersistableBundle} containing the config for the given subId, or default
2297      *         values for an invalid subId.
2298      */
2299     @Nullable
getConfigForSubId(int subId)2300     public PersistableBundle getConfigForSubId(int subId) {
2301         try {
2302             ICarrierConfigLoader loader = getICarrierConfigLoader();
2303             if (loader == null) {
2304                 Rlog.w(TAG, "Error getting config for subId " + subId
2305                         + " ICarrierConfigLoader is null");
2306                 return null;
2307             }
2308             return loader.getConfigForSubId(subId);
2309         } catch (RemoteException ex) {
2310             Rlog.e(TAG, "Error getting config for subId " + subId + ": "
2311                     + ex.toString());
2312         }
2313         return null;
2314     }
2315 
2316     /**
2317      * Gets the configuration values for the default subscription. After using this method to get
2318      * the configuration bundle, {@link #isConfigForIdentifiedCarrier(PersistableBundle)} should be
2319      * called to confirm whether any carrier specific configuration has been applied.
2320      *
2321      * <p>Requires Permission:
2322      * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
2323      *
2324      * @see #getConfigForSubId
2325      */
2326     @Nullable
getConfig()2327     public PersistableBundle getConfig() {
2328         return getConfigForSubId(SubscriptionManager.getDefaultSubscriptionId());
2329     }
2330 
2331     /**
2332      * Determines whether a configuration {@link PersistableBundle} obtained from
2333      * {@link #getConfig()} or {@link #getConfigForSubId(int)} corresponds to an identified carrier.
2334      * <p>
2335      * When an app receives the {@link CarrierConfigManager#ACTION_CARRIER_CONFIG_CHANGED}
2336      * broadcast which informs it that the carrier configuration has changed, it is possible
2337      * that another reload of the carrier configuration has begun since the intent was sent.
2338      * In this case, the carrier configuration the app fetches (e.g. via {@link #getConfig()})
2339      * may not represent the configuration for the current carrier. It should be noted that it
2340      * does not necessarily mean the configuration belongs to current carrier when this function
2341      * return true because it may belong to another previous identified carrier. Users should
2342      * always call {@link #getConfig()} or {@link #getConfigForSubId(int)} after receiving the
2343      * broadcast {@link #ACTION_CARRIER_CONFIG_CHANGED}.
2344      * </p>
2345      * <p>
2346      * After using {@link #getConfig()} or {@link #getConfigForSubId(int)} an app should always
2347      * use this method to confirm whether any carrier specific configuration has been applied.
2348      * Especially when an app misses the broadcast {@link #ACTION_CARRIER_CONFIG_CHANGED} but it
2349      * still needs to get the current configuration, it must use this method to verify whether the
2350      * configuration is default or carrier overridden.
2351      * </p>
2352      *
2353      * @param bundle the configuration bundle to be checked.
2354      * @return boolean true if any carrier specific configuration bundle has been applied, false
2355      * otherwise or the bundle is null.
2356      */
isConfigForIdentifiedCarrier(PersistableBundle bundle)2357     public static boolean isConfigForIdentifiedCarrier(PersistableBundle bundle) {
2358         return bundle != null && bundle.getBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL);
2359     }
2360 
2361     /**
2362      * Calling this method triggers telephony services to fetch the current carrier configuration.
2363      * <p>
2364      * Normally this does not need to be called because the platform reloads config on its own.
2365      * This should be called by a carrier service app if it wants to update config at an arbitrary
2366      * moment.
2367      * </p>
2368      * <p>Requires that the calling app has carrier privileges.
2369      * <p>
2370      * This method returns before the reload has completed, and
2371      * {@link android.service.carrier.CarrierService#onLoadConfig} will be called from an
2372      * arbitrary thread.
2373      * </p>
2374      * @see TelephonyManager#hasCarrierPrivileges
2375      */
notifyConfigChangedForSubId(int subId)2376     public void notifyConfigChangedForSubId(int subId) {
2377         try {
2378             ICarrierConfigLoader loader = getICarrierConfigLoader();
2379             if (loader == null) {
2380                 Rlog.w(TAG, "Error reloading config for subId=" + subId
2381                         + " ICarrierConfigLoader is null");
2382                 return;
2383             }
2384             loader.notifyConfigChangedForSubId(subId);
2385         } catch (RemoteException ex) {
2386             Rlog.e(TAG, "Error reloading config for subId=" + subId + ": " + ex.toString());
2387         }
2388     }
2389 
2390     /**
2391      * Request the carrier config loader to update the cofig for phoneId.
2392      * <p>
2393      * Depending on simState, the config may be cleared or loaded from config app. This is only used
2394      * by SubscriptionInfoUpdater.
2395      * </p>
2396      *
2397      * @hide
2398      */
2399     @SystemApi
2400     @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
updateConfigForPhoneId(int phoneId, String simState)2401     public void updateConfigForPhoneId(int phoneId, String simState) {
2402         try {
2403             ICarrierConfigLoader loader = getICarrierConfigLoader();
2404             if (loader == null) {
2405                 Rlog.w(TAG, "Error updating config for phoneId=" + phoneId
2406                         + " ICarrierConfigLoader is null");
2407                 return;
2408             }
2409             loader.updateConfigForPhoneId(phoneId, simState);
2410         } catch (RemoteException ex) {
2411             Rlog.e(TAG, "Error updating config for phoneId=" + phoneId + ": " + ex.toString());
2412         }
2413     }
2414 
2415     /** {@hide} */
getDefaultCarrierServicePackageName()2416     public String getDefaultCarrierServicePackageName() {
2417         try {
2418             return getICarrierConfigLoader().getDefaultCarrierServicePackageName();
2419         } catch (Throwable t) {
2420             return null;
2421         }
2422     }
2423 
2424     /**
2425      * Returns a new bundle with the default value for every supported configuration variable.
2426      *
2427      * @hide
2428      */
2429     @NonNull
2430     @SystemApi
2431     @SuppressLint("Doclava125")
getDefaultConfig()2432     public static PersistableBundle getDefaultConfig() {
2433         return new PersistableBundle(sDefaults);
2434     }
2435 
2436     /** @hide */
2437     @Nullable
getICarrierConfigLoader()2438     private ICarrierConfigLoader getICarrierConfigLoader() {
2439         return ICarrierConfigLoader.Stub
2440                 .asInterface(ServiceManager.getService(Context.CARRIER_CONFIG_SERVICE));
2441     }
2442 }
2443