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