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.Manifest;
20 import android.annotation.NonNull;
21 import android.annotation.Nullable;
22 import android.annotation.RequiresPermission;
23 import android.annotation.SuppressLint;
24 import android.annotation.SystemApi;
25 import android.annotation.SystemService;
26 import android.annotation.TestApi;
27 import android.compat.annotation.UnsupportedAppUsage;
28 import android.content.ComponentName;
29 import android.content.Context;
30 import android.os.PersistableBundle;
31 import android.os.RemoteException;
32 import android.os.ServiceManager;
33 import android.service.carrier.CarrierService;
34 import android.telecom.TelecomManager;
35 import android.telephony.ims.ImsReasonInfo;
36 
37 import com.android.internal.telephony.ICarrierConfigLoader;
38 import com.android.telephony.Rlog;
39 
40 import java.util.concurrent.TimeUnit;
41 
42 /**
43  * Provides access to telephony configuration values that are carrier-specific.
44  */
45 @SystemService(Context.CARRIER_CONFIG_SERVICE)
46 public class CarrierConfigManager {
47     private final static String TAG = "CarrierConfigManager";
48 
49     /**
50      * Extra included in {@link #ACTION_CARRIER_CONFIG_CHANGED} to indicate the slot index that the
51      * broadcast is for.
52      */
53     public static final String EXTRA_SLOT_INDEX = "android.telephony.extra.SLOT_INDEX";
54 
55     /**
56      * Extra included in {@link #ACTION_CARRIER_CONFIG_CHANGED} to indicate whether this is a
57      * rebroadcast on unlock. Defaults to {@code false} if not specified.
58      * @hide
59      */
60     public static final String EXTRA_REBROADCAST_ON_UNLOCK =
61             "android.telephony.extra.REBROADCAST_ON_UNLOCK";
62 
63     /**
64      * Optional extra included in {@link #ACTION_CARRIER_CONFIG_CHANGED} to indicate the
65      * subscription index that the broadcast is for, if a valid one is available.
66      */
67     public static final String EXTRA_SUBSCRIPTION_INDEX =
68             SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX;
69 
70     private final Context mContext;
71 
72     /**
73      * @hide
74      */
CarrierConfigManager(Context context)75     public CarrierConfigManager(Context context) {
76         mContext = context;
77     }
78 
79     /**
80      * This intent is broadcast by the system when carrier config changes. An int is specified in
81      * {@link #EXTRA_SLOT_INDEX} to indicate the slot index that this is for. An optional int extra
82      * {@link #EXTRA_SUBSCRIPTION_INDEX} is included to indicate the subscription index if a valid
83      * one is available for the slot index. An optional int extra
84      * {@link TelephonyManager#EXTRA_CARRIER_ID} is included to indicate the carrier id for the
85      * changed carrier configuration. An optional int extra
86      * {@link TelephonyManager#EXTRA_SPECIFIC_CARRIER_ID} is included to indicate the precise
87      * carrier id for the changed carrier configuration.
88      * @see TelephonyManager#getSimCarrierId()
89      * @see TelephonyManager#getSimSpecificCarrierId()
90      */
91     public static final String
92             ACTION_CARRIER_CONFIG_CHANGED = "android.telephony.action.CARRIER_CONFIG_CHANGED";
93 
94     // Below are the keys used in carrier config bundles. To add a new variable, define the key and
95     // give it a default value in sDefaults. If you need to ship a per-network override in the
96     // system image, that can be added in packages/apps/CarrierConfig.
97 
98     /**
99      * Specifies a value that identifies the version of the carrier configuration that is
100      * currently in use. This string is displayed on the UI.
101      * The format of the string is not specified.
102      */
103     public static final String KEY_CARRIER_CONFIG_VERSION_STRING =
104             "carrier_config_version_string";
105 
106     /**
107      * This flag specifies whether VoLTE availability is based on provisioning. By default this is
108      * false.
109      */
110     public static final String
111             KEY_CARRIER_VOLTE_PROVISIONED_BOOL = "carrier_volte_provisioned_bool";
112 
113     /**
114      * Boolean indicating the Supplementary Services(SS) is disable when airplane mode on in the
115      * Call Settings menu.
116      * {@code true}: SS is disable when airplane mode on.
117      * {@code false}: SS is enable when airplane mode on.
118      * The default value for this key is {@code false}
119      */
120     public static final String KEY_DISABLE_SUPPLEMENTARY_SERVICES_IN_AIRPLANE_MODE_BOOL =
121             "disable_supplementary_services_in_airplane_mode_bool";
122 
123     /**
124      * Boolean indicating if the "Call forwarding" item is visible in the Call Settings menu.
125      * true means visible. false means gone.
126      * @hide
127      */
128     public static final String KEY_CALL_FORWARDING_VISIBILITY_BOOL =
129             "call_forwarding_visibility_bool";
130 
131     /**
132      * Boolean indicating if carrier supports call forwarding option "When unreachable".
133      *
134      * {@code true}: Call forwarding option "When unreachable" is supported.
135      * {@code false}: Call forwarding option "When unreachable" is not supported. Option will be
136      * removed in the UI.
137      *
138      * By default this value is true.
139      * @hide
140      */
141     public static final String KEY_CALL_FORWARDING_WHEN_UNREACHABLE_SUPPORTED_BOOL =
142             "call_forwarding_when_unreachable_supported_bool";
143 
144      /**
145       * Boolean indicating if carrier supports call forwarding option "When unanswered".
146       *
147       * {@code true}: Call forwarding option "When unanswered" is supported.
148       * {@code false}: Call forwarding option "When unanswered" is not supported. Option will be
149       * removed in the UI.
150       *
151       * By default this value is true.
152       * @hide
153       */
154     public static final String KEY_CALL_FORWARDING_WHEN_UNANSWERED_SUPPORTED_BOOL =
155             "call_forwarding_when_unanswered_supported_bool";
156 
157      /**
158       * Boolean indicating if carrier supports call forwarding option "When busy".
159       *
160       * {@code true}: Call forwarding option "When busy" is supported.
161       * {@code false}: Call forwarding option "When busy" is not supported. Option will be
162       * removed in the UI.
163       *
164       * By default this value is true.
165       * @hide
166       */
167     public static final String KEY_CALL_FORWARDING_WHEN_BUSY_SUPPORTED_BOOL =
168             "call_forwarding_when_busy_supported_bool";
169 
170     /**
171      * Boolean indicating if the "Caller ID" item is visible in the Additional Settings menu.
172      * true means visible. false means gone.
173      * @hide
174      */
175     public static final String KEY_ADDITIONAL_SETTINGS_CALLER_ID_VISIBILITY_BOOL =
176             "additional_settings_caller_id_visibility_bool";
177 
178     /**
179      * Boolean indicating if the "Call Waiting" item is visible in the Additional Settings menu.
180      * true means visible. false means gone.
181      * @hide
182      */
183     public static final String KEY_ADDITIONAL_SETTINGS_CALL_WAITING_VISIBILITY_BOOL =
184             "additional_settings_call_waiting_visibility_bool";
185 
186    /**
187     * Boolean indicating if the "Call barring" item is visible in the Call Settings menu.
188     * If true, the "Call Barring" menu will be visible. If false, the menu will be gone.
189     *
190     * Disabled by default.
191     */
192     public static final String KEY_CALL_BARRING_VISIBILITY_BOOL =
193             "call_barring_visibility_bool";
194 
195     /**
196      * Flag indicating whether or not changing the call barring password via the "Call Barring"
197      * settings menu is supported. If true, the option will be visible in the "Call
198      * Barring" settings menu. If false, the option will not be visible.
199      *
200      * Enabled by default.
201      */
202     public static final String KEY_CALL_BARRING_SUPPORTS_PASSWORD_CHANGE_BOOL =
203             "call_barring_supports_password_change_bool";
204 
205     /**
206      * Flag indicating whether or not deactivating all call barring features via the "Call Barring"
207      * settings menu is supported. If true, the option will be visible in the "Call
208      * Barring" settings menu. If false, the option will not be visible.
209      *
210      * Enabled by default.
211      */
212     public static final String KEY_CALL_BARRING_SUPPORTS_DEACTIVATE_ALL_BOOL =
213             "call_barring_supports_deactivate_all_bool";
214 
215     /**
216      * Flag indicating whether the Phone app should ignore EVENT_SIM_NETWORK_LOCKED
217      * events from the Sim.
218      * If true, this will prevent the IccNetworkDepersonalizationPanel from being shown, and
219      * effectively disable the "Sim network lock" feature.
220      */
221     public static final String
222             KEY_IGNORE_SIM_NETWORK_LOCKED_EVENTS_BOOL = "ignore_sim_network_locked_events_bool";
223 
224     /**
225      * When checking if a given number is the voicemail number, if this flag is true
226      * then in addition to comparing the given number to the voicemail number, we also compare it
227      * to the mdn. If this flag is false, the given number is only compared to the voicemail number.
228      * By default this value is false.
229      */
230     public static final String KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL =
231             "mdn_is_additional_voicemail_number_bool";
232 
233     /**
234      * Flag indicating whether the Phone app should provide a "Dismiss" button on the SIM network
235      * unlock screen. The default value is true. If set to false, there will be *no way* to dismiss
236      * the SIM network unlock screen if you don't enter the correct unlock code. (One important
237      * consequence: there will be no way to make an Emergency Call if your SIM is network-locked and
238      * you don't know the PIN.)
239      */
240     public static final String
241             KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL = "sim_network_unlock_allow_dismiss_bool";
242 
243     /**
244      * Flag indicating whether or not sending emergency SMS messages over IMS
245      * is supported when in LTE/limited LTE (Emergency only) service mode..
246      *
247      */
248     public static final String
249             KEY_SUPPORT_EMERGENCY_SMS_OVER_IMS_BOOL = "support_emergency_sms_over_ims_bool";
250 
251     /** Flag indicating if the phone is a world phone */
252     public static final String KEY_WORLD_PHONE_BOOL = "world_phone_bool";
253 
254     /**
255      * Flag to require or skip entitlement checks.
256      * If true, entitlement checks will be executed if device has been configured for it,
257      * If false, entitlement checks will be skipped.
258      */
259     public static final String
260             KEY_REQUIRE_ENTITLEMENT_CHECKS_BOOL = "require_entitlement_checks_bool";
261 
262     /**
263      * Flag indicating whether radio is to be restarted on error PDP_FAIL_REGULAR_DEACTIVATION
264      * This is false by default.
265      *
266      * @deprecated Use {@link #KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY} instead
267      */
268     @Deprecated
269     public static final String KEY_RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION_BOOL =
270             "restart_radio_on_pdp_fail_regular_deactivation_bool";
271 
272     /**
273      * A list of failure cause codes that will trigger a modem restart when telephony receiving
274      * one of those during data setup. The cause codes are defined in 3GPP TS 24.008 Annex I and
275      * TS 24.301 Annex B.
276      */
277     public static final String KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY =
278             "radio_restart_failure_causes_int_array";
279 
280     /**
281      * If true, enable vibration (haptic feedback) for key presses in the EmergencyDialer activity.
282      * The pattern is set on a per-platform basis using config_virtualKeyVibePattern. To be
283      * consistent with the regular Dialer, this value should agree with the corresponding values
284      * from config.xml under apps/Contacts.
285      */
286     public static final String
287             KEY_ENABLE_DIALER_KEY_VIBRATION_BOOL = "enable_dialer_key_vibration_bool";
288 
289     /** Flag indicating if dtmf tone type is enabled */
290     public static final String KEY_DTMF_TYPE_ENABLED_BOOL = "dtmf_type_enabled_bool";
291 
292     /** Flag indicating if auto retry is enabled */
293     public static final String KEY_AUTO_RETRY_ENABLED_BOOL = "auto_retry_enabled_bool";
294 
295     /**
296      * Determine whether we want to play local DTMF tones in a call, or just let the radio/BP handle
297      * playing of the tones.
298      */
299     public static final String KEY_ALLOW_LOCAL_DTMF_TONES_BOOL = "allow_local_dtmf_tones_bool";
300 
301     /**
302      * Determines if the carrier requires that a tone be played to the remote party when an app is
303      * recording audio during a call (e.g. using a call recording app).
304      * <p>
305      * Note: This requires the Telephony config_supports_telephony_audio_device overlay to be true
306      * in order to work.
307      * @hide
308      */
309     public static final String KEY_PLAY_CALL_RECORDING_TONE_BOOL = "play_call_recording_tone_bool";
310     /**
311      * Determines if the carrier requires converting the destination number before sending out an
312      * SMS. Certain networks and numbering plans require different formats.
313      */
314     public static final String KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL=
315             "sms_requires_destination_number_conversion_bool";
316 
317     /**
318      * If true, show an onscreen "Dial" button in the dialer. In practice this is used on all
319      * platforms, even the ones with hard SEND/END keys, but for maximum flexibility it's controlled
320      * by a flag here (which can be overridden on a per-product basis.)
321      */
322     public static final String KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL = "show_onscreen_dial_button_bool";
323 
324     /** Determines if device implements a noise suppression device for in call audio. */
325     public static final String
326             KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL = "has_in_call_noise_suppression_bool";
327 
328     /**
329      * Determines if the current device should allow emergency numbers to be logged in the Call Log.
330      * (Some carriers require that emergency calls *not* be logged, presumably to avoid the risk of
331      * accidental redialing from the call log UI. This is a good idea, so the default here is
332      * false.)
333      */
334     public static final String
335             KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL = "allow_emergency_numbers_in_call_log_bool";
336 
337     /**
338      * A string array containing numbers that shouldn't be included in the call log.
339      */
340     public static final String KEY_UNLOGGABLE_NUMBERS_STRING_ARRAY =
341             "unloggable_numbers_string_array";
342 
343     /** If true, removes the Voice Privacy option from Call Settings */
344     public static final String KEY_VOICE_PRIVACY_DISABLE_UI_BOOL = "voice_privacy_disable_ui_bool";
345 
346     /** Control whether users can reach the carrier portions of Cellular Network Settings. */
347     public static final String
348             KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL = "hide_carrier_network_settings_bool";
349 
350     /**
351      * Only allow auto selection in Advanced Network Settings when in home network.
352      * Manual selection is allowed when in roaming network.
353      */
354     public static final String KEY_ONLY_AUTO_SELECT_IN_HOME_NETWORK_BOOL =
355             "only_auto_select_in_home_network";
356 
357     /**
358      * Flag indicating whether to show single operator row in the choose network setting.
359      *
360      * The device configuration value {@code config_enableNewAutoSelectNetworkUI} ultimately
361      * controls whether this carrier configuration option is used.  Where
362      * {@code config_enableNewAutoSelectNetworkUI} is false, the value of the
363      * {@link #KEY_SHOW_SINGLE_OPERATOR_ROW_IN_CHOOSE_NETWORK_SETTING_BOOL} carrier configuration
364      * option is ignored.
365      *
366      * If {@code true}, default value, merge the duplicate networks which with the same plmn, keep
367      * the one that with the higher signal strength level.
368      * If {@code false}, show all operators without merging.
369      * @hide
370      */
371     public static final String KEY_SHOW_SINGLE_OPERATOR_ROW_IN_CHOOSE_NETWORK_SETTING_BOOL =
372             "show_single_operator_row_in_choose_network_setting_bool";
373 
374     /**
375      * Flag indicating whether to display SPN as network name for home network in choose
376      * network setting.
377      *
378      * If {@code true}, display SPN as network name in choose network setting.
379      * If {@code false}, display PLMN in choose network setting.
380      * @hide
381      */
382     public static final String KEY_SHOW_SPN_FOR_HOME_IN_CHOOSE_NETWORK_SETTING_BOOL =
383             "show_spn_for_home_in_choose_network_setting_bool";
384 
385     /**
386      * Control whether users receive a simplified network settings UI and improved network
387      * selection.
388      */
389     public static final String
390             KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL = "simplified_network_settings_bool";
391 
392     /** Control whether users can reach the SIM lock settings. */
393     public static final String
394             KEY_HIDE_SIM_LOCK_SETTINGS_BOOL = "hide_sim_lock_settings_bool";
395 
396     /** Control whether users can edit APNs in Settings. */
397     public static final String KEY_APN_EXPAND_BOOL = "apn_expand_bool";
398 
399     /** Control whether users can choose a network operator. */
400     public static final String KEY_OPERATOR_SELECTION_EXPAND_BOOL = "operator_selection_expand_bool";
401 
402     /** Used in Cellular Network Settings for preferred network type. */
403     public static final String KEY_PREFER_2G_BOOL = "prefer_2g_bool";
404 
405     /** Show cdma network mode choices 1x, 3G, global etc. */
406     public static final String KEY_SHOW_CDMA_CHOICES_BOOL = "show_cdma_choices_bool";
407 
408     /** CDMA activation goes through HFA */
409     public static final String KEY_USE_HFA_FOR_PROVISIONING_BOOL = "use_hfa_for_provisioning_bool";
410 
411     /**
412      * CDMA activation goes through OTASP.
413      * <p>
414      * TODO: This should be combined with config_use_hfa_for_provisioning and implemented as an enum
415      * (NONE, HFA, OTASP).
416      */
417     public static final String KEY_USE_OTASP_FOR_PROVISIONING_BOOL = "use_otasp_for_provisioning_bool";
418 
419     /** Display carrier settings menu if true */
420     public static final String KEY_CARRIER_SETTINGS_ENABLE_BOOL = "carrier_settings_enable_bool";
421 
422     /** Does not display additional call setting for IMS phone based on GSM Phone */
423     public static final String KEY_ADDITIONAL_CALL_SETTING_BOOL = "additional_call_setting_bool";
424 
425     /** Show APN Settings for some CDMA carriers */
426     public static final String KEY_SHOW_APN_SETTING_CDMA_BOOL = "show_apn_setting_cdma_bool";
427 
428     /** After a CDMA conference call is merged, the swap button should be displayed. */
429     public static final String KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL = "support_swap_after_merge_bool";
430 
431     /**
432      * Determine whether user can edit voicemail number in Settings.
433      */
434     public static final String KEY_EDITABLE_VOICEMAIL_NUMBER_SETTING_BOOL =
435             "editable_voicemail_number_setting_bool";
436 
437     /**
438      * Since the default voicemail number is empty, if a SIM card does not have a voicemail number
439      * available the user cannot use voicemail. This flag allows the user to edit the voicemail
440      * number in such cases, and is false by default.
441      */
442     public static final String KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL= "editable_voicemail_number_bool";
443 
444     /**
445      * Determine whether the voicemail notification is persistent in the notification bar. If true,
446      * the voicemail notifications cannot be dismissed from the notification bar.
447      */
448     public static final String
449             KEY_VOICEMAIL_NOTIFICATION_PERSISTENT_BOOL = "voicemail_notification_persistent_bool";
450 
451     /** For IMS video over LTE calls, determines whether video pause signalling is supported. */
452     public static final String
453             KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL = "support_pause_ims_video_calls_bool";
454 
455     /**
456      * Disables dialing "*228" (OTASP provisioning) on CDMA carriers where it is not supported or is
457      * potentially harmful by locking the SIM to 3G.
458      */
459     public static final String
460             KEY_DISABLE_CDMA_ACTIVATION_CODE_BOOL = "disable_cdma_activation_code_bool";
461 
462     /**
463      * List of RIL radio technologies (See {@link ServiceState} {@code RIL_RADIO_TECHNOLOGY_*}
464      * constants) which support only a single data connection at a time. Some carriers do not
465      * support multiple pdp on UMTS.
466      */
467     public static final String
468             KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY = "only_single_dc_allowed_int_array";
469 
470     /**
471      * Override the platform's notion of a network operator being considered roaming.
472      * Value is string array of MCCMNCs to be considered roaming for 3GPP RATs.
473      */
474     public static final String
475             KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY = "gsm_roaming_networks_string_array";
476 
477     /**
478      * Override the platform's notion of a network operator being considered not roaming.
479      * Value is string array of MCCMNCs to be considered not roaming for 3GPP RATs.
480      */
481     public static final String
482             KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY = "gsm_nonroaming_networks_string_array";
483 
484     /**
485      * The package name containing the ImsService that will be bound to the telephony framework to
486      * support both IMS MMTEL and RCS feature functionality instead of the device default
487      * ImsService for this subscription.
488      * @deprecated Use {@link #KEY_CONFIG_IMS_MMTEL_PACKAGE_OVERRIDE_STRING} and
489      * {@link #KEY_CONFIG_IMS_RCS_PACKAGE_OVERRIDE_STRING} instead to configure these values
490      * separately. If any of those values are not empty, they will override this value.
491      */
492     public static final String KEY_CONFIG_IMS_PACKAGE_OVERRIDE_STRING =
493             "config_ims_package_override_string";
494 
495     /**
496      * The package name containing the ImsService that will be bound to the telephony framework to
497      * support IMS MMTEL feature functionality instead of the device default ImsService for this
498      * subscription.
499      */
500     public static final String KEY_CONFIG_IMS_MMTEL_PACKAGE_OVERRIDE_STRING =
501             "config_ims_mmtel_package_override_string";
502 
503     /**
504      * The package name containing the ImsService that will be bound to the telephony framework to
505      * support IMS RCS feature functionality instead of the device default ImsService for this
506      * subscription.
507      */
508     public static final String KEY_CONFIG_IMS_RCS_PACKAGE_OVERRIDE_STRING =
509             "config_ims_rcs_package_override_string";
510 
511     /**
512      * Override the package that will manage {@link SubscriptionPlan}
513      * information instead of the {@link CarrierService} that defines this
514      * value.
515      *
516      * @see SubscriptionManager#getSubscriptionPlans(int)
517      * @see SubscriptionManager#setSubscriptionPlans(int, java.util.List)
518      */
519     public static final String KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING =
520             "config_plans_package_override_string";
521 
522     /**
523      * Override the platform's notion of a network operator being considered roaming.
524      * Value is string array of SIDs to be considered roaming for 3GPP2 RATs.
525      */
526     public static final String
527             KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY = "cdma_roaming_networks_string_array";
528 
529     /**
530      * Override the platform's notion of a network operator being considered non roaming.
531      * Value is string array of SIDs to be considered not roaming for 3GPP2 RATs.
532      */
533     public static final String
534             KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY = "cdma_nonroaming_networks_string_array";
535 
536     /**
537      * Override the platform's notion of a network operator being considered non roaming.
538      * If true all networks are considered as home network a.k.a non-roaming.  When false,
539      * the 2 pairs of CMDA and GSM roaming/non-roaming arrays are consulted.
540      *
541      * @see #KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY
542      * @see #KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY
543      * @see #KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY
544      * @see #KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY
545      */
546     public static final String
547             KEY_FORCE_HOME_NETWORK_BOOL = "force_home_network_bool";
548 
549     /**
550      * Flag specifying whether VoLTE should be available for carrier, independent of carrier
551      * provisioning. If false: hard disabled. If true: then depends on carrier provisioning,
552      * availability, etc.
553      */
554     public static final String KEY_CARRIER_VOLTE_AVAILABLE_BOOL = "carrier_volte_available_bool";
555 
556     /**
557      * Flag specifying whether video telephony is available for carrier. If false: hard disabled.
558      * If true: then depends on carrier provisioning, availability, etc.
559      */
560     public static final String KEY_CARRIER_VT_AVAILABLE_BOOL = "carrier_vt_available_bool";
561 
562     /**
563      * Flag specifying whether to show an alert dialog for 5G disable when the user disables VoLTE.
564      * By default this value is {@code false}.
565      *
566      * @hide
567      */
568     public static final String KEY_VOLTE_5G_LIMITED_ALERT_DIALOG_BOOL =
569             "volte_5g_limited_alert_dialog_bool";
570 
571     /**
572      * Flag specifying whether the carrier wants to notify the user when a VT call has been handed
573      * over from WIFI to LTE.
574      * <p>
575      * The handover notification is sent as a
576      * {@link TelephonyManager#EVENT_HANDOVER_VIDEO_FROM_WIFI_TO_LTE}
577      * {@link android.telecom.Connection} event, which an {@link android.telecom.InCallService}
578      * should use to trigger the display of a user-facing message.
579      * <p>
580      * The Connection event is sent to the InCallService only once, the first time it occurs.
581      * @hide
582      */
583     public static final String KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL =
584             "notify_handover_video_from_wifi_to_lte_bool";
585 
586     /**
587      * Flag specifying whether the carrier supports merging a RTT call with a voice call,
588      * downgrading the call in the process.
589      * @hide
590      */
591     public static final String KEY_ALLOW_MERGING_RTT_CALLS_BOOL =
592              "allow_merging_rtt_calls_bool";
593 
594     /**
595      * Flag specifying whether the carrier wants to notify the user when a VT call has been handed
596      * over from LTE to WIFI.
597      * <p>
598      * The handover notification is sent as a
599      * {@link TelephonyManager#EVENT_HANDOVER_VIDEO_FROM_LTE_TO_WIFI}
600      * {@link android.telecom.Connection} event, which an {@link android.telecom.InCallService}
601      * should use to trigger the display of a user-facing message.
602      * @hide
603      */
604     public static final String KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL =
605             "notify_handover_video_from_lte_to_wifi_bool";
606 
607     /**
608      * Flag specifying whether the carrier supports downgrading a video call (tx, rx or tx/rx)
609      * directly to an audio call.
610      * @hide
611      */
612     public static final String KEY_SUPPORT_DOWNGRADE_VT_TO_AUDIO_BOOL =
613             "support_downgrade_vt_to_audio_bool";
614 
615     /**
616      * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default
617      * voicemail number.
618      * When empty string, no default voicemail number is specified.
619      */
620     public static final String KEY_DEFAULT_VM_NUMBER_STRING = "default_vm_number_string";
621 
622     /**
623      * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default
624      * voicemail number for roaming network.
625      * When empty string, no default voicemail number is specified for roaming network.
626      * @hide
627      */
628     public static final String KEY_DEFAULT_VM_NUMBER_ROAMING_STRING =
629             "default_vm_number_roaming_string";
630 
631     /**
632      * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default
633      * voicemail number while the device is both roaming and not registered for IMS.
634      * When empty string, no default voicemail number is specified for roaming network and
635      * unregistered state in IMS.
636      */
637     public static final String KEY_DEFAULT_VM_NUMBER_ROAMING_AND_IMS_UNREGISTERED_STRING =
638             "default_vm_number_roaming_and_ims_unregistered_string";
639 
640     /**
641      * Flag that specifies to use the user's own phone number as the voicemail number when there is
642      * no pre-loaded voicemail number on the SIM card.
643      * <p>
644      * {@link #KEY_DEFAULT_VM_NUMBER_STRING} takes precedence over this flag.
645      * <p>
646      * If false, the system default (*86) will be used instead.
647      */
648     public static final String KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL =
649             "config_telephony_use_own_number_for_voicemail_bool";
650 
651     /**
652      * When {@code true}, changes to the mobile data enabled switch will not cause the VT
653      * registration state to change.  That is, turning on or off mobile data will not cause VT to be
654      * enabled or disabled.
655      * When {@code false}, disabling mobile data will cause VT to be de-registered.
656      */
657     public static final String KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS =
658             "ignore_data_enabled_changed_for_video_calls";
659 
660     /**
661      * Flag indicating whether data used for a video call over LTE is metered or not.
662      * <p>
663      * When {@code true}, if the device hits the data limit or data is disabled during a ViLTE call,
664      * the call will be downgraded to audio-only (or paused if
665      * {@link #KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL} is {@code true}).
666      *
667      * @hide
668      */
669     public static final String KEY_VILTE_DATA_IS_METERED_BOOL = "vilte_data_is_metered_bool";
670 
671     /**
672      * Flag specifying whether WFC over IMS should be available for carrier: independent of
673      * carrier provisioning. If false: hard disabled. If true: then depends on carrier
674      * provisioning, availability etc.
675      */
676     public static final String KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL = "carrier_wfc_ims_available_bool";
677 
678     /**
679      * Specifies a map from dialstrings to replacements for roaming network service numbers which
680      * cannot be replaced on the carrier side.
681      * <p>
682      * Individual entries have the format:
683      * [dialstring to replace]:[replacement]
684      */
685     public static final String KEY_DIAL_STRING_REPLACE_STRING_ARRAY =
686             "dial_string_replace_string_array";
687 
688     /**
689      * Flag specifying whether WFC over IMS supports the "wifi only" option.  If false, the wifi
690      * calling settings will not include an option for "wifi only".  If true, the wifi calling
691      * settings will include an option for "wifi only"
692      * <p>
693      * By default, it is assumed that WFC supports "wifi only".
694      */
695     public static final String KEY_CARRIER_WFC_SUPPORTS_WIFI_ONLY_BOOL =
696             "carrier_wfc_supports_wifi_only_bool";
697 
698     /**
699      * Default mode for WFC over IMS on home network:
700      * <ul>
701      *   <li>0: Wi-Fi only
702      *   <li>1: prefer mobile network
703      *   <li>2: prefer Wi-Fi
704      * </ul>
705      */
706     public static final String KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT =
707             "carrier_default_wfc_ims_mode_int";
708 
709     /**
710      * Default mode for WFC over IMS on roaming network.
711      * See {@link #KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT} for meaning of values.
712      */
713     public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT =
714             "carrier_default_wfc_ims_roaming_mode_int";
715 
716     /**
717      * Default WFC_IMS_enabled: true VoWiFi by default is on
718      *                          false VoWiFi by default is off
719      */
720     public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL =
721             "carrier_default_wfc_ims_enabled_bool";
722 
723     /**
724      * Default WFC_IMS_roaming_enabled: true VoWiFi roaming by default is on
725      *                                  false VoWiFi roaming by default is off
726      * @hide
727      */
728     public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL =
729             "carrier_default_wfc_ims_roaming_enabled_bool";
730 
731     /**
732      * Flag indicating whether failed calls due to no service should prompt the user to enable
733      * WIFI calling.  When {@code true}, if the user attempts to establish a call when there is no
734      * service available, they are connected to WIFI, and WIFI calling is disabled, a different
735      * call failure message will be used to encourage the user to enable WIFI calling.
736      * @hide
737      */
738     public static final String KEY_CARRIER_PROMOTE_WFC_ON_CALL_FAIL_BOOL =
739             "carrier_promote_wfc_on_call_fail_bool";
740 
741     /**
742      * Flag specifying whether provisioning is required for RCS.
743      */
744     public static final String KEY_CARRIER_RCS_PROVISIONING_REQUIRED_BOOL =
745             "carrier_rcs_provisioning_required_bool";
746 
747     /**
748      * Flag specifying whether provisioning is required for VoLTE, Video Telephony, and WiFi
749      * Calling.
750      */
751     public static final String KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL
752             = "carrier_volte_provisioning_required_bool";
753 
754     /**
755      * Flag indicating whether or not the IMS MmTel UT capability requires carrier provisioning
756      * before it can be set as enabled.
757      *
758      * If true, the UT capability will be set to false for the newly loaded subscription
759      * and will require the carrier provisioning app to set the persistent provisioning result.
760      * If false, the platform will not wait for provisioning status updates for the UT capability
761      * and enable the UT over IMS capability for the subscription when the subscription is loaded.
762      *
763      * The default value for this key is {@code false}.
764      */
765     public static final String KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL =
766             "carrier_ut_provisioning_required_bool";
767 
768     /**
769      * Flag indicating whether or not the carrier supports Supplementary Services over the UT
770      * interface for this subscription.
771      *
772      * If true, the device will use Supplementary Services over UT when provisioned (see
773      * {@link #KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL}). If false, this device will fallback to
774      * circuit switch for supplementary services and will disable this capability for IMS entirely.
775      *
776      * The default value for this key is {@code false}.
777      */
778     public static final String KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL =
779             "carrier_supports_ss_over_ut_bool";
780 
781     /**
782      * Flag specifying if WFC provisioning depends on VoLTE provisioning.
783      *
784      * {@code false}: default value; honor actual WFC provisioning state.
785      * {@code true}: when VoLTE is not provisioned, treat WFC as not provisioned; when VoLTE is
786      *               provisioned, honor actual WFC provisioning state.
787      *
788      * As of now, Verizon is the only carrier enforcing this dependency in their
789      * WFC awareness and activation requirements.
790      */
791     public static final String KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL
792             = "carrier_volte_override_wfc_provisioning_bool";
793 
794     /**
795      * Override the device's configuration for the cellular data service to use for this SIM card.
796      * @hide
797      */
798     public static final String KEY_CARRIER_DATA_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING
799             = "carrier_data_service_wwan_package_override_string";
800 
801     /**
802      * Override the device's configuration for the IWLAN data service to use for this SIM card.
803      * @hide
804      */
805     public static final String KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING
806             = "carrier_data_service_wlan_package_override_string";
807 
808     /**
809      * Override the device's configuration for the cellular data service class to use
810      * for this SIM card.
811      * @hide
812      */
813     public static final String KEY_CARRIER_DATA_SERVICE_WWAN_CLASS_OVERRIDE_STRING =
814             "carrier_data_service_wwan_class_override_string";
815 
816     /**
817      * Override the device's configuration for the IWLAN data service class to use
818      * for this SIM card.
819      * @hide
820      */
821     public static final String KEY_CARRIER_DATA_SERVICE_WLAN_CLASS_OVERRIDE_STRING =
822             "carrier_data_service_wlan_class_override_string";
823 
824     /** Flag specifying whether VoLTE TTY is supported. */
825     public static final String KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL
826             = "carrier_volte_tty_supported_bool";
827 
828     /**
829      * Flag specifying whether IMS service can be turned off. If false then the service will not be
830      * turned-off completely, but individual features can be disabled.
831      */
832     public static final String KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL
833             = "carrier_allow_turnoff_ims_bool";
834 
835     /**
836      * Flag specifying whether Generic Bootstrapping Architecture capable SIM is required for IMS.
837      */
838     public static final String KEY_CARRIER_IMS_GBA_REQUIRED_BOOL
839             = "carrier_ims_gba_required_bool";
840 
841     /**
842      * Flag specifying whether IMS instant lettering is available for the carrier.  {@code True} if
843      * instant lettering is available for the carrier, {@code false} otherwise.
844      */
845     public static final String KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL =
846             "carrier_instant_lettering_available_bool";
847 
848     /*
849      * Flag specifying whether IMS should be the first phone attempted for E911 even if the
850      * phone is not in service.
851      */
852     public static final String KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL
853             = "carrier_use_ims_first_for_emergency_bool";
854 
855     /**
856      * When IMS instant lettering is available for a carrier (see
857      * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines the list of characters
858      * which may not be contained in messages.  Should be specified as a regular expression suitable
859      * for use with {@link String#matches(String)}.
860      */
861     public static final String KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING =
862             "carrier_instant_lettering_invalid_chars_string";
863 
864     /**
865      * When IMS instant lettering is available for a carrier (see
866      * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines a list of characters which
867      * must be escaped with a backslash '\' character.  Should be specified as a string containing
868      * the characters to be escaped.  For example to escape quote and backslash the string would be
869      * a quote and a backslash.
870      */
871     public static final String KEY_CARRIER_INSTANT_LETTERING_ESCAPED_CHARS_STRING =
872             "carrier_instant_lettering_escaped_chars_string";
873 
874     /**
875      * When IMS instant lettering is available for a carrier (see
876      * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines the character encoding
877      * which will be used when determining the length of messages.  Used in the InCall UI to limit
878      * the number of characters the user may type.  If empty-string, the instant lettering
879      * message size limit will be enforced on a 1:1 basis.  That is, each character will count
880      * towards the messages size limit as a single bye.  If a character encoding is specified, the
881      * message size limit will be based on the number of bytes in the message per the specified
882      * encoding.
883      */
884     public static final String KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING =
885             "carrier_instant_lettering_encoding_string";
886 
887     /**
888      * When IMS instant lettering is available for a carrier (see
889      * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), the length limit for messages.  Used
890      * in the InCall UI to ensure the user cannot enter more characters than allowed by the carrier.
891      * See also {@link #KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING} for more information on how
892      * the length of the message is calculated.
893      */
894     public static final String KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT =
895             "carrier_instant_lettering_length_limit_int";
896 
897     /**
898      * If Voice Radio Technology is RIL_RADIO_TECHNOLOGY_LTE:14 or RIL_RADIO_TECHNOLOGY_UNKNOWN:0
899      * this is the value that should be used instead. A configuration value of
900      * RIL_RADIO_TECHNOLOGY_UNKNOWN:0 means there is no replacement value and that the default
901      * assumption for phone type (GSM) should be used.
902      */
903     public static final String KEY_VOLTE_REPLACEMENT_RAT_INT = "volte_replacement_rat_int";
904 
905     /**
906      * The default sim call manager to use when the default dialer doesn't implement one. A sim call
907      * manager can control and route outgoing and incoming phone calls, even if they're placed
908      * using another connection service (PSTN, for example).
909      */
910     public static final String KEY_DEFAULT_SIM_CALL_MANAGER_STRING = "default_sim_call_manager_string";
911 
912     /**
913      * The default flag specifying whether ETWS/CMAS test setting is forcibly disabled in
914      * Settings->More->Emergency broadcasts menu even though developer options is turned on.
915      * @deprecated Use {@code com.android.cellbroadcastreceiver.CellBroadcastReceiver} resource
916      * {@code show_test_settings} to control whether to show test alert settings or not.
917      */
918     @Deprecated
919     public static final String KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL =
920             "carrier_force_disable_etws_cmas_test_bool";
921 
922     /**
923      * The default flag specifying whether "Allow alerts" option will be always shown in
924      * emergency alerts settings regardless developer options is turned on or not.
925      *
926      * @deprecated The allow alerts option is always shown now. No longer need a config for that.
927      */
928     @Deprecated
929     public static final String KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL =
930             "always_show_emergency_alert_onoff_bool";
931 
932     /**
933      * The data call retry configuration for different types of APN.
934      * @hide
935      */
936     public static final String KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS =
937             "carrier_data_call_retry_config_strings";
938 
939     /**
940      * Delay in milliseconds between trying APN from the pool
941      * @hide
942      */
943     public static final String KEY_CARRIER_DATA_CALL_APN_DELAY_DEFAULT_LONG =
944             "carrier_data_call_apn_delay_default_long";
945 
946     /**
947      * Faster delay in milliseconds between trying APN from the pool
948      * @hide
949      */
950     public static final String KEY_CARRIER_DATA_CALL_APN_DELAY_FASTER_LONG =
951             "carrier_data_call_apn_delay_faster_long";
952 
953     /**
954      * Delay in milliseconds for retrying APN after disconnect
955      * @hide
956      */
957     public static final String KEY_CARRIER_DATA_CALL_APN_RETRY_AFTER_DISCONNECT_LONG =
958             "carrier_data_call_apn_retry_after_disconnect_long";
959 
960     /**
961      * Data call setup permanent failure causes by the carrier
962      */
963     public static final String KEY_CARRIER_DATA_CALL_PERMANENT_FAILURE_STRINGS =
964             "carrier_data_call_permanent_failure_strings";
965 
966     /**
967      * Default APN types that are metered by the carrier
968      * @hide
969      */
970     public static final String KEY_CARRIER_METERED_APN_TYPES_STRINGS =
971             "carrier_metered_apn_types_strings";
972     /**
973      * Default APN types that are roaming-metered by the carrier
974      * @hide
975      */
976     public static final String KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS =
977             "carrier_metered_roaming_apn_types_strings";
978 
979     /**
980      * APN types that are not allowed on cellular
981      * @hide
982      */
983     public static final String KEY_CARRIER_WWAN_DISALLOWED_APN_TYPES_STRING_ARRAY =
984             "carrier_wwan_disallowed_apn_types_string_array";
985 
986     /**
987      * APN types that are not allowed on IWLAN
988      * @hide
989      */
990     public static final String KEY_CARRIER_WLAN_DISALLOWED_APN_TYPES_STRING_ARRAY =
991             "carrier_wlan_disallowed_apn_types_string_array";
992     /**
993      * CDMA carrier ERI (Enhanced Roaming Indicator) file name
994      * @hide
995      */
996     public static final String KEY_CARRIER_ERI_FILE_NAME_STRING =
997             "carrier_eri_file_name_string";
998 
999     /* The following 3 fields are related to carrier visual voicemail. */
1000 
1001     /**
1002      * The carrier number mobile outgoing (MO) sms messages are sent to.
1003      */
1004     public static final String KEY_VVM_DESTINATION_NUMBER_STRING = "vvm_destination_number_string";
1005 
1006     /**
1007      * The port through which the mobile outgoing (MO) sms messages are sent through.
1008      */
1009     public static final String KEY_VVM_PORT_NUMBER_INT = "vvm_port_number_int";
1010 
1011     /**
1012      * The type of visual voicemail protocol the carrier adheres to. See {@link TelephonyManager}
1013      * for possible values. For example {@link TelephonyManager#VVM_TYPE_OMTP}.
1014      */
1015     public static final String KEY_VVM_TYPE_STRING = "vvm_type_string";
1016 
1017     /**
1018      * Whether cellular data is required to access visual voicemail.
1019      */
1020     public static final String KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL =
1021         "vvm_cellular_data_required_bool";
1022 
1023     /**
1024      * The default OMTP visual voicemail client prefix to use. Defaulted to "//VVM"
1025      */
1026     public static final String KEY_VVM_CLIENT_PREFIX_STRING =
1027             "vvm_client_prefix_string";
1028 
1029     /**
1030      * Whether to use SSL to connect to the visual voicemail IMAP server. Defaulted to false.
1031      */
1032     public static final String KEY_VVM_SSL_ENABLED_BOOL = "vvm_ssl_enabled_bool";
1033 
1034     /**
1035      * A set of capabilities that should not be used even if it is reported by the visual voicemail
1036      * IMAP CAPABILITY command.
1037      */
1038     public static final String KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY =
1039             "vvm_disabled_capabilities_string_array";
1040 
1041     /**
1042      * Whether legacy mode should be used when the visual voicemail client is disabled.
1043      *
1044      * <p>Legacy mode is a mode that on the carrier side visual voicemail is still activated, but on
1045      * the client side all network operations are disabled. SMSs are still monitored so a new
1046      * message SYNC SMS will be translated to show a message waiting indicator, like traditional
1047      * voicemails.
1048      *
1049      * <p>This is for carriers that does not support VVM deactivation so voicemail can continue to
1050      * function without the data cost.
1051      */
1052     public static final String KEY_VVM_LEGACY_MODE_ENABLED_BOOL =
1053             "vvm_legacy_mode_enabled_bool";
1054 
1055     /**
1056      * Whether to prefetch audio data on new voicemail arrival, defaulted to true.
1057      */
1058     public static final String KEY_VVM_PREFETCH_BOOL = "vvm_prefetch_bool";
1059 
1060     /**
1061      * The package name of the carrier's visual voicemail app to ensure that dialer visual voicemail
1062      * and carrier visual voicemail are not active at the same time.
1063      *
1064      * @deprecated use {@link #KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY}.
1065      */
1066     @Deprecated
1067     public static final String KEY_CARRIER_VVM_PACKAGE_NAME_STRING = "carrier_vvm_package_name_string";
1068 
1069     /**
1070      * A list of the carrier's visual voicemail app package names to ensure that dialer visual
1071      * voicemail and carrier visual voicemail are not active at the same time.
1072      */
1073     public static final String KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY =
1074             "carrier_vvm_package_name_string_array";
1075 
1076     /**
1077      * Flag specifying whether ICCID is showed in SIM Status screen, default to false.
1078      */
1079     public static final String KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL = "show_iccid_in_sim_status_bool";
1080 
1081     /**
1082      * Flag specifying whether the {@link android.telephony.SignalStrength} is shown in the SIM
1083      * Status screen. The default value is true.
1084      */
1085     public static final String KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL =
1086         "show_signal_strength_in_sim_status_bool";
1087 
1088     /**
1089      * Flag specifying whether an additional (client initiated) intent needs to be sent on System
1090      * update
1091      */
1092     public static final String KEY_CI_ACTION_ON_SYS_UPDATE_BOOL = "ci_action_on_sys_update_bool";
1093 
1094     /**
1095      * Intent to be sent for the additional action on System update
1096      */
1097     public static final String KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING =
1098             "ci_action_on_sys_update_intent_string";
1099 
1100     /**
1101      * Extra to be included in the intent sent for additional action on System update
1102      */
1103     public static final String KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING =
1104             "ci_action_on_sys_update_extra_string";
1105 
1106     /**
1107      * Value of extra included in intent sent for additional action on System update
1108      */
1109     public static final String KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING =
1110             "ci_action_on_sys_update_extra_val_string";
1111 
1112     /**
1113      * Specifies the amount of gap to be added in millis between postdial DTMF tones. When a
1114      * non-zero value is specified, the UE shall wait for the specified amount of time before it
1115      * sends out successive DTMF tones on the network.
1116      */
1117     public static final String KEY_GSM_DTMF_TONE_DELAY_INT = "gsm_dtmf_tone_delay_int";
1118 
1119     /**
1120      * Specifies the amount of gap to be added in millis between DTMF tones. When a non-zero value
1121      * is specified, the UE shall wait for the specified amount of time before it sends out
1122      * successive DTMF tones on the network.
1123      */
1124     public static final String KEY_IMS_DTMF_TONE_DELAY_INT = "ims_dtmf_tone_delay_int";
1125 
1126     /**
1127      * Specifies the amount of gap to be added in millis between postdial DTMF tones. When a
1128      * non-zero value is specified, the UE shall wait for the specified amount of time before it
1129      * sends out successive DTMF tones on the network.
1130      */
1131     public static final String KEY_CDMA_DTMF_TONE_DELAY_INT = "cdma_dtmf_tone_delay_int";
1132 
1133     /**
1134      * Some carriers will send call forwarding responses for voicemail in a format that is not 3gpp
1135      * compliant, which causes issues during parsing. This causes the
1136      * {@link com.android.internal.telephony.CallForwardInfo#number} to contain non-numerical
1137      * characters instead of a number.
1138      *
1139      * If true, we will detect the non-numerical characters and replace them with "Voicemail".
1140      * @hide
1141      */
1142     public static final String KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL =
1143             "call_forwarding_map_non_number_to_voicemail_bool";
1144 
1145     /**
1146      * When {@code true}, the phone will always tell the IMS stack to keep RTT enabled and
1147      * determine on a per-call basis (based on extras from the dialer app) whether a call should be
1148      * an RTT call or not.
1149      *
1150      * When {@code false}, the old behavior is used, where the toggle in accessibility settings is
1151      * used to set the IMS stack's RTT enabled state.
1152      */
1153     public static final String KEY_IGNORE_RTT_MODE_SETTING_BOOL =
1154             "ignore_rtt_mode_setting_bool";
1155 
1156 
1157     /**
1158      * Determines whether adhoc conference calls are supported by a carrier.  When {@code true},
1159      * adhoc conference calling is supported, {@code false otherwise}.
1160      */
1161     public static final String KEY_SUPPORT_ADHOC_CONFERENCE_CALLS_BOOL =
1162             "support_adhoc_conference_calls_bool";
1163 
1164     /**
1165      * Determines whether conference participants can be added to existing call to form an adhoc
1166      * conference call (in contrast to merging calls to form a conference).  When {@code true},
1167      * adding conference participants to existing call is supported, {@code false otherwise}.
1168      */
1169     public static final String KEY_SUPPORT_ADD_CONFERENCE_PARTICIPANTS_BOOL =
1170             "support_add_conference_participants_bool";
1171 
1172     /**
1173      * Determines whether conference calls are supported by a carrier.  When {@code true},
1174      * conference calling is supported, {@code false otherwise}.
1175      */
1176     public static final String KEY_SUPPORT_CONFERENCE_CALL_BOOL = "support_conference_call_bool";
1177 
1178     /**
1179      * Determines whether a maximum size limit for IMS conference calls is enforced on the device.
1180      * When {@code true}, IMS conference calls will be limited to at most
1181      * {@link #KEY_IMS_CONFERENCE_SIZE_LIMIT_INT} participants.  When {@code false}, no attempt is made
1182      * to limit the number of participants in a conference (the carrier will raise an error when an
1183      * attempt is made to merge too many participants into a conference).
1184      */
1185     public static final String KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL =
1186             "is_ims_conference_size_enforced_bool";
1187 
1188     /**
1189      * Determines the maximum number of participants the carrier supports for a conference call.
1190      * This number is exclusive of the current device.  A conference between 3 devices, for example,
1191      * would have a size limit of 2 participants.
1192      * Enforced when {@link #KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL} is {@code true}.
1193      */
1194     public static final String KEY_IMS_CONFERENCE_SIZE_LIMIT_INT = "ims_conference_size_limit_int";
1195 
1196     /**
1197      * Determines whether manage IMS conference calls is supported by a carrier.  When {@code true},
1198      * manage IMS conference call is supported, {@code false otherwise}.
1199      * @hide
1200      */
1201     public static final String KEY_SUPPORT_MANAGE_IMS_CONFERENCE_CALL_BOOL =
1202             "support_manage_ims_conference_call_bool";
1203 
1204     /**
1205      * Determines whether the IMS conference merge process supports and returns its participants
1206      * data. When {@code true}, on merge complete, conference call would have a list of its
1207      * participants returned in XML format, {@code false otherwise}.
1208      */
1209     public static final String KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL =
1210             "support_ims_conference_event_package_bool";
1211 
1212     /**
1213      * Determines whether processing of conference event package data received on a device other
1214      * than the conference host is supported.
1215      * <p>
1216      * When a device A merges calls B and C into a conference it is considered the conference host
1217      * and B and C are considered the conference peers.
1218      * <p>
1219      * When {@code true}, the conference peer will display the conference state if it receives
1220      * conference event package data from the network.  When {@code false}, the conference peer will
1221      * ignore conference event package data received from the network.
1222      * @hide
1223      */
1224     public static final String KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_ON_PEER_BOOL =
1225             "support_ims_conference_event_package_on_peer_bool";
1226 
1227     /**
1228      * Determines whether High Definition audio property is displayed in the dialer UI.
1229      * If {@code false}, remove the HD audio property from the connection so that HD audio related
1230      * UI is not displayed. If {@code true}, keep HD audio property as it is configured.
1231      */
1232     public static final String KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL =
1233             "display_hd_audio_property_bool";
1234 
1235     /**
1236      * Determines whether IMS conference calls are supported by a carrier.  When {@code true},
1237      * IMS conference calling is supported, {@code false} otherwise.
1238      * @hide
1239      */
1240     public static final String KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL =
1241             "support_ims_conference_call_bool";
1242 
1243     /**
1244      * Determines whether the device will locally disconnect an IMS conference when the participant
1245      * count drops to zero.  When {@code true}, it is assumed the carrier does NOT disconnect a
1246      * conference when the participant count drops to zero and that the device must do this by
1247      * disconnecting the conference locally.  When {@code false}, it is assumed that the carrier
1248      * is responsible for disconnecting the conference when there are no longer any participants
1249      * present.
1250      * <p>
1251      * Note: both {@link #KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL} and
1252      * {@link #KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL} must be true for this configuration to
1253      * have any effect.
1254      * <p>
1255      * Defaults to {@code false}, meaning the carrier network is responsible for disconnecting an
1256      * empty IMS conference.
1257      * @hide
1258      */
1259     public static final String KEY_LOCAL_DISCONNECT_EMPTY_IMS_CONFERENCE_BOOL =
1260             "local_disconnect_empty_ims_conference_bool";
1261 
1262     /**
1263      * Determines whether video conference calls are supported by a carrier.  When {@code true},
1264      * video calls can be merged into conference calls, {@code false} otherwiwse.
1265      * <p>
1266      * Note: even if video conference calls are not supported, audio calls may be merged into a
1267      * conference if {@link #KEY_SUPPORT_CONFERENCE_CALL_BOOL} is {@code true}.
1268      * @hide
1269      */
1270     public static final String KEY_SUPPORT_VIDEO_CONFERENCE_CALL_BOOL =
1271             "support_video_conference_call_bool";
1272 
1273     /**
1274      * Determine whether user can toggle Enhanced 4G LTE Mode in Settings.
1275      */
1276     public static final String KEY_EDITABLE_ENHANCED_4G_LTE_BOOL = "editable_enhanced_4g_lte_bool";
1277 
1278     /**
1279      * Determines whether the Enhanced 4G LTE toggle will be shown in the settings. When this
1280      * option is {@code true}, the toggle will be hidden regardless of whether the device and
1281      * carrier supports 4G LTE or not.
1282      */
1283     public static final String KEY_HIDE_ENHANCED_4G_LTE_BOOL = "hide_enhanced_4g_lte_bool";
1284 
1285     /**
1286      * Sets the default state for the "Enhanced 4G LTE" or "Advanced Calling" mode toggle set by the
1287      * user. When this is {@code true}, this mode by default is on, otherwise if {@code false},
1288      * this mode by default is off.
1289      */
1290     public static final String KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL =
1291             "enhanced_4g_lte_on_by_default_bool";
1292 
1293     /**
1294      * Determine whether IMS apn can be shown.
1295      */
1296     public static final String KEY_HIDE_IMS_APN_BOOL = "hide_ims_apn_bool";
1297 
1298     /**
1299      * Determine whether preferred network type can be shown.
1300      */
1301     public static final String KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL = "hide_preferred_network_type_bool";
1302 
1303     /**
1304      * String array for package names that need to be enabled for this carrier.
1305      * If user has explicitly disabled some packages in the list, won't re-enable.
1306      * Other carrier specific apps which are not in this list may be disabled for current carrier,
1307      * and only be re-enabled when this config for another carrier includes it.
1308      *
1309      * @hide
1310      */
1311     public static final String KEY_ENABLE_APPS_STRING_ARRAY = "enable_apps_string_array";
1312 
1313     /**
1314      * Determine whether user can switch Wi-Fi preferred or Cellular preferred
1315      * in calling preference.
1316      * Some operators support Wi-Fi Calling only, not VoLTE.
1317      * They don't need "Cellular preferred" option.
1318      * In this case, set uneditable attribute for preferred preference.
1319      */
1320     public static final String KEY_EDITABLE_WFC_MODE_BOOL = "editable_wfc_mode_bool";
1321 
1322     /**
1323      * Flag to indicate if Wi-Fi needs to be disabled in ECBM.
1324      */
1325     public static final String KEY_CONFIG_WIFI_DISABLE_IN_ECBM = "config_wifi_disable_in_ecbm";
1326 
1327     /**
1328      * List operator-specific error codes and indices of corresponding error strings in
1329      * wfcOperatorErrorAlertMessages and wfcOperatorErrorNotificationMessages.
1330      *
1331      * Example: "REG09|0" specifies error code "REG09" and index "0". This index will be
1332      * used to find alert and notification messages in wfcOperatorErrorAlertMessages and
1333      * wfcOperatorErrorNotificationMessages.
1334      *
1335      * @hide
1336      */
1337     public static final String KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY =
1338             "wfc_operator_error_codes_string_array";
1339 
1340     /**
1341      * Indexes of SPN format strings in wfcSpnFormats.
1342      *
1343      * <p>Available options are:
1344      * <ul>
1345      * <li>  0: %s</li>
1346      * <li>  1: %s Wi-Fi Calling</li>
1347      * <li>  2: WLAN Call</li>
1348      * <li>  3: %s WLAN Call</li>
1349      * <li>  4: %s Wi-Fi</li>
1350      * <li>  5: WiFi Calling | %s</li>
1351      * <li>  6: %s VoWifi</li>
1352      * <li>  7: Wi-Fi Calling</li>
1353      * <li>  8: Wi-Fi</li>
1354      * <li>  9: WiFi Calling</li>
1355      * <li> 10: VoWifi</li>
1356      * <li> 11: %s WiFi Calling</li>
1357      * @hide
1358      */
1359     public static final String KEY_WFC_SPN_FORMAT_IDX_INT = "wfc_spn_format_idx_int";
1360 
1361     /**
1362      * Indexes of data SPN format strings in wfcSpnFormats.
1363      *
1364      * @see KEY_WFC_SPN_FORMAT_IDX_INT for available options.
1365      * @hide
1366      */
1367     public static final String KEY_WFC_DATA_SPN_FORMAT_IDX_INT = "wfc_data_spn_format_idx_int";
1368 
1369     /**
1370      * Indexes of SPN format strings in wfcSpnFormats used during flight mode.
1371      *
1372      * Set to -1 to use the value from KEY_WFC_SPN_FORMAT_IDX_INT also in this case.
1373      * @see KEY_WFC_SPN_FORMAT_IDX_INT for other available options.
1374      * @hide
1375      */
1376     public static final String KEY_WFC_FLIGHT_MODE_SPN_FORMAT_IDX_INT =
1377             "wfc_flight_mode_spn_format_idx_int";
1378 
1379     /**
1380      * Use root locale when reading wfcSpnFormats.
1381      *
1382      * If true, then the root locale will always be used when reading wfcSpnFormats. This means the
1383      * non localized version of wfcSpnFormats will be used.
1384      * @hide
1385      */
1386     public static final String KEY_WFC_SPN_USE_ROOT_LOCALE = "wfc_spn_use_root_locale";
1387 
1388     /**
1389      * The Component Name of the activity that can setup the emergency address for WiFi Calling
1390      * as per carrier requirement.
1391      */
1392      public static final String KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING =
1393             "wfc_emergency_address_carrier_app_string";
1394 
1395     /**
1396      * Unconditionally override the carrier name string using #KEY_CARRIER_NAME_STRING.
1397      *
1398      * If true, then the carrier name string will be #KEY_CARRIER_NAME_STRING, unconditionally.
1399      *
1400      * <p>If false, then the override will be performed conditionally and the
1401      * #KEY_CARRIER_NAME_STRING will have the lowest-precedence; it will only be used in the event
1402      * that the name string would otherwise be empty, allowing it to serve as a last-resort. If
1403      * used, this value functions in place of the SPN on any/all ICC records for the corresponding
1404      * subscription.
1405      */
1406     public static final String KEY_CARRIER_NAME_OVERRIDE_BOOL = "carrier_name_override_bool";
1407 
1408     /**
1409      * String to identify carrier name in CarrierConfig app. This string overrides SPN if
1410      * #KEY_CARRIER_NAME_OVERRIDE_BOOL is true; otherwise, it will be used if its value is provided
1411      * and SPN is unavailable
1412      */
1413     public static final String KEY_CARRIER_NAME_STRING = "carrier_name_string";
1414 
1415     /**
1416      * To override wifi calling's carrier name string using ef_pnn from sim card when SPN in empty.
1417      *
1418      * @hide
1419      */
1420     public static final String KEY_WFC_CARRIER_NAME_OVERRIDE_BY_PNN_BOOL =
1421             "wfc_carrier_name_override_by_pnn_bool";
1422 
1423     /**
1424      * Override the SPN Display Condition 2 integer bits (lsb). B2, B1 is the last two bits of the
1425      * spn display condition coding.
1426      *
1427      * The default value -1 mean this field is not set.
1428      *
1429      * B1 = 0: display of registered PLMN name not required when registered PLMN is either HPLMN
1430      * or a PLMN in the service provider PLMN list (see EF_SPDI).
1431      * B1 = 1: display of registered PLMN name required when registered PLMN is either HPLMN or a
1432      * PLMN in the service provider PLMN list(see EF_SPDI).
1433      * B2 = 0: display of the service provider name is required when registered PLMN is neither
1434      * HPLMN nor a PLMN in the service provider PLMN list(see EF_SPDI).
1435      * B2 = 1: display of the service provider name is not required when registered PLMN is neither
1436      * HPLMN nor a PLMN in the service provider PLMN list(see EF_SPDI).
1437      *
1438      * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.12 EF_SPN.
1439      * @hide
1440      */
1441     public static final String KEY_SPN_DISPLAY_CONDITION_OVERRIDE_INT =
1442             "spn_display_condition_override_int";
1443 
1444     /**
1445      * Override the SPDI - an array of PLMN(MCC + MNC) strings.
1446      *
1447      * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.66 EF_SPDI.
1448      * @hide
1449      */
1450     public static final String KEY_SPDI_OVERRIDE_STRING_ARRAY = "spdi_override_string_array";
1451 
1452     /**
1453      * Override the EHPLMNs - an array of PLMN(MCC + MNC) strings.
1454      *
1455      * To allow provision for multiple HPLMN codes, PLMN codes that are present within this list
1456      * shall replace the HPLMN code derived from the IMSI for PLMN selection purposes.
1457      *
1458      * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.84 EF_EHPLMN
1459      * Reference: 3GPP TS 23.122 v15.6.0 Section 1.2 Equivalent HPLMN list
1460      * @hide
1461      */
1462     public static final String KEY_EHPLMN_OVERRIDE_STRING_ARRAY = "ehplmn_override_string_array";
1463 
1464     /**
1465      * Override the PNN - a string array of comma-separated alpha long and short names:
1466      * "alpha_long1,alpha_short1".
1467      *
1468      * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.58 EF_PNN.
1469      * @hide
1470      */
1471     public static final String KEY_PNN_OVERRIDE_STRING_ARRAY = "pnn_override_string_array";
1472 
1473     /**
1474      * A string array of OPL records, each with comma-delimited data fields as follows:
1475      * "plmn1,lactac_start,lactac_end,index".
1476      *
1477      * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.59 EF_OPL.
1478      * @hide
1479      */
1480     public static final String KEY_OPL_OVERRIDE_STRING_ARRAY = "opl_override_opl_string_array";
1481 
1482     /**
1483      * Allow ERI rules to select a carrier name display string when using 3gpp2 access technologies.
1484      * If this bit is not set, the carrier name display string will be selected from the carrier
1485      * display name resolver which doesn't apply the ERI rules.
1486      *
1487      * @hide
1488      */
1489     public static final String KEY_ALLOW_ERI_BOOL = "allow_cdma_eri_bool";
1490 
1491     /**
1492      * If true, use the carrier display name(SPN and PLMN) from the carrier display name resolver.
1493      *
1494      * @hide
1495      */
1496     public static final String KEY_ENABLE_CARRIER_DISPLAY_NAME_RESOLVER_BOOL =
1497             "enable_carrier_display_name_resolver_bool";
1498 
1499     /**
1500      * String to override sim country iso.
1501      * Sim country iso is based on sim MCC which is coarse and doesn't work with dual IMSI SIM where
1502      * a SIM can have multiple MCC from different countries.
1503      * Instead, each sim carrier should have a single country code, apply per carrier based iso
1504      * code as an override. The overridden value can be read from
1505      * {@link TelephonyManager#getSimCountryIso()} and {@link SubscriptionInfo#getCountryIso()}
1506      *
1507      * @hide
1508      */
1509     public static final String KEY_SIM_COUNTRY_ISO_OVERRIDE_STRING =
1510             "sim_country_iso_override_string";
1511 
1512    /**
1513     * The Component Name of a carrier-provided CallScreeningService implementation. Telecom will
1514     * bind to {@link android.telecom.CallScreeningService} for ALL incoming calls and provide
1515     * the carrier
1516     * CallScreeningService with the opportunity to allow or block calls.
1517     * <p>
1518     * The String includes the package name/the class name.
1519     * Example:
1520     * <item>com.android.carrier/com.android.carrier.callscreeningserviceimpl</item>
1521     * <p>
1522     * Using {@link ComponentName#flattenToString()} to convert a ComponentName object to String.
1523     * Using {@link ComponentName#unflattenFromString(String)} to convert a String object to a
1524     * ComponentName.
1525     */
1526     public static final String KEY_CARRIER_CALL_SCREENING_APP_STRING = "call_screening_app";
1527 
1528     /**
1529      * Override the registered PLMN name using #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING.
1530      *
1531      * If true, then the registered PLMN name (only for CDMA/CDMA-LTE and only when not roaming)
1532      * will be #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING. If false, or if phone type is not
1533      * CDMA/CDMA-LTE or if roaming, then #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING will be ignored.
1534      * @hide
1535      */
1536     public static final String KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL =
1537             "cdma_home_registered_plmn_name_override_bool";
1538 
1539     /**
1540      * String to identify registered PLMN name in CarrierConfig app. This string overrides
1541      * registered PLMN name if #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL is true, phone type
1542      * is CDMA/CDMA-LTE and device is not in roaming state; otherwise, it will be ignored.
1543      * @hide
1544      */
1545     public static final String KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING =
1546             "cdma_home_registered_plmn_name_string";
1547 
1548     /**
1549      * If this is true, the SIM card (through Customer Service Profile EF file) will be able to
1550      * prevent manual operator selection. If false, this SIM setting will be ignored and manual
1551      * operator selection will always be available. See CPHS4_2.WW6, CPHS B.4.7.1 for more
1552      * information
1553      */
1554     public static final String KEY_CSP_ENABLED_BOOL = "csp_enabled_bool";
1555 
1556     /**
1557      * Allow user to add APNs
1558      */
1559     public static final String KEY_ALLOW_ADDING_APNS_BOOL = "allow_adding_apns_bool";
1560 
1561     /**
1562      * APN types that user is not allowed to modify.
1563      */
1564     public static final String KEY_READ_ONLY_APN_TYPES_STRING_ARRAY =
1565             "read_only_apn_types_string_array";
1566 
1567     /**
1568      * APN fields that user is not allowed to modify.
1569      */
1570     public static final String KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY =
1571             "read_only_apn_fields_string_array";
1572 
1573     /**
1574      * Default value of APN types field if not specified by user when adding/modifying an APN.
1575      */
1576     public static final String KEY_APN_SETTINGS_DEFAULT_APN_TYPES_STRING_ARRAY =
1577             "apn_settings_default_apn_types_string_array";
1578 
1579     /**
1580      * Boolean indicating if intent for emergency call state changes should be broadcast
1581      * @hide
1582      */
1583     public static final String KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL =
1584             "broadcast_emergency_call_state_changes_bool";
1585 
1586     /**
1587       * Indicates whether STK LAUNCH_BROWSER command is disabled.
1588       * If {@code true}, then the browser will not be launched
1589       * on UI for the LAUNCH_BROWSER STK command.
1590       * @hide
1591       */
1592     public static final String KEY_STK_DISABLE_LAUNCH_BROWSER_BOOL =
1593             "stk_disable_launch_browser_bool";
1594 
1595     /**
1596       * Boolean indicating if the helper text for STK GET INKEY/INPUT commands with the digit only
1597       * mode is displayed on the input screen.
1598       * The helper text is dispayed regardless of the input mode, if {@code false}.
1599       * @hide
1600       */
1601     public static final String KEY_HIDE_DIGITS_HELPER_TEXT_ON_STK_INPUT_SCREEN_BOOL =
1602             "hide_digits_helper_text_on_stk_input_screen_bool";
1603 
1604     /**
1605      * Boolean indicating if show data RAT icon on status bar even when data is disabled.
1606      */
1607     public static final String KEY_ALWAYS_SHOW_DATA_RAT_ICON_BOOL =
1608             "always_show_data_rat_icon_bool";
1609 
1610     /**
1611      * Boolean indicating if default data account should show LTE or 4G icon.
1612      */
1613     public static final String KEY_SHOW_4G_FOR_LTE_DATA_ICON_BOOL =
1614             "show_4g_for_lte_data_icon_bool";
1615 
1616     /**
1617      * Boolean indicating if default data account should show 4G icon when in 3G.
1618      */
1619     public static final String KEY_SHOW_4G_FOR_3G_DATA_ICON_BOOL =
1620             "show_4g_for_3g_data_icon_bool";
1621 
1622     /**
1623      * Boolean indicating if LTE+ icon should be shown if available.
1624      */
1625     public static final String KEY_HIDE_LTE_PLUS_DATA_ICON_BOOL =
1626             "hide_lte_plus_data_icon_bool";
1627 
1628     /**
1629      * The string is used to filter redundant string from PLMN Network Name that's supplied by
1630      * specific carrier.
1631      *
1632      * @hide
1633      */
1634     public static final String KEY_OPERATOR_NAME_FILTER_PATTERN_STRING =
1635             "operator_name_filter_pattern_string";
1636 
1637     /**
1638      * The string is used to compare with operator name.
1639      * If it matches the pattern then show specific data icon.
1640      * @hide
1641      */
1642     public static final String KEY_SHOW_CARRIER_DATA_ICON_PATTERN_STRING =
1643             "show_carrier_data_icon_pattern_string";
1644 
1645     /**
1646      * Boolean to decide whether to show precise call failed cause to user
1647      * @hide
1648      */
1649     public static final String KEY_SHOW_PRECISE_FAILED_CAUSE_BOOL =
1650             "show_precise_failed_cause_bool";
1651 
1652     /**
1653      * Boolean to decide whether NR is enabled.
1654      * @hide
1655      */
1656     public static final String KEY_NR_ENABLED_BOOL = "nr_enabled_bool";
1657 
1658     /**
1659      * Boolean to decide whether LTE is enabled.
1660      */
1661     public static final String KEY_LTE_ENABLED_BOOL = "lte_enabled_bool";
1662 
1663     /**
1664      * Boolean to decide whether TD-SCDMA is supported.
1665      */
1666     public static final String KEY_SUPPORT_TDSCDMA_BOOL = "support_tdscdma_bool";
1667 
1668     /**
1669      * A list of mcc/mnc that support TD-SCDMA for device when connect to the roaming network.
1670      */
1671     public static final String KEY_SUPPORT_TDSCDMA_ROAMING_NETWORKS_STRING_ARRAY =
1672             "support_tdscdma_roaming_networks_string_array";
1673 
1674     /**
1675      * Boolean to decide whether world mode is enabled.
1676      */
1677     public static final String KEY_WORLD_MODE_ENABLED_BOOL = "world_mode_enabled_bool";
1678 
1679     /**
1680      * Flatten {@link android.content.ComponentName} of the carrier's settings activity.
1681      */
1682     public static final String KEY_CARRIER_SETTINGS_ACTIVITY_COMPONENT_NAME_STRING =
1683             "carrier_settings_activity_component_name_string";
1684 
1685     // These variables are used by the MMS service and exposed through another API,
1686     // SmsManager. The variable names and string values are copied from there.
1687     public static final String KEY_MMS_ALIAS_ENABLED_BOOL = "aliasEnabled";
1688     public static final String KEY_MMS_ALLOW_ATTACH_AUDIO_BOOL = "allowAttachAudio";
1689     public static final String KEY_MMS_APPEND_TRANSACTION_ID_BOOL = "enabledTransID";
1690     public static final String KEY_MMS_GROUP_MMS_ENABLED_BOOL = "enableGroupMms";
1691     public static final String KEY_MMS_MMS_DELIVERY_REPORT_ENABLED_BOOL = "enableMMSDeliveryReports";
1692     public static final String KEY_MMS_MMS_ENABLED_BOOL = "enabledMMS";
1693     public static final String KEY_MMS_MMS_READ_REPORT_ENABLED_BOOL = "enableMMSReadReports";
1694     public static final String KEY_MMS_MULTIPART_SMS_ENABLED_BOOL = "enableMultipartSMS";
1695     public static final String KEY_MMS_NOTIFY_WAP_MMSC_ENABLED_BOOL = "enabledNotifyWapMMSC";
1696     public static final String KEY_MMS_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES_BOOL = "sendMultipartSmsAsSeparateMessages";
1697     public static final String KEY_MMS_SHOW_CELL_BROADCAST_APP_LINKS_BOOL = "config_cellBroadcastAppLinks";
1698     public static final String KEY_MMS_SMS_DELIVERY_REPORT_ENABLED_BOOL = "enableSMSDeliveryReports";
1699     public static final String KEY_MMS_SUPPORT_HTTP_CHARSET_HEADER_BOOL = "supportHttpCharsetHeader";
1700     public static final String KEY_MMS_SUPPORT_MMS_CONTENT_DISPOSITION_BOOL = "supportMmsContentDisposition";
1701     public static final String KEY_MMS_ALIAS_MAX_CHARS_INT = "aliasMaxChars";
1702     public static final String KEY_MMS_ALIAS_MIN_CHARS_INT = "aliasMinChars";
1703     public static final String KEY_MMS_HTTP_SOCKET_TIMEOUT_INT = "httpSocketTimeout";
1704     public static final String KEY_MMS_MAX_IMAGE_HEIGHT_INT = "maxImageHeight";
1705     public static final String KEY_MMS_MAX_IMAGE_WIDTH_INT = "maxImageWidth";
1706     public static final String KEY_MMS_MAX_MESSAGE_SIZE_INT = "maxMessageSize";
1707     public static final String KEY_MMS_MESSAGE_TEXT_MAX_SIZE_INT = "maxMessageTextSize";
1708     public static final String KEY_MMS_RECIPIENT_LIMIT_INT = "recipientLimit";
1709     public static final String KEY_MMS_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD_INT = "smsToMmsTextLengthThreshold";
1710     public static final String KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT = "smsToMmsTextThreshold";
1711     public static final String KEY_MMS_SUBJECT_MAX_LENGTH_INT = "maxSubjectLength";
1712     public static final String KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING = "emailGatewayNumber";
1713     public static final String KEY_MMS_HTTP_PARAMS_STRING = "httpParams";
1714     public static final String KEY_MMS_NAI_SUFFIX_STRING = "naiSuffix";
1715     public static final String KEY_MMS_UA_PROF_TAG_NAME_STRING = "uaProfTagName";
1716     public static final String KEY_MMS_UA_PROF_URL_STRING = "uaProfUrl";
1717     public static final String KEY_MMS_USER_AGENT_STRING = "userAgent";
1718     /**
1719      * If true, add "Connection: close" header to MMS HTTP requests so the connection
1720      * is immediately closed (disabling keep-alive).
1721      */
1722     public static final String KEY_MMS_CLOSE_CONNECTION_BOOL = "mmsCloseConnection";
1723 
1724     /**
1725      * The flatten {@link android.content.ComponentName componentName} of the activity that can
1726      * setup the device and activate with the network per carrier requirements.
1727      *
1728      * e.g, com.google.android.carrierPackageName/.CarrierActivityName
1729      * @hide
1730      */
1731     @SystemApi
1732     public static final String KEY_CARRIER_SETUP_APP_STRING = "carrier_setup_app_string";
1733 
1734     /**
1735      * Defines carrier-specific actions which act upon
1736      * com.android.internal.telephony.CARRIER_SIGNAL_REDIRECTED, used for customization of the
1737      * default carrier app.
1738      * Format: "CARRIER_ACTION_IDX, ..."
1739      * Where {@code CARRIER_ACTION_IDX} is an integer defined in
1740      * com.android.carrierdefaultapp.CarrierActionUtils
1741      * Example:
1742      * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_DISABLE_METERED_APNS
1743      * disables metered APNs
1744      */
1745     @SuppressLint("IntentName")
1746     public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY =
1747             "carrier_default_actions_on_redirection_string_array";
1748 
1749     /**
1750      * Defines carrier-specific actions which act upon CARRIER_SIGNAL_REQUEST_NETWORK_FAILED
1751      * and configured signal args:
1752      * android.telephony.TelephonyManager#EXTRA_APN_TYPE,
1753      * android.telephony.TelephonyManager#EXTRA_ERROR_CODE
1754      * used for customization of the default carrier app
1755      * Format:
1756      * {
1757      *     "APN_1, ERROR_CODE_1 : CARRIER_ACTION_IDX_1, CARRIER_ACTION_IDX_2...",
1758      *     "APN_1, ERROR_CODE_2 : CARRIER_ACTION_IDX_1 "
1759      * }
1760      * Where {@code APN_1} is a string defined in
1761      * com.android.internal.telephony.PhoneConstants
1762      * Example: "default"
1763      *
1764      * {@code ERROR_CODE_1} is an integer defined in android.telephony.DataFailCause
1765      * Example:
1766      * android.telephony.DataFailCause#MISSING_UNKNOWN_APN
1767      *
1768      * {@code CARRIER_ACTION_IDX_1} is an integer defined in
1769      * com.android.carrierdefaultapp.CarrierActionUtils
1770      * Example:
1771      * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_DISABLE_METERED_APNS
1772      * disables metered APNs
1773      */
1774     @SuppressLint("IntentName")
1775     public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_DCFAILURE_STRING_ARRAY =
1776             "carrier_default_actions_on_dcfailure_string_array";
1777 
1778     /**
1779      * Defines carrier-specific actions which act upon CARRIER_SIGNAL_RESET,
1780      * used for customization of the default carrier app.
1781      * Format: "CARRIER_ACTION_IDX, ..."
1782      * Where {@code CARRIER_ACTION_IDX} is an integer defined in
1783      * com.android.carrierdefaultapp.CarrierActionUtils
1784      * Example:
1785      * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_CANCEL_ALL_NOTIFICATIONS
1786      * clears all notifications on reset
1787      */
1788     @SuppressLint("IntentName")
1789     public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_RESET =
1790             "carrier_default_actions_on_reset_string_array";
1791 
1792     /**
1793      * Defines carrier-specific actions which act upon
1794      * com.android.internal.telephony.CARRIER_SIGNAL_DEFAULT_NETWORK_AVAILABLE,
1795      * used for customization of the default carrier app.
1796      * Format:
1797      * {
1798      *     "true : CARRIER_ACTION_IDX_1",
1799      *     "false: CARRIER_ACTION_IDX_2"
1800      * }
1801      * Where {@code true} is a boolean indicates default network available/unavailable
1802      * Where {@code CARRIER_ACTION_IDX} is an integer defined in
1803      * com.android.carrierdefaultapp.CarrierActionUtils CarrierActionUtils
1804      * Example:
1805      * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_ENABLE_DEFAULT_URL_HANDLER
1806      * enables the app as the default URL handler
1807      */
1808     @SuppressLint("IntentName")
1809     public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_DEFAULT_NETWORK_AVAILABLE =
1810             "carrier_default_actions_on_default_network_available_string_array";
1811 
1812     /**
1813      * Defines a list of acceptable redirection url for default carrier app.
1814      */
1815     public static final String KEY_CARRIER_DEFAULT_REDIRECTION_URL_STRING_ARRAY =
1816             "carrier_default_redirection_url_string_array";
1817 
1818     /**
1819      * Each config includes the componentName of the carrier app, followed by a list of interesting
1820      * signals(declared in the manifest) which could wake up the app.
1821      * @see com.android.internal.telephony.TelephonyIntents
1822      * Example:
1823      * <item>com.google.android.carrierAPK/.CarrierSignalReceiverA:
1824      * com.android.internal.telephony.CARRIER_SIGNAL_REDIRECTED,
1825      * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE
1826      * </item>
1827      * <item>com.google.android.carrierAPK/.CarrierSignalReceiverB:
1828      * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE
1829      * </item>
1830      * @hide
1831      */
1832     public static final String KEY_CARRIER_APP_WAKE_SIGNAL_CONFIG_STRING_ARRAY =
1833             "carrier_app_wake_signal_config";
1834 
1835     /**
1836      * Each config includes the componentName of the carrier app, followed by a list of interesting
1837      * signals for the app during run-time. The list of signals(intents) are targeting on run-time
1838      * broadcast receivers only, aiming to avoid unnecessary wake-ups and should not be declared in
1839      * the app's manifest.
1840      * @see com.android.internal.telephony.TelephonyIntents
1841      * Example:
1842      * <item>com.google.android.carrierAPK/.CarrierSignalReceiverA:
1843      * com.android.internal.telephony.CARRIER_SIGNAL_REQUEST_NETWORK_FAILED,
1844      * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE
1845      * </item>
1846      * <item>com.google.android.carrierAPK/.CarrierSignalReceiverB:
1847      * com.android.internal.telephony.CARRIER_SIGNAL_REQUEST_NETWORK_FAILED
1848      * </item>
1849      * @hide
1850      */
1851     public static final String KEY_CARRIER_APP_NO_WAKE_SIGNAL_CONFIG_STRING_ARRAY =
1852             "carrier_app_no_wake_signal_config";
1853 
1854     /**
1855      * Determines whether the carrier app needed to be involved when users try to finish setting up
1856      * the SIM card to get network service.
1857      */
1858     public static final String KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL =
1859             "carrier_app_required_during_setup_bool";
1860 
1861     /**
1862      * Default value for {@link Settings.Global#DATA_ROAMING}
1863      * @hide
1864      */
1865     public static final String KEY_CARRIER_DEFAULT_DATA_ROAMING_ENABLED_BOOL =
1866             "carrier_default_data_roaming_enabled_bool";
1867 
1868     /**
1869      * Determines whether the carrier supports making non-emergency phone calls while the phone is
1870      * in emergency callback mode.  Default value is {@code true}, meaning that non-emergency calls
1871      * are allowed in emergency callback mode.
1872      */
1873     public static final String KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL =
1874             "allow_non_emergency_calls_in_ecm_bool";
1875 
1876     /**
1877      * Time that the telephony framework stays in "emergency SMS mode" after an emergency SMS is
1878      * sent to the network. This is used by carriers to configure the time
1879      * {@link TelephonyManager#isInEmergencySmsMode()} will be true after an emergency SMS is sent.
1880      * This is used by GNSS to override user location permissions so that the carrier network can
1881      * get the user's location for emergency services.
1882      *
1883      * The default is 0, which means that this feature is disabled. The maximum value for this timer
1884      * is 300000 mS (5 minutes).
1885      *
1886      * @hide
1887      */
1888     public static final String KEY_EMERGENCY_SMS_MODE_TIMER_MS_INT =
1889             "emergency_sms_mode_timer_ms_int";
1890 
1891     /**
1892      * Flag indicating whether to allow carrier video calls to emergency numbers.
1893      * When {@code true}, video calls to emergency numbers will be allowed.  When {@code false},
1894      * video calls to emergency numbers will be initiated as audio-only calls instead.
1895      */
1896     public static final String KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL =
1897             "allow_emergency_video_calls_bool";
1898 
1899     /**
1900      * Flag indicating whether or not an ongoing call will be held when an outgoing emergency call
1901      * is placed. If true, ongoing calls will be put on hold when an emergency call is placed. If
1902      * false, placing an emergency call will trigger the disconnect of all ongoing calls before
1903      * the emergency call is placed.
1904      */
1905     public static final String KEY_ALLOW_HOLD_CALL_DURING_EMERGENCY_BOOL =
1906             "allow_hold_call_during_emergency_bool";
1907 
1908     /**
1909      * Flag indicating whether the carrier supports RCS presence indication for
1910      * User Capability Exchange (UCE).  When presence is supported, the device should use the
1911      * {@link android.provider.ContactsContract.Data#CARRIER_PRESENCE} bit mask and set the
1912      * {@link android.provider.ContactsContract.Data#CARRIER_PRESENCE_VT_CAPABLE} bit to indicate
1913      * whether each contact supports video calling.  The UI is made aware that presence is enabled
1914      * via {@link android.telecom.PhoneAccount#CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE}
1915      * and can choose to hide or show the video calling icon based on whether a contact supports
1916      * video.
1917      */
1918     public static final String KEY_USE_RCS_PRESENCE_BOOL = "use_rcs_presence_bool";
1919 
1920     /**
1921      * Flag indicating whether the carrier supports RCS SIP OPTIONS indication for
1922      * User Capability Exchange (UCE).
1923      */
1924     public static final String KEY_USE_RCS_SIP_OPTIONS_BOOL = "use_rcs_sip_options_bool";
1925 
1926     /**
1927      * The duration in seconds that platform call and message blocking is disabled after the user
1928      * contacts emergency services. Platform considers values for below cases:
1929      *  1) 0 <= VALUE <= 604800(one week): the value will be used as the duration directly.
1930      *  2) VALUE > 604800(one week): will use the default value as duration instead.
1931      *  3) VALUE < 0: block will be disabled forever until user re-eanble block manually,
1932      *     the suggested value to disable forever is -1.
1933      * See {@code android.provider.BlockedNumberContract#notifyEmergencyContact(Context)}
1934      * See {@code android.provider.BlockedNumberContract#isBlocked(Context, String)}.
1935      */
1936     public static final String KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT =
1937             "duration_blocking_disabled_after_emergency_int";
1938 
1939     /**
1940      * Determines whether to enable enhanced call blocking feature on the device.
1941      * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_UNREGISTERED
1942      * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_PRIVATE
1943      * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_PAYPHONE
1944      * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_UNKNOWN
1945      *
1946      * <p>
1947      * 1. For Single SIM(SS) device, it can be customized in both carrier_config_mccmnc.xml
1948      *    and vendor.xml.
1949      * <p>
1950      * 2. For Dual SIM(DS) device, it should be customized in vendor.xml, since call blocking
1951      *    function is used regardless of SIM.
1952      * <p>
1953      * If {@code true} enable enhanced call blocking feature on the device, {@code false} otherwise.
1954      */
1955     public static final String KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL =
1956             "support_enhanced_call_blocking_bool";
1957 
1958     /**
1959      * For carriers which require an empty flash to be sent before sending the normal 3-way calling
1960      * flash, the duration in milliseconds of the empty flash to send.  When {@code 0}, no empty
1961      * flash is sent.
1962      */
1963     public static final String KEY_CDMA_3WAYCALL_FLASH_DELAY_INT = "cdma_3waycall_flash_delay_int";
1964 
1965     /**
1966      * The CDMA roaming mode (aka CDMA system select).
1967      *
1968      * <p>The value should be one of the CDMA_ROAMING_MODE_ constants in {@link TelephonyManager}.
1969      * Values other than {@link TelephonyManager#CDMA_ROAMING_MODE_RADIO_DEFAULT} (which is the
1970      * default) will take precedence over user selection.
1971      *
1972      * @see TelephonyManager#CDMA_ROAMING_MODE_RADIO_DEFAULT
1973      * @see TelephonyManager#CDMA_ROAMING_MODE_HOME
1974      * @see TelephonyManager#CDMA_ROAMING_MODE_AFFILIATED
1975      * @see TelephonyManager#CDMA_ROAMING_MODE_ANY
1976      */
1977     public static final String KEY_CDMA_ROAMING_MODE_INT = "cdma_roaming_mode_int";
1978 
1979 
1980     /**
1981      * Boolean indicating if support is provided for directly dialing FDN number from FDN list.
1982      * If false, this feature is not supported.
1983      * @hide
1984      */
1985     public static final String KEY_SUPPORT_DIRECT_FDN_DIALING_BOOL =
1986             "support_direct_fdn_dialing_bool";
1987 
1988     /**
1989      * Int indicating the max number length for FDN
1990      * @hide
1991      */
1992     public static final String KEY_FDN_NUMBER_LENGTH_LIMIT_INT =
1993             "fdn_number_length_limit_int";
1994 
1995     /**
1996      * Report IMEI as device id even if it's a CDMA/LTE phone.
1997      *
1998      * @hide
1999      */
2000     public static final String KEY_FORCE_IMEI_BOOL = "force_imei_bool";
2001 
2002     /**
2003      * The families of Radio Access Technologies that will get clustered and ratcheted,
2004      * ie, we will report transitions up within the family, but not down until we change
2005      * cells.  This prevents flapping between base technologies and higher techs that are
2006      * granted on demand within the cell.
2007      * @hide
2008      */
2009     public static final String KEY_RATCHET_RAT_FAMILIES =
2010             "ratchet_rat_families";
2011 
2012     /**
2013      * Flag indicating whether some telephony logic will treat a call which was formerly a video
2014      * call as if it is still a video call.  When {@code true}:
2015      * <p>
2016      * Logic which will automatically drop a video call which takes place over WIFI when a
2017      * voice call is answered (see {@link #KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL}.
2018      * <p>
2019      * Logic which determines whether the user can use TTY calling.
2020      */
2021     public static final String KEY_TREAT_DOWNGRADED_VIDEO_CALLS_AS_VIDEO_CALLS_BOOL =
2022             "treat_downgraded_video_calls_as_video_calls_bool";
2023 
2024     /**
2025      * When {@code true}, if the user is in an ongoing video call over WIFI and answers an incoming
2026      * audio call, the video call will be disconnected before the audio call is answered.  This is
2027      * in contrast to the usual expected behavior where a foreground video call would be put into
2028      * the background and held when an incoming audio call is answered.
2029      */
2030     public static final String KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL =
2031             "drop_video_call_when_answering_audio_call_bool";
2032 
2033     /**
2034      * Flag indicating whether the carrier supports merging wifi calls when VoWIFI is disabled.
2035      * This can happen in the case of a carrier which allows offloading video calls to WIFI
2036      * separately of whether voice over wifi is enabled.  In such a scenario when two video calls
2037      * are downgraded to voice, they remain over wifi.  However, if VoWIFI is disabled, these calls
2038      * cannot be merged.
2039      */
2040     public static final String KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL =
2041             "allow_merge_wifi_calls_when_vowifi_off_bool";
2042 
2043     /**
2044      * Flag indicating whether the carrier supports the Hold command while in an IMS call.
2045      * <p>
2046      * The device configuration value {@code config_device_respects_hold_carrier_config} ultimately
2047      * controls whether this carrier configuration option is used.  Where
2048      * {@code config_device_respects_hold_carrier_config} is false, the value of the
2049      * {@link #KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL} carrier configuration option is ignored.
2050      * @hide
2051      */
2052     public static final String KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL = "allow_hold_in_ims_call";
2053 
2054     /**
2055      * Flag indicating whether the carrier supports call deflection for an incoming IMS call.
2056      */
2057     public static final String KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL =
2058             "carrier_allow_deflect_ims_call_bool";
2059 
2060     /**
2061      * Flag indicating whether the carrier supports explicit call transfer for an IMS call.
2062      * @hide
2063      */
2064     public static final String KEY_CARRIER_ALLOW_TRANSFER_IMS_CALL_BOOL =
2065             "carrier_allow_transfer_ims_call_bool";
2066 
2067     /**
2068      * Flag indicating whether the carrier always wants to play an "on-hold" tone when a call has
2069      * been remotely held.
2070      * <p>
2071      * When {@code true}, if the IMS stack indicates that the call session has been held, a signal
2072      * will be sent from Telephony to play an audible "on-hold" tone played to the user.
2073      * When {@code false}, a hold tone will only be played if the audio session becomes inactive.
2074      * @hide
2075      */
2076     public static final String KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL =
2077             "always_play_remote_hold_tone_bool";
2078 
2079     /**
2080      * When true, the Telephony stack will automatically turn off airplane mode and retry a wifi
2081      * emergency call over the cell network if the initial attempt at dialing was met with a SIP 308
2082      * error.
2083      * @hide
2084      */
2085     public static final String KEY_AUTO_RETRY_FAILED_WIFI_EMERGENCY_CALL =
2086             "auto_retry_failed_wifi_emergency_call";
2087 
2088     /**
2089      * When true, indicates that adding a call is disabled when there is an ongoing video call
2090      * or when there is an ongoing call on wifi which was downgraded from video and VoWifi is
2091      * turned off.
2092      */
2093     public static final String KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL =
2094             "allow_add_call_during_video_call";
2095 
2096     /**
2097      * When {@code true}, indicates that video calls can be put on hold in order to swap to another
2098      * call (e.g. a new outgoing call).
2099      * When {@code false}, indicates that video calls will be disconnected when swapping to another
2100      * call.
2101      * <p>
2102      * This is {@code true} by default.
2103      */
2104     public static final String KEY_ALLOW_HOLD_VIDEO_CALL_BOOL =
2105             "allow_hold_video_call_bool";
2106 
2107     /**
2108      * When true, indicates that the HD audio icon in the in-call screen should not be shown for
2109      * VoWifi calls.
2110      * @hide
2111      */
2112     public static final String KEY_WIFI_CALLS_CAN_BE_HD_AUDIO = "wifi_calls_can_be_hd_audio";
2113 
2114     /**
2115      * When true, indicates that the HD audio icon in the in-call screen should not be shown for
2116      * video calls.
2117      * @hide
2118      */
2119     public static final String KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO = "video_calls_can_be_hd_audio";
2120 
2121     /**
2122      * When true, indicates that the HD audio icon in the in-call screen should be shown for
2123      * GSM/CDMA calls.
2124      * @hide
2125      */
2126     public static final String KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO =
2127             "gsm_cdma_calls_can_be_hd_audio";
2128 
2129     /**
2130      * Whether system apps are allowed to use fallback if carrier video call is not available.
2131      * Defaults to {@code true}.
2132      */
2133     public static final String KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL =
2134             "allow_video_calling_fallback_bool";
2135 
2136     /**
2137      * Defines operator-specific {@link ImsReasonInfo} mappings.
2138      *
2139      * Format: "ORIGINAL_CODE|MESSAGE|NEW_CODE"
2140      * Where {@code ORIGINAL_CODE} corresponds to a {@link ImsReasonInfo#getCode()} code,
2141      * {@code MESSAGE} corresponds to an expected {@link ImsReasonInfo#getExtraMessage()} string,
2142      * and {@code NEW_CODE} is the new {@code ImsReasonInfo#CODE_*} which this combination of
2143      * original code and message shall be remapped to.
2144      *
2145      * Note: If {@code *} is specified for the original code, any ImsReasonInfo with the matching
2146      * {@code MESSAGE} will be remapped to {@code NEW_CODE}.
2147      *
2148      * Example: "501|call completion elsewhere|1014"
2149      * When the {@link ImsReasonInfo#getCode()} is {@link ImsReasonInfo#CODE_USER_TERMINATED} and
2150      * the {@link ImsReasonInfo#getExtraMessage()} is {@code "call completion elsewhere"},
2151      * {@link ImsReasonInfo#CODE_ANSWERED_ELSEWHERE} shall be used as the {@link ImsReasonInfo}
2152      * code instead.
2153      * @hide
2154      */
2155     public static final String KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY =
2156             "ims_reasoninfo_mapping_string_array";
2157 
2158     /**
2159      * When {@code false}, use default title for Enhanced 4G LTE Mode settings.
2160      * When {@code true}, use the variant.
2161      * @hide
2162      * @deprecated use {@link #KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT}.
2163      */
2164     @Deprecated
2165     public static final String KEY_ENHANCED_4G_LTE_TITLE_VARIANT_BOOL =
2166             "enhanced_4g_lte_title_variant_bool";
2167 
2168     /**
2169      * The index indicates the carrier specified title string of Enhanced 4G LTE Mode settings.
2170      * Default value is 0, which indicates the default title string.
2171      */
2172     public static final String KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT =
2173             "enhanced_4g_lte_title_variant_int";
2174 
2175     /**
2176      * Indicates whether the carrier wants to notify the user when handover of an LTE video call to
2177      * WIFI fails.
2178      * <p>
2179      * When {@code true}, if a video call starts on LTE and the modem reports a failure to handover
2180      * the call to WIFI or if no handover success is reported within 60 seconds of call initiation,
2181      * the {@link android.telephony.TelephonyManager#EVENT_HANDOVER_TO_WIFI_FAILED} event is raised
2182      * on the connection.
2183      * @hide
2184      */
2185     public static final String KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL =
2186             "notify_vt_handover_to_wifi_failure_bool";
2187 
2188     /**
2189      * A upper case list of CNAP names that are unhelpful to the user for distinguising calls and
2190      * should be filtered out of the CNAP information. This includes CNAP names such as "WIRELESS
2191      * CALLER" or "UNKNOWN NAME". By default, if there are no filtered names for this carrier, null
2192      * is returned.
2193      * @hide
2194      */
2195     public static final String KEY_FILTERED_CNAP_NAMES_STRING_ARRAY = "filtered_cnap_names_string_array";
2196 
2197     /**
2198      * The RCS configuration server URL. This URL is used to initiate RCS provisioning.
2199      */
2200     public static final String KEY_RCS_CONFIG_SERVER_URL_STRING = "rcs_config_server_url_string";
2201 
2202     /**
2203      * Determine whether user can change Wi-Fi Calling preference in roaming.
2204      * {@code false} - roaming preference cannot be changed by user independently. If
2205      *                 {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is false,
2206      *                 {@link #KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT} is used as the default
2207      *                 value. If {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is
2208      *                 true, roaming preference is the same as home preference and
2209      *                 {@link #KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT} is used as the default value.
2210      * {@code true}  - roaming preference can be changed by user independently if
2211      *                 {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is false. If
2212      *                 {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is true, this
2213      *                 configuration is ignored and roaming preference cannot be changed.
2214      */
2215     public static final String KEY_EDITABLE_WFC_ROAMING_MODE_BOOL =
2216             "editable_wfc_roaming_mode_bool";
2217 
2218     /**
2219      * Flag specifying whether to show blocking pay phone option in blocked numbers screen.
2220      * Only show the option if payphone call presentation is present in the carrier's region.
2221      */
2222     public static final java.lang.String KEY_SHOW_BLOCKING_PAY_PHONE_OPTION_BOOL =
2223             "show_blocking_pay_phone_option_bool";
2224 
2225     /**
2226      * Flag specifying whether the carrier will use the WFC home network mode in roaming network.
2227      * {@code false} - roaming preference can be selected separately from the home preference.
2228      * {@code true}  - roaming preference is the same as home preference and
2229      *                 {@link #KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT} is used as the default value.
2230      */
2231     public static final String KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL =
2232             "use_wfc_home_network_mode_in_roaming_network_bool";
2233 
2234     /**
2235      * Flag specifying whether the carrier is allowed to use metered network to download a
2236      * certificate of Carrier-WiFi.
2237      * {@code false} - default value.
2238      *
2239      * @hide
2240      */
2241     public static final String KEY_ALLOW_METERED_NETWORK_FOR_CERT_DOWNLOAD_BOOL =
2242             "allow_metered_network_for_cert_download_bool";
2243 
2244     /**
2245      * Carrier specified WiFi networks.
2246      * @hide
2247      */
2248     public static final String KEY_CARRIER_WIFI_STRING_ARRAY = "carrier_wifi_string_array";
2249 
2250     /**
2251      * Time delay (in ms) after which we show the notification to switch the preferred
2252      * network.
2253      * @hide
2254      */
2255     public static final String KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT =
2256             "network_notification_delay_int";
2257 
2258     /**
2259      * Time delay (in ms) after which we show the notification for emergency calls,
2260      * while the device is registered over WFC. Default value is -1, which indicates
2261      * that this notification is not pertinent for a particular carrier. We've added a delay
2262      * to prevent false positives.
2263      */
2264     public static final String KEY_EMERGENCY_NOTIFICATION_DELAY_INT =
2265             "emergency_notification_delay_int";
2266 
2267     /**
2268      * When {@code true}, the carrier allows the user of the
2269      * {@link TelephonyManager#sendUssdRequest(String, TelephonyManager.UssdResponseCallback,
2270      * Handler)} API to perform USSD requests.  {@code True} by default.
2271      * @hide
2272      */
2273     public static final String KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL =
2274             "allow_ussd_requests_via_telephony_manager_bool";
2275 
2276     /**
2277      * Indicates whether the carrier supports 3gpp call forwarding MMI codes while roaming. If
2278      * false, the user will be notified that call forwarding is not available when the MMI code
2279      * fails.
2280      */
2281     public static final String KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL =
2282         "support_3gpp_call_forwarding_while_roaming_bool";
2283 
2284     /**
2285      * Boolean indicating whether to display voicemail number as default call forwarding number in
2286      * call forwarding settings.
2287      * If true, display vm number when cf number is null.
2288      * If false, display the cf number from network.
2289      * By default this value is false.
2290      * @hide
2291      */
2292     public static final String KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL =
2293             "display_voicemail_number_as_default_call_forwarding_number";
2294 
2295     /**
2296      * When {@code true}, the user will be notified when they attempt to place an international call
2297      * when the call is placed using wifi calling.
2298      * @hide
2299      */
2300     public static final String KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL =
2301             "notify_international_call_on_wfc_bool";
2302 
2303     /**
2304      * Flag to hide Preset APN details. If true, user cannot enter ApnEditor view of Preset APN,
2305      * and cannot view details of the APN. If false, user can enter ApnEditor view of Preset APN.
2306      * Default value is false.
2307      */
2308     public static final String KEY_HIDE_PRESET_APN_DETAILS_BOOL = "hide_preset_apn_details_bool";
2309 
2310     /**
2311      * Flag specifying whether to show an alert dialog for video call charges.
2312      * By default this value is {@code false}.
2313      */
2314     public static final String KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL =
2315             "show_video_call_charges_alert_dialog_bool";
2316 
2317     /**
2318      * An array containing custom call forwarding number prefixes that will be blocked while the
2319      * device is reporting that it is roaming. By default, there are no custom call
2320      * forwarding prefixes and none of these numbers will be filtered. If one or more entries are
2321      * present, the system will not complete the call and display an error message.
2322      *
2323      * To display a message to the user when call forwarding fails for 3gpp MMI codes while roaming,
2324      * use the {@link #KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL} option instead.
2325      */
2326     public static final String KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY =
2327             "call_forwarding_blocks_while_roaming_string_array";
2328 
2329     /**
2330      * The day of the month (1-31) on which the data cycle rolls over.
2331      * <p>
2332      * If the current month does not have this day, the cycle will roll over at
2333      * the start of the next month.
2334      * <p>
2335      * This setting may be still overridden by explicit user choice. By default,
2336      * {@link #DATA_CYCLE_USE_PLATFORM_DEFAULT} will be used.
2337      */
2338     public static final String KEY_MONTHLY_DATA_CYCLE_DAY_INT =
2339             "monthly_data_cycle_day_int";
2340 
2341     /**
2342      * When {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, {@link #KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG},
2343      * or {@link #KEY_DATA_WARNING_THRESHOLD_BYTES_LONG} are set to this value, the platform default
2344      * value will be used for that key.
2345      */
2346     public static final int DATA_CYCLE_USE_PLATFORM_DEFAULT = -1;
2347 
2348     /**
2349      * Flag indicating that a data cycle threshold should be disabled.
2350      * <p>
2351      * If {@link #KEY_DATA_WARNING_THRESHOLD_BYTES_LONG} is set to this value, the platform's
2352      * default data warning, if one exists, will be disabled. A user selected data warning will not
2353      * be overridden.
2354      * <p>
2355      * If {@link #KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG} is set to this value, the platform's
2356      * default data limit, if one exists, will be disabled. A user selected data limit will not be
2357      * overridden.
2358      */
2359     public static final int DATA_CYCLE_THRESHOLD_DISABLED = -2;
2360 
2361     /**
2362      * Controls the data usage warning.
2363      * <p>
2364      * If the user uses more than this amount of data in their billing cycle, as defined by
2365      * {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, the user will be alerted about the usage.
2366      * If the value is set to {@link #DATA_CYCLE_THRESHOLD_DISABLED}, the data usage warning will
2367      * be disabled.
2368      * <p>
2369      * This setting may be overridden by explicit user choice. By default,
2370      * {@link #DATA_CYCLE_USE_PLATFORM_DEFAULT} will be used.
2371      */
2372     public static final String KEY_DATA_WARNING_THRESHOLD_BYTES_LONG =
2373             "data_warning_threshold_bytes_long";
2374 
2375     /**
2376      * Controls if the device should automatically notify the user as they reach
2377      * their cellular data warning. When set to {@code false} the carrier is
2378      * expected to have implemented their own notification mechanism. {@code true} by default.
2379      */
2380     public static final String KEY_DATA_WARNING_NOTIFICATION_BOOL =
2381             "data_warning_notification_bool";
2382 
2383     /**
2384      * Controls if the device should automatically warn the user that sim voice & data function
2385      * might be limited due to dual sim scenario. When set to {@true} display the notification,
2386      * {@code false} otherwise.
2387      * @hide
2388      */
2389     public static final String KEY_LIMITED_SIM_FUNCTION_NOTIFICATION_FOR_DSDS_BOOL =
2390             "limited_sim_function_notification_for_dsds_bool";
2391 
2392     /**
2393      * Controls the cellular data limit.
2394      * <p>
2395      * If the user uses more than this amount of data in their billing cycle, as defined by
2396      * {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, cellular data will be turned off by the user's
2397      * phone. If the value is set to {@link #DATA_CYCLE_THRESHOLD_DISABLED}, the data limit will be
2398      * disabled.
2399      * <p>
2400      * This setting may be overridden by explicit user choice. By default,
2401      * {@link #DATA_CYCLE_USE_PLATFORM_DEFAULT} will be used.
2402      */
2403     public static final String KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG =
2404             "data_limit_threshold_bytes_long";
2405 
2406     /**
2407      * Controls if the device should automatically notify the user as they reach
2408      * their cellular data limit. When set to {@code false} the carrier is
2409      * expected to have implemented their own notification mechanism. {@code true} by default.
2410      */
2411     public static final String KEY_DATA_LIMIT_NOTIFICATION_BOOL =
2412             "data_limit_notification_bool";
2413 
2414     /**
2415      * Controls if the device should automatically notify the user when rapid
2416      * cellular data usage is observed. When set to {@code false} the carrier is
2417      * expected to have implemented their own notification mechanism.  {@code true} by default.
2418      */
2419     public static final String KEY_DATA_RAPID_NOTIFICATION_BOOL =
2420             "data_rapid_notification_bool";
2421 
2422     /**
2423      * Offset to be reduced from rsrp threshold while calculating signal strength level.
2424      * @hide
2425      */
2426     public static final String KEY_LTE_EARFCNS_RSRP_BOOST_INT = "lte_earfcns_rsrp_boost_int";
2427 
2428     /**
2429      * List of EARFCN (E-UTRA Absolute Radio Frequency Channel Number,
2430      * Reference: 3GPP TS 36.104 5.4.3) inclusive ranges on which lte_rsrp_boost_int
2431      * will be applied. Format of the String array is expected to be {"erafcn1_start-earfcn1_end",
2432      * "earfcn2_start-earfcn2_end" ... }
2433      * @hide
2434      */
2435     public static final String KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY =
2436             "boosted_lte_earfcns_string_array";
2437 
2438     /**
2439      * Determine whether to use only RSRP for the number of LTE signal bars.
2440      * @hide
2441      *
2442      * @deprecated use {@link #KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT}.
2443      */
2444     // FIXME: this key and related keys must not be exposed without a consistent philosophy for
2445     // all RATs.
2446     @Deprecated
2447     public static final String KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL =
2448             "use_only_rsrp_for_lte_signal_bar_bool";
2449 
2450     /**
2451      * Bit-field integer to determine whether to use Reference Signal Received Power (RSRP),
2452      * Reference Signal Received Quality (RSRQ), or/and Reference Signal Signal to Noise Ratio
2453      * (RSSNR) for the number of LTE signal bars and signal criteria reporting enabling.
2454      *
2455      * <p> If a measure is not set, signal criteria reporting from modem will not be triggered and
2456      * not be used for calculating signal level. If multiple measures are set bit, the parameter
2457      * whose value is smallest is used to indicate the signal level.
2458      * <UL>
2459      *  <LI>RSRP = 1 << 0</LI>
2460      *  <LI>RSRQ = 1 << 1</LI>
2461      *  <LI>RSSNR = 1 << 2</LI>
2462      * </UL>
2463      * <p> The value of this key must be bitwise OR of {@link CellSignalStrengthLte#USE_RSRP},
2464      * {@link CellSignalStrengthLte#USE_RSRQ}, {@link CellSignalStrengthLte#USE_RSSNR}.
2465      *
2466      * <p> For example, if both RSRP and RSRQ are used, the value of key is 3 (1 << 0 | 1 << 1).
2467      * If the key is invalid or not configured, a default value (RSRP = 1 << 0) will apply.
2468      *
2469      * @hide
2470      */
2471     public static final String KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT =
2472             "parameters_used_for_lte_signal_bar_int";
2473 
2474     /**
2475      * List of 4 customized 5G SS reference signal received power (SSRSRP) thresholds.
2476      * <p>
2477      * Reference: 3GPP TS 38.215
2478      * <p>
2479      * 4 threshold integers must be within the boundaries [-140 dB, -44 dB], and the levels are:
2480      * <UL>
2481      *     <LI>"NONE: [-140, threshold1]"</LI>
2482      *     <LI>"POOR: (threshold1, threshold2]"</LI>
2483      *     <LI>"MODERATE: (threshold2, threshold3]"</LI>
2484      *     <LI>"GOOD:  (threshold3, threshold4]"</LI>
2485      *     <LI>"EXCELLENT:  (threshold4, -44]"</LI>
2486      * </UL>
2487      * <p>
2488      * This key is considered invalid if the format is violated. If the key is invalid or
2489      * not configured, a default value set will apply.
2490      */
2491     public static final String KEY_5G_NR_SSRSRP_THRESHOLDS_INT_ARRAY =
2492             "5g_nr_ssrsrp_thresholds_int_array";
2493 
2494     /**
2495      * List of 4 customized 5G SS reference signal received quality (SSRSRQ) thresholds.
2496      * <p>
2497      * Reference: 3GPP TS 38.215; 3GPP TS 38.133 section 10
2498      * <p>
2499      * 4 threshold integers must be within the boundaries [-43 dB, 20 dB], and the levels are:
2500      * <UL>
2501      *     <LI>"NONE: [-43, threshold1]"</LI>
2502      *     <LI>"POOR: (threshold1, threshold2]"</LI>
2503      *     <LI>"MODERATE: (threshold2, threshold3]"</LI>
2504      *     <LI>"GOOD:  (threshold3, threshold4]"</LI>
2505      *     <LI>"EXCELLENT:  (threshold4, 20]"</LI>
2506      * </UL>
2507      * <p>
2508      * This key is considered invalid if the format is violated. If the key is invalid or
2509      * not configured, a default value set will apply.
2510      */
2511     public static final String KEY_5G_NR_SSRSRQ_THRESHOLDS_INT_ARRAY =
2512             "5g_nr_ssrsrq_thresholds_int_array";
2513 
2514     /**
2515      * List of 4 customized 5G SS signal-to-noise and interference ratio (SSSINR) thresholds.
2516      * <p>
2517      * Reference: 3GPP TS 38.215,
2518      *            3GPP TS 38.133 10.1.16.1
2519      * <p>
2520      * 4 threshold integers must be within the boundaries [-23 dB, 40 dB], and the levels are:
2521      * <UL>
2522      *     <LI>"NONE: [-23, threshold1]"</LI>
2523      *     <LI>"POOR: (threshold1, threshold2]"</LI>
2524      *     <LI>"MODERATE: (threshold2, threshold3]"</LI>
2525      *     <LI>"GOOD:  (threshold3, threshold4]"</LI>
2526      *     <LI>"EXCELLENT:  (threshold4, 40]"</LI>
2527      * </UL>
2528      * <p>
2529      * This key is considered invalid if the format is violated. If the key is invalid or
2530      * not configured, a default value set will apply.
2531      */
2532     public static final String KEY_5G_NR_SSSINR_THRESHOLDS_INT_ARRAY =
2533             "5g_nr_sssinr_thresholds_int_array";
2534 
2535     /**
2536      * Bit-field integer to determine whether to use SS reference signal received power (SSRSRP),
2537      * SS reference signal received quality (SSRSRQ), or/and SS signal-to-noise and interference
2538      * ratio (SSSINR) for the number of 5G NR signal bars and signal criteria reporting enabling.
2539      *
2540      * <p> If a measure is not set, signal criteria reporting from modem will not be triggered and
2541      * not be used for calculating signal level. If multiple measures are set bit, the parameter
2542      * whose value is smallest is used to indicate the signal level.
2543      * <UL>
2544      *  <LI>SSRSRP = 1 << 0</LI>
2545      *  <LI>SSRSRQ = 1 << 1</LI>
2546      *  <LI>SSSINR = 1 << 2</LI>
2547      * </UL>
2548      *  The value of this key must be bitwise OR of {@link CellSignalStrengthNr#USE_SSRSRP},
2549      *  {@link CellSignalStrengthNr#USE_SSRSRQ}, {@link CellSignalStrengthNr#USE_SSSINR}.
2550      *
2551      * <p> For example, if both SSRSRP and SSSINR are used, the value of key is 5 (1 << 0 | 1 << 2).
2552      * If the key is invalid or not configured, a default value (SSRSRP = 1 << 0) will apply.
2553      *
2554      * <p> Reference: 3GPP TS 38.215,
2555      *                3GPP TS 38.133 10.1.16.1
2556      *
2557      * @hide
2558      */
2559     public static final String KEY_PARAMETERS_USE_FOR_5G_NR_SIGNAL_BAR_INT =
2560             "parameters_use_for_5g_nr_signal_bar_int";
2561 
2562     /**
2563      * There are two signal strengths, NR and LTE signal strength, during NR (non-standalone).
2564      * Boolean indicating whether to use LTE signal strength as primary during NR (non-standalone).
2565      * By default this value is true.
2566      *
2567      * @hide
2568      */
2569     public static final String KEY_SIGNAL_STRENGTH_NR_NSA_USE_LTE_AS_PRIMARY_BOOL =
2570             "signal_strength_nr_nsa_use_lte_as_primary_bool";
2571 
2572     /**
2573      * String array of default bandwidth values per network type.
2574      * The entries should be of form "network_name:downstream,upstream", with values in Kbps.
2575      * @hide
2576      */
2577     public static final String KEY_BANDWIDTH_STRING_ARRAY = "bandwidth_string_array";
2578 
2579     /**
2580      * For NR (non-standalone), whether to use the LTE value instead of NR value as the default for
2581      * upstream bandwidth. Downstream bandwidth will still use the NR value as the default.
2582      * @hide
2583      */
2584     public static final String KEY_BANDWIDTH_NR_NSA_USE_LTE_VALUE_FOR_UPSTREAM_BOOL =
2585             "bandwidth_nr_nsa_use_lte_value_for_upstream_bool";
2586 
2587     /**
2588      * Key identifying if voice call barring notification is required to be shown to the user.
2589      * @hide
2590      */
2591     @UnsupportedAppUsage
2592     public static final String KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL =
2593             "disable_voice_barring_notification_bool";
2594 
2595     /**
2596      * List of operators considered non-roaming which won't show roaming icon.
2597      * <p>
2598      * Can use mcc or mcc+mnc as item. For example, 302 or 21407.
2599      * If operators, 21404 and 21407, make roaming agreements, users of 21404 should not see
2600      * the roaming icon as using 21407 network.
2601      * @hide
2602      */
2603     public static final String KEY_NON_ROAMING_OPERATOR_STRING_ARRAY =
2604             "non_roaming_operator_string_array";
2605 
2606     /**
2607      * List of operators considered roaming with the roaming icon.
2608      * <p>
2609      * Can use mcc or mcc+mnc as item. For example, 302 or 21407.
2610      * If operators, 21404 and 21407, make roaming agreements, users of 21404 should see
2611      * the roaming icon as using 21407 network.
2612      * <p>
2613      * A match on this supersedes a match on {@link #KEY_NON_ROAMING_OPERATOR_STRING_ARRAY}.
2614      * @hide
2615      */
2616     public static final String KEY_ROAMING_OPERATOR_STRING_ARRAY =
2617             "roaming_operator_string_array";
2618 
2619     /**
2620      * URL from which the proto containing the public key of the Carrier used for
2621      * IMSI encryption will be downloaded.
2622      * @hide
2623      */
2624     public static final String IMSI_KEY_DOWNLOAD_URL_STRING = "imsi_key_download_url_string";
2625 
2626     /**
2627      * Identifies if the key is available for WLAN or EPDG or both. The value is a bitmask.
2628      * 0 indicates that neither EPDG or WLAN is enabled.
2629      * 1 indicates that key type TelephonyManager#KEY_TYPE_EPDG is enabled.
2630      * 2 indicates that key type TelephonyManager#KEY_TYPE_WLAN is enabled.
2631      * 3 indicates that both are enabled.
2632      */
2633     public static final String IMSI_KEY_AVAILABILITY_INT = "imsi_key_availability_int";
2634 
2635 
2636     /**
2637      * Key identifying if the CDMA Caller ID presentation and suppression MMI codes
2638      * should be converted to 3GPP CLIR codes when a multimode (CDMA+UMTS+LTE) device is roaming
2639      * on a 3GPP network. Specifically *67<number> will be converted to #31#<number> and
2640      * *82<number> will be converted to *31#<number> before dialing a call when this key is
2641      * set TRUE and device is roaming on a 3GPP network.
2642      * @hide
2643      */
2644     public static final String KEY_CONVERT_CDMA_CALLER_ID_MMI_CODES_WHILE_ROAMING_ON_3GPP_BOOL =
2645             "convert_cdma_caller_id_mmi_codes_while_roaming_on_3gpp_bool";
2646 
2647     /**
2648      * Flag specifying whether IMS registration state menu is shown in Status Info setting,
2649      * default to false.
2650      */
2651     public static final String KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL =
2652             "show_ims_registration_status_bool";
2653 
2654     /**
2655      * Flag indicating whether the carrier supports RTT over IMS.
2656      */
2657     public static final String KEY_RTT_SUPPORTED_BOOL = "rtt_supported_bool";
2658 
2659     /**
2660      * Boolean flag indicating whether the carrier supports TTY.
2661      * <p>
2662      * Note that {@link #KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL} controls availability of TTY over
2663      * VoLTE; if {@link #KEY_TTY_SUPPORTED_BOOL} is disabled, then
2664      * {@link #KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL} is also implicitly disabled.
2665      * <p>
2666      * {@link TelecomManager#isTtySupported()} should be used to determine if a device supports TTY,
2667      * and this carrier config key should be used to see if the current carrier supports it.
2668      */
2669     public static final String KEY_TTY_SUPPORTED_BOOL = "tty_supported_bool";
2670 
2671     /**
2672      * Indicates if the carrier supports auto-upgrading a call to RTT when receiving a call from a
2673      * RTT-supported device.
2674      * @hide
2675      */
2676     public static final String KEY_RTT_AUTO_UPGRADE_BOOL = "rtt_auto_upgrade_bool";
2677 
2678     /**
2679      * Indicates if the carrier supports RTT during a video call.
2680      * @hide
2681      */
2682     public static final String KEY_RTT_SUPPORTED_FOR_VT_BOOL = "rtt_supported_for_vt_bool";
2683 
2684     /**
2685      * Indicates if the carrier supports upgrading a voice call to an RTT call during the call.
2686      * @hide
2687      */
2688     public static final String KEY_RTT_UPGRADE_SUPPORTED_BOOL = "rtt_upgrade_supported_bool";
2689 
2690     /**
2691      * Indicates if the carrier supports downgrading a RTT call to a voice call during the call.
2692      * @hide
2693      */
2694     public static final String KEY_RTT_DOWNGRADE_SUPPORTED_BOOL = "rtt_downgrade_supported_bool";
2695 
2696     /**
2697      * Indicates if the TTY HCO and VCO options should be hidden in the accessibility menu
2698      * if the device is capable of RTT.
2699      * @hide
2700      */
2701     public static final String KEY_HIDE_TTY_HCO_VCO_WITH_RTT_BOOL = "hide_tty_hco_vco_with_rtt";
2702 
2703     /**
2704      * The flag to disable the popup dialog which warns the user of data charges.
2705      */
2706     public static final String KEY_DISABLE_CHARGE_INDICATION_BOOL =
2707             "disable_charge_indication_bool";
2708 
2709     /**
2710      * Boolean indicating whether to skip the call forwarding (CF) fail-to-disable dialog.
2711      * The logic used to determine whether we succeeded in disabling is carrier specific,
2712      * so the dialog may not always be accurate.
2713      * {@code false} - show CF fail-to-disable dialog.
2714      * {@code true}  - skip showing CF fail-to-disable dialog.
2715      *
2716      * @hide
2717      */
2718     public static final String KEY_SKIP_CF_FAIL_TO_DISABLE_DIALOG_BOOL =
2719             "skip_cf_fail_to_disable_dialog_bool";
2720 
2721     /**
2722      * Flag specifying whether operator supports including no reply condition timer option on
2723      * CFNRy (3GPP TS 24.082 3: Call Forwarding on No Reply) in the call forwarding settings UI.
2724      * {@code true}  - include no reply condition timer option on CFNRy
2725      * {@code false} - don't include no reply condition timer option on CFNRy
2726      *
2727      * @hide
2728      */
2729     public static final String KEY_SUPPORT_NO_REPLY_TIMER_FOR_CFNRY_BOOL =
2730             "support_no_reply_timer_for_cfnry_bool";
2731 
2732     /**
2733      * List of the FAC (feature access codes) to dial as a normal call.
2734      * @hide
2735      */
2736     public static final String KEY_FEATURE_ACCESS_CODES_STRING_ARRAY =
2737             "feature_access_codes_string_array";
2738 
2739     /**
2740      * Determines if the carrier wants to identify high definition calls in the call log.
2741      * @hide
2742      */
2743     public static final String KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL =
2744             "identify_high_definition_calls_in_call_log_bool";
2745 
2746     /**
2747      * Flag specifying whether to use the {@link ServiceState} roaming status, which can be
2748      * affected by other carrier configs (e.g.
2749      * {@link #KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY}), when setting the SPN display.
2750      * <p>
2751      * If {@code true}, the SPN display uses {@link ServiceState#getRoaming}.
2752      * If {@code false} the SPN display checks if the current MCC/MNC is different from the
2753      * SIM card's MCC/MNC.
2754      *
2755      * @see KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY
2756      * @see KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY
2757      * @see KEY_NON_ROAMING_OPERATOR_STRING_ARRAY
2758      * @see KEY_ROAMING_OPERATOR_STRING_ARRAY
2759      * @see KEY_FORCE_HOME_NETWORK_BOOL
2760      *
2761      * @hide
2762      */
2763     public static final String KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL =
2764             "spn_display_rule_use_roaming_from_service_state_bool";
2765 
2766     /**
2767      * Determines whether any carrier has been identified and its specific config has been applied,
2768      * default to false.
2769      */
2770     public static final String KEY_CARRIER_CONFIG_APPLIED_BOOL = "carrier_config_applied_bool";
2771 
2772     /**
2773      * Determines whether we should show a warning asking the user to check with their carrier
2774      * on pricing when the user enabled data roaming,
2775      * default to false.
2776      */
2777     public static final String KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL =
2778             "check_pricing_with_carrier_data_roaming_bool";
2779 
2780      /**
2781       * Determines whether we should show a notification when the phone established a data
2782       * connection in roaming network, to warn users about possible roaming charges.
2783       * @hide
2784       */
2785     public static final String KEY_SHOW_DATA_CONNECTED_ROAMING_NOTIFICATION_BOOL =
2786             "show_data_connected_roaming_notification";
2787 
2788     /**
2789      * A list of 4 LTE RSRP thresholds above which a signal level is considered POOR,
2790      * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.
2791      *
2792      * Note that the min and max thresholds are fixed at -140 and -44, as explained in
2793      * TS 136.133 9.1.4 - RSRP Measurement Report Mapping.
2794      * <p>
2795      * See SignalStrength#MAX_LTE_RSRP and SignalStrength#MIN_LTE_RSRP. Any signal level outside
2796      * these boundaries is considered invalid.
2797      * @hide
2798      */
2799     public static final String KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY =
2800             "lte_rsrp_thresholds_int_array";
2801 
2802     /**
2803      * A list of 4 customized LTE Reference Signal Received Quality (RSRQ) thresholds.
2804      *
2805      * Reference: TS 136.133 v12.6.0 section 9.1.7 - RSRQ Measurement Report Mapping.
2806      *
2807      * 4 threshold integers must be within the boundaries [-34 dB, 3 dB], and the levels are:
2808      *     "NONE: [-34, threshold1)"
2809      *     "POOR: [threshold1, threshold2)"
2810      *     "MODERATE: [threshold2, threshold3)"
2811      *     "GOOD:  [threshold3, threshold4)"
2812      *     "EXCELLENT:  [threshold4, 3]"
2813      *
2814      * This key is considered invalid if the format is violated. If the key is invalid or
2815      * not configured, a default value set will apply.
2816      */
2817     public static final String KEY_LTE_RSRQ_THRESHOLDS_INT_ARRAY =
2818             "lte_rsrq_thresholds_int_array";
2819 
2820     /**
2821      * A list of 4 customized LTE Reference Signal Signal to Noise Ratio (RSSNR) thresholds.
2822      *
2823      * 4 threshold integers must be within the boundaries [-20 dB, 30 dB], and the levels are:
2824      *     "NONE: [-20, threshold1)"
2825      *     "POOR: [threshold1, threshold2)"
2826      *     "MODERATE: [threshold2, threshold3)"
2827      *     "GOOD:  [threshold3, threshold4)"
2828      *     "EXCELLENT:  [threshold4, 30]"
2829      *
2830      * This key is considered invalid if the format is violated. If the key is invalid or
2831      * not configured, a default value set will apply.
2832      */
2833     public static final String KEY_LTE_RSSNR_THRESHOLDS_INT_ARRAY =
2834             "lte_rssnr_thresholds_int_array";
2835 
2836     /**
2837      * Decides when clients try to bind to iwlan network service, which package name will
2838      * the binding intent go to.
2839      * @hide
2840      */
2841     public static final String KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING =
2842             "carrier_network_service_wlan_package_override_string";
2843 
2844     /**
2845      * Decides when clients try to bind to iwlan network service, which class name will
2846      * the binding intent go to.
2847      * @hide
2848      */
2849     public static final String KEY_CARRIER_NETWORK_SERVICE_WLAN_CLASS_OVERRIDE_STRING =
2850             "carrier_network_service_wlan_class_override_string";
2851 
2852     /**
2853      * Decides when clients try to bind to wwan (cellular) network service, which package name will
2854      * the binding intent go to.
2855      * @hide
2856      */
2857     public static final String KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING =
2858             "carrier_network_service_wwan_package_override_string";
2859 
2860     /**
2861      * Decides when clients try to bind to wwan (cellular) network service, which class name will
2862      * the binding intent go to.
2863      * @hide
2864      */
2865     public static final String KEY_CARRIER_NETWORK_SERVICE_WWAN_CLASS_OVERRIDE_STRING =
2866             "carrier_network_service_wwan_class_override_string";
2867 
2868     /**
2869      * The package name of qualified networks service that telephony binds to.
2870      *
2871      * @hide
2872      */
2873     public static final String KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_PACKAGE_OVERRIDE_STRING =
2874             "carrier_qualified_networks_service_package_override_string";
2875 
2876     /**
2877      * The class name of qualified networks service that telephony binds to.
2878      *
2879      * @hide
2880      */
2881     public static final String KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_CLASS_OVERRIDE_STRING =
2882             "carrier_qualified_networks_service_class_override_string";
2883     /**
2884      * A list of 4 LTE RSCP thresholds above which a signal level is considered POOR,
2885      * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.
2886      *
2887      * Note that the min and max thresholds are fixed at -120 and -24, as set in 3GPP TS 27.007
2888      * section 8.69.
2889      * <p>
2890      * See SignalStrength#MAX_WCDMA_RSCP and SignalStrength#MIN_WDCMA_RSCP. Any signal level outside
2891      * these boundaries is considered invalid.
2892      * @hide
2893      */
2894     public static final String KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY =
2895             "wcdma_rscp_thresholds_int_array";
2896 
2897     /**
2898      * The default measurement to use for signal strength reporting. If this is not specified, the
2899      * RSSI is used.
2900      * <p>
2901      * e.g.) To use RSCP by default, set the value to "rscp". The signal strength level will
2902      * then be determined by #KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY
2903      * <p>
2904      * Currently this supports the value "rscp" and "rssi".
2905      * @hide
2906      */
2907     // FIXME: this key and related keys must not be exposed without a consistent philosophy for
2908     // all RATs.
2909     public static final String KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING =
2910             "wcdma_default_signal_strength_measurement_string";
2911 
2912     /**
2913      * When a partial sms / mms message stay in raw table for too long without being completed,
2914      * we expire them and delete them from the raw table. This carrier config defines the
2915      * expiration time.
2916      * @hide
2917      */
2918     public static final String KEY_UNDELIVERED_SMS_MESSAGE_EXPIRATION_TIME =
2919             "undelivered_sms_message_expiration_time";
2920 
2921     /**
2922      * Specifies a carrier-defined {@link android.telecom.CallRedirectionService} which Telecom
2923      * will bind to for outgoing calls.  An empty string indicates that no carrier-defined
2924      * {@link android.telecom.CallRedirectionService} is specified.
2925      */
2926     public static final String KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING =
2927             "call_redirection_service_component_name_string";
2928 
2929     /**
2930      * Support for the original string display of CDMA MO call.
2931      * By default, it is disabled.
2932      * @hide
2933      */
2934     public static final String KEY_CONFIG_SHOW_ORIG_DIAL_STRING_FOR_CDMA_BOOL =
2935             "config_show_orig_dial_string_for_cdma";
2936 
2937     /**
2938      * Flag specifying whether to show notification(call blocking disabled) when Enhanced Call
2939      * Blocking(KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL) is enabled and making emergency call.
2940      * When true, notification is shown always.
2941      * When false, notification is shown only when any setting of "Enhanced Blocked number" is
2942      * enabled.
2943      */
2944     public static final String KEY_SHOW_CALL_BLOCKING_DISABLED_NOTIFICATION_ALWAYS_BOOL =
2945             "show_call_blocking_disabled_notification_always_bool";
2946 
2947     /**
2948      * Some carriers only support SS over UT via INTERNET PDN.
2949      * When mobile data is OFF or data roaming OFF during roaming,
2950      * UI should block the call forwarding operation and notify the user
2951      * that the function only works if data is available.
2952      * @hide
2953      */
2954     public static final String KEY_CALL_FORWARDING_OVER_UT_WARNING_BOOL =
2955             "call_forwarding_over_ut_warning_bool";
2956 
2957     /**
2958      * Some carriers only support SS over UT via INTERNET PDN.
2959      * When mobile data is OFF or data roaming OFF during roaming,
2960      * UI should block the call barring operation and notify the user
2961      * that the function only works if data is available.
2962      * @hide
2963      */
2964     public static final String KEY_CALL_BARRING_OVER_UT_WARNING_BOOL =
2965             "call_barring_over_ut_warning_bool";
2966 
2967     /**
2968      * Some carriers only support SS over UT via INTERNET PDN.
2969      * When mobile data is OFF or data roaming OFF during roaming,
2970      * UI should block the caller id operation and notify the user
2971      * that the function only works if data is available.
2972      * @hide
2973      */
2974     public static final String KEY_CALLER_ID_OVER_UT_WARNING_BOOL =
2975             "caller_id_over_ut_warning_bool";
2976 
2977     /**
2978      * Some carriers only support SS over UT via INTERNET PDN.
2979      * When mobile data is OFF or data roaming OFF during roaming,
2980      * UI should block the call waiting operation and notify the user
2981      * that the function only works if data is available.
2982      * @hide
2983      */
2984     public static final String KEY_CALL_WAITING_OVER_UT_WARNING_BOOL =
2985             "call_waiting_over_ut_warning_bool";
2986 
2987     /**
2988      * Flag indicating whether to support "Network default" option in Caller ID settings for Calling
2989      * Line Identification Restriction (CLIR).
2990      */
2991     public static final String KEY_SUPPORT_CLIR_NETWORK_DEFAULT_BOOL =
2992             "support_clir_network_default_bool";
2993 
2994     /**
2995      * Determines whether the carrier want to support emergency dialer shortcut.
2996      * @hide
2997      */
2998     public static final String KEY_SUPPORT_EMERGENCY_DIALER_SHORTCUT_BOOL =
2999             "support_emergency_dialer_shortcut_bool";
3000 
3001     /**
3002      * Call forwarding uses USSD command without SS command.
3003      * When {@code true}, the call forwarding query/set by ussd command and UI only display Call
3004      * Forwarding when unanswered.
3005      * When {@code false}, don't use USSD to query/set call forwarding.
3006      * @hide
3007      */
3008     public static final String KEY_USE_CALL_FORWARDING_USSD_BOOL = "use_call_forwarding_ussd_bool";
3009 
3010     /**
3011      * This flag specifies whether to support for the caller id set command by ussd.
3012      * When {@code true}, device shall sync caller id ussd result to ss command.
3013      * When {@code false}, caller id don't support ussd command.
3014      * @hide
3015      */
3016     public static final String KEY_USE_CALLER_ID_USSD_BOOL = "use_caller_id_ussd_bool";
3017 
3018     /**
3019      * Specifies the service class for call waiting service.
3020      * Default value is
3021      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_VOICE}.
3022      * <p>
3023      * See 27.007 +CCFC or +CLCK.
3024      * The value set as below:
3025      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_NONE}
3026      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_VOICE}
3027      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_DATA}
3028      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_FAX}
3029      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_SMS}
3030      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_DATA_SYNC}
3031      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_DATA_ASYNC}
3032      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_PACKET}
3033      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_PAD}
3034      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_MAX}
3035      * @hide
3036      */
3037     public static final String KEY_CALL_WAITING_SERVICE_CLASS_INT =
3038             "call_waiting_service_class_int";
3039 
3040     /**
3041      * This configuration allows the system UI to display different 5G icons for different 5G
3042      * scenarios.
3043      *
3044      * There are five 5G scenarios:
3045      * 1. connected_mmwave: device currently connected to 5G cell as the secondary cell and using
3046      *    millimeter wave.
3047      * 2. connected: device currently connected to 5G cell as the secondary cell but not using
3048      *    millimeter wave.
3049      * 3. not_restricted_rrc_idle: device camped on a network that has 5G capability(not necessary
3050      *    to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3051      *    currently in IDLE state.
3052      * 4. not_restricted_rrc_con: device camped on a network that has 5G capability(not necessary
3053      *    to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3054      *    currently in CONNECTED state.
3055      * 5. restricted: device camped on a network that has 5G capability(not necessary to connect a
3056      *    5G cell as a secondary cell) but the use of 5G is restricted.
3057      *
3058      * The configured string contains multiple key-value pairs separated by comma. For each pair,
3059      * the key and value are separated by a colon. The key corresponds to a 5G status above and
3060      * the value is the icon name. Use "None" as the icon name if no icon should be shown in a
3061      * specific 5G scenario. If the scenario is "None", config can skip this key and value.
3062      *
3063      * Icon name options: "5G_Plus", "5G".
3064      *
3065      * Here is an example:
3066      * UE wants to display 5G_Plus icon for scenario#1, and 5G icon for scenario#2; otherwise not
3067      * define.
3068      * The configuration is: "connected_mmwave:5G_Plus,connected:5G"
3069      * @hide
3070      */
3071     public static final String KEY_5G_ICON_CONFIGURATION_STRING = "5g_icon_configuration_string";
3072 
3073     /**
3074      * This configuration allows the system UI to determine how long to continue to display 5G icons
3075      * when the device switches between different 5G scenarios.
3076      *
3077      * There are seven 5G scenarios:
3078      * 1. connected_mmwave: device currently connected to 5G cell as the secondary cell and using
3079      *    millimeter wave.
3080      * 2. connected: device currently connected to 5G cell as the secondary cell but not using
3081      *    millimeter wave.
3082      * 3. not_restricted_rrc_idle: device camped on a network that has 5G capability (not necessary
3083      *    to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3084      *    currently in IDLE state.
3085      * 4. not_restricted_rrc_con: device camped on a network that has 5G capability (not necessary
3086      *    to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3087      *    currently in CONNECTED state.
3088      * 5. restricted: device camped on a network that has 5G capability (not necessary to connect a
3089      *    5G cell as a secondary cell) but the use of 5G is restricted.
3090      * 6. legacy: device is not camped on a network that has 5G capability
3091      * 7. any: any of the above scenarios
3092      *
3093      * The configured string contains various timer rules separated by a semicolon.
3094      * Each rule will have three items: prior 5G scenario, current 5G scenario, and grace period
3095      * in seconds before changing the icon. When the 5G state changes from the prior to the current
3096      * 5G scenario, the system UI will continue to show the icon for the prior 5G scenario (defined
3097      * in {@link #KEY_5G_ICON_CONFIGURATION_STRING}) for the amount of time specified by the grace
3098      * period. If the prior 5G scenario is reestablished, the timer will reset and start again if
3099      * the UE changes 5G scenarios again. Defined states (5G scenarios #1-5) take precedence over
3100      * 'any' (5G scenario #6), and unspecified transitions have a default grace period of 0.
3101      * The order of rules in the configuration determines the priority (the first applicable timer
3102      * rule will be used).
3103      *
3104      * Here is an example: "connected_mmwave,connected,30;connected_mmwave,any,10;connected,any,10"
3105      * This configuration defines 3 timers:
3106      * 1. When UE goes from 'connected_mmwave' to 'connected', system UI will continue to display
3107      *    the 5G icon for 'connected_mmwave' for 30 seconds.
3108      * 2. When UE goes from 'connected_mmwave' to any other state (except for connected, since
3109      *    rule 1 would be used instead), system UI will continue to display the 5G icon for
3110      *    'connected_mmwave' for 10 seconds.
3111      * 3. When UE goes from 'connected' to any other state, system UI will continue to display the
3112      *    5G icon for 'connected' for 10 seconds.
3113      *
3114      * @hide
3115      */
3116     public static final String KEY_5G_ICON_DISPLAY_GRACE_PERIOD_STRING =
3117             "5g_icon_display_grace_period_string";
3118 
3119     /**
3120      * This configuration extends {@link #KEY_5G_ICON_DISPLAY_GRACE_PERIOD_STRING} to allow the
3121      * system UI to continue displaying 5G icons after the initial timer expires.
3122      *
3123      * There are seven 5G scenarios:
3124      * 1. connected_mmwave: device currently connected to 5G cell as the secondary cell and using
3125      *    millimeter wave.
3126      * 2. connected: device currently connected to 5G cell as the secondary cell but not using
3127      *    millimeter wave.
3128      * 3. not_restricted_rrc_idle: device camped on a network that has 5G capability (not necessary
3129      *    to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3130      *    currently in IDLE state.
3131      * 4. not_restricted_rrc_con: device camped on a network that has 5G capability (not necessary
3132      *    to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3133      *    currently in CONNECTED state.
3134      * 5. restricted: device camped on a network that has 5G capability (not necessary to connect a
3135      *    5G cell as a secondary cell) but the use of 5G is restricted.
3136      * 6. legacy: device is not camped on a network that has 5G capability
3137      * 7. any: any of the above scenarios
3138      *
3139      * The configured string contains various timer rules separated by a semicolon.
3140      * Each rule will have three items: primary 5G scenario, secondary 5G scenario, and
3141      * grace period in seconds before changing the icon. When the timer for the primary 5G timer
3142      * expires, the system UI will continue to show the icon for the primary 5G scenario (defined
3143      * in {@link #KEY_5G_ICON_CONFIGURATION_STRING}) for the amount of time specified by the grace
3144      * period. If the primary 5G scenario is reestablished, the timers will reset and the system UI
3145      * will continue to display the icon for the primary 5G scenario without interruption. If the
3146      * secondary 5G scenario is lost, the timer will reset and the icon will reflect the true state.
3147      * Defined states (5G scenarios #1-5) take precedence over 'any' (5G scenario #6), and
3148      * unspecified transitions have a default grace period of 0. The order of rules in the
3149      * configuration determines the priority (the first applicable timer rule will be used).
3150      *
3151      * Here is an example: "connected,not_restricted_rrc_idle,30"
3152      * This configuration defines a secondary timer that extends the primary 'connected' timer.
3153      * When the primary 'connected' timer expires while the UE is in the 'not_restricted_rrc_idle'
3154      * 5G state, system UI will continue to display the 5G icon for 'connected' for 30 seconds.
3155      * If the 5G state returns to 'connected', the timer will be reset without change to the icon,
3156      * and if the 5G state changes to neither 'connected' not 'not_restricted_rrc_idle', the icon
3157      * will change to reflect the true state.
3158      *
3159      * @hide
3160      */
3161     public static final String KEY_5G_ICON_DISPLAY_SECONDARY_GRACE_PERIOD_STRING =
3162             "5g_icon_display_secondary_grace_period_string";
3163 
3164     /**
3165      * Whether device reset all of NR timers when device camped on a network that haven't 5G
3166      * capability and RRC currently in IDLE state.
3167      *
3168      * The default value is false;
3169      *
3170      * @hide
3171      */
3172     public static final String KEY_NR_TIMERS_RESET_IF_NON_ENDC_AND_RRC_IDLE_BOOL =
3173             "nr_timers_reset_if_non_endc_and_rrc_idle_bool";
3174 
3175     /**
3176      * Controls time in milliseconds until DcTracker reevaluates 5G connection state.
3177      * @hide
3178      */
3179     public static final String KEY_5G_WATCHDOG_TIME_MS_LONG = "5g_watchdog_time_ms_long";
3180 
3181     /**
3182      * Whether NR (non-standalone) should be unmetered for all frequencies.
3183      * If either {@link #KEY_UNMETERED_NR_NSA_MMWAVE_BOOL} or
3184      * {@link #KEY_UNMETERED_NR_NSA_SUB6_BOOL} are true, then this value will be ignored.
3185      * @hide
3186      */
3187     public static final String KEY_UNMETERED_NR_NSA_BOOL = "unmetered_nr_nsa_bool";
3188 
3189     /**
3190      * Whether NR (non-standalone) frequencies above 6GHz (millimeter wave) should be unmetered.
3191      * If this is true, then the value for {@link #KEY_UNMETERED_NR_NSA_BOOL} will be ignored.
3192      * @hide
3193      */
3194     public static final String KEY_UNMETERED_NR_NSA_MMWAVE_BOOL = "unmetered_nr_nsa_mmwave_bool";
3195 
3196     /**
3197      * Whether NR (non-standalone) frequencies below 6GHz (sub6) should be unmetered.
3198      * If this is true, then the value for {@link #KEY_UNMETERED_NR_NSA_BOOL} will be ignored.
3199      * @hide
3200      */
3201     public static final String KEY_UNMETERED_NR_NSA_SUB6_BOOL = "unmetered_nr_nsa_sub6_bool";
3202 
3203     /**
3204      * Whether NR (non-standalone) should be unmetered when the device is roaming.
3205      * If false, then the values for {@link #KEY_UNMETERED_NR_NSA_BOOL},
3206      * {@link #KEY_UNMETERED_NR_NSA_MMWAVE_BOOL}, {@link #KEY_UNMETERED_NR_NSA_SUB6_BOOL},
3207      * and unmetered {@link SubscriptionPlan} will be ignored.
3208      * @hide
3209      */
3210     public static final String KEY_UNMETERED_NR_NSA_WHEN_ROAMING_BOOL =
3211             "unmetered_nr_nsa_when_roaming_bool";
3212 
3213     /**
3214      * Whether NR (standalone) should be unmetered for all frequencies.
3215      * If either {@link #KEY_UNMETERED_NR_SA_MMWAVE_BOOL} or
3216      * {@link #KEY_UNMETERED_NR_SA_SUB6_BOOL} are true, then this value will be ignored.
3217      * @hide
3218      */
3219     public static final String KEY_UNMETERED_NR_SA_BOOL = "unmetered_nr_sa_bool";
3220 
3221     /**
3222      * Whether NR (standalone) frequencies above 6GHz (millimeter wave) should be unmetered.
3223      * If this is true, then the value for {@link #KEY_UNMETERED_NR_SA_BOOL} will be ignored.
3224      * @hide
3225      */
3226     public static final String KEY_UNMETERED_NR_SA_MMWAVE_BOOL = "unmetered_nr_sa_mmwave_bool";
3227 
3228     /**
3229      * Whether NR (standalone) frequencies below 6GHz (sub6) should be unmetered.
3230      * If this is true, then the value for {@link #KEY_UNMETERED_NR_SA_BOOL} will be ignored.
3231      * @hide
3232      */
3233     public static final String KEY_UNMETERED_NR_SA_SUB6_BOOL = "unmetered_nr_sa_sub6_bool";
3234 
3235     /**
3236      * Support ASCII 7-BIT encoding for long SMS. This carrier config is used to enable
3237      * this feature.
3238      * @hide
3239      */
3240     public static final String KEY_ASCII_7_BIT_SUPPORT_FOR_LONG_MESSAGE_BOOL =
3241             "ascii_7_bit_support_for_long_message_bool";
3242 
3243     /**
3244      * Controls whether to show wifi calling icon in statusbar when wifi calling is available.
3245      * @hide
3246      */
3247     public static final String KEY_SHOW_WIFI_CALLING_ICON_IN_STATUS_BAR_BOOL =
3248             "show_wifi_calling_icon_in_status_bar_bool";
3249 
3250     /**
3251      * Controls RSRP threshold at which OpportunisticNetworkService will decide whether
3252      * the opportunistic network is good enough for internet data.
3253      */
3254     public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSRP_INT =
3255             "opportunistic_network_entry_threshold_rsrp_int";
3256 
3257     /**
3258      * Controls RSSNR threshold at which OpportunisticNetworkService will decide whether
3259      * the opportunistic network is good enough for internet data.
3260      */
3261     public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSSNR_INT =
3262             "opportunistic_network_entry_threshold_rssnr_int";
3263 
3264     /**
3265      * Controls RSRP threshold below which OpportunisticNetworkService will decide whether
3266      * the opportunistic network available is not good enough for internet data.
3267      */
3268     public static final String KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT =
3269             "opportunistic_network_exit_threshold_rsrp_int";
3270 
3271     /**
3272      * Controls RSSNR threshold below which OpportunisticNetworkService will decide whether
3273      * the opportunistic network available is not good enough for internet data.
3274      */
3275     public static final String KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT =
3276             "opportunistic_network_exit_threshold_rssnr_int";
3277 
3278     /**
3279      * Controls bandwidth threshold in Kbps at which OpportunisticNetworkService will decide whether
3280      * the opportunistic network is good enough for internet data.
3281      */
3282     public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_BANDWIDTH_INT =
3283             "opportunistic_network_entry_threshold_bandwidth_int";
3284 
3285     /**
3286      * Controls hysteresis time in milli seconds for which OpportunisticNetworkService
3287      * will wait before attaching to a network.
3288      */
3289     public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_OR_EXIT_HYSTERESIS_TIME_LONG =
3290             "opportunistic_network_entry_or_exit_hysteresis_time_long";
3291 
3292     /**
3293      * Controls hysteresis time in milli seconds for which OpportunisticNetworkService
3294      * will wait before switching data to an opportunistic network.
3295      */
3296     public static final String KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG =
3297             "opportunistic_network_data_switch_hysteresis_time_long";
3298 
3299     /**
3300      * Controls hysteresis time in milli seconds for which OpportunisticNetworkService
3301      * will wait before switching data from opportunistic network to primary network.
3302      */
3303     public static final String KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG =
3304             "opportunistic_network_data_switch_exit_hysteresis_time_long";
3305 
3306     /**
3307      * Controls whether to do ping test before switching data to opportunistic network.
3308      * This carrier config is used to disable this feature.
3309      */
3310     public static final String KEY_PING_TEST_BEFORE_DATA_SWITCH_BOOL =
3311             "ping_test_before_data_switch_bool";
3312 
3313     /**
3314      * Controls whether to switch data to primary from opportunistic subscription
3315      * if primary is out of service. This control only affects system or 1st party app
3316      * initiated data switch, but will not override data switch initiated by privileged carrier apps
3317      * This carrier config is used to disable this feature.
3318      */
3319     public static final String KEY_SWITCH_DATA_TO_PRIMARY_IF_PRIMARY_IS_OOS_BOOL =
3320             "switch_data_to_primary_if_primary_is_oos_bool";
3321 
3322     /**
3323      * Controls the ping pong determination of opportunistic network.
3324      * If opportunistic network is determined as out of service or below
3325      * #KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT or
3326      * #KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT within
3327      * #KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG of switching to opportunistic network,
3328      * it will be determined as ping pong situation by system app or 1st party app.
3329      */
3330     public static final String KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG =
3331             "opportunistic_network_ping_pong_time_long";
3332     /**
3333      * Controls back off time in milli seconds for switching back to
3334      * opportunistic subscription. This time will be added to
3335      * {@link CarrierConfigManager#KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG} to
3336      * determine hysteresis time if there is ping pong situation
3337      * (determined by system app or 1st party app) between primary and opportunistic
3338      * subscription. Ping ping situation is defined in
3339      * #KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG.
3340      * If ping pong situation continuous #KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG
3341      * will be added to previously determined hysteresis time.
3342      */
3343     public static final String KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG =
3344             "opportunistic_network_backoff_time_long";
3345 
3346     /**
3347      * Controls the max back off time in milli seconds for switching back to
3348      * opportunistic subscription.
3349      * This time will be the max hysteresis that can be determined irrespective of there is
3350      * continuous ping pong situation or not as described in
3351      * #KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG and
3352      * #KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG.
3353      */
3354     public static final String KEY_OPPORTUNISTIC_NETWORK_MAX_BACKOFF_TIME_LONG =
3355             "opportunistic_network_max_backoff_time_long";
3356 
3357     /**
3358      * Indicates zero or more emergency number prefix(es), because some carrier requires
3359      * if users dial an emergency number address with a specific prefix, the combination of the
3360      * prefix and the address is also a valid emergency number to dial. For example, an emergency
3361      * number prefix is 318, and the emergency number is 911. Both 318911 and 911 can be dialed by
3362      * users for emergency call. An empty array of string indicates that current carrier does not
3363      * have this requirement.
3364      */
3365     public static final String KEY_EMERGENCY_NUMBER_PREFIX_STRING_ARRAY =
3366             "emergency_number_prefix_string_array";
3367 
3368     /**
3369      * Smart forwarding config. Smart forwarding is a feature to configure call forwarding to a
3370      * different SIM in the device when one SIM is not reachable. The config here specifies a smart
3371      * forwarding component that will launch UI for changing the configuration. An empty string
3372      * indicates that no smart forwarding component is specified.
3373      *
3374      * Currently, only one non-empty configuration of smart forwarding component within system will
3375      * be used when multiple SIMs are inserted.
3376      *
3377      * Empty string by default.
3378      *
3379      * @hide
3380      */
3381     public static final String KEY_SMART_FORWARDING_CONFIG_COMPONENT_NAME_STRING =
3382             "smart_forwarding_config_component_name_string";
3383 
3384     /**
3385      * Indicates when a carrier has a primary subscription and an opportunistic subscription active,
3386      * and when Internet data is switched to opportunistic network, whether to still show
3387      * signal bar of primary network. By default it will be false, meaning whenever data
3388      * is going over opportunistic network, signal bar will reflect signal strength and rat
3389      * icon of that network.
3390      */
3391     public static final String KEY_ALWAYS_SHOW_PRIMARY_SIGNAL_BAR_IN_OPPORTUNISTIC_NETWORK_BOOLEAN =
3392             "always_show_primary_signal_bar_in_opportunistic_network_boolean";
3393 
3394     /**
3395      * Upon data switching between subscriptions within a carrier group, if switch depends on
3396      * validation result, this value defines customized value of how long we wait for validation
3397      * success before we fail and revoke the switch.
3398      * Time out is in milliseconds.
3399      */
3400     public static final String KEY_DATA_SWITCH_VALIDATION_TIMEOUT_LONG =
3401             "data_switch_validation_timeout_long";
3402 
3403     /**
3404      * GPS configs. See the GNSS HAL documentation for more details.
3405      */
3406     public static final class Gps {
Gps()3407         private Gps() {}
3408 
3409         /** Prefix of all Gps.KEY_* constants. */
3410         public static final String KEY_PREFIX = "gps.";
3411 
3412         /**
3413          * Location information during (and after) an emergency call is only provided over control
3414          * plane signaling from the network.
3415          * @hide
3416          */
3417         public static final int SUPL_EMERGENCY_MODE_TYPE_CP_ONLY = 0;
3418 
3419         /**
3420          * Location information during (and after) an emergency call is provided over the data
3421          * plane and serviced by the framework GNSS service, but if it fails, the carrier also
3422          * supports control plane backup signaling.
3423          * @hide
3424          */
3425         public static final int SUPL_EMERGENCY_MODE_TYPE_CP_FALLBACK = 1;
3426 
3427         /**
3428          * Location information during (and after) an emergency call is provided over the data plane
3429          * and serviced by the framework GNSS service only. There is no backup signalling over the
3430          * control plane if it fails.
3431          * @hide
3432          */
3433         public static final int SUPL_EMERGENCY_MODE_TYPE_DP_ONLY = 2;
3434 
3435 
3436         /**
3437          * Determine whether current lpp_mode used for E-911 needs to be kept persistently.
3438          * {@code false} - not keeping the lpp_mode means using default configuration of gps.conf
3439          *                 when sim is not presented.
3440          * {@code true}  - current lpp_profile of carrier will be kepted persistently
3441          *                 even after sim is removed. This is default.
3442          */
3443         public static final String KEY_PERSIST_LPP_MODE_BOOL = KEY_PREFIX + "persist_lpp_mode_bool";
3444 
3445         /**
3446          * SUPL server host for SET Initiated & non-ES Network-Initiated SUPL requests.
3447          * Default to supl.google.com
3448          * @hide
3449          */
3450         public static final String KEY_SUPL_HOST_STRING = KEY_PREFIX + "supl_host";
3451 
3452         /**
3453          * SUPL server port. Default to 7275.
3454          * @hide
3455          */
3456         public static final String KEY_SUPL_PORT_STRING = KEY_PREFIX + "supl_port";
3457 
3458         /**
3459          * The SUPL version requested by Carrier. This is a bit mask
3460          * with bits 0:7 representing a service indicator field, bits 8:15
3461          * representing the minor version and bits 16:23 representing the
3462          * major version. Default to 0x20000.
3463          * @hide
3464          */
3465         public static final String KEY_SUPL_VER_STRING = KEY_PREFIX + "supl_ver";
3466 
3467         /**
3468          * SUPL_MODE configuration bit mask
3469          * 1 - Mobile Station Based. This is default.
3470          * 2 - Mobile Station Assisted.
3471          * @hide
3472          */
3473         public static final String KEY_SUPL_MODE_STRING = KEY_PREFIX + "supl_mode";
3474 
3475         /**
3476          * Whether to limit responses to SUPL ES mode requests only during user emergency sessions
3477          * (e.g. E911), and SUPL non-ES requests to only outside of non user emergency sessions.
3478          * 0 - no.
3479          * 1 - yes. This is default.
3480          * @hide
3481          */
3482         public static final String KEY_SUPL_ES_STRING = KEY_PREFIX + "supl_es";
3483 
3484         /**
3485          * LTE Positioning Profile settings bit mask.
3486          * 0 - Radio Resource Location Protocol in user plane and control plane. This is default.
3487          * 1 - Enable LTE Positioning Protocol in user plane.
3488          * 2 - Enable LTE Positioning Protocol in control plane.
3489          * @hide
3490          */
3491         public static final String KEY_LPP_PROFILE_STRING = KEY_PREFIX + "lpp_profile";
3492 
3493         /**
3494          * Determine whether to use emergency PDN for emergency SUPL.
3495          * 0 - no.
3496          * 1 - yes. This is default.
3497          * @hide
3498          */
3499         public static final String KEY_USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL_STRING =
3500                 KEY_PREFIX + "use_emergency_pdn_for_emergency_supl";
3501 
3502         /**
3503          * A_GLONASS_POS_PROTOCOL_SELECT bit mask.
3504          * 0 - Don't use A-GLONASS. This is default.
3505          * 1 - Use A-GLONASS in Radio Resource Control(RRC) control-plane.
3506          * 2 - Use A-GLONASS in Radio Resource Location user-plane.
3507          * 4 - Use A-GLONASS in LTE Positioning Protocol User plane.
3508          * @hide
3509          */
3510         public static final String KEY_A_GLONASS_POS_PROTOCOL_SELECT_STRING =
3511                 KEY_PREFIX + "a_glonass_pos_protocol_select";
3512 
3513         /**
3514          * GPS_LOCK configuration bit mask to specify GPS device behavior toward other services,
3515          * when Location Settings are off.
3516          * "0" - No lock.
3517          * "1" - Lock Mobile Originated GPS functionalities.
3518          * "2" - Lock Network initiated GPS functionalities.
3519          * "3" - Lock both. This is default.
3520          * @hide
3521          */
3522         public static final String KEY_GPS_LOCK_STRING = KEY_PREFIX + "gps_lock";
3523 
3524         /**
3525          * Control Plane / SUPL NI emergency extension time in seconds. Default to "0".
3526          * @hide
3527          */
3528         public static final String KEY_ES_EXTENSION_SEC_STRING = KEY_PREFIX + "es_extension_sec";
3529 
3530         /**
3531          * Space separated list of Android package names of proxy applications representing
3532          * the non-framework entities requesting location directly from GNSS without involving
3533          * the framework, as managed by IGnssVisibilityControl.hal. For example,
3534          * "com.example.mdt com.example.ims".
3535          * @hide
3536          */
3537         public static final String KEY_NFW_PROXY_APPS_STRING = KEY_PREFIX + "nfw_proxy_apps";
3538 
3539         /**
3540          * Determines whether or not SUPL ES mode supports a control-plane mechanism to get a user's
3541          * location in the event that data plane SUPL fails or is otherwise unavailable.
3542          * <p>
3543          * An integer value determines the support type of this carrier. If this carrier only
3544          * supports data plane SUPL ES, then the value will be
3545          * {@link #SUPL_EMERGENCY_MODE_TYPE_DP_ONLY}. If the carrier supports control plane fallback
3546          * for emergency SUPL, the value will be {@link #SUPL_EMERGENCY_MODE_TYPE_CP_FALLBACK}.
3547          * If the carrier does not support data plane SUPL using the framework, the value will be
3548          * {@link #SUPL_EMERGENCY_MODE_TYPE_CP_ONLY}.
3549          * <p>
3550          * The default value for this configuration is {@link #SUPL_EMERGENCY_MODE_TYPE_CP_ONLY}.
3551          * @hide
3552          */
3553         public static final String KEY_ES_SUPL_CONTROL_PLANE_SUPPORT_INT = KEY_PREFIX
3554                 + "es_supl_control_plane_support_int";
3555 
3556         /**
3557          * A list of roaming PLMNs where SUPL ES mode does not support a control-plane mechanism to
3558          * get a user's location in the event that data plane SUPL fails or is otherwise
3559          * unavailable.
3560          * <p>
3561          * A string array of PLMNs that do not support a control-plane mechanism for getting a
3562          * user's location for SUPL ES.
3563          * @hide
3564          */
3565         public static final String KEY_ES_SUPL_DATA_PLANE_ONLY_ROAMING_PLMN_STRING_ARRAY =
3566                 KEY_PREFIX + "es_supl_data_plane_only_roaming_plmn_string_array";
3567 
getDefaults()3568         private static PersistableBundle getDefaults() {
3569             PersistableBundle defaults = new PersistableBundle();
3570             defaults.putBoolean(KEY_PERSIST_LPP_MODE_BOOL, true);
3571             defaults.putString(KEY_SUPL_HOST_STRING, "supl.google.com");
3572             defaults.putString(KEY_SUPL_PORT_STRING, "7275");
3573             defaults.putString(KEY_SUPL_VER_STRING, "0x20000");
3574             defaults.putString(KEY_SUPL_MODE_STRING, "1");
3575             defaults.putString(KEY_SUPL_ES_STRING, "1");
3576             defaults.putString(KEY_LPP_PROFILE_STRING, "0");
3577             defaults.putString(KEY_USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL_STRING, "1");
3578             defaults.putString(KEY_A_GLONASS_POS_PROTOCOL_SELECT_STRING, "0");
3579             defaults.putString(KEY_GPS_LOCK_STRING, "3");
3580             defaults.putString(KEY_ES_EXTENSION_SEC_STRING, "0");
3581             defaults.putString(KEY_NFW_PROXY_APPS_STRING, "");
3582             defaults.putInt(KEY_ES_SUPL_CONTROL_PLANE_SUPPORT_INT,
3583                     SUPL_EMERGENCY_MODE_TYPE_CP_ONLY);
3584             defaults.putStringArray(KEY_ES_SUPL_DATA_PLANE_ONLY_ROAMING_PLMN_STRING_ARRAY, null);
3585             return defaults;
3586         }
3587     }
3588 
3589    /**
3590     * An int array containing CDMA enhanced roaming indicator values for Home (non-roaming) network.
3591     * The default values come from 3GPP2 C.R1001 table 8.1-1.
3592     * Enhanced Roaming Indicator Number Assignments
3593     *
3594     * @hide
3595     */
3596     public static final String KEY_CDMA_ENHANCED_ROAMING_INDICATOR_FOR_HOME_NETWORK_INT_ARRAY =
3597             "cdma_enhanced_roaming_indicator_for_home_network_int_array";
3598 
3599     /**
3600      * Determines whether wifi calling location privacy policy is shown.
3601      */
3602     public static final String KEY_SHOW_WFC_LOCATION_PRIVACY_POLICY_BOOL =
3603             "show_wfc_location_privacy_policy_bool";
3604 
3605     /**
3606      * Indicates use 3GPP application to replace 3GPP2 application even if it's a CDMA/CDMA-LTE
3607      * phone, becasue some carriers's CSIM application is present but not supported.
3608      * @hide
3609      */
3610     public static final String KEY_USE_USIM_BOOL = "use_usim_bool";
3611 
3612     /**
3613      * Determines whether the carrier wants to cancel the cs reject notification automatically
3614      * when the voice registration state changes.
3615      * If true, the notification will be automatically removed
3616      *          when the voice registration state changes.
3617      * If false, the notification will persist until the user dismisses it,
3618      *           the SIM is removed, or the device is rebooted.
3619      * @hide
3620      */
3621     public static final String KEY_AUTO_CANCEL_CS_REJECT_NOTIFICATION =
3622             "carrier_auto_cancel_cs_notification";
3623 
3624     /**
3625      * Passing this value as {@link KEY_SUBSCRIPTION_GROUP_UUID_STRING} will remove the
3626      * subscription from a group instead of adding it to a group.
3627      *
3628      * TODO: Expose in a future release.
3629      *
3630      * @hide
3631      */
3632     public static final String REMOVE_GROUP_UUID_STRING = "00000000-0000-0000-0000-000000000000";
3633 
3634     /**
3635      * The UUID of a Group of related subscriptions in which to place the current subscription.
3636      *
3637      * A grouped subscription will behave for billing purposes and other UI purposes as though it
3638      * is a transparent extension of other subscriptions in the group.
3639      *
3640      * <p>If set to {@link #REMOVE_GROUP_UUID_STRING}, then the subscription will be removed from
3641      * its current group.
3642      *
3643      * TODO: unhide this key.
3644      *
3645      * @hide
3646      */
3647     public static final String KEY_SUBSCRIPTION_GROUP_UUID_STRING =
3648             "subscription_group_uuid_string";
3649 
3650     /**
3651      * Data switch validation minimal gap time, in milliseconds.
3652      *
3653      * Which means, if the same subscription on the same network (based on MCC+MNC+TAC+subId)
3654      * was recently validated (within this time gap), and Telephony receives a request to switch to
3655      * it again, Telephony will skip the validation part and switch to it as soon as connection
3656      * is setup, as if it's already validated.
3657      *
3658      * If the network was validated within the gap but the latest validation result is false, the
3659      * validation will not be skipped.
3660      *
3661      * If not set or set to 0, validation will never be skipped.
3662      * The max acceptable value of this config is 24 hours.
3663      *
3664      * @hide
3665      */
3666     public static final String KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG =
3667             "data_switch_validation_min_gap_long";
3668 
3669     /**
3670     * A boolean property indicating whether this subscription should be managed as an opportunistic
3671     * subscription.
3672     *
3673     * If true, then this subscription will be selected based on available coverage and will not be
3674     * available for a user in settings menus for selecting macro network providers. If unset,
3675     * defaults to “false”.
3676     *
3677     * TODO: unhide this key.
3678     *
3679     * @hide
3680     */
3681     public static final String KEY_IS_OPPORTUNISTIC_SUBSCRIPTION_BOOL =
3682             "is_opportunistic_subscription_bool";
3683 
3684     /**
3685      * Configs used by the IMS stack.
3686      */
3687     public static final class Ims {
3688         /** Prefix of all Ims.KEY_* constants. */
3689         public static final String KEY_PREFIX = "ims.";
3690 
3691         //TODO: Add configs related to IMS.
3692 
Ims()3693         private Ims() {}
3694 
getDefaults()3695         private static PersistableBundle getDefaults() {
3696             PersistableBundle defaults = new PersistableBundle();
3697             return defaults;
3698         }
3699     }
3700 
3701     /**
3702      * A list of 4 GSM RSSI thresholds above which a signal level is considered POOR,
3703      * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.
3704      *
3705      * Note that the min and max thresholds are fixed at -113 and -51, as set in 3GPP TS 27.007
3706      * section 8.5.
3707      * <p>
3708      * See CellSignalStrengthGsm#GSM_RSSI_MAX and CellSignalStrengthGsm#GSM_RSSI_MIN. Any signal
3709      * level outside these boundaries is considered invalid.
3710      * @hide
3711      */
3712     public static final String KEY_GSM_RSSI_THRESHOLDS_INT_ARRAY =
3713             "gsm_rssi_thresholds_int_array";
3714 
3715     /**
3716      * Determines whether Wireless Priority Service call is supported over IMS.
3717      *
3718      * See Wireless Priority Service from https://www.fcc.gov/general/wireless-priority-service-wps
3719      * @hide
3720      */
3721     public static final String KEY_SUPPORT_WPS_OVER_IMS_BOOL =
3722             "support_wps_over_ims_bool";
3723 
3724     /**
3725      * Holds the list of carrier certificate hashes.
3726      * Note that each carrier has its own certificates.
3727      */
3728     public static final String KEY_CARRIER_CERTIFICATE_STRING_ARRAY =
3729             "carrier_certificate_string_array";
3730 
3731     /**
3732      * Flag specifying whether the incoming call number should be formatted to national number
3733      * for Japan. @return {@code true} convert to the national format, {@code false} otherwise.
3734      * e.g. "+819012345678" -> "09012345678"
3735      * @hide
3736      */
3737     public static final String KEY_FORMAT_INCOMING_NUMBER_TO_NATIONAL_FOR_JP_BOOL =
3738             "format_incoming_number_to_national_for_jp_bool";
3739 
3740     /**
3741      * DisconnectCause array to play busy tone. Value should be array of
3742      * {@link android.telephony.DisconnectCause}.
3743      */
3744     public static final String KEY_DISCONNECT_CAUSE_PLAY_BUSYTONE_INT_ARRAY =
3745             "disconnect_cause_play_busytone_int_array";
3746 
3747     /**
3748      * Flag specifying whether to prevent sending CLIR activation("*31#") and deactivation("#31#")
3749      * code only without dialing number.
3750      * When {@code true}, these are prevented, {@code false} otherwise.
3751      */
3752     public static final String KEY_PREVENT_CLIR_ACTIVATION_AND_DEACTIVATION_CODE_BOOL =
3753             "prevent_clir_activation_and_deactivation_code_bool";
3754 
3755     /**
3756      * The list of originating address of missed incoming call SMS. If the SMS has originator
3757      * matched, the SMS will be treated as special SMS for notifying missed incoming call to the
3758      * user.
3759      *
3760      * @hide
3761      */
3762     public static final String KEY_MISSED_INCOMING_CALL_SMS_ORIGINATOR_STRING_ARRAY =
3763             "missed_incoming_call_sms_originator_string_array";
3764 
3765 
3766     /**
3767      * String array of Apn Type configurations.
3768      * The entries should be of form "APN_TYPE_NAME:priority".
3769      * priority is an integer that is sorted from highest to lowest.
3770      * example: cbs:5
3771      *
3772      * @hide
3773      */
3774     public static final String KEY_APN_PRIORITY_STRING_ARRAY = "apn_priority_string_array";
3775 
3776     /**
3777      * The patterns of missed incoming call sms. This is the regular expression used for
3778      * matching the missed incoming call's date, time, and caller id. The pattern should match
3779      * fields for at least month, day, hour, and minute. Year is optional although it is encouraged.
3780      *
3781      * An usable pattern should look like this:
3782      * ^(?<month>0[1-9]|1[012])\/(?<day>0[1-9]|1[0-9]|2[0-9]|3[0-1]) (?<hour>[0-1][0-9]|2[0-3]):
3783      * (?<minute>[0-5][0-9])\s*(?<callerId>[0-9]+)\s*$
3784      *
3785      * @hide
3786      */
3787     public static final String KEY_MISSED_INCOMING_CALL_SMS_PATTERN_STRING_ARRAY =
3788             "missed_incoming_call_sms_pattern_string_array";
3789 
3790     /**
3791      * Indicating whether DUN APN should be disabled when the device is roaming. In that case,
3792      * the default APN (i.e. internet) will be used for tethering.
3793      *
3794      * @hide
3795      */
3796     public static final String KEY_DISABLE_DUN_APN_WHILE_ROAMING =
3797             "disable_dun_apn_while_roaming";
3798 
3799     /** The default value for every variable. */
3800     private final static PersistableBundle sDefaults;
3801 
3802     static {
3803         sDefaults = new PersistableBundle();
sDefaults.putString(KEY_CARRIER_CONFIG_VERSION_STRING, "")3804         sDefaults.putString(KEY_CARRIER_CONFIG_VERSION_STRING, "");
sDefaults.putBoolean(KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL, true)3805         sDefaults.putBoolean(KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL, false)3806         sDefaults.putBoolean(KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_ALLOW_TRANSFER_IMS_CALL_BOOL, false)3807         sDefaults.putBoolean(KEY_CARRIER_ALLOW_TRANSFER_IMS_CALL_BOOL, false);
sDefaults.putBoolean(KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL, false)3808         sDefaults.putBoolean(KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL, false);
sDefaults.putBoolean(KEY_AUTO_RETRY_FAILED_WIFI_EMERGENCY_CALL, false)3809         sDefaults.putBoolean(KEY_AUTO_RETRY_FAILED_WIFI_EMERGENCY_CALL, false);
sDefaults.putBoolean(KEY_ADDITIONAL_CALL_SETTING_BOOL, true)3810         sDefaults.putBoolean(KEY_ADDITIONAL_CALL_SETTING_BOOL, true);
sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL, false)3811         sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL, false);
sDefaults.putStringArray(KEY_UNLOGGABLE_NUMBERS_STRING_ARRAY, null)3812         sDefaults.putStringArray(KEY_UNLOGGABLE_NUMBERS_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_ALLOW_LOCAL_DTMF_TONES_BOOL, true)3813         sDefaults.putBoolean(KEY_ALLOW_LOCAL_DTMF_TONES_BOOL, true);
sDefaults.putBoolean(KEY_PLAY_CALL_RECORDING_TONE_BOOL, false)3814         sDefaults.putBoolean(KEY_PLAY_CALL_RECORDING_TONE_BOOL, false);
sDefaults.putBoolean(KEY_APN_EXPAND_BOOL, true)3815         sDefaults.putBoolean(KEY_APN_EXPAND_BOOL, true);
sDefaults.putBoolean(KEY_AUTO_RETRY_ENABLED_BOOL, false)3816         sDefaults.putBoolean(KEY_AUTO_RETRY_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_SETTINGS_ENABLE_BOOL, false)3817         sDefaults.putBoolean(KEY_CARRIER_SETTINGS_ENABLE_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VOLTE_AVAILABLE_BOOL, false)3818         sDefaults.putBoolean(KEY_CARRIER_VOLTE_AVAILABLE_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VT_AVAILABLE_BOOL, false)3819         sDefaults.putBoolean(KEY_CARRIER_VT_AVAILABLE_BOOL, false);
sDefaults.putBoolean(KEY_VOLTE_5G_LIMITED_ALERT_DIALOG_BOOL, false)3820         sDefaults.putBoolean(KEY_VOLTE_5G_LIMITED_ALERT_DIALOG_BOOL, false);
sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL, false)3821         sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_MERGING_RTT_CALLS_BOOL, false)3822         sDefaults.putBoolean(KEY_ALLOW_MERGING_RTT_CALLS_BOOL, false);
sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL, false)3823         sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_DOWNGRADE_VT_TO_AUDIO_BOOL, true)3824         sDefaults.putBoolean(KEY_SUPPORT_DOWNGRADE_VT_TO_AUDIO_BOOL, true);
sDefaults.putString(KEY_DEFAULT_VM_NUMBER_STRING, "")3825         sDefaults.putString(KEY_DEFAULT_VM_NUMBER_STRING, "");
sDefaults.putString(KEY_DEFAULT_VM_NUMBER_ROAMING_STRING, "")3826         sDefaults.putString(KEY_DEFAULT_VM_NUMBER_ROAMING_STRING, "");
sDefaults.putString(KEY_DEFAULT_VM_NUMBER_ROAMING_AND_IMS_UNREGISTERED_STRING, "")3827         sDefaults.putString(KEY_DEFAULT_VM_NUMBER_ROAMING_AND_IMS_UNREGISTERED_STRING, "");
sDefaults.putBoolean(KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL, false)3828         sDefaults.putBoolean(KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL, false);
sDefaults.putBoolean(KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS, true)3829         sDefaults.putBoolean(KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS, true);
sDefaults.putBoolean(KEY_VILTE_DATA_IS_METERED_BOOL, true)3830         sDefaults.putBoolean(KEY_VILTE_DATA_IS_METERED_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL, false)3831         sDefaults.putBoolean(KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_WFC_SUPPORTS_WIFI_ONLY_BOOL, false)3832         sDefaults.putBoolean(KEY_CARRIER_WFC_SUPPORTS_WIFI_ONLY_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL, false)3833         sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL, false)3834         sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_PROMOTE_WFC_ON_CALL_FAIL_BOOL, false)3835         sDefaults.putBoolean(KEY_CARRIER_PROMOTE_WFC_ON_CALL_FAIL_BOOL, false);
sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT, 2)3836         sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT, 2);
sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT, 2)3837         sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT, 2);
sDefaults.putBoolean(KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL, false)3838         sDefaults.putBoolean(KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_RCS_PROVISIONING_REQUIRED_BOOL, true)3839         sDefaults.putBoolean(KEY_CARRIER_RCS_PROVISIONING_REQUIRED_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL, false)3840         sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL, false)3841         sDefaults.putBoolean(KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL, false)3842         sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL, false)3843         sDefaults.putBoolean(KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL, true)3844         sDefaults.putBoolean(KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL, true)3845         sDefaults.putBoolean(KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_IMS_GBA_REQUIRED_BOOL, false)3846         sDefaults.putBoolean(KEY_CARRIER_IMS_GBA_REQUIRED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL, false)3847         sDefaults.putBoolean(KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL, true)3848         sDefaults.putBoolean(KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL, true);
sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "")3849         sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "")3850         sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_PACKAGE_OVERRIDE_STRING, "")3851         sDefaults.putString(KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_PACKAGE_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "")3852         sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "")3853         sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING, "")3854         sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING, "");
sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ESCAPED_CHARS_STRING, "")3855         sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ESCAPED_CHARS_STRING, "");
sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING, "")3856         sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING, "");
sDefaults.putInt(KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT, 64)3857         sDefaults.putInt(KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT, 64);
sDefaults.putBoolean(KEY_DISABLE_CDMA_ACTIVATION_CODE_BOOL, false)3858         sDefaults.putBoolean(KEY_DISABLE_CDMA_ACTIVATION_CODE_BOOL, false);
sDefaults.putBoolean(KEY_DTMF_TYPE_ENABLED_BOOL, false)3859         sDefaults.putBoolean(KEY_DTMF_TYPE_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_ENABLE_DIALER_KEY_VIBRATION_BOOL, true)3860         sDefaults.putBoolean(KEY_ENABLE_DIALER_KEY_VIBRATION_BOOL, true);
sDefaults.putBoolean(KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL, false)3861         sDefaults.putBoolean(KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL, false);
sDefaults.putBoolean(KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL, false)3862         sDefaults.putBoolean(KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL, false);
sDefaults.putBoolean(KEY_ONLY_AUTO_SELECT_IN_HOME_NETWORK_BOOL, false)3863         sDefaults.putBoolean(KEY_ONLY_AUTO_SELECT_IN_HOME_NETWORK_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_SINGLE_OPERATOR_ROW_IN_CHOOSE_NETWORK_SETTING_BOOL, true)3864         sDefaults.putBoolean(KEY_SHOW_SINGLE_OPERATOR_ROW_IN_CHOOSE_NETWORK_SETTING_BOOL, true);
sDefaults.putBoolean(KEY_SHOW_SPN_FOR_HOME_IN_CHOOSE_NETWORK_SETTING_BOOL, false)3865         sDefaults.putBoolean(KEY_SHOW_SPN_FOR_HOME_IN_CHOOSE_NETWORK_SETTING_BOOL, false);
sDefaults.putBoolean(KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL, false)3866         sDefaults.putBoolean(KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL, false);
sDefaults.putBoolean(KEY_HIDE_SIM_LOCK_SETTINGS_BOOL, false)3867         sDefaults.putBoolean(KEY_HIDE_SIM_LOCK_SETTINGS_BOOL, false);
3868 
sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONED_BOOL, false)3869         sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONED_BOOL, false);
sDefaults.putBoolean(KEY_CALL_BARRING_VISIBILITY_BOOL, false)3870         sDefaults.putBoolean(KEY_CALL_BARRING_VISIBILITY_BOOL, false);
sDefaults.putBoolean(KEY_CALL_BARRING_SUPPORTS_PASSWORD_CHANGE_BOOL, true)3871         sDefaults.putBoolean(KEY_CALL_BARRING_SUPPORTS_PASSWORD_CHANGE_BOOL, true);
sDefaults.putBoolean(KEY_CALL_BARRING_SUPPORTS_DEACTIVATE_ALL_BOOL, true)3872         sDefaults.putBoolean(KEY_CALL_BARRING_SUPPORTS_DEACTIVATE_ALL_BOOL, true);
sDefaults.putBoolean(KEY_CALL_FORWARDING_VISIBILITY_BOOL, true)3873         sDefaults.putBoolean(KEY_CALL_FORWARDING_VISIBILITY_BOOL, true);
sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_UNREACHABLE_SUPPORTED_BOOL, true)3874         sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_UNREACHABLE_SUPPORTED_BOOL, true);
sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_UNANSWERED_SUPPORTED_BOOL, true)3875         sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_UNANSWERED_SUPPORTED_BOOL, true);
sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_BUSY_SUPPORTED_BOOL, true)3876         sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_BUSY_SUPPORTED_BOOL, true);
sDefaults.putBoolean(KEY_ADDITIONAL_SETTINGS_CALLER_ID_VISIBILITY_BOOL, true)3877         sDefaults.putBoolean(KEY_ADDITIONAL_SETTINGS_CALLER_ID_VISIBILITY_BOOL, true);
sDefaults.putBoolean(KEY_ADDITIONAL_SETTINGS_CALL_WAITING_VISIBILITY_BOOL, true)3878         sDefaults.putBoolean(KEY_ADDITIONAL_SETTINGS_CALL_WAITING_VISIBILITY_BOOL, true);
sDefaults.putBoolean(KEY_DISABLE_SUPPLEMENTARY_SERVICES_IN_AIRPLANE_MODE_BOOL, false)3879         sDefaults.putBoolean(KEY_DISABLE_SUPPLEMENTARY_SERVICES_IN_AIRPLANE_MODE_BOOL, false);
sDefaults.putBoolean(KEY_IGNORE_SIM_NETWORK_LOCKED_EVENTS_BOOL, false)3880         sDefaults.putBoolean(KEY_IGNORE_SIM_NETWORK_LOCKED_EVENTS_BOOL, false);
sDefaults.putBoolean(KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL, false)3881         sDefaults.putBoolean(KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL, false);
sDefaults.putBoolean(KEY_OPERATOR_SELECTION_EXPAND_BOOL, true)3882         sDefaults.putBoolean(KEY_OPERATOR_SELECTION_EXPAND_BOOL, true);
sDefaults.putBoolean(KEY_PREFER_2G_BOOL, true)3883         sDefaults.putBoolean(KEY_PREFER_2G_BOOL, true);
sDefaults.putBoolean(KEY_SHOW_APN_SETTING_CDMA_BOOL, false)3884         sDefaults.putBoolean(KEY_SHOW_APN_SETTING_CDMA_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_CDMA_CHOICES_BOOL, false)3885         sDefaults.putBoolean(KEY_SHOW_CDMA_CHOICES_BOOL, false);
sDefaults.putBoolean(KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL, false)3886         sDefaults.putBoolean(KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_EMERGENCY_SMS_OVER_IMS_BOOL, false)3887         sDefaults.putBoolean(KEY_SUPPORT_EMERGENCY_SMS_OVER_IMS_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL, true)3888         sDefaults.putBoolean(KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL, true);
sDefaults.putBoolean(KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL, true)3889         sDefaults.putBoolean(KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL, false)3890         sDefaults.putBoolean(KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL, true)3891         sDefaults.putBoolean(KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL, true);
sDefaults.putBoolean(KEY_USE_HFA_FOR_PROVISIONING_BOOL, false)3892         sDefaults.putBoolean(KEY_USE_HFA_FOR_PROVISIONING_BOOL, false);
sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_SETTING_BOOL, true)3893         sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_SETTING_BOOL, true);
sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL, false)3894         sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL, false);
sDefaults.putBoolean(KEY_USE_OTASP_FOR_PROVISIONING_BOOL, false)3895         sDefaults.putBoolean(KEY_USE_OTASP_FOR_PROVISIONING_BOOL, false);
sDefaults.putBoolean(KEY_VOICEMAIL_NOTIFICATION_PERSISTENT_BOOL, false)3896         sDefaults.putBoolean(KEY_VOICEMAIL_NOTIFICATION_PERSISTENT_BOOL, false);
sDefaults.putBoolean(KEY_VOICE_PRIVACY_DISABLE_UI_BOOL, false)3897         sDefaults.putBoolean(KEY_VOICE_PRIVACY_DISABLE_UI_BOOL, false);
sDefaults.putBoolean(KEY_WORLD_PHONE_BOOL, false)3898         sDefaults.putBoolean(KEY_WORLD_PHONE_BOOL, false);
sDefaults.putBoolean(KEY_REQUIRE_ENTITLEMENT_CHECKS_BOOL, true)3899         sDefaults.putBoolean(KEY_REQUIRE_ENTITLEMENT_CHECKS_BOOL, true);
sDefaults.putBoolean(KEY_RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION_BOOL, false)3900         sDefaults.putBoolean(KEY_RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION_BOOL, false);
sDefaults.putIntArray(KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY, new int[]{})3901         sDefaults.putIntArray(KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY, new int[]{});
sDefaults.putInt(KEY_VOLTE_REPLACEMENT_RAT_INT, 0)3902         sDefaults.putInt(KEY_VOLTE_REPLACEMENT_RAT_INT, 0);
sDefaults.putString(KEY_DEFAULT_SIM_CALL_MANAGER_STRING, "")3903         sDefaults.putString(KEY_DEFAULT_SIM_CALL_MANAGER_STRING, "");
sDefaults.putString(KEY_VVM_DESTINATION_NUMBER_STRING, "")3904         sDefaults.putString(KEY_VVM_DESTINATION_NUMBER_STRING, "");
sDefaults.putInt(KEY_VVM_PORT_NUMBER_INT, 0)3905         sDefaults.putInt(KEY_VVM_PORT_NUMBER_INT, 0);
sDefaults.putString(KEY_VVM_TYPE_STRING, "")3906         sDefaults.putString(KEY_VVM_TYPE_STRING, "");
sDefaults.putBoolean(KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL, false)3907         sDefaults.putBoolean(KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL, false);
sDefaults.putString(KEY_VVM_CLIENT_PREFIX_STRING,"//VVM")3908         sDefaults.putString(KEY_VVM_CLIENT_PREFIX_STRING,"//VVM");
sDefaults.putBoolean(KEY_VVM_SSL_ENABLED_BOOL,false)3909         sDefaults.putBoolean(KEY_VVM_SSL_ENABLED_BOOL,false);
sDefaults.putStringArray(KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY, null)3910         sDefaults.putStringArray(KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_VVM_LEGACY_MODE_ENABLED_BOOL,false)3911         sDefaults.putBoolean(KEY_VVM_LEGACY_MODE_ENABLED_BOOL,false);
sDefaults.putBoolean(KEY_VVM_PREFETCH_BOOL, true)3912         sDefaults.putBoolean(KEY_VVM_PREFETCH_BOOL, true);
sDefaults.putString(KEY_CARRIER_VVM_PACKAGE_NAME_STRING, "")3913         sDefaults.putString(KEY_CARRIER_VVM_PACKAGE_NAME_STRING, "");
sDefaults.putStringArray(KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY, null)3914         sDefaults.putStringArray(KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL, false)3915         sDefaults.putBoolean(KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL, true)3916         sDefaults.putBoolean(KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL, true);
sDefaults.putBoolean(KEY_CI_ACTION_ON_SYS_UPDATE_BOOL, false)3917         sDefaults.putBoolean(KEY_CI_ACTION_ON_SYS_UPDATE_BOOL, false);
sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING, "")3918         sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING, "");
sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING, "")3919         sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING, "");
sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING, "")3920         sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING, "");
sDefaults.putBoolean(KEY_CSP_ENABLED_BOOL, false)3921         sDefaults.putBoolean(KEY_CSP_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_ADDING_APNS_BOOL, true)3922         sDefaults.putBoolean(KEY_ALLOW_ADDING_APNS_BOOL, true);
sDefaults.putStringArray(KEY_READ_ONLY_APN_TYPES_STRING_ARRAY, new String[] {"dun"})3923         sDefaults.putStringArray(KEY_READ_ONLY_APN_TYPES_STRING_ARRAY, new String[] {"dun"});
sDefaults.putStringArray(KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY, null)3924         sDefaults.putStringArray(KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_APN_SETTINGS_DEFAULT_APN_TYPES_STRING_ARRAY, null)3925         sDefaults.putStringArray(KEY_APN_SETTINGS_DEFAULT_APN_TYPES_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL, false)3926         sDefaults.putBoolean(KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL, false);
sDefaults.putBoolean(KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL, false)3927         sDefaults.putBoolean(KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL, false);
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"})3928         sDefaults.putStringArray(KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS, new String[]{
3929                 "default:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000,"
3930                         + "320000:5000,640000:5000,1280000:5000,1800000:5000",
3931                 "mms:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000,"
3932                         + "320000:5000,640000:5000,1280000:5000,1800000:5000",
3933                 "others:max_retries=3, 5000, 5000, 5000"});
sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_DEFAULT_LONG, 20000)3934         sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_DEFAULT_LONG, 20000);
sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_FASTER_LONG, 3000)3935         sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_FASTER_LONG, 3000);
sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_RETRY_AFTER_DISCONNECT_LONG, 10000)3936         sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_RETRY_AFTER_DISCONNECT_LONG, 10000);
sDefaults.putString(KEY_CARRIER_ERI_FILE_NAME_STRING, "eri.xml")3937         sDefaults.putString(KEY_CARRIER_ERI_FILE_NAME_STRING, "eri.xml");
sDefaults.putInt(KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT, 7200)3938         sDefaults.putInt(KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT, 7200);
sDefaults.putStringArray(KEY_CARRIER_METERED_APN_TYPES_STRINGS, new String[]{"default", "mms", "dun", "supl"})3939         sDefaults.putStringArray(KEY_CARRIER_METERED_APN_TYPES_STRINGS,
3940                 new String[]{"default", "mms", "dun", "supl"});
sDefaults.putStringArray(KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS, new String[]{"default", "mms", "dun", "supl"})3941         sDefaults.putStringArray(KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS,
3942                 new String[]{"default", "mms", "dun", "supl"});
sDefaults.putStringArray(KEY_CARRIER_WWAN_DISALLOWED_APN_TYPES_STRING_ARRAY, new String[]{""})3943         sDefaults.putStringArray(KEY_CARRIER_WWAN_DISALLOWED_APN_TYPES_STRING_ARRAY,
3944                 new String[]{""});
sDefaults.putStringArray(KEY_CARRIER_WLAN_DISALLOWED_APN_TYPES_STRING_ARRAY, new String[]{""})3945         sDefaults.putStringArray(KEY_CARRIER_WLAN_DISALLOWED_APN_TYPES_STRING_ARRAY,
3946                 new String[]{""});
sDefaults.putIntArray(KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY, new int[]{ 4, 5, 6, 7, 8, 12 })3947         sDefaults.putIntArray(KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY,
3948                 new int[]{
3949                     4, /* IS95A */
3950                     5, /* IS95B */
3951                     6, /* 1xRTT */
3952                     7, /* EVDO_0 */
3953                     8, /* EVDO_A */
3954                     12 /* EVDO_B */
3955                 });
sDefaults.putStringArray(KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY, null)3956         sDefaults.putStringArray(KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY, null)3957         sDefaults.putStringArray(KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY, null);
sDefaults.putString(KEY_CONFIG_IMS_PACKAGE_OVERRIDE_STRING, null)3958         sDefaults.putString(KEY_CONFIG_IMS_PACKAGE_OVERRIDE_STRING, null);
sDefaults.putString(KEY_CONFIG_IMS_MMTEL_PACKAGE_OVERRIDE_STRING, null)3959         sDefaults.putString(KEY_CONFIG_IMS_MMTEL_PACKAGE_OVERRIDE_STRING, null);
sDefaults.putString(KEY_CONFIG_IMS_RCS_PACKAGE_OVERRIDE_STRING, null)3960         sDefaults.putString(KEY_CONFIG_IMS_RCS_PACKAGE_OVERRIDE_STRING, null);
sDefaults.putStringArray(KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY, null)3961         sDefaults.putStringArray(KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY, null)3962         sDefaults.putStringArray(KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_DIAL_STRING_REPLACE_STRING_ARRAY, null)3963         sDefaults.putStringArray(KEY_DIAL_STRING_REPLACE_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_FORCE_HOME_NETWORK_BOOL, false)3964         sDefaults.putBoolean(KEY_FORCE_HOME_NETWORK_BOOL, false);
sDefaults.putInt(KEY_GSM_DTMF_TONE_DELAY_INT, 0)3965         sDefaults.putInt(KEY_GSM_DTMF_TONE_DELAY_INT, 0);
sDefaults.putInt(KEY_IMS_DTMF_TONE_DELAY_INT, 0)3966         sDefaults.putInt(KEY_IMS_DTMF_TONE_DELAY_INT, 0);
sDefaults.putInt(KEY_CDMA_DTMF_TONE_DELAY_INT, 100)3967         sDefaults.putInt(KEY_CDMA_DTMF_TONE_DELAY_INT, 100);
sDefaults.putBoolean(KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL, false)3968         sDefaults.putBoolean(KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL, false);
sDefaults.putBoolean(KEY_IGNORE_RTT_MODE_SETTING_BOOL, true)3969         sDefaults.putBoolean(KEY_IGNORE_RTT_MODE_SETTING_BOOL, true);
sDefaults.putInt(KEY_CDMA_3WAYCALL_FLASH_DELAY_INT , 0)3970         sDefaults.putInt(KEY_CDMA_3WAYCALL_FLASH_DELAY_INT , 0);
sDefaults.putBoolean(KEY_SUPPORT_ADHOC_CONFERENCE_CALLS_BOOL, false)3971         sDefaults.putBoolean(KEY_SUPPORT_ADHOC_CONFERENCE_CALLS_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_ADD_CONFERENCE_PARTICIPANTS_BOOL, false)3972         sDefaults.putBoolean(KEY_SUPPORT_ADD_CONFERENCE_PARTICIPANTS_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_CONFERENCE_CALL_BOOL, true)3973         sDefaults.putBoolean(KEY_SUPPORT_CONFERENCE_CALL_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL, true)3974         sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL, true);
sDefaults.putBoolean(KEY_LOCAL_DISCONNECT_EMPTY_IMS_CONFERENCE_BOOL, false)3975         sDefaults.putBoolean(KEY_LOCAL_DISCONNECT_EMPTY_IMS_CONFERENCE_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_MANAGE_IMS_CONFERENCE_CALL_BOOL, true)3976         sDefaults.putBoolean(KEY_SUPPORT_MANAGE_IMS_CONFERENCE_CALL_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL, true)3977         sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_ON_PEER_BOOL, true)3978         sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_ON_PEER_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_VIDEO_CONFERENCE_CALL_BOOL, false)3979         sDefaults.putBoolean(KEY_SUPPORT_VIDEO_CONFERENCE_CALL_BOOL, false);
sDefaults.putBoolean(KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL, false)3980         sDefaults.putBoolean(KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL, false);
sDefaults.putInt(KEY_IMS_CONFERENCE_SIZE_LIMIT_INT, 5)3981         sDefaults.putInt(KEY_IMS_CONFERENCE_SIZE_LIMIT_INT, 5);
sDefaults.putBoolean(KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL, true)3982         sDefaults.putBoolean(KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL, true);
sDefaults.putBoolean(KEY_EDITABLE_ENHANCED_4G_LTE_BOOL, true)3983         sDefaults.putBoolean(KEY_EDITABLE_ENHANCED_4G_LTE_BOOL, true);
sDefaults.putBoolean(KEY_HIDE_ENHANCED_4G_LTE_BOOL, false)3984         sDefaults.putBoolean(KEY_HIDE_ENHANCED_4G_LTE_BOOL, false);
sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL, true)3985         sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL, true);
sDefaults.putBoolean(KEY_HIDE_IMS_APN_BOOL, false)3986         sDefaults.putBoolean(KEY_HIDE_IMS_APN_BOOL, false);
sDefaults.putBoolean(KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL, false)3987         sDefaults.putBoolean(KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL, false)3988         sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL, false);
sDefaults.putStringArray(KEY_ENABLE_APPS_STRING_ARRAY, null)3989         sDefaults.putStringArray(KEY_ENABLE_APPS_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_EDITABLE_WFC_MODE_BOOL, true)3990         sDefaults.putBoolean(KEY_EDITABLE_WFC_MODE_BOOL, true);
sDefaults.putStringArray(KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY, null)3991         sDefaults.putStringArray(KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY, null);
sDefaults.putInt(KEY_WFC_SPN_FORMAT_IDX_INT, 0)3992         sDefaults.putInt(KEY_WFC_SPN_FORMAT_IDX_INT, 0);
sDefaults.putInt(KEY_WFC_DATA_SPN_FORMAT_IDX_INT, 0)3993         sDefaults.putInt(KEY_WFC_DATA_SPN_FORMAT_IDX_INT, 0);
sDefaults.putInt(KEY_WFC_FLIGHT_MODE_SPN_FORMAT_IDX_INT, -1)3994         sDefaults.putInt(KEY_WFC_FLIGHT_MODE_SPN_FORMAT_IDX_INT, -1);
sDefaults.putBoolean(KEY_WFC_SPN_USE_ROOT_LOCALE, false)3995         sDefaults.putBoolean(KEY_WFC_SPN_USE_ROOT_LOCALE, false);
sDefaults.putString(KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING, "")3996         sDefaults.putString(KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING, "");
sDefaults.putBoolean(KEY_CONFIG_WIFI_DISABLE_IN_ECBM, false)3997         sDefaults.putBoolean(KEY_CONFIG_WIFI_DISABLE_IN_ECBM, false);
sDefaults.putBoolean(KEY_CARRIER_NAME_OVERRIDE_BOOL, false)3998         sDefaults.putBoolean(KEY_CARRIER_NAME_OVERRIDE_BOOL, false);
sDefaults.putString(KEY_CARRIER_NAME_STRING, "")3999         sDefaults.putString(KEY_CARRIER_NAME_STRING, "");
sDefaults.putBoolean(KEY_WFC_CARRIER_NAME_OVERRIDE_BY_PNN_BOOL, false)4000         sDefaults.putBoolean(KEY_WFC_CARRIER_NAME_OVERRIDE_BY_PNN_BOOL, false);
sDefaults.putInt(KEY_SPN_DISPLAY_CONDITION_OVERRIDE_INT, -1)4001         sDefaults.putInt(KEY_SPN_DISPLAY_CONDITION_OVERRIDE_INT, -1);
sDefaults.putStringArray(KEY_SPDI_OVERRIDE_STRING_ARRAY, null)4002         sDefaults.putStringArray(KEY_SPDI_OVERRIDE_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_PNN_OVERRIDE_STRING_ARRAY, null)4003         sDefaults.putStringArray(KEY_PNN_OVERRIDE_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_OPL_OVERRIDE_STRING_ARRAY, null)4004         sDefaults.putStringArray(KEY_OPL_OVERRIDE_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_EHPLMN_OVERRIDE_STRING_ARRAY, null)4005         sDefaults.putStringArray(KEY_EHPLMN_OVERRIDE_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_ALLOW_ERI_BOOL, false)4006         sDefaults.putBoolean(KEY_ALLOW_ERI_BOOL, false);
sDefaults.putBoolean(KEY_ENABLE_CARRIER_DISPLAY_NAME_RESOLVER_BOOL, false)4007         sDefaults.putBoolean(KEY_ENABLE_CARRIER_DISPLAY_NAME_RESOLVER_BOOL, false);
sDefaults.putString(KEY_SIM_COUNTRY_ISO_OVERRIDE_STRING, "")4008         sDefaults.putString(KEY_SIM_COUNTRY_ISO_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_CALL_SCREENING_APP_STRING, "")4009         sDefaults.putString(KEY_CARRIER_CALL_SCREENING_APP_STRING, "");
sDefaults.putString(KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING, null)4010         sDefaults.putString(KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING, null);
sDefaults.putBoolean(KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL, false)4011         sDefaults.putBoolean(KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL, false);
sDefaults.putString(KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING, "")4012         sDefaults.putString(KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING, "");
sDefaults.putBoolean(KEY_SUPPORT_DIRECT_FDN_DIALING_BOOL, false)4013         sDefaults.putBoolean(KEY_SUPPORT_DIRECT_FDN_DIALING_BOOL, false);
sDefaults.putInt(KEY_FDN_NUMBER_LENGTH_LIMIT_INT, 20)4014         sDefaults.putInt(KEY_FDN_NUMBER_LENGTH_LIMIT_INT, 20);
sDefaults.putBoolean(KEY_CARRIER_DEFAULT_DATA_ROAMING_ENABLED_BOOL, false)4015         sDefaults.putBoolean(KEY_CARRIER_DEFAULT_DATA_ROAMING_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_SKIP_CF_FAIL_TO_DISABLE_DIALOG_BOOL, false)4016         sDefaults.putBoolean(KEY_SKIP_CF_FAIL_TO_DISABLE_DIALOG_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL, true)4017         sDefaults.putBoolean(KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL, true);
4018 
4019         // MMS defaults
sDefaults.putBoolean(KEY_MMS_ALIAS_ENABLED_BOOL, false)4020         sDefaults.putBoolean(KEY_MMS_ALIAS_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_MMS_ALLOW_ATTACH_AUDIO_BOOL, true)4021         sDefaults.putBoolean(KEY_MMS_ALLOW_ATTACH_AUDIO_BOOL, true);
sDefaults.putBoolean(KEY_MMS_APPEND_TRANSACTION_ID_BOOL, false)4022         sDefaults.putBoolean(KEY_MMS_APPEND_TRANSACTION_ID_BOOL, false);
sDefaults.putBoolean(KEY_MMS_GROUP_MMS_ENABLED_BOOL, true)4023         sDefaults.putBoolean(KEY_MMS_GROUP_MMS_ENABLED_BOOL, true);
sDefaults.putBoolean(KEY_MMS_MMS_DELIVERY_REPORT_ENABLED_BOOL, false)4024         sDefaults.putBoolean(KEY_MMS_MMS_DELIVERY_REPORT_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_MMS_MMS_ENABLED_BOOL, true)4025         sDefaults.putBoolean(KEY_MMS_MMS_ENABLED_BOOL, true);
sDefaults.putBoolean(KEY_MMS_MMS_READ_REPORT_ENABLED_BOOL, false)4026         sDefaults.putBoolean(KEY_MMS_MMS_READ_REPORT_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_MMS_MULTIPART_SMS_ENABLED_BOOL, true)4027         sDefaults.putBoolean(KEY_MMS_MULTIPART_SMS_ENABLED_BOOL, true);
sDefaults.putBoolean(KEY_MMS_NOTIFY_WAP_MMSC_ENABLED_BOOL, false)4028         sDefaults.putBoolean(KEY_MMS_NOTIFY_WAP_MMSC_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_MMS_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES_BOOL, false)4029         sDefaults.putBoolean(KEY_MMS_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES_BOOL, false);
sDefaults.putBoolean(KEY_MMS_SHOW_CELL_BROADCAST_APP_LINKS_BOOL, true)4030         sDefaults.putBoolean(KEY_MMS_SHOW_CELL_BROADCAST_APP_LINKS_BOOL, true);
sDefaults.putBoolean(KEY_MMS_SMS_DELIVERY_REPORT_ENABLED_BOOL, true)4031         sDefaults.putBoolean(KEY_MMS_SMS_DELIVERY_REPORT_ENABLED_BOOL, true);
sDefaults.putBoolean(KEY_MMS_SUPPORT_HTTP_CHARSET_HEADER_BOOL, false)4032         sDefaults.putBoolean(KEY_MMS_SUPPORT_HTTP_CHARSET_HEADER_BOOL, false);
sDefaults.putBoolean(KEY_MMS_SUPPORT_MMS_CONTENT_DISPOSITION_BOOL, true)4033         sDefaults.putBoolean(KEY_MMS_SUPPORT_MMS_CONTENT_DISPOSITION_BOOL, true);
sDefaults.putBoolean(KEY_MMS_CLOSE_CONNECTION_BOOL, false)4034         sDefaults.putBoolean(KEY_MMS_CLOSE_CONNECTION_BOOL, false);
sDefaults.putInt(KEY_MMS_ALIAS_MAX_CHARS_INT, 48)4035         sDefaults.putInt(KEY_MMS_ALIAS_MAX_CHARS_INT, 48);
sDefaults.putInt(KEY_MMS_ALIAS_MIN_CHARS_INT, 2)4036         sDefaults.putInt(KEY_MMS_ALIAS_MIN_CHARS_INT, 2);
sDefaults.putInt(KEY_MMS_HTTP_SOCKET_TIMEOUT_INT, 60 * 1000)4037         sDefaults.putInt(KEY_MMS_HTTP_SOCKET_TIMEOUT_INT, 60 * 1000);
sDefaults.putInt(KEY_MMS_MAX_IMAGE_HEIGHT_INT, 480)4038         sDefaults.putInt(KEY_MMS_MAX_IMAGE_HEIGHT_INT, 480);
sDefaults.putInt(KEY_MMS_MAX_IMAGE_WIDTH_INT, 640)4039         sDefaults.putInt(KEY_MMS_MAX_IMAGE_WIDTH_INT, 640);
sDefaults.putInt(KEY_MMS_MAX_MESSAGE_SIZE_INT, 300 * 1024)4040         sDefaults.putInt(KEY_MMS_MAX_MESSAGE_SIZE_INT, 300 * 1024);
sDefaults.putInt(KEY_MMS_MESSAGE_TEXT_MAX_SIZE_INT, -1)4041         sDefaults.putInt(KEY_MMS_MESSAGE_TEXT_MAX_SIZE_INT, -1);
sDefaults.putInt(KEY_MMS_RECIPIENT_LIMIT_INT, Integer.MAX_VALUE)4042         sDefaults.putInt(KEY_MMS_RECIPIENT_LIMIT_INT, Integer.MAX_VALUE);
sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD_INT, -1)4043         sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD_INT, -1);
sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT, -1)4044         sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT, -1);
sDefaults.putInt(KEY_MMS_SUBJECT_MAX_LENGTH_INT, 40)4045         sDefaults.putInt(KEY_MMS_SUBJECT_MAX_LENGTH_INT, 40);
sDefaults.putString(KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING, "")4046         sDefaults.putString(KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING, "");
sDefaults.putString(KEY_MMS_HTTP_PARAMS_STRING, "")4047         sDefaults.putString(KEY_MMS_HTTP_PARAMS_STRING, "");
sDefaults.putString(KEY_MMS_NAI_SUFFIX_STRING, "")4048         sDefaults.putString(KEY_MMS_NAI_SUFFIX_STRING, "");
sDefaults.putString(KEY_MMS_UA_PROF_TAG_NAME_STRING, "x-wap-profile")4049         sDefaults.putString(KEY_MMS_UA_PROF_TAG_NAME_STRING, "x-wap-profile");
sDefaults.putString(KEY_MMS_UA_PROF_URL_STRING, "")4050         sDefaults.putString(KEY_MMS_UA_PROF_URL_STRING, "");
sDefaults.putString(KEY_MMS_USER_AGENT_STRING, "")4051         sDefaults.putString(KEY_MMS_USER_AGENT_STRING, "");
sDefaults.putBoolean(KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL, true)4052         sDefaults.putBoolean(KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL, true);
sDefaults.putInt(KEY_EMERGENCY_SMS_MODE_TIMER_MS_INT, 0)4053         sDefaults.putInt(KEY_EMERGENCY_SMS_MODE_TIMER_MS_INT, 0);
sDefaults.putBoolean(KEY_ALLOW_HOLD_CALL_DURING_EMERGENCY_BOOL, true)4054         sDefaults.putBoolean(KEY_ALLOW_HOLD_CALL_DURING_EMERGENCY_BOOL, true);
sDefaults.putBoolean(KEY_USE_RCS_PRESENCE_BOOL, false)4055         sDefaults.putBoolean(KEY_USE_RCS_PRESENCE_BOOL, false);
sDefaults.putBoolean(KEY_USE_RCS_SIP_OPTIONS_BOOL, false)4056         sDefaults.putBoolean(KEY_USE_RCS_SIP_OPTIONS_BOOL, false);
sDefaults.putBoolean(KEY_FORCE_IMEI_BOOL, false)4057         sDefaults.putBoolean(KEY_FORCE_IMEI_BOOL, false);
sDefaults.putInt( KEY_CDMA_ROAMING_MODE_INT, TelephonyManager.CDMA_ROAMING_MODE_RADIO_DEFAULT)4058         sDefaults.putInt(
4059                 KEY_CDMA_ROAMING_MODE_INT, TelephonyManager.CDMA_ROAMING_MODE_RADIO_DEFAULT);
sDefaults.putString(KEY_RCS_CONFIG_SERVER_URL_STRING, "")4060         sDefaults.putString(KEY_RCS_CONFIG_SERVER_URL_STRING, "");
4061 
4062         // Carrier Signalling Receivers
sDefaults.putString(KEY_CARRIER_SETUP_APP_STRING, "")4063         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" })4064         sDefaults.putStringArray(KEY_CARRIER_APP_WAKE_SIGNAL_CONFIG_STRING_ARRAY,
4065                 new String[]{
4066                         "com.android.carrierdefaultapp/.CarrierDefaultBroadcastReceiver:"
4067                                 + "com.android.internal.telephony.CARRIER_SIGNAL_RESET"
4068                 });
sDefaults.putStringArray(KEY_CARRIER_APP_NO_WAKE_SIGNAL_CONFIG_STRING_ARRAY, null)4069         sDefaults.putStringArray(KEY_CARRIER_APP_NO_WAKE_SIGNAL_CONFIG_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL, false)4070         sDefaults.putBoolean(KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL, false);
4071 
4072 
4073         // Default carrier app configurations
sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY, new String[]{ "9, 4, 1" })4074         sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY,
4075                 new String[]{
4076                         "9, 4, 1"
4077                         //9: CARRIER_ACTION_REGISTER_NETWORK_AVAIL
4078                         //4: CARRIER_ACTION_DISABLE_METERED_APNS
4079                         //1: CARRIER_ACTION_SHOW_PORTAL_NOTIFICATION
4080                 });
sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_RESET, new String[]{ "6, 8" })4081         sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_RESET, new String[]{
4082                 "6, 8"
4083                 //6: CARRIER_ACTION_CANCEL_ALL_NOTIFICATIONS
4084                 //8: CARRIER_ACTION_DISABLE_DEFAULT_URL_HANDLER
4085                 });
sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_DEFAULT_NETWORK_AVAILABLE, new String[] { String.valueOf(false) + ": 7", String.valueOf(true) + ": 8" })4086         sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_DEFAULT_NETWORK_AVAILABLE, new String[] {
4087                 String.valueOf(false) + ": 7", //7: CARRIER_ACTION_ENABLE_DEFAULT_URL_HANDLER
4088                 String.valueOf(true) + ": 8"  //8: CARRIER_ACTION_DISABLE_DEFAULT_URL_HANDLER
4089                 });
sDefaults.putStringArray(KEY_CARRIER_DEFAULT_REDIRECTION_URL_STRING_ARRAY, null)4090         sDefaults.putStringArray(KEY_CARRIER_DEFAULT_REDIRECTION_URL_STRING_ARRAY, null);
4091 
sDefaults.putInt(KEY_MONTHLY_DATA_CYCLE_DAY_INT, DATA_CYCLE_USE_PLATFORM_DEFAULT)4092         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)4093         sDefaults.putLong(KEY_DATA_WARNING_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT);
sDefaults.putBoolean(KEY_DATA_WARNING_NOTIFICATION_BOOL, true)4094         sDefaults.putBoolean(KEY_DATA_WARNING_NOTIFICATION_BOOL, true);
sDefaults.putBoolean(KEY_LIMITED_SIM_FUNCTION_NOTIFICATION_FOR_DSDS_BOOL, false)4095         sDefaults.putBoolean(KEY_LIMITED_SIM_FUNCTION_NOTIFICATION_FOR_DSDS_BOOL, false);
sDefaults.putLong(KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT)4096         sDefaults.putLong(KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT);
sDefaults.putBoolean(KEY_DATA_LIMIT_NOTIFICATION_BOOL, true)4097         sDefaults.putBoolean(KEY_DATA_LIMIT_NOTIFICATION_BOOL, true);
sDefaults.putBoolean(KEY_DATA_RAPID_NOTIFICATION_BOOL, true)4098         sDefaults.putBoolean(KEY_DATA_RAPID_NOTIFICATION_BOOL, true);
4099 
4100         // Rat families: {GPRS, EDGE}, {EVDO, EVDO_A, EVDO_B}, {UMTS, HSPA, HSDPA, HSUPA, HSPAP},
4101         // {LTE, LTE_CA}
4102         // 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"})4103         sDefaults.putStringArray(KEY_RATCHET_RAT_FAMILIES,
4104                 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)4105         sDefaults.putBoolean(KEY_TREAT_DOWNGRADED_VIDEO_CALLS_AS_VIDEO_CALLS_BOOL, false);
sDefaults.putBoolean(KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL, false)4106         sDefaults.putBoolean(KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL, true)4107         sDefaults.putBoolean(KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL, true);
sDefaults.putBoolean(KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL, true)4108         sDefaults.putBoolean(KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL, true);
sDefaults.putBoolean(KEY_ALLOW_HOLD_VIDEO_CALL_BOOL, true)4109         sDefaults.putBoolean(KEY_ALLOW_HOLD_VIDEO_CALL_BOOL, true);
sDefaults.putBoolean(KEY_WIFI_CALLS_CAN_BE_HD_AUDIO, true)4110         sDefaults.putBoolean(KEY_WIFI_CALLS_CAN_BE_HD_AUDIO, true);
sDefaults.putBoolean(KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO, true)4111         sDefaults.putBoolean(KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO, true);
sDefaults.putBoolean(KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO, false)4112         sDefaults.putBoolean(KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO, false);
sDefaults.putBoolean(KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL, true)4113         sDefaults.putBoolean(KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL, true);
4114 
sDefaults.putStringArray(KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY, null)4115         sDefaults.putStringArray(KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_BOOL, false)4116         sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_BOOL, false);
sDefaults.putInt(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT, 0)4117         sDefaults.putInt(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT, 0);
sDefaults.putBoolean(KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL, false)4118         sDefaults.putBoolean(KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL, false);
sDefaults.putStringArray(KEY_FILTERED_CNAP_NAMES_STRING_ARRAY, null)4119         sDefaults.putStringArray(KEY_FILTERED_CNAP_NAMES_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_EDITABLE_WFC_ROAMING_MODE_BOOL, false)4120         sDefaults.putBoolean(KEY_EDITABLE_WFC_ROAMING_MODE_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_BLOCKING_PAY_PHONE_OPTION_BOOL, false)4121         sDefaults.putBoolean(KEY_SHOW_BLOCKING_PAY_PHONE_OPTION_BOOL, false);
sDefaults.putBoolean(KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL, false)4122         sDefaults.putBoolean(KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL, false);
sDefaults.putBoolean(KEY_STK_DISABLE_LAUNCH_BROWSER_BOOL, false)4123         sDefaults.putBoolean(KEY_STK_DISABLE_LAUNCH_BROWSER_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_METERED_NETWORK_FOR_CERT_DOWNLOAD_BOOL, false)4124         sDefaults.putBoolean(KEY_ALLOW_METERED_NETWORK_FOR_CERT_DOWNLOAD_BOOL, false);
sDefaults.putBoolean(KEY_HIDE_DIGITS_HELPER_TEXT_ON_STK_INPUT_SCREEN_BOOL, true)4125         sDefaults.putBoolean(KEY_HIDE_DIGITS_HELPER_TEXT_ON_STK_INPUT_SCREEN_BOOL, true);
sDefaults.putStringArray(KEY_CARRIER_WIFI_STRING_ARRAY, null)4126         sDefaults.putStringArray(KEY_CARRIER_WIFI_STRING_ARRAY, null);
sDefaults.putInt(KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT, -1)4127         sDefaults.putInt(KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT, -1);
sDefaults.putInt(KEY_EMERGENCY_NOTIFICATION_DELAY_INT, -1)4128         sDefaults.putInt(KEY_EMERGENCY_NOTIFICATION_DELAY_INT, -1);
sDefaults.putBoolean(KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL, true)4129         sDefaults.putBoolean(KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL, true)4130         sDefaults.putBoolean(KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL, true);
sDefaults.putBoolean(KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL, false)4131         sDefaults.putBoolean(KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL,
4132                 false);
sDefaults.putBoolean(KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL, false)4133         sDefaults.putBoolean(KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL, false);
sDefaults.putBoolean(KEY_HIDE_PRESET_APN_DETAILS_BOOL, false)4134         sDefaults.putBoolean(KEY_HIDE_PRESET_APN_DETAILS_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL, false)4135         sDefaults.putBoolean(KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL, false);
sDefaults.putStringArray(KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY, null)4136         sDefaults.putStringArray(KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY,
4137                 null);
sDefaults.putInt(KEY_LTE_EARFCNS_RSRP_BOOST_INT, 0)4138         sDefaults.putInt(KEY_LTE_EARFCNS_RSRP_BOOST_INT, 0);
sDefaults.putStringArray(KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY, null)4139         sDefaults.putStringArray(KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL, false)4140         sDefaults.putBoolean(KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL, false);
sDefaults.putBoolean(KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL, false)4141         sDefaults.putBoolean(KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL, false);
sDefaults.putInt(IMSI_KEY_AVAILABILITY_INT, 0)4142         sDefaults.putInt(IMSI_KEY_AVAILABILITY_INT, 0);
sDefaults.putString(IMSI_KEY_DOWNLOAD_URL_STRING, null)4143         sDefaults.putString(IMSI_KEY_DOWNLOAD_URL_STRING, null);
sDefaults.putBoolean(KEY_CONVERT_CDMA_CALLER_ID_MMI_CODES_WHILE_ROAMING_ON_3GPP_BOOL, false)4144         sDefaults.putBoolean(KEY_CONVERT_CDMA_CALLER_ID_MMI_CODES_WHILE_ROAMING_ON_3GPP_BOOL,
4145                 false);
sDefaults.putStringArray(KEY_NON_ROAMING_OPERATOR_STRING_ARRAY, null)4146         sDefaults.putStringArray(KEY_NON_ROAMING_OPERATOR_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_ROAMING_OPERATOR_STRING_ARRAY, null)4147         sDefaults.putStringArray(KEY_ROAMING_OPERATOR_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL, false)4148         sDefaults.putBoolean(KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL, false);
sDefaults.putBoolean(KEY_RTT_SUPPORTED_BOOL, false)4149         sDefaults.putBoolean(KEY_RTT_SUPPORTED_BOOL, false);
sDefaults.putBoolean(KEY_TTY_SUPPORTED_BOOL, true)4150         sDefaults.putBoolean(KEY_TTY_SUPPORTED_BOOL, true);
sDefaults.putBoolean(KEY_HIDE_TTY_HCO_VCO_WITH_RTT_BOOL, false)4151         sDefaults.putBoolean(KEY_HIDE_TTY_HCO_VCO_WITH_RTT_BOOL, false);
sDefaults.putBoolean(KEY_DISABLE_CHARGE_INDICATION_BOOL, false)4152         sDefaults.putBoolean(KEY_DISABLE_CHARGE_INDICATION_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_NO_REPLY_TIMER_FOR_CFNRY_BOOL, true)4153         sDefaults.putBoolean(KEY_SUPPORT_NO_REPLY_TIMER_FOR_CFNRY_BOOL, true);
sDefaults.putStringArray(KEY_FEATURE_ACCESS_CODES_STRING_ARRAY, null)4154         sDefaults.putStringArray(KEY_FEATURE_ACCESS_CODES_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL, false)4155         sDefaults.putBoolean(KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_PRECISE_FAILED_CAUSE_BOOL, false)4156         sDefaults.putBoolean(KEY_SHOW_PRECISE_FAILED_CAUSE_BOOL, false);
sDefaults.putBoolean(KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL, false)4157         sDefaults.putBoolean(KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL, false);
sDefaults.putBoolean(KEY_ALWAYS_SHOW_DATA_RAT_ICON_BOOL, false)4158         sDefaults.putBoolean(KEY_ALWAYS_SHOW_DATA_RAT_ICON_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_4G_FOR_LTE_DATA_ICON_BOOL, false)4159         sDefaults.putBoolean(KEY_SHOW_4G_FOR_LTE_DATA_ICON_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_4G_FOR_3G_DATA_ICON_BOOL, false)4160         sDefaults.putBoolean(KEY_SHOW_4G_FOR_3G_DATA_ICON_BOOL, false);
sDefaults.putString(KEY_OPERATOR_NAME_FILTER_PATTERN_STRING, "")4161         sDefaults.putString(KEY_OPERATOR_NAME_FILTER_PATTERN_STRING, "");
sDefaults.putString(KEY_SHOW_CARRIER_DATA_ICON_PATTERN_STRING, "")4162         sDefaults.putString(KEY_SHOW_CARRIER_DATA_ICON_PATTERN_STRING, "");
sDefaults.putBoolean(KEY_HIDE_LTE_PLUS_DATA_ICON_BOOL, true)4163         sDefaults.putBoolean(KEY_HIDE_LTE_PLUS_DATA_ICON_BOOL, true);
sDefaults.putBoolean(KEY_NR_ENABLED_BOOL, true)4164         sDefaults.putBoolean(KEY_NR_ENABLED_BOOL, true);
sDefaults.putBoolean(KEY_LTE_ENABLED_BOOL, true)4165         sDefaults.putBoolean(KEY_LTE_ENABLED_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_TDSCDMA_BOOL, false)4166         sDefaults.putBoolean(KEY_SUPPORT_TDSCDMA_BOOL, false);
sDefaults.putStringArray(KEY_SUPPORT_TDSCDMA_ROAMING_NETWORKS_STRING_ARRAY, null)4167         sDefaults.putStringArray(KEY_SUPPORT_TDSCDMA_ROAMING_NETWORKS_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_WORLD_MODE_ENABLED_BOOL, false)4168         sDefaults.putBoolean(KEY_WORLD_MODE_ENABLED_BOOL, false);
sDefaults.putString(KEY_CARRIER_SETTINGS_ACTIVITY_COMPONENT_NAME_STRING, "")4169         sDefaults.putString(KEY_CARRIER_SETTINGS_ACTIVITY_COMPONENT_NAME_STRING, "");
sDefaults.putBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL, false)4170         sDefaults.putBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL, false);
sDefaults.putBoolean(KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL, false)4171         sDefaults.putBoolean(KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_DATA_CONNECTED_ROAMING_NOTIFICATION_BOOL, false)4172         sDefaults.putBoolean(KEY_SHOW_DATA_CONNECTED_ROAMING_NOTIFICATION_BOOL, false);
sDefaults.putIntArray(KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY, new int[] { -128, -118, -108, -98, })4173         sDefaults.putIntArray(KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY,
4174                 new int[] {
4175                         -128, /* SIGNAL_STRENGTH_POOR */
4176                         -118, /* SIGNAL_STRENGTH_MODERATE */
4177                         -108, /* SIGNAL_STRENGTH_GOOD */
4178                         -98,  /* SIGNAL_STRENGTH_GREAT */
4179                 });
sDefaults.putIntArray(KEY_LTE_RSRQ_THRESHOLDS_INT_ARRAY, new int[] { -20, -17, -14, -11 })4180         sDefaults.putIntArray(KEY_LTE_RSRQ_THRESHOLDS_INT_ARRAY,
4181                 new int[] {
4182                         -20, /* SIGNAL_STRENGTH_POOR */
4183                         -17, /* SIGNAL_STRENGTH_MODERATE */
4184                         -14, /* SIGNAL_STRENGTH_GOOD */
4185                         -11  /* SIGNAL_STRENGTH_GREAT */
4186                 });
sDefaults.putIntArray(KEY_LTE_RSSNR_THRESHOLDS_INT_ARRAY, new int[] { -3, 1, 5, 13 })4187         sDefaults.putIntArray(KEY_LTE_RSSNR_THRESHOLDS_INT_ARRAY,
4188                 new int[] {
4189                         -3, /* SIGNAL_STRENGTH_POOR */
4190                         1,  /* SIGNAL_STRENGTH_MODERATE */
4191                         5,  /* SIGNAL_STRENGTH_GOOD */
4192                         13  /* SIGNAL_STRENGTH_GREAT */
4193                 });
sDefaults.putIntArray(KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY, new int[] { -115, -105, -95, -85 })4194         sDefaults.putIntArray(KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY,
4195                 new int[] {
4196                         -115,  /* SIGNAL_STRENGTH_POOR */
4197                         -105, /* SIGNAL_STRENGTH_MODERATE */
4198                         -95, /* SIGNAL_STRENGTH_GOOD */
4199                         -85  /* SIGNAL_STRENGTH_GREAT */
4200                 });
sDefaults.putIntArray(KEY_5G_NR_SSRSRP_THRESHOLDS_INT_ARRAY, new int[] { -110, -90, -80, -65, })4201         sDefaults.putIntArray(KEY_5G_NR_SSRSRP_THRESHOLDS_INT_ARRAY,
4202                 // Boundaries: [-140 dB, -44 dB]
4203                 new int[] {
4204                     -110, /* SIGNAL_STRENGTH_POOR */
4205                     -90, /* SIGNAL_STRENGTH_MODERATE */
4206                     -80, /* SIGNAL_STRENGTH_GOOD */
4207                     -65,  /* SIGNAL_STRENGTH_GREAT */
4208                 });
sDefaults.putIntArray(KEY_5G_NR_SSRSRQ_THRESHOLDS_INT_ARRAY, new int[] { -31, -19, -7, 6 })4209         sDefaults.putIntArray(KEY_5G_NR_SSRSRQ_THRESHOLDS_INT_ARRAY,
4210                 // Boundaries: [-43 dB, 20 dB]
4211                 new int[] {
4212                     -31, /* SIGNAL_STRENGTH_POOR */
4213                     -19, /* SIGNAL_STRENGTH_MODERATE */
4214                     -7, /* SIGNAL_STRENGTH_GOOD */
4215                     6  /* SIGNAL_STRENGTH_GREAT */
4216                 });
sDefaults.putIntArray(KEY_5G_NR_SSSINR_THRESHOLDS_INT_ARRAY, new int[] { -5, 5, 15, 30 })4217         sDefaults.putIntArray(KEY_5G_NR_SSSINR_THRESHOLDS_INT_ARRAY,
4218                 // Boundaries: [-23 dB, 40 dB]
4219                 new int[] {
4220                     -5, /* SIGNAL_STRENGTH_POOR */
4221                     5, /* SIGNAL_STRENGTH_MODERATE */
4222                     15, /* SIGNAL_STRENGTH_GOOD */
4223                     30  /* SIGNAL_STRENGTH_GREAT */
4224                 });
sDefaults.putInt(KEY_PARAMETERS_USE_FOR_5G_NR_SIGNAL_BAR_INT, CellSignalStrengthNr.USE_SSRSRP)4225         sDefaults.putInt(KEY_PARAMETERS_USE_FOR_5G_NR_SIGNAL_BAR_INT,
4226                 CellSignalStrengthNr.USE_SSRSRP);
sDefaults.putBoolean(KEY_SIGNAL_STRENGTH_NR_NSA_USE_LTE_AS_PRIMARY_BOOL, true)4227         sDefaults.putBoolean(KEY_SIGNAL_STRENGTH_NR_NSA_USE_LTE_AS_PRIMARY_BOOL, true);
sDefaults.putStringArray(KEY_BANDWIDTH_STRING_ARRAY, new String[]{ "GPRS:24,24", "EDGE:70,18", "UMTS:115,115", "CDMA-IS95A:14,14", "CDMA-IS95B:14,14", "1xRTT:30,30", "EvDo-rev.0:750,48", "EvDo-rev.A:950,550", "HSDPA:4300,620", "HSUPA:4300,1800", "HSPA:4300,1800", "EvDo-rev.B:1500,550", "eHRPD:750,48", "HSPAP:13000,3400", "TD-SCDMA:115,115", "LTE:30000,15000", "NR_NSA:47000,18000", "NR_NSA_MMWAVE:145000,60000", "NR_SA:145000,60000"})4228         sDefaults.putStringArray(KEY_BANDWIDTH_STRING_ARRAY, new String[]{
4229                 "GPRS:24,24", "EDGE:70,18", "UMTS:115,115", "CDMA-IS95A:14,14", "CDMA-IS95B:14,14",
4230                 "1xRTT:30,30", "EvDo-rev.0:750,48", "EvDo-rev.A:950,550", "HSDPA:4300,620",
4231                 "HSUPA:4300,1800", "HSPA:4300,1800", "EvDo-rev.B:1500,550", "eHRPD:750,48",
4232                 "HSPAP:13000,3400", "TD-SCDMA:115,115", "LTE:30000,15000", "NR_NSA:47000,18000",
4233                 "NR_NSA_MMWAVE:145000,60000", "NR_SA:145000,60000"});
sDefaults.putBoolean(KEY_BANDWIDTH_NR_NSA_USE_LTE_VALUE_FOR_UPSTREAM_BOOL, false)4234         sDefaults.putBoolean(KEY_BANDWIDTH_NR_NSA_USE_LTE_VALUE_FOR_UPSTREAM_BOOL, false);
sDefaults.putString(KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING, "rssi")4235         sDefaults.putString(KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING, "rssi");
sDefaults.putBoolean(KEY_CONFIG_SHOW_ORIG_DIAL_STRING_FOR_CDMA_BOOL, false)4236         sDefaults.putBoolean(KEY_CONFIG_SHOW_ORIG_DIAL_STRING_FOR_CDMA_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_CALL_BLOCKING_DISABLED_NOTIFICATION_ALWAYS_BOOL, false)4237         sDefaults.putBoolean(KEY_SHOW_CALL_BLOCKING_DISABLED_NOTIFICATION_ALWAYS_BOOL, false);
sDefaults.putBoolean(KEY_CALL_FORWARDING_OVER_UT_WARNING_BOOL, false)4238         sDefaults.putBoolean(KEY_CALL_FORWARDING_OVER_UT_WARNING_BOOL, false);
sDefaults.putBoolean(KEY_CALL_BARRING_OVER_UT_WARNING_BOOL, false)4239         sDefaults.putBoolean(KEY_CALL_BARRING_OVER_UT_WARNING_BOOL, false);
sDefaults.putBoolean(KEY_CALLER_ID_OVER_UT_WARNING_BOOL, false)4240         sDefaults.putBoolean(KEY_CALLER_ID_OVER_UT_WARNING_BOOL, false);
sDefaults.putBoolean(KEY_CALL_WAITING_OVER_UT_WARNING_BOOL, false)4241         sDefaults.putBoolean(KEY_CALL_WAITING_OVER_UT_WARNING_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_CLIR_NETWORK_DEFAULT_BOOL, true)4242         sDefaults.putBoolean(KEY_SUPPORT_CLIR_NETWORK_DEFAULT_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_EMERGENCY_DIALER_SHORTCUT_BOOL, true)4243         sDefaults.putBoolean(KEY_SUPPORT_EMERGENCY_DIALER_SHORTCUT_BOOL, true);
sDefaults.putBoolean(KEY_USE_CALL_FORWARDING_USSD_BOOL, false)4244         sDefaults.putBoolean(KEY_USE_CALL_FORWARDING_USSD_BOOL, false);
sDefaults.putBoolean(KEY_USE_CALLER_ID_USSD_BOOL, false)4245         sDefaults.putBoolean(KEY_USE_CALLER_ID_USSD_BOOL, false);
sDefaults.putInt(KEY_CALL_WAITING_SERVICE_CLASS_INT, 1 )4246         sDefaults.putInt(KEY_CALL_WAITING_SERVICE_CLASS_INT, 1 /* SERVICE_CLASS_VOICE */);
sDefaults.putString(KEY_5G_ICON_CONFIGURATION_STRING, "connected_mmwave:5G,connected:5G,not_restricted_rrc_idle:5G," + "not_restricted_rrc_con:5G")4247         sDefaults.putString(KEY_5G_ICON_CONFIGURATION_STRING,
4248                 "connected_mmwave:5G,connected:5G,not_restricted_rrc_idle:5G,"
4249                         + "not_restricted_rrc_con:5G");
sDefaults.putString(KEY_5G_ICON_DISPLAY_GRACE_PERIOD_STRING, "")4250         sDefaults.putString(KEY_5G_ICON_DISPLAY_GRACE_PERIOD_STRING, "");
sDefaults.putString(KEY_5G_ICON_DISPLAY_SECONDARY_GRACE_PERIOD_STRING, "")4251         sDefaults.putString(KEY_5G_ICON_DISPLAY_SECONDARY_GRACE_PERIOD_STRING, "");
sDefaults.putBoolean(KEY_NR_TIMERS_RESET_IF_NON_ENDC_AND_RRC_IDLE_BOOL, false)4252         sDefaults.putBoolean(KEY_NR_TIMERS_RESET_IF_NON_ENDC_AND_RRC_IDLE_BOOL, false);
4253         /* Default value is 1 hour. */
sDefaults.putLong(KEY_5G_WATCHDOG_TIME_MS_LONG, 3600000)4254         sDefaults.putLong(KEY_5G_WATCHDOG_TIME_MS_LONG, 3600000);
sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_BOOL, false)4255         sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_BOOL, false);
sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_MMWAVE_BOOL, false)4256         sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_MMWAVE_BOOL, false);
sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_SUB6_BOOL, false)4257         sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_SUB6_BOOL, false);
sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_WHEN_ROAMING_BOOL, false)4258         sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_WHEN_ROAMING_BOOL, false);
sDefaults.putBoolean(KEY_UNMETERED_NR_SA_BOOL, false)4259         sDefaults.putBoolean(KEY_UNMETERED_NR_SA_BOOL, false);
sDefaults.putBoolean(KEY_UNMETERED_NR_SA_MMWAVE_BOOL, false)4260         sDefaults.putBoolean(KEY_UNMETERED_NR_SA_MMWAVE_BOOL, false);
sDefaults.putBoolean(KEY_UNMETERED_NR_SA_SUB6_BOOL, false)4261         sDefaults.putBoolean(KEY_UNMETERED_NR_SA_SUB6_BOOL, false);
sDefaults.putBoolean(KEY_ASCII_7_BIT_SUPPORT_FOR_LONG_MESSAGE_BOOL, false)4262         sDefaults.putBoolean(KEY_ASCII_7_BIT_SUPPORT_FOR_LONG_MESSAGE_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_WIFI_CALLING_ICON_IN_STATUS_BAR_BOOL, false)4263         sDefaults.putBoolean(KEY_SHOW_WIFI_CALLING_ICON_IN_STATUS_BAR_BOOL, false);
4264         /* Default value is minimum RSRP level needed for SIGNAL_STRENGTH_GOOD */
sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSRP_INT, -108)4265         sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSRP_INT, -108);
4266         /* Default value is minimum RSRP level needed for SIGNAL_STRENGTH_MODERATE */
sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT, -118)4267         sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT, -118);
4268         /* Default value is minimum RSSNR level needed for SIGNAL_STRENGTH_GOOD */
sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSSNR_INT, 45)4269         sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSSNR_INT, 45);
4270         /* Default value is minimum RSSNR level needed for SIGNAL_STRENGTH_MODERATE */
sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT, 10)4271         sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT, 10);
4272         /* Default value is 1024 kbps */
sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_BANDWIDTH_INT, 1024)4273         sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_BANDWIDTH_INT, 1024);
4274         /* Default value is 10 seconds */
sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_ENTRY_OR_EXIT_HYSTERESIS_TIME_LONG, 10000)4275         sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_ENTRY_OR_EXIT_HYSTERESIS_TIME_LONG, 10000);
4276         /* Default value is 10 seconds. */
sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG, 10000)4277         sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG, 10000);
4278         /* Default value is 3 seconds. */
sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG, 3000)4279         sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG, 3000);
sDefaults.putBoolean(KEY_PING_TEST_BEFORE_DATA_SWITCH_BOOL, true)4280         sDefaults.putBoolean(KEY_PING_TEST_BEFORE_DATA_SWITCH_BOOL, true);
sDefaults.putBoolean(KEY_SWITCH_DATA_TO_PRIMARY_IF_PRIMARY_IS_OOS_BOOL, true)4281         sDefaults.putBoolean(KEY_SWITCH_DATA_TO_PRIMARY_IF_PRIMARY_IS_OOS_BOOL, true);
4282         /* Default value is 60 seconds. */
sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG, 60000)4283         sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG, 60000);
4284         /* Default value is 10 seconds. */
sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG, 10000)4285         sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG, 10000);
4286         /* Default value is 60 seconds. */
sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_MAX_BACKOFF_TIME_LONG, 60000)4287         sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_MAX_BACKOFF_TIME_LONG, 60000);
Gps.getDefaults()4288         sDefaults.putAll(Gps.getDefaults());
sDefaults.putIntArray(KEY_CDMA_ENHANCED_ROAMING_INDICATOR_FOR_HOME_NETWORK_INT_ARRAY, new int[] { 1 })4289         sDefaults.putIntArray(KEY_CDMA_ENHANCED_ROAMING_INDICATOR_FOR_HOME_NETWORK_INT_ARRAY,
4290                 new int[] {
4291                         1 /* Roaming Indicator Off */
4292                 });
sDefaults.putStringArray(KEY_EMERGENCY_NUMBER_PREFIX_STRING_ARRAY, new String[0])4293         sDefaults.putStringArray(KEY_EMERGENCY_NUMBER_PREFIX_STRING_ARRAY, new String[0]);
sDefaults.putBoolean(KEY_USE_USIM_BOOL, false)4294         sDefaults.putBoolean(KEY_USE_USIM_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_WFC_LOCATION_PRIVACY_POLICY_BOOL, false)4295         sDefaults.putBoolean(KEY_SHOW_WFC_LOCATION_PRIVACY_POLICY_BOOL, false);
sDefaults.putBoolean(KEY_AUTO_CANCEL_CS_REJECT_NOTIFICATION, true)4296         sDefaults.putBoolean(KEY_AUTO_CANCEL_CS_REJECT_NOTIFICATION, true);
sDefaults.putString(KEY_SMART_FORWARDING_CONFIG_COMPONENT_NAME_STRING, "")4297         sDefaults.putString(KEY_SMART_FORWARDING_CONFIG_COMPONENT_NAME_STRING, "");
sDefaults.putBoolean(KEY_ALWAYS_SHOW_PRIMARY_SIGNAL_BAR_IN_OPPORTUNISTIC_NETWORK_BOOLEAN, false)4298         sDefaults.putBoolean(KEY_ALWAYS_SHOW_PRIMARY_SIGNAL_BAR_IN_OPPORTUNISTIC_NETWORK_BOOLEAN,
4299                 false);
sDefaults.putString(KEY_SUBSCRIPTION_GROUP_UUID_STRING, "")4300         sDefaults.putString(KEY_SUBSCRIPTION_GROUP_UUID_STRING, "");
sDefaults.putBoolean(KEY_IS_OPPORTUNISTIC_SUBSCRIPTION_BOOL, false)4301         sDefaults.putBoolean(KEY_IS_OPPORTUNISTIC_SUBSCRIPTION_BOOL, false);
sDefaults.putIntArray(KEY_GSM_RSSI_THRESHOLDS_INT_ARRAY, new int[] { -107, -103, -97, -89, })4302         sDefaults.putIntArray(KEY_GSM_RSSI_THRESHOLDS_INT_ARRAY,
4303                 new int[] {
4304                         -107, /* SIGNAL_STRENGTH_POOR */
4305                         -103, /* SIGNAL_STRENGTH_MODERATE */
4306                         -97, /* SIGNAL_STRENGTH_GOOD */
4307                         -89,  /* SIGNAL_STRENGTH_GREAT */
4308                 });
sDefaults.putBoolean(KEY_SUPPORT_WPS_OVER_IMS_BOOL, true)4309         sDefaults.putBoolean(KEY_SUPPORT_WPS_OVER_IMS_BOOL, true);
Ims.getDefaults()4310         sDefaults.putAll(Ims.getDefaults());
sDefaults.putStringArray(KEY_CARRIER_CERTIFICATE_STRING_ARRAY, null)4311         sDefaults.putStringArray(KEY_CARRIER_CERTIFICATE_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_FORMAT_INCOMING_NUMBER_TO_NATIONAL_FOR_JP_BOOL, false)4312          sDefaults.putBoolean(KEY_FORMAT_INCOMING_NUMBER_TO_NATIONAL_FOR_JP_BOOL, false);
sDefaults.putIntArray(KEY_DISCONNECT_CAUSE_PLAY_BUSYTONE_INT_ARRAY, new int[] {4 })4313         sDefaults.putIntArray(KEY_DISCONNECT_CAUSE_PLAY_BUSYTONE_INT_ARRAY,
4314                 new int[] {4 /* BUSY */});
sDefaults.putBoolean(KEY_PREVENT_CLIR_ACTIVATION_AND_DEACTIVATION_CODE_BOOL, false)4315         sDefaults.putBoolean(KEY_PREVENT_CLIR_ACTIVATION_AND_DEACTIVATION_CODE_BOOL, false);
sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_TIMEOUT_LONG, 2000)4316         sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_TIMEOUT_LONG, 2000);
sDefaults.putInt(KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT, CellSignalStrengthLte.USE_RSRP)4317         sDefaults.putInt(KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT,
4318                 CellSignalStrengthLte.USE_RSRP);
sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG, TimeUnit.DAYS.toMillis(1))4319         sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG, TimeUnit.DAYS.toMillis(1));
sDefaults.putStringArray(KEY_MISSED_INCOMING_CALL_SMS_ORIGINATOR_STRING_ARRAY, new String[0])4320         sDefaults.putStringArray(KEY_MISSED_INCOMING_CALL_SMS_ORIGINATOR_STRING_ARRAY,
4321                 new String[0]);
sDefaults.putStringArray(KEY_APN_PRIORITY_STRING_ARRAY, new String[] { "default:0", "mms:2", "supl:2", "dun:2", "hipri:3", "fota:2", "ims:2", "cbs:2", "ia:2", "emergency:2", "mcx:3", "xcap:3" })4322         sDefaults.putStringArray(KEY_APN_PRIORITY_STRING_ARRAY, new String[] {
4323                 "default:0", "mms:2", "supl:2", "dun:2", "hipri:3", "fota:2",
4324                 "ims:2", "cbs:2", "ia:2", "emergency:2", "mcx:3", "xcap:3"
4325         });
sDefaults.putStringArray(KEY_MISSED_INCOMING_CALL_SMS_PATTERN_STRING_ARRAY, new String[0])4326         sDefaults.putStringArray(KEY_MISSED_INCOMING_CALL_SMS_PATTERN_STRING_ARRAY, new String[0]);
sDefaults.putBoolean(KEY_DISABLE_DUN_APN_WHILE_ROAMING, false)4327         sDefaults.putBoolean(KEY_DISABLE_DUN_APN_WHILE_ROAMING, false);
4328     }
4329 
4330     /**
4331      * Gets the configuration values for a particular subscription, which is associated with a
4332      * specific SIM card. If an invalid subId is used, the returned config will contain default
4333      * values. After using this method to get the configuration bundle,
4334      * {@link #isConfigForIdentifiedCarrier(PersistableBundle)} should be called to confirm whether
4335      * any carrier specific configuration has been applied.
4336      *
4337      * <p>Requires Permission:
4338      * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
4339      *
4340      * @param subId the subscription ID, normally obtained from {@link SubscriptionManager}.
4341      * @return A {@link PersistableBundle} containing the config for the given subId, or default
4342      *         values for an invalid subId.
4343      */
4344     @Nullable
getConfigForSubId(int subId)4345     public PersistableBundle getConfigForSubId(int subId) {
4346         try {
4347             ICarrierConfigLoader loader = getICarrierConfigLoader();
4348             if (loader == null) {
4349                 Rlog.w(TAG, "Error getting config for subId " + subId
4350                         + " ICarrierConfigLoader is null");
4351                 return null;
4352             }
4353             return loader.getConfigForSubIdWithFeature(subId, mContext.getOpPackageName(),
4354                     null);
4355         } catch (RemoteException ex) {
4356             Rlog.e(TAG, "Error getting config for subId " + subId + ": "
4357                     + ex.toString());
4358         }
4359         return null;
4360     }
4361 
4362     /**
4363      * Overrides the carrier config of the provided subscription ID with the provided values.
4364      *
4365      * Any further queries to carrier config from any process will return the overridden values
4366      * after this method returns. The overrides are effective for the lifetime of the phone process
4367      * until the user passes in {@code null} for {@code overrideValues}. This removes all previous
4368      * overrides and sets the carrier config back to production values.
4369      *
4370      * May throw an {@link IllegalArgumentException} if {@code overrideValues} contains invalid
4371      * values for the specified config keys.
4372      *
4373      * NOTE: This API is meant for testing purposes only.
4374      *
4375      * @param subscriptionId The subscription ID for which the override should be done.
4376      * @param overrideValues Key-value pairs of the values that are to be overridden. If set to
4377      *                       {@code null}, this will remove all previous overrides and set the
4378      *                       carrier configuration back to production values.
4379      * @hide
4380      */
4381     @RequiresPermission(Manifest.permission.MODIFY_PHONE_STATE)
4382     @SystemApi
4383     @TestApi
overrideConfig(int subscriptionId, @Nullable PersistableBundle overrideValues)4384     public void overrideConfig(int subscriptionId, @Nullable PersistableBundle overrideValues) {
4385         overrideConfig(subscriptionId, overrideValues, false);
4386     }
4387 
4388     /**
4389      * Overrides the carrier config of the provided subscription ID with the provided values.
4390      *
4391      * Any further queries to carrier config from any process will return the overridden values
4392      * after this method returns. The overrides are effective until the user passes in {@code null}
4393      * for {@code overrideValues}. This removes all previous overrides and sets the carrier config
4394      * back to production values.
4395      *
4396      * The overrides is stored persistently and will survive a reboot if {@code persistent} is true.
4397      *
4398      * May throw an {@link IllegalArgumentException} if {@code overrideValues} contains invalid
4399      * values for the specified config keys.
4400      *
4401      * NOTE: This API is meant for testing purposes only.
4402      *
4403      * @param subscriptionId The subscription ID for which the override should be done.
4404      * @param overrideValues Key-value pairs of the values that are to be overridden. If set to
4405      *                       {@code null}, this will remove all previous overrides and set the
4406      *                       carrier configuration back to production values.
4407      * @param persistent     Determines whether the override should be persistent.
4408      * @hide
4409      */
4410     @RequiresPermission(Manifest.permission.MODIFY_PHONE_STATE)
overrideConfig(int subscriptionId, @Nullable PersistableBundle overrideValues, boolean persistent)4411     public void overrideConfig(int subscriptionId, @Nullable PersistableBundle overrideValues,
4412             boolean persistent) {
4413         try {
4414             ICarrierConfigLoader loader = getICarrierConfigLoader();
4415             if (loader == null) {
4416                 Rlog.w(TAG, "Error setting config for subId " + subscriptionId
4417                         + " ICarrierConfigLoader is null");
4418                 return;
4419             }
4420             loader.overrideConfig(subscriptionId, overrideValues, persistent);
4421         } catch (RemoteException ex) {
4422             Rlog.e(TAG, "Error setting config for subId " + subscriptionId + ": "
4423                     + ex.toString());
4424         }
4425     }
4426 
4427     /**
4428      * Gets the configuration values for the default subscription. After using this method to get
4429      * the configuration bundle, {@link #isConfigForIdentifiedCarrier(PersistableBundle)} should be
4430      * called to confirm whether any carrier specific configuration has been applied.
4431      *
4432      * <p>Requires Permission:
4433      * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
4434      *
4435      * @see #getConfigForSubId
4436      */
4437     @Nullable
getConfig()4438     public PersistableBundle getConfig() {
4439         return getConfigForSubId(SubscriptionManager.getDefaultSubscriptionId());
4440     }
4441 
4442     /**
4443      * Determines whether a configuration {@link PersistableBundle} obtained from
4444      * {@link #getConfig()} or {@link #getConfigForSubId(int)} corresponds to an identified carrier.
4445      * <p>
4446      * When an app receives the {@link CarrierConfigManager#ACTION_CARRIER_CONFIG_CHANGED}
4447      * broadcast which informs it that the carrier configuration has changed, it is possible
4448      * that another reload of the carrier configuration has begun since the intent was sent.
4449      * In this case, the carrier configuration the app fetches (e.g. via {@link #getConfig()})
4450      * may not represent the configuration for the current carrier. It should be noted that it
4451      * does not necessarily mean the configuration belongs to current carrier when this function
4452      * return true because it may belong to another previous identified carrier. Users should
4453      * always call {@link #getConfig()} or {@link #getConfigForSubId(int)} after receiving the
4454      * broadcast {@link #ACTION_CARRIER_CONFIG_CHANGED}.
4455      * </p>
4456      * <p>
4457      * After using {@link #getConfig()} or {@link #getConfigForSubId(int)} an app should always
4458      * use this method to confirm whether any carrier specific configuration has been applied.
4459      * Especially when an app misses the broadcast {@link #ACTION_CARRIER_CONFIG_CHANGED} but it
4460      * still needs to get the current configuration, it must use this method to verify whether the
4461      * configuration is default or carrier overridden.
4462      * </p>
4463      *
4464      * @param bundle the configuration bundle to be checked.
4465      * @return boolean true if any carrier specific configuration bundle has been applied, false
4466      * otherwise or the bundle is null.
4467      */
isConfigForIdentifiedCarrier(PersistableBundle bundle)4468     public static boolean isConfigForIdentifiedCarrier(PersistableBundle bundle) {
4469         return bundle != null && bundle.getBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL);
4470     }
4471 
4472     /**
4473      * Calling this method triggers telephony services to fetch the current carrier configuration.
4474      * <p>
4475      * Normally this does not need to be called because the platform reloads config on its own.
4476      * This should be called by a carrier service app if it wants to update config at an arbitrary
4477      * moment.
4478      * </p>
4479      * <p>Requires that the calling app has carrier privileges.
4480      * <p>
4481      * This method returns before the reload has completed, and
4482      * {@link android.service.carrier.CarrierService#onLoadConfig} will be called from an
4483      * arbitrary thread.
4484      * </p>
4485      * @see TelephonyManager#hasCarrierPrivileges
4486      */
notifyConfigChangedForSubId(int subId)4487     public void notifyConfigChangedForSubId(int subId) {
4488         try {
4489             ICarrierConfigLoader loader = getICarrierConfigLoader();
4490             if (loader == null) {
4491                 Rlog.w(TAG, "Error reloading config for subId=" + subId
4492                         + " ICarrierConfigLoader is null");
4493                 return;
4494             }
4495             loader.notifyConfigChangedForSubId(subId);
4496         } catch (RemoteException ex) {
4497             Rlog.e(TAG, "Error reloading config for subId=" + subId + ": " + ex.toString());
4498         }
4499     }
4500 
4501     /**
4502      * Request the carrier config loader to update the cofig for phoneId.
4503      * <p>
4504      * Depending on simState, the config may be cleared or loaded from config app. This is only used
4505      * by SubscriptionInfoUpdater.
4506      * </p>
4507      *
4508      * @hide
4509      */
4510     @SystemApi
4511     @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
updateConfigForPhoneId(int phoneId, String simState)4512     public void updateConfigForPhoneId(int phoneId, String simState) {
4513         try {
4514             ICarrierConfigLoader loader = getICarrierConfigLoader();
4515             if (loader == null) {
4516                 Rlog.w(TAG, "Error updating config for phoneId=" + phoneId
4517                         + " ICarrierConfigLoader is null");
4518                 return;
4519             }
4520             loader.updateConfigForPhoneId(phoneId, simState);
4521         } catch (RemoteException ex) {
4522             Rlog.e(TAG, "Error updating config for phoneId=" + phoneId + ": " + ex.toString());
4523         }
4524     }
4525 
4526     /**
4527      * Gets the package name for a default carrier service.
4528      * @return the package name for a default carrier service; empty string if not available.
4529      *
4530      * @hide
4531      */
4532     @NonNull
4533     @SystemApi
4534     @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
getDefaultCarrierServicePackageName()4535     public String getDefaultCarrierServicePackageName() {
4536         try {
4537             ICarrierConfigLoader loader = getICarrierConfigLoader();
4538             if (loader == null) {
4539                 Rlog.w(TAG, "getDefaultCarrierServicePackageName ICarrierConfigLoader is null");
4540                 return "";
4541             }
4542             return loader.getDefaultCarrierServicePackageName();
4543         } catch (RemoteException ex) {
4544             Rlog.e(TAG, "getDefaultCarrierServicePackageName ICarrierConfigLoader is null"
4545                     + ex.toString());
4546             ex.rethrowAsRuntimeException();
4547         }
4548         return "";
4549     }
4550 
4551     /**
4552      * Returns a new bundle with the default value for every supported configuration variable.
4553      *
4554      * @hide
4555      */
4556     @NonNull
4557     @SystemApi
4558     @SuppressLint("Doclava125")
getDefaultConfig()4559     public static PersistableBundle getDefaultConfig() {
4560         return new PersistableBundle(sDefaults);
4561     }
4562 
4563     /** @hide */
4564     @Nullable
getICarrierConfigLoader()4565     private ICarrierConfigLoader getICarrierConfigLoader() {
4566         return ICarrierConfigLoader.Stub
4567                 .asInterface(ServiceManager.getService(Context.CARRIER_CONFIG_SERVICE));
4568     }
4569 
4570     /**
4571      * Gets the configuration values for a component using its prefix.
4572      *
4573      * <p>Requires Permission:
4574      * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
4575      *
4576      * @param prefix prefix of the component.
4577      * @param subId the subscription ID, normally obtained from {@link SubscriptionManager}.
4578      *
4579      * @see #getConfigForSubId
4580      */
4581     @Nullable
getConfigByComponentForSubId(@onNull String prefix, int subId)4582     public PersistableBundle getConfigByComponentForSubId(@NonNull String prefix, int subId) {
4583         PersistableBundle configs = getConfigForSubId(subId);
4584 
4585         if (configs == null) {
4586             return null;
4587         }
4588 
4589         PersistableBundle ret = new PersistableBundle();
4590         for (String configKey : configs.keySet()) {
4591             if (configKey.startsWith(prefix)) {
4592                 addConfig(configKey, configs.get(configKey), ret);
4593             }
4594         }
4595 
4596         return ret;
4597     }
4598 
addConfig(String key, Object value, PersistableBundle configs)4599     private void addConfig(String key, Object value, PersistableBundle configs) {
4600         if (value instanceof String) {
4601             configs.putString(key, (String) value);
4602         }
4603 
4604         if (value instanceof String[]) {
4605             configs.putStringArray(key, (String[]) value);
4606         }
4607 
4608         if (value instanceof Integer) {
4609             configs.putInt(key, (Integer) value);
4610         }
4611 
4612         if (value instanceof Long) {
4613             configs.putLong(key, (Long) value);
4614         }
4615 
4616         if (value instanceof Double) {
4617             configs.putDouble(key, (Double) value);
4618         }
4619 
4620         if (value instanceof Boolean) {
4621             configs.putBoolean(key, (Boolean) value);
4622         }
4623 
4624         if (value instanceof int[]) {
4625             configs.putIntArray(key, (int[]) value);
4626         }
4627 
4628         if (value instanceof double[]) {
4629             configs.putDoubleArray(key, (double[]) value);
4630         }
4631 
4632         if (value instanceof boolean[]) {
4633             configs.putBooleanArray(key, (boolean[]) value);
4634         }
4635 
4636         if (value instanceof long[]) {
4637             configs.putLongArray(key, (long[]) value);
4638         }
4639     }
4640 }
4641