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