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