blob: e21301eb32af159c2ced30d2cbc11e1a0ab47c05 [file] [log] [blame]
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08001/*
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
17package android.telephony;
18
Hall Liue5b1fda2018-10-22 18:17:44 -070019import android.Manifest;
Naina Nalluria0cd83e2020-11-03 12:53:27 -080020import android.annotation.IntDef;
Jonathan Basserib731c3d2015-05-05 12:00:59 -070021import android.annotation.NonNull;
22import android.annotation.Nullable;
Hui Wangc47df7f2021-12-14 20:37:47 +000023import android.annotation.RequiresFeature;
Jeff Sharkeyd86b8fe2017-06-02 17:36:26 -060024import android.annotation.RequiresPermission;
Rambo Wangd2639b92021-11-02 07:23:49 -070025import android.annotation.SuppressAutoDoc;
Jeff Sharkeyd86b8fe2017-06-02 17:36:26 -060026import android.annotation.SuppressLint;
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -080027import android.annotation.SystemApi;
Jeff Sharkeyd86b8fe2017-06-02 17:36:26 -060028import android.annotation.SystemService;
Artur Satayev2ebb31c2020-01-08 12:24:36 +000029import android.compat.annotation.UnsupportedAppUsage;
tonyzhu6ac54dc2018-11-19 15:00:00 +080030import android.content.ComponentName;
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -080031import android.content.Context;
Hui Wangc47df7f2021-12-14 20:37:47 +000032import android.content.pm.PackageManager;
Jack Yu07844fb2021-10-07 01:12:15 -070033import android.net.NetworkCapabilities;
Naina Nallurid50baf12021-03-08 13:13:36 -080034import android.net.ipsec.ike.SaProposal;
Mathew Inwood8e742f92020-10-27 11:47:29 +000035import android.os.Build;
Jonathan Basseri4f9ad1672015-05-12 10:06:32 -070036import android.os.PersistableBundle;
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -080037import android.os.RemoteException;
Jeff Sharkey17bebd22017-07-19 21:00:38 -060038import android.service.carrier.CarrierService;
Tyler Gunne4d72b42019-02-25 10:42:45 -080039import android.telecom.TelecomManager;
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -080040import android.telephony.AccessNetworkConstants.AccessNetworkType;
41import android.telephony.data.ApnSetting;
Jack Yu9138a212021-06-10 10:40:12 -070042import android.telephony.data.DataCallResponse;
Hall Liuab470f72021-03-10 18:02:47 -080043import android.telephony.gba.TlsParams;
44import android.telephony.gba.UaSecurityProtocolIdentifier;
Brad Ebingerf8c3cd82018-01-22 13:51:52 -080045import android.telephony.ims.ImsReasonInfo;
Brad Ebinger1a17e242021-02-21 21:48:50 -080046import android.telephony.ims.ImsRegistrationAttributes;
Kikkawa Shohei03a14712020-08-07 17:44:40 +090047import android.telephony.ims.ImsSsData;
Brad Ebinger722cacf2021-05-14 01:53:56 +000048import android.telephony.ims.RcsUceAdapter;
Brad Ebinger1a17e242021-02-21 21:48:50 -080049import android.telephony.ims.feature.MmTelFeature;
50import android.telephony.ims.feature.RcsFeature;
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -080051
Ta-wei Yen3f9306f2016-04-20 14:46:20 -070052import com.android.internal.telephony.ICarrierConfigLoader;
Sarah China912e112020-01-09 10:43:30 -080053import com.android.telephony.Rlog;
Ta-wei Yen3f9306f2016-04-20 14:46:20 -070054
Sarah Chin69f721e2021-12-13 17:52:25 -080055import java.util.List;
Malcolm Chen57b574e2020-02-19 15:21:22 -080056import java.util.concurrent.TimeUnit;
57
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -080058/**
59 * Provides access to telephony configuration values that are carrier-specific.
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -080060 */
Jeff Sharkeyd86b8fe2017-06-02 17:36:26 -060061@SystemService(Context.CARRIER_CONFIG_SERVICE)
Hui Wangc47df7f2021-12-14 20:37:47 +000062@RequiresFeature(PackageManager.FEATURE_TELEPHONY_SUBSCRIPTION)
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -080063public class CarrierConfigManager {
Jonathan Basserif31ac332015-05-27 01:18:46 -070064 private final static String TAG = "CarrierConfigManager";
65
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -080066 /**
Amit Mahajan8a4275f2018-01-24 12:54:44 -080067 * Extra included in {@link #ACTION_CARRIER_CONFIG_CHANGED} to indicate the slot index that the
68 * broadcast is for.
69 */
70 public static final String EXTRA_SLOT_INDEX = "android.telephony.extra.SLOT_INDEX";
71
72 /**
Jordan Liucb7069d2020-11-30 11:20:48 -080073 * {@link #ACTION_CARRIER_CONFIG_CHANGED} is broadcast once on device bootup and then again when
74 * the device is unlocked. Direct-Boot-aware applications may use the first broadcast as an
75 * early signal that the carrier config has been loaded, but other applications will only
76 * receive the second broadcast, when the device is unlocked.
77 *
78 * This extra is included in {@link #ACTION_CARRIER_CONFIG_CHANGED} to indicate whether this is
79 * a rebroadcast on unlock.
Sarah Chin53ae60d2020-04-01 14:05:56 -070080 */
81 public static final String EXTRA_REBROADCAST_ON_UNLOCK =
82 "android.telephony.extra.REBROADCAST_ON_UNLOCK";
83
84 /**
Amit Mahajan8a4275f2018-01-24 12:54:44 -080085 * Optional extra included in {@link #ACTION_CARRIER_CONFIG_CHANGED} to indicate the
86 * subscription index that the broadcast is for, if a valid one is available.
87 */
88 public static final String EXTRA_SUBSCRIPTION_INDEX =
89 SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX;
90
Kikkawa Shohei03a14712020-08-07 17:44:40 +090091 /**
Brad Ebingered0579f2020-09-16 11:33:36 -070092 * Service class flag if no specific service class is specified.
Kikkawa Shohei03a14712020-08-07 17:44:40 +090093 * Reference: 3GPP TS 27.007 Section 7.4 Facility lock +CLCK
94 */
95 public static final int SERVICE_CLASS_NONE = ImsSsData.SERVICE_CLASS_NONE;
96
97 /**
98 * Service class flag for voice telephony.
99 * Reference: 3GPP TS 27.007 Section 7.4 Facility lock +CLCK
100 */
101 public static final int SERVICE_CLASS_VOICE = ImsSsData.SERVICE_CLASS_VOICE;
102
gwenline7145b42020-09-18 11:09:20 -0400103 /**
104 * Only send USSD over IMS while CS is out of service, otherwise send USSD over CS.
105 * {@link #KEY_CARRIER_USSD_METHOD_INT}
106 */
107 public static final int USSD_OVER_CS_PREFERRED = 0;
108
109 /**
110 * Send USSD over IMS or CS while IMS is out of service or silent redial over CS if needed.
111 * {@link #KEY_CARRIER_USSD_METHOD_INT}
112 */
113 public static final int USSD_OVER_IMS_PREFERRED = 1;
114
115 /**
116 * Only send USSD over CS.
117 * {@link #KEY_CARRIER_USSD_METHOD_INT}
118 */
119 public static final int USSD_OVER_CS_ONLY = 2;
120
121 /**
122 * Only send USSD over IMS and disallow silent redial over CS.
123 * {@link #KEY_CARRIER_USSD_METHOD_INT}
124 */
125 public static final int USSD_OVER_IMS_ONLY = 3;
126
SongFerngWang7d951852020-12-21 16:24:25 +0800127 /**
128 * Indicates CARRIER_NR_AVAILABILITY_NSA determine that the carrier enable the non-standalone
129 * (NSA) mode of 5G NR.
130 */
SongFerngWangc42f2692021-03-11 13:18:32 +0800131 public static final int CARRIER_NR_AVAILABILITY_NSA = 1;
SongFerngWang7d951852020-12-21 16:24:25 +0800132
133 /**
134 * Indicates CARRIER_NR_AVAILABILITY_SA determine that the carrier enable the standalone (SA)
135 * mode of 5G NR.
136 */
SongFerngWangc42f2692021-03-11 13:18:32 +0800137 public static final int CARRIER_NR_AVAILABILITY_SA = 2;
SongFerngWang7d951852020-12-21 16:24:25 +0800138
Malcolm Chend1272d12018-02-28 15:20:45 -0800139 private final Context mContext;
140
Amit Mahajan8a4275f2018-01-24 12:54:44 -0800141 /**
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -0800142 * @hide
143 */
Malcolm Chend1272d12018-02-28 15:20:45 -0800144 public CarrierConfigManager(Context context) {
145 mContext = context;
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -0800146 }
147
148 /**
Amit Mahajan8a4275f2018-01-24 12:54:44 -0800149 * This intent is broadcast by the system when carrier config changes. An int is specified in
150 * {@link #EXTRA_SLOT_INDEX} to indicate the slot index that this is for. An optional int extra
151 * {@link #EXTRA_SUBSCRIPTION_INDEX} is included to indicate the subscription index if a valid
chen xud47a0682018-12-06 15:34:05 -0800152 * one is available for the slot index. An optional int extra
153 * {@link TelephonyManager#EXTRA_CARRIER_ID} is included to indicate the carrier id for the
154 * changed carrier configuration. An optional int extra
chen xu45f66212019-03-06 14:43:40 -0800155 * {@link TelephonyManager#EXTRA_SPECIFIC_CARRIER_ID} is included to indicate the precise
chen xud47a0682018-12-06 15:34:05 -0800156 * carrier id for the changed carrier configuration.
157 * @see TelephonyManager#getSimCarrierId()
chen xu45f66212019-03-06 14:43:40 -0800158 * @see TelephonyManager#getSimSpecificCarrierId()
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -0800159 */
160 public static final String
161 ACTION_CARRIER_CONFIG_CHANGED = "android.telephony.action.CARRIER_CONFIG_CHANGED";
162
Jonathan Basseri08e318e2015-05-29 10:12:23 -0700163 // Below are the keys used in carrier config bundles. To add a new variable, define the key and
164 // give it a default value in sDefaults. If you need to ship a per-network override in the
165 // system image, that can be added in packages/apps/CarrierConfig.
166
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -0800167 /**
Michele Berionne8ac8bd22018-12-05 11:05:33 -0800168 * Specifies a value that identifies the version of the carrier configuration that is
169 * currently in use. This string is displayed on the UI.
170 * The format of the string is not specified.
Michele Berionne8ac8bd22018-12-05 11:05:33 -0800171 */
172 public static final String KEY_CARRIER_CONFIG_VERSION_STRING =
173 "carrier_config_version_string";
174
175 /**
Jordan Liuc82d1132016-10-03 11:35:33 -0700176 * This flag specifies whether VoLTE availability is based on provisioning. By default this is
177 * false.
Hakjun Choia972ee22022-01-17 09:49:53 +0000178 * Used for UCE to determine if EAB provisioning checks should be based on provisioning.
Hakjun Choie026d4c2022-02-23 02:29:47 +0000179 * @deprecated Use {@link Ims#KEY_CARRIER_RCS_PROVISIONING_REQUIRED_BOOL} instead.
Jordan Liuc82d1132016-10-03 11:35:33 -0700180 */
Hakjun Choia972ee22022-01-17 09:49:53 +0000181 @Deprecated
Jordan Liuc82d1132016-10-03 11:35:33 -0700182 public static final String
183 KEY_CARRIER_VOLTE_PROVISIONED_BOOL = "carrier_volte_provisioned_bool";
184
SongFerngWang06057162018-06-28 17:28:22 +0800185 /**
SongFerngWang08972c52019-11-25 22:44:12 +0800186 * Boolean indicating the Supplementary Services(SS) is disable when airplane mode on in the
187 * Call Settings menu.
188 * {@code true}: SS is disable when airplane mode on.
189 * {@code false}: SS is enable when airplane mode on.
190 * The default value for this key is {@code false}
191 */
192 public static final String KEY_DISABLE_SUPPLEMENTARY_SERVICES_IN_AIRPLANE_MODE_BOOL =
193 "disable_supplementary_services_in_airplane_mode_bool";
194
195 /**
SongFerngWang06057162018-06-28 17:28:22 +0800196 * Boolean indicating if the "Call forwarding" item is visible in the Call Settings menu.
197 * true means visible. false means gone.
198 * @hide
199 */
200 public static final String KEY_CALL_FORWARDING_VISIBILITY_BOOL =
201 "call_forwarding_visibility_bool";
202
203 /**
Shu Wang6edfc5a2018-09-13 15:36:30 +0200204 * Boolean indicating if carrier supports call forwarding option "When unreachable".
205 *
206 * {@code true}: Call forwarding option "When unreachable" is supported.
207 * {@code false}: Call forwarding option "When unreachable" is not supported. Option will be
allenwtsu6206afc2020-05-19 21:37:50 +0800208 * removed in the UI.
Shu Wang6edfc5a2018-09-13 15:36:30 +0200209 *
210 * By default this value is true.
211 * @hide
212 */
213 public static final String KEY_CALL_FORWARDING_WHEN_UNREACHABLE_SUPPORTED_BOOL =
214 "call_forwarding_when_unreachable_supported_bool";
215
allenwtsu6206afc2020-05-19 21:37:50 +0800216 /**
217 * Boolean indicating if carrier supports call forwarding option "When unanswered".
218 *
219 * {@code true}: Call forwarding option "When unanswered" is supported.
220 * {@code false}: Call forwarding option "When unanswered" is not supported. Option will be
221 * removed in the UI.
222 *
223 * By default this value is true.
224 * @hide
225 */
226 public static final String KEY_CALL_FORWARDING_WHEN_UNANSWERED_SUPPORTED_BOOL =
227 "call_forwarding_when_unanswered_supported_bool";
228
229 /**
230 * Boolean indicating if carrier supports call forwarding option "When busy".
231 *
232 * {@code true}: Call forwarding option "When busy" is supported.
233 * {@code false}: Call forwarding option "When busy" is not supported. Option will be
234 * removed in the UI.
235 *
236 * By default this value is true.
237 * @hide
238 */
239 public static final String KEY_CALL_FORWARDING_WHEN_BUSY_SUPPORTED_BOOL =
240 "call_forwarding_when_busy_supported_bool";
241
Shu Wang6edfc5a2018-09-13 15:36:30 +0200242 /**
SongFerngWang06057162018-06-28 17:28:22 +0800243 * Boolean indicating if the "Caller ID" item is visible in the Additional Settings menu.
244 * true means visible. false means gone.
245 * @hide
246 */
247 public static final String KEY_ADDITIONAL_SETTINGS_CALLER_ID_VISIBILITY_BOOL =
248 "additional_settings_caller_id_visibility_bool";
249
250 /**
251 * Boolean indicating if the "Call Waiting" item is visible in the Additional Settings menu.
252 * true means visible. false means gone.
253 * @hide
254 */
255 public static final String KEY_ADDITIONAL_SETTINGS_CALL_WAITING_VISIBILITY_BOOL =
256 "additional_settings_call_waiting_visibility_bool";
257
Wenting Xiongd5853682016-08-12 18:28:37 +0800258 /**
259 * Boolean indicating if the "Call barring" item is visible in the Call Settings menu.
Brad Ebinger0819bac2018-08-29 16:08:29 -0700260 * If true, the "Call Barring" menu will be visible. If false, the menu will be gone.
261 *
262 * Disabled by default.
Wenting Xiongd5853682016-08-12 18:28:37 +0800263 */
264 public static final String KEY_CALL_BARRING_VISIBILITY_BOOL =
265 "call_barring_visibility_bool";
266
Jordan Liuc82d1132016-10-03 11:35:33 -0700267 /**
Brad Ebinger0819bac2018-08-29 16:08:29 -0700268 * Flag indicating whether or not changing the call barring password via the "Call Barring"
269 * settings menu is supported. If true, the option will be visible in the "Call
270 * Barring" settings menu. If false, the option will not be visible.
271 *
272 * Enabled by default.
273 */
274 public static final String KEY_CALL_BARRING_SUPPORTS_PASSWORD_CHANGE_BOOL =
275 "call_barring_supports_password_change_bool";
276
277 /**
278 * Flag indicating whether or not deactivating all call barring features via the "Call Barring"
279 * settings menu is supported. If true, the option will be visible in the "Call
280 * Barring" settings menu. If false, the option will not be visible.
281 *
282 * Enabled by default.
283 */
284 public static final String KEY_CALL_BARRING_SUPPORTS_DEACTIVATE_ALL_BOOL =
285 "call_barring_supports_deactivate_all_bool";
286
287 /**
Kikkawa Shohei03a14712020-08-07 17:44:40 +0900288 * Specifies the service class for call barring service. Default value is
289 * {@link #SERVICE_CLASS_VOICE}.
290 * The value set as below:
291 * <ul>
292 * <li>0: {@link #SERVICE_CLASS_NONE}</li>
293 * <li>1: {@link #SERVICE_CLASS_VOICE}</li>
294 * </ul>
295 */
296 public static final String KEY_CALL_BARRING_DEFAULT_SERVICE_CLASS_INT =
297 "call_barring_default_service_class_int";
298
299 /**
Brad Ebinger783f66f2021-07-15 16:09:56 -0700300 * This carrier supports dialing USSD codes to enable/disable supplementary services such as
301 * call forwarding and call waiting over CDMA.
302 * <p>
303 * The supplementary service menu will still need to be set as visible, see
304 * {@link #KEY_CALL_FORWARDING_VISIBILITY_BOOL} and
305 * {@link #KEY_ADDITIONAL_SETTINGS_CALL_WAITING_VISIBILITY_BOOL}.
306 * <p>
307 * If this is set as false and the supplementary service menu is visible, the associated setting
308 * will be enabled and disabled based on the availability of supplementary services over UT. See
309 * {@link #KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL}.
310 * @hide
311 */
312 public static final String KEY_SUPPORT_SS_OVER_CDMA_BOOL = "support_ss_over_cdma_bool";
313
314 /**
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700315 * Flag indicating whether the Phone app should ignore EVENT_SIM_NETWORK_LOCKED
316 * events from the Sim.
317 * If true, this will prevent the IccNetworkDepersonalizationPanel from being shown, and
318 * effectively disable the "Sim network lock" feature.
319 */
320 public static final String
Jonathan Basseri69822f02015-06-04 13:48:08 -0700321 KEY_IGNORE_SIM_NETWORK_LOCKED_EVENTS_BOOL = "ignore_sim_network_locked_events_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700322
323 /**
Jordan Liube45b8c2016-11-09 13:23:42 -0800324 * When checking if a given number is the voicemail number, if this flag is true
325 * then in addition to comparing the given number to the voicemail number, we also compare it
326 * to the mdn. If this flag is false, the given number is only compared to the voicemail number.
327 * By default this value is false.
328 */
329 public static final String KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL =
330 "mdn_is_additional_voicemail_number_bool";
331
332 /**
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700333 * Flag indicating whether the Phone app should provide a "Dismiss" button on the SIM network
334 * unlock screen. The default value is true. If set to false, there will be *no way* to dismiss
335 * the SIM network unlock screen if you don't enter the correct unlock code. (One important
336 * consequence: there will be no way to make an Emergency Call if your SIM is network-locked and
337 * you don't know the PIN.)
338 */
339 public static final String
Jonathan Basseri69822f02015-06-04 13:48:08 -0700340 KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL = "sim_network_unlock_allow_dismiss_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700341
Avinash Nalluriceaf7222018-04-21 14:06:06 -0700342 /**
343 * Flag indicating whether or not sending emergency SMS messages over IMS
344 * is supported when in LTE/limited LTE (Emergency only) service mode..
345 *
346 */
347 public static final String
348 KEY_SUPPORT_EMERGENCY_SMS_OVER_IMS_BOOL = "support_emergency_sms_over_ims_bool";
349
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700350 /** Flag indicating if the phone is a world phone */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700351 public static final String KEY_WORLD_PHONE_BOOL = "world_phone_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700352
353 /**
Chris Manton1ba0fa02015-09-01 13:56:46 -0700354 * Flag to require or skip entitlement checks.
355 * If true, entitlement checks will be executed if device has been configured for it,
356 * If false, entitlement checks will be skipped.
Chris Manton1ba0fa02015-09-01 13:56:46 -0700357 */
358 public static final String
359 KEY_REQUIRE_ENTITLEMENT_CHECKS_BOOL = "require_entitlement_checks_bool";
360
361 /**
Meng Wang5b6f5532022-02-01 18:27:26 +0000362 * Flag indicating if the carrier supports tethering of mobile data.
363 */
364 public static final String KEY_CARRIER_SUPPORTS_TETHERING_BOOL =
365 "carrier_supports_tethering_bool";
366
367 /**
Jordan Liua5a8b592016-09-12 10:57:27 -0700368 * Flag indicating whether radio is to be restarted on error PDP_FAIL_REGULAR_DEACTIVATION
369 * This is false by default.
Jack Yu3399f362018-08-21 16:57:36 -0700370 *
Jack Yua219efb2018-08-22 17:19:44 -0700371 * @deprecated Use {@link #KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY} instead
Jordan Liua5a8b592016-09-12 10:57:27 -0700372 */
Jack Yu3399f362018-08-21 16:57:36 -0700373 @Deprecated
374 public static final String KEY_RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION_BOOL =
375 "restart_radio_on_pdp_fail_regular_deactivation_bool";
376
377 /**
378 * A list of failure cause codes that will trigger a modem restart when telephony receiving
379 * one of those during data setup. The cause codes are defined in 3GPP TS 24.008 Annex I and
380 * TS 24.301 Annex B.
381 */
382 public static final String KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY =
383 "radio_restart_failure_causes_int_array";
Jordan Liua5a8b592016-09-12 10:57:27 -0700384
385 /**
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700386 * If true, enable vibration (haptic feedback) for key presses in the EmergencyDialer activity.
387 * The pattern is set on a per-platform basis using config_virtualKeyVibePattern. To be
388 * consistent with the regular Dialer, this value should agree with the corresponding values
389 * from config.xml under apps/Contacts.
390 */
391 public static final String
Jonathan Basseri1826c232015-06-19 16:04:38 -0700392 KEY_ENABLE_DIALER_KEY_VIBRATION_BOOL = "enable_dialer_key_vibration_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700393
394 /** Flag indicating if dtmf tone type is enabled */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700395 public static final String KEY_DTMF_TYPE_ENABLED_BOOL = "dtmf_type_enabled_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700396
397 /** Flag indicating if auto retry is enabled */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700398 public static final String KEY_AUTO_RETRY_ENABLED_BOOL = "auto_retry_enabled_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700399
400 /**
401 * Determine whether we want to play local DTMF tones in a call, or just let the radio/BP handle
402 * playing of the tones.
403 */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700404 public static final String KEY_ALLOW_LOCAL_DTMF_TONES_BOOL = "allow_local_dtmf_tones_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700405
406 /**
Tyler Gunnacdb6862018-01-29 14:30:52 -0800407 * Determines if the carrier requires that a tone be played to the remote party when an app is
408 * recording audio during a call (e.g. using a call recording app).
409 * <p>
410 * Note: This requires the Telephony config_supports_telephony_audio_device overlay to be true
411 * in order to work.
412 * @hide
413 */
414 public static final String KEY_PLAY_CALL_RECORDING_TONE_BOOL = "play_call_recording_tone_bool";
415 /**
Jordan Liu5ac6f5c2016-10-03 12:28:27 -0700416 * Determines if the carrier requires converting the destination number before sending out an
417 * SMS. Certain networks and numbering plans require different formats.
418 */
419 public static final String KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL=
420 "sms_requires_destination_number_conversion_bool";
421
422 /**
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700423 * If true, show an onscreen "Dial" button in the dialer. In practice this is used on all
424 * platforms, even the ones with hard SEND/END keys, but for maximum flexibility it's controlled
425 * by a flag here (which can be overridden on a per-product basis.)
426 */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700427 public static final String KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL = "show_onscreen_dial_button_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700428
429 /** Determines if device implements a noise suppression device for in call audio. */
430 public static final String
Jonathan Basseri69822f02015-06-04 13:48:08 -0700431 KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL = "has_in_call_noise_suppression_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700432
433 /**
434 * Determines if the current device should allow emergency numbers to be logged in the Call Log.
435 * (Some carriers require that emergency calls *not* be logged, presumably to avoid the risk of
436 * accidental redialing from the call log UI. This is a good idea, so the default here is
437 * false.)
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700438 */
439 public static final String
Jonathan Basseri69822f02015-06-04 13:48:08 -0700440 KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL = "allow_emergency_numbers_in_call_log_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700441
Hall Liue6e6ec42018-08-03 18:25:24 -0700442 /**
443 * A string array containing numbers that shouldn't be included in the call log.
Hall Liue6e6ec42018-08-03 18:25:24 -0700444 */
445 public static final String KEY_UNLOGGABLE_NUMBERS_STRING_ARRAY =
446 "unloggable_numbers_string_array";
447
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700448 /** If true, removes the Voice Privacy option from Call Settings */
Jonathan Basseri3360c262015-06-09 15:16:21 -0700449 public static final String KEY_VOICE_PRIVACY_DISABLE_UI_BOOL = "voice_privacy_disable_ui_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700450
451 /** Control whether users can reach the carrier portions of Cellular Network Settings. */
452 public static final String
Jonathan Basseri69822f02015-06-04 13:48:08 -0700453 KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL = "hide_carrier_network_settings_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700454
Joe LaPenna2b22ae32016-12-07 16:27:24 -0800455 /**
Sarah China912e112020-01-09 10:43:30 -0800456 * Only allow auto selection in Advanced Network Settings when in home network.
Mattias Nilssonef874162017-12-11 13:45:40 +0100457 * Manual selection is allowed when in roaming network.
Mattias Nilssonef874162017-12-11 13:45:40 +0100458 */
Sarah China912e112020-01-09 10:43:30 -0800459 public static final String KEY_ONLY_AUTO_SELECT_IN_HOME_NETWORK_BOOL =
460 "only_auto_select_in_home_network";
Mattias Nilssonef874162017-12-11 13:45:40 +0100461
462 /**
Qiong Liu3a996222017-12-07 14:13:50 +0800463 * Flag indicating whether to show single operator row in the choose network setting.
464 *
465 * The device configuration value {@code config_enableNewAutoSelectNetworkUI} ultimately
466 * controls whether this carrier configuration option is used. Where
467 * {@code config_enableNewAutoSelectNetworkUI} is false, the value of the
468 * {@link #KEY_SHOW_SINGLE_OPERATOR_ROW_IN_CHOOSE_NETWORK_SETTING_BOOL} carrier configuration
469 * option is ignored.
470 *
471 * If {@code true}, default value, merge the duplicate networks which with the same plmn, keep
472 * the one that with the higher signal strength level.
473 * If {@code false}, show all operators without merging.
474 * @hide
475 */
476 public static final String KEY_SHOW_SINGLE_OPERATOR_ROW_IN_CHOOSE_NETWORK_SETTING_BOOL =
477 "show_single_operator_row_in_choose_network_setting_bool";
478
479 /**
480 * Flag indicating whether to display SPN as network name for home network in choose
481 * network setting.
482 *
483 * If {@code true}, display SPN as network name in choose network setting.
484 * If {@code false}, display PLMN in choose network setting.
485 * @hide
486 */
487 public static final String KEY_SHOW_SPN_FOR_HOME_IN_CHOOSE_NETWORK_SETTING_BOOL =
488 "show_spn_for_home_in_choose_network_setting_bool";
489
490 /**
Joe LaPenna2b22ae32016-12-07 16:27:24 -0800491 * Control whether users receive a simplified network settings UI and improved network
492 * selection.
Joe LaPenna2b22ae32016-12-07 16:27:24 -0800493 */
494 public static final String
495 KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL = "simplified_network_settings_bool";
496
Junda Liue15cca72015-06-17 09:55:57 -0700497 /** Control whether users can reach the SIM lock settings. */
498 public static final String
499 KEY_HIDE_SIM_LOCK_SETTINGS_BOOL = "hide_sim_lock_settings_bool";
500
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700501 /** Control whether users can edit APNs in Settings. */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700502 public static final String KEY_APN_EXPAND_BOOL = "apn_expand_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700503
504 /** Control whether users can choose a network operator. */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700505 public static final String KEY_OPERATOR_SELECTION_EXPAND_BOOL = "operator_selection_expand_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700506
Yomna Nasserd3db44f2022-03-09 22:04:54 +0000507 /**
508 * Used in the Preferred Network Types menu to determine if the 2G option is displayed.
509 * Value defaults to false as of Android T to discourage the use of insecure 2G protocols.
510 *
511 * @see #KEY_HIDE_ENABLE_2G
512 */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700513 public static final String KEY_PREFER_2G_BOOL = "prefer_2g_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700514
Sooraj Sasindranb19264b2021-04-12 16:22:52 -0700515 /**
516 * Used in Cellular Network Settings for preferred network type to show 4G only mode.
517 * @hide
518 */
519 public static final String KEY_4G_ONLY_BOOL = "4g_only_bool";
520
Junda Liucd115b72015-05-13 14:57:48 -0700521 /** Show cdma network mode choices 1x, 3G, global etc. */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700522 public static final String KEY_SHOW_CDMA_CHOICES_BOOL = "show_cdma_choices_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700523
524 /** CDMA activation goes through HFA */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700525 public static final String KEY_USE_HFA_FOR_PROVISIONING_BOOL = "use_hfa_for_provisioning_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700526
527 /**
528 * CDMA activation goes through OTASP.
529 * <p>
530 * TODO: This should be combined with config_use_hfa_for_provisioning and implemented as an enum
531 * (NONE, HFA, OTASP).
532 */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700533 public static final String KEY_USE_OTASP_FOR_PROVISIONING_BOOL = "use_otasp_for_provisioning_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700534
535 /** Display carrier settings menu if true */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700536 public static final String KEY_CARRIER_SETTINGS_ENABLE_BOOL = "carrier_settings_enable_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700537
Bin Chen503513d2017-09-01 18:12:53 +0800538 /** Does not display additional call setting for IMS phone based on GSM Phone */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700539 public static final String KEY_ADDITIONAL_CALL_SETTING_BOOL = "additional_call_setting_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700540
541 /** Show APN Settings for some CDMA carriers */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700542 public static final String KEY_SHOW_APN_SETTING_CDMA_BOOL = "show_apn_setting_cdma_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700543
544 /** After a CDMA conference call is merged, the swap button should be displayed. */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700545 public static final String KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL = "support_swap_after_merge_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700546
547 /**
manabu, shimoda1de99d12017-10-20 17:16:06 +0900548 * Determine whether user can edit voicemail number in Settings.
549 */
550 public static final String KEY_EDITABLE_VOICEMAIL_NUMBER_SETTING_BOOL =
551 "editable_voicemail_number_setting_bool";
552
553 /**
Jordan Liu4a546382016-09-08 12:45:58 -0700554 * Since the default voicemail number is empty, if a SIM card does not have a voicemail number
555 * available the user cannot use voicemail. This flag allows the user to edit the voicemail
556 * number in such cases, and is false by default.
557 */
558 public static final String KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL= "editable_voicemail_number_bool";
559
560 /**
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700561 * Determine whether the voicemail notification is persistent in the notification bar. If true,
562 * the voicemail notifications cannot be dismissed from the notification bar.
563 */
564 public static final String
Jonathan Basseri69822f02015-06-04 13:48:08 -0700565 KEY_VOICEMAIL_NOTIFICATION_PERSISTENT_BOOL = "voicemail_notification_persistent_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700566
567 /** For IMS video over LTE calls, determines whether video pause signalling is supported. */
568 public static final String
Jonathan Basseri69822f02015-06-04 13:48:08 -0700569 KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL = "support_pause_ims_video_calls_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700570
571 /**
572 * Disables dialing "*228" (OTASP provisioning) on CDMA carriers where it is not supported or is
573 * potentially harmful by locking the SIM to 3G.
574 */
575 public static final String
Jonathan Basseri69822f02015-06-04 13:48:08 -0700576 KEY_DISABLE_CDMA_ACTIVATION_CODE_BOOL = "disable_cdma_activation_code_bool";
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700577
Amit Mahajan412e7c82015-10-05 11:05:02 -0700578 /**
Sarah Chin69f721e2021-12-13 17:52:25 -0800579 * List of network type constants which support only a single data connection at a time.
580 * Some carriers do not support multiple PDP on UMTS.
581 * @see TelephonyManager NETWORK_TYPE_*
Jordan Liu2420a0a2016-10-04 11:46:03 -0700582 */
583 public static final String
584 KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY = "only_single_dc_allowed_int_array";
585
586 /**
Chris Mantonca16a792015-06-16 12:06:08 -0700587 * Override the platform's notion of a network operator being considered roaming.
588 * Value is string array of MCCMNCs to be considered roaming for 3GPP RATs.
589 */
590 public static final String
591 KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY = "gsm_roaming_networks_string_array";
592
593 /**
594 * Override the platform's notion of a network operator being considered not roaming.
595 * Value is string array of MCCMNCs to be considered not roaming for 3GPP RATs.
596 */
597 public static final String
598 KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY = "gsm_nonroaming_networks_string_array";
599
600 /**
Brad Ebinger66978142019-12-05 11:38:15 -0800601 * The package name containing the ImsService that will be bound to the telephony framework to
602 * support both IMS MMTEL and RCS feature functionality instead of the device default
603 * ImsService for this subscription.
604 * @deprecated Use {@link #KEY_CONFIG_IMS_MMTEL_PACKAGE_OVERRIDE_STRING} and
605 * {@link #KEY_CONFIG_IMS_RCS_PACKAGE_OVERRIDE_STRING} instead to configure these values
606 * separately. If any of those values are not empty, they will override this value.
Brad Ebinger024aaf22017-01-23 15:17:50 -0800607 */
608 public static final String KEY_CONFIG_IMS_PACKAGE_OVERRIDE_STRING =
609 "config_ims_package_override_string";
610
611 /**
Brad Ebinger66978142019-12-05 11:38:15 -0800612 * The package name containing the ImsService that will be bound to the telephony framework to
613 * support IMS MMTEL feature functionality instead of the device default ImsService for this
614 * subscription.
615 */
616 public static final String KEY_CONFIG_IMS_MMTEL_PACKAGE_OVERRIDE_STRING =
617 "config_ims_mmtel_package_override_string";
618
619 /**
620 * The package name containing the ImsService that will be bound to the telephony framework to
621 * support IMS RCS feature functionality instead of the device default ImsService for this
622 * subscription.
623 */
624 public static final String KEY_CONFIG_IMS_RCS_PACKAGE_OVERRIDE_STRING =
625 "config_ims_rcs_package_override_string";
626
627 /**
Jeff Sharkey17bebd22017-07-19 21:00:38 -0600628 * Override the package that will manage {@link SubscriptionPlan}
629 * information instead of the {@link CarrierService} that defines this
630 * value.
631 *
632 * @see SubscriptionManager#getSubscriptionPlans(int)
633 * @see SubscriptionManager#setSubscriptionPlans(int, java.util.List)
634 */
635 public static final String KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING =
636 "config_plans_package_override_string";
637
638 /**
Chris Mantonca16a792015-06-16 12:06:08 -0700639 * Override the platform's notion of a network operator being considered roaming.
640 * Value is string array of SIDs to be considered roaming for 3GPP2 RATs.
641 */
642 public static final String
643 KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY = "cdma_roaming_networks_string_array";
644
645 /**
646 * Override the platform's notion of a network operator being considered non roaming.
647 * Value is string array of SIDs to be considered not roaming for 3GPP2 RATs.
648 */
649 public static final String
650 KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY = "cdma_nonroaming_networks_string_array";
651
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700652 /**
Chris Manton63f25b62015-06-24 16:47:49 -0700653 * Override the platform's notion of a network operator being considered non roaming.
654 * If true all networks are considered as home network a.k.a non-roaming. When false,
655 * the 2 pairs of CMDA and GSM roaming/non-roaming arrays are consulted.
656 *
Ricardo Loo Forondaf2a8aea2017-10-26 17:02:31 -0700657 * @see #KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY
658 * @see #KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY
659 * @see #KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY
660 * @see #KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY
Chris Manton63f25b62015-06-24 16:47:49 -0700661 */
662 public static final String
663 KEY_FORCE_HOME_NETWORK_BOOL = "force_home_network_bool";
664
665 /**
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -0800666 * Flag specifying whether VoLTE should be available for carrier, independent of carrier
667 * provisioning. If false: hard disabled. If true: then depends on carrier provisioning,
668 * availability, etc.
669 */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700670 public static final String KEY_CARRIER_VOLTE_AVAILABLE_BOOL = "carrier_volte_available_bool";
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -0800671
Junda Liue4786492015-06-15 13:15:28 -0700672 /**
Junda Liue5c7ca72015-06-24 14:41:14 -0700673 * Flag specifying whether video telephony is available for carrier. If false: hard disabled.
674 * If true: then depends on carrier provisioning, availability, etc.
675 */
676 public static final String KEY_CARRIER_VT_AVAILABLE_BOOL = "carrier_vt_available_bool";
677
678 /**
gwenline7145b42020-09-18 11:09:20 -0400679 * Specify the method of selection for UE sending USSD requests. The default value is
680 * {@link #USSD_OVER_CS_PREFERRED}.
681 * <p> Available options:
682 * <ul>
683 * <li>0: {@link #USSD_OVER_CS_PREFERRED} </li>
684 * <li>1: {@link #USSD_OVER_IMS_PREFERRED} </li>
685 * <li>2: {@link #USSD_OVER_CS_ONLY} </li>
686 * <li>3: {@link #USSD_OVER_IMS_ONLY} </li>
687 * </ul>
688 */
689 public static final String KEY_CARRIER_USSD_METHOD_INT =
690 "carrier_ussd_method_int";
691
692 /**
SongFerngWang27b6a582020-04-10 15:07:09 +0800693 * Flag specifying whether to show an alert dialog for 5G disable when the user disables VoLTE.
694 * By default this value is {@code false}.
695 *
696 * @hide
697 */
698 public static final String KEY_VOLTE_5G_LIMITED_ALERT_DIALOG_BOOL =
699 "volte_5g_limited_alert_dialog_bool";
700
701 /**
Tyler Gunn481255d2016-08-16 16:04:48 -0700702 * Flag specifying whether the carrier wants to notify the user when a VT call has been handed
703 * over from WIFI to LTE.
704 * <p>
705 * The handover notification is sent as a
706 * {@link TelephonyManager#EVENT_HANDOVER_VIDEO_FROM_WIFI_TO_LTE}
707 * {@link android.telecom.Connection} event, which an {@link android.telecom.InCallService}
708 * should use to trigger the display of a user-facing message.
709 * <p>
710 * The Connection event is sent to the InCallService only once, the first time it occurs.
711 * @hide
712 */
713 public static final String KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL =
714 "notify_handover_video_from_wifi_to_lte_bool";
715
716 /**
Hall Liuef800082019-07-29 16:18:30 -0700717 * Flag specifying whether the carrier supports merging a RTT call with a voice call,
718 * downgrading the call in the process.
719 * @hide
720 */
721 public static final String KEY_ALLOW_MERGING_RTT_CALLS_BOOL =
722 "allow_merging_rtt_calls_bool";
723
724 /**
Tyler Gunn5ce0d3a2017-12-14 14:06:15 -0800725 * Flag specifying whether the carrier wants to notify the user when a VT call has been handed
726 * over from LTE to WIFI.
727 * <p>
728 * The handover notification is sent as a
729 * {@link TelephonyManager#EVENT_HANDOVER_VIDEO_FROM_LTE_TO_WIFI}
730 * {@link android.telecom.Connection} event, which an {@link android.telecom.InCallService}
731 * should use to trigger the display of a user-facing message.
732 * @hide
733 */
734 public static final String KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL =
735 "notify_handover_video_from_lte_to_wifi_bool";
736
737 /**
Tyler Gunn86d5c3f2016-08-12 14:14:13 -0700738 * Flag specifying whether the carrier supports downgrading a video call (tx, rx or tx/rx)
739 * directly to an audio call.
740 * @hide
741 */
742 public static final String KEY_SUPPORT_DOWNGRADE_VT_TO_AUDIO_BOOL =
743 "support_downgrade_vt_to_audio_bool";
744
745 /**
Jordan Liu3ff30d22016-09-01 13:25:13 -0700746 * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default
747 * voicemail number.
748 * When empty string, no default voicemail number is specified.
749 */
750 public static final String KEY_DEFAULT_VM_NUMBER_STRING = "default_vm_number_string";
751
Jack Yu2030cd92016-11-17 09:51:29 -0800752 /**
SongFerngWang310f6d02018-03-23 15:07:05 +0800753 * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default
754 * voicemail number for roaming network.
755 * When empty string, no default voicemail number is specified for roaming network.
756 * @hide
757 */
758 public static final String KEY_DEFAULT_VM_NUMBER_ROAMING_STRING =
759 "default_vm_number_roaming_string";
760
761 /**
Saki Oomori0dd2dfb2018-09-11 15:44:25 +0900762 * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default
763 * voicemail number while the device is both roaming and not registered for IMS.
764 * When empty string, no default voicemail number is specified for roaming network and
765 * unregistered state in IMS.
766 */
767 public static final String KEY_DEFAULT_VM_NUMBER_ROAMING_AND_IMS_UNREGISTERED_STRING =
768 "default_vm_number_roaming_and_ims_unregistered_string";
769
770 /**
Cassie4c6f72c2017-10-10 14:33:38 -0700771 * Flag that specifies to use the user's own phone number as the voicemail number when there is
772 * no pre-loaded voicemail number on the SIM card.
773 * <p>
774 * {@link #KEY_DEFAULT_VM_NUMBER_STRING} takes precedence over this flag.
775 * <p>
776 * If false, the system default (*86) will be used instead.
777 */
778 public static final String KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL =
779 "config_telephony_use_own_number_for_voicemail_bool";
780
781 /**
Tyler Gunn9a961f52017-08-17 15:58:47 -0700782 * When {@code true}, changes to the mobile data enabled switch will not cause the VT
783 * registration state to change. That is, turning on or off mobile data will not cause VT to be
784 * enabled or disabled.
785 * When {@code false}, disabling mobile data will cause VT to be de-registered.
Jack Yu2030cd92016-11-17 09:51:29 -0800786 */
787 public static final String KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS =
788 "ignore_data_enabled_changed_for_video_calls";
Jordan Liu3ff30d22016-09-01 13:25:13 -0700789
790 /**
Tyler Gunn9a961f52017-08-17 15:58:47 -0700791 * Flag indicating whether data used for a video call over LTE is metered or not.
792 * <p>
793 * When {@code true}, if the device hits the data limit or data is disabled during a ViLTE call,
794 * the call will be downgraded to audio-only (or paused if
795 * {@link #KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL} is {@code true}).
796 *
797 * @hide
798 */
799 public static final String KEY_VILTE_DATA_IS_METERED_BOOL = "vilte_data_is_metered_bool";
800
801 /**
Junda Liue4786492015-06-15 13:15:28 -0700802 * Flag specifying whether WFC over IMS should be available for carrier: independent of
803 * carrier provisioning. If false: hard disabled. If true: then depends on carrier
804 * provisioning, availability etc.
805 */
806 public static final String KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL = "carrier_wfc_ims_available_bool";
807
fionaxuc71e8242016-03-08 11:46:55 -0800808 /**
Sooraj Sasindran83ff8ad2020-11-23 23:42:51 -0800809 * Flag specifying whether Cross SIM over IMS should be available for carrier.
810 * When {@code false} the carrier does not support cross SIM calling.
811 * When {@code true} the carrier does support cross sim calling, where available
812 */
813 public static final String KEY_CARRIER_CROSS_SIM_IMS_AVAILABLE_BOOL =
814 "carrier_cross_sim_ims_available_bool";
815
816 /**
yawensu5cc57b62021-09-07 13:58:42 +0800817 * Flag specifying whether cross sim calling on opportunistic data is supported for carrier.
818 * When {@code false} the carrier does not support cross sim calling on opportunistic data.
819 * When {@code true} the carrier does support cross sim calling on opportunistic data.
820 */
821 public static final String KEY_ENABLE_CROSS_SIM_CALLING_ON_OPPORTUNISTIC_DATA_BOOL =
822 "enable_cross_sim_calling_on_opportunistic_data_bool";
823
824 /**
Jordan Liu02ec2a02016-09-09 11:48:48 -0700825 * Specifies a map from dialstrings to replacements for roaming network service numbers which
826 * cannot be replaced on the carrier side.
827 * <p>
828 * Individual entries have the format:
829 * [dialstring to replace]:[replacement]
830 */
831 public static final String KEY_DIAL_STRING_REPLACE_STRING_ARRAY =
832 "dial_string_replace_string_array";
833
834 /**
Thomas Stuart5c0227d2022-04-08 14:04:56 -0700835 * Specifies a map from dialstrings to replacements for international roaming network service
836 * numbers which cannot be replaced on the carrier side.
837 * <p>
838 * Individual entries have the format:
839 * [dialstring to replace]:[replacement]
840 * @hide
841 */
842 public static final String KEY_INTERNATIONAL_ROAMING_DIAL_STRING_REPLACE_STRING_ARRAY =
843 "international_roaming_dial_string_replace_string_array";
844
845 /**
Tyler Gunn5bbeea02016-03-30 14:50:30 -0700846 * Flag specifying whether WFC over IMS supports the "wifi only" option. If false, the wifi
847 * calling settings will not include an option for "wifi only". If true, the wifi calling
848 * settings will include an option for "wifi only"
849 * <p>
850 * By default, it is assumed that WFC supports "wifi only".
851 */
852 public static final String KEY_CARRIER_WFC_SUPPORTS_WIFI_ONLY_BOOL =
853 "carrier_wfc_supports_wifi_only_bool";
854
855 /**
Meng Wang71b60392018-08-24 15:40:02 -0700856 * Default mode for WFC over IMS on home network:
857 * <ul>
858 * <li>0: Wi-Fi only
859 * <li>1: prefer mobile network
860 * <li>2: prefer Wi-Fi
861 * </ul>
fionaxuc71e8242016-03-08 11:46:55 -0800862 */
863 public static final String KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT =
864 "carrier_default_wfc_ims_mode_int";
Meng Wang2c25e4a2016-09-19 14:18:05 -0700865
866 /**
Meng Wang71b60392018-08-24 15:40:02 -0700867 * Default mode for WFC over IMS on roaming network.
868 * See {@link #KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT} for meaning of values.
Meng Wang2c25e4a2016-09-19 14:18:05 -0700869 */
870 public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT =
871 "carrier_default_wfc_ims_roaming_mode_int";
872
fionaxuc71e8242016-03-08 11:46:55 -0800873 /**
874 * Default WFC_IMS_enabled: true VoWiFi by default is on
875 * false VoWiFi by default is off
fionaxuc71e8242016-03-08 11:46:55 -0800876 */
877 public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL =
878 "carrier_default_wfc_ims_enabled_bool";
879
880 /**
881 * Default WFC_IMS_roaming_enabled: true VoWiFi roaming by default is on
882 * false VoWiFi roaming by default is off
883 * @hide
884 */
885 public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL =
886 "carrier_default_wfc_ims_roaming_enabled_bool";
887
Tyler Gunnc3e6c932016-07-07 10:11:14 -0700888 /**
889 * Flag indicating whether failed calls due to no service should prompt the user to enable
890 * WIFI calling. When {@code true}, if the user attempts to establish a call when there is no
891 * service available, they are connected to WIFI, and WIFI calling is disabled, a different
892 * call failure message will be used to encourage the user to enable WIFI calling.
893 * @hide
894 */
895 public static final String KEY_CARRIER_PROMOTE_WFC_ON_CALL_FAIL_BOOL =
896 "carrier_promote_wfc_on_call_fail_bool";
897
Brad Ebingerb3f46322019-01-14 13:46:05 -0800898 /**
allenwtsuc2524a42020-01-03 18:18:11 +0800899 * Flag specifying whether provisioning is required for RCS.
900 */
901 public static final String KEY_CARRIER_RCS_PROVISIONING_REQUIRED_BOOL =
902 "carrier_rcs_provisioning_required_bool";
903
904 /**
Brad Ebingerb3f46322019-01-14 13:46:05 -0800905 * Flag specifying whether provisioning is required for VoLTE, Video Telephony, and WiFi
906 * Calling.
Hakjun Choia972ee22022-01-17 09:49:53 +0000907
908 * Combines VoLTE, VT, VoWiFI calling provisioning into one parameter.
909 * @deprecated Use {@link Ims#KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE} instead for
910 * finer-grained control.
Hakjun Choi79a50532022-04-21 06:24:26 +0000911 * changing carrier_volte_provisioning_required_bool requires changes to
912 * mmtel_requires_provisioning_bundle and vice versa
913 * {@link Ims#KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE}
Brad Ebingerb3f46322019-01-14 13:46:05 -0800914 */
Hakjun Choia972ee22022-01-17 09:49:53 +0000915 @Deprecated
Junda Liue5c7ca72015-06-24 14:41:14 -0700916 public static final String KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL
917 = "carrier_volte_provisioning_required_bool";
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -0800918
Meng Wang05062992017-02-14 21:55:09 -0800919 /**
Brad Ebingerb3f46322019-01-14 13:46:05 -0800920 * Flag indicating whether or not the IMS MmTel UT capability requires carrier provisioning
921 * before it can be set as enabled.
922 *
923 * If true, the UT capability will be set to false for the newly loaded subscription
924 * and will require the carrier provisioning app to set the persistent provisioning result.
925 * If false, the platform will not wait for provisioning status updates for the UT capability
926 * and enable the UT over IMS capability for the subscription when the subscription is loaded.
927 *
928 * The default value for this key is {@code false}.
Hakjun Choia972ee22022-01-17 09:49:53 +0000929 *
930 * @deprecated Use {@link Ims#KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE} instead for
931 * determining if UT requires provisioning.
Brad Ebingerb3f46322019-01-14 13:46:05 -0800932 */
Hakjun Choia972ee22022-01-17 09:49:53 +0000933 @Deprecated
Brad Ebingerb3f46322019-01-14 13:46:05 -0800934 public static final String KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL =
935 "carrier_ut_provisioning_required_bool";
936
937 /**
938 * Flag indicating whether or not the carrier supports Supplementary Services over the UT
939 * interface for this subscription.
940 *
941 * If true, the device will use Supplementary Services over UT when provisioned (see
942 * {@link #KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL}). If false, this device will fallback to
943 * circuit switch for supplementary services and will disable this capability for IMS entirely.
944 *
Brad Ebinger31313d62020-07-27 10:19:01 -0700945 * The default value for this key is {@code false}.
Brad Ebingerb3f46322019-01-14 13:46:05 -0800946 */
947 public static final String KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL =
948 "carrier_supports_ss_over_ut_bool";
949
950 /**
Meng Wang05062992017-02-14 21:55:09 -0800951 * Flag specifying if WFC provisioning depends on VoLTE provisioning.
952 *
953 * {@code false}: default value; honor actual WFC provisioning state.
954 * {@code true}: when VoLTE is not provisioned, treat WFC as not provisioned; when VoLTE is
955 * provisioned, honor actual WFC provisioning state.
956 *
957 * As of now, Verizon is the only carrier enforcing this dependency in their
958 * WFC awareness and activation requirements.
Sarah China912e112020-01-09 10:43:30 -0800959 */
Meng Wang05062992017-02-14 21:55:09 -0800960 public static final String KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL
961 = "carrier_volte_override_wfc_provisioning_bool";
962
Jack Yufcbda452018-02-01 14:50:53 -0800963 /**
964 * Override the device's configuration for the cellular data service to use for this SIM card.
965 * @hide
966 */
967 public static final String KEY_CARRIER_DATA_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING
968 = "carrier_data_service_wwan_package_override_string";
969
970 /**
971 * Override the device's configuration for the IWLAN data service to use for this SIM card.
972 * @hide
973 */
974 public static final String KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING
975 = "carrier_data_service_wlan_package_override_string";
976
Yatai Lin6ed1ada2019-04-09 10:24:15 +0800977 /**
978 * Override the device's configuration for the cellular data service class to use
979 * for this SIM card.
980 * @hide
981 */
982 public static final String KEY_CARRIER_DATA_SERVICE_WWAN_CLASS_OVERRIDE_STRING =
983 "carrier_data_service_wwan_class_override_string";
984
985 /**
986 * Override the device's configuration for the IWLAN data service class to use
987 * for this SIM card.
988 * @hide
989 */
990 public static final String KEY_CARRIER_DATA_SERVICE_WLAN_CLASS_OVERRIDE_STRING =
991 "carrier_data_service_wlan_class_override_string";
992
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700993 /** Flag specifying whether VoLTE TTY is supported. */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700994 public static final String KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL
995 = "carrier_volte_tty_supported_bool";
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -0800996
donaldahn3486c1d2022-02-24 05:21:28 +0000997 /** Flag specifying whether VoWIFI TTY is supported.
998 * @hide
999 */
1000 public static final String KEY_CARRIER_VOWIFI_TTY_SUPPORTED_BOOL =
1001 "carrier_vowifi_tty_supported_bool";
1002
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08001003 /**
Junda Liue5c7ca72015-06-24 14:41:14 -07001004 * Flag specifying whether IMS service can be turned off. If false then the service will not be
1005 * turned-off completely, but individual features can be disabled.
1006 */
1007 public static final String KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL
1008 = "carrier_allow_turnoff_ims_bool";
1009
1010 /**
Pavel Zhamaitsiakb4faf342015-10-16 16:39:00 -07001011 * Flag specifying whether Generic Bootstrapping Architecture capable SIM is required for IMS.
Pavel Zhamaitsiakb4faf342015-10-16 16:39:00 -07001012 */
1013 public static final String KEY_CARRIER_IMS_GBA_REQUIRED_BOOL
1014 = "carrier_ims_gba_required_bool";
1015
1016 /**
Tyler Gunnac2aefc2015-07-31 15:34:46 -07001017 * Flag specifying whether IMS instant lettering is available for the carrier. {@code True} if
1018 * instant lettering is available for the carrier, {@code false} otherwise.
Tyler Gunnac2aefc2015-07-31 15:34:46 -07001019 */
1020 public static final String KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL =
1021 "carrier_instant_lettering_available_bool";
1022
Etan Cohencd811f02015-08-18 11:11:29 -07001023 /*
1024 * Flag specifying whether IMS should be the first phone attempted for E911 even if the
1025 * phone is not in service.
Etan Cohencd811f02015-08-18 11:11:29 -07001026 */
1027 public static final String KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL
1028 = "carrier_use_ims_first_for_emergency_bool";
1029
Tyler Gunnac2aefc2015-07-31 15:34:46 -07001030 /**
Tyler Gunn11dd6452021-10-27 14:24:49 -07001031 * When {@code true}, the determination of whether to place a call as an emergency call will be
1032 * based on the known {@link android.telephony.emergency.EmergencyNumber}s for the SIM on which
1033 * the call is being placed. In a dual SIM scenario, if Sim A has the emergency numbers
1034 * 123, 456 and Sim B has the emergency numbers 789, and the user places a call on SIM A to 789,
1035 * it will not be treated as an emergency call in this case.
1036 * When {@code false}, the determination is based on the emergency numbers from all device SIMs,
1037 * regardless of which SIM the call is being placed on. If Sim A has the emergency numbers
1038 * 123, 456 and Sim B has the emergency numbers 789, and the user places a call on SIM A to 789,
1039 * the call will be dialed as an emergency number, but with an unspecified routing.
1040 * @hide
1041 */
1042 public static final String KEY_USE_ONLY_DIALED_SIM_ECC_LIST_BOOL =
1043 "use_only_dialed_sim_ecc_list_bool";
1044
1045 /**
Tyler Gunneb5fcb92015-09-04 13:16:37 -07001046 * When IMS instant lettering is available for a carrier (see
1047 * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines the list of characters
1048 * which may not be contained in messages. Should be specified as a regular expression suitable
1049 * for use with {@link String#matches(String)}.
Tyler Gunneb5fcb92015-09-04 13:16:37 -07001050 */
1051 public static final String KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING =
1052 "carrier_instant_lettering_invalid_chars_string";
1053
1054 /**
Tyler Gunn14be4cf2015-09-10 13:33:28 -07001055 * When IMS instant lettering is available for a carrier (see
1056 * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines a list of characters which
1057 * must be escaped with a backslash '\' character. Should be specified as a string containing
1058 * the characters to be escaped. For example to escape quote and backslash the string would be
1059 * a quote and a backslash.
Tyler Gunn14be4cf2015-09-10 13:33:28 -07001060 */
1061 public static final String KEY_CARRIER_INSTANT_LETTERING_ESCAPED_CHARS_STRING =
1062 "carrier_instant_lettering_escaped_chars_string";
1063
1064 /**
Tyler Gunndb3da5c2015-09-21 22:11:30 -07001065 * When IMS instant lettering is available for a carrier (see
1066 * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines the character encoding
1067 * which will be used when determining the length of messages. Used in the InCall UI to limit
1068 * the number of characters the user may type. If empty-string, the instant lettering
1069 * message size limit will be enforced on a 1:1 basis. That is, each character will count
1070 * towards the messages size limit as a single bye. If a character encoding is specified, the
1071 * message size limit will be based on the number of bytes in the message per the specified
1072 * encoding.
Tyler Gunndb3da5c2015-09-21 22:11:30 -07001073 */
1074 public static final String KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING =
1075 "carrier_instant_lettering_encoding_string";
1076
1077 /**
1078 * When IMS instant lettering is available for a carrier (see
1079 * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), the length limit for messages. Used
1080 * in the InCall UI to ensure the user cannot enter more characters than allowed by the carrier.
1081 * See also {@link #KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING} for more information on how
1082 * the length of the message is calculated.
Tyler Gunndb3da5c2015-09-21 22:11:30 -07001083 */
1084 public static final String KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT =
1085 "carrier_instant_lettering_length_limit_int";
1086
1087 /**
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08001088 * If Voice Radio Technology is RIL_RADIO_TECHNOLOGY_LTE:14 or RIL_RADIO_TECHNOLOGY_UNKNOWN:0
1089 * this is the value that should be used instead. A configuration value of
1090 * RIL_RADIO_TECHNOLOGY_UNKNOWN:0 means there is no replacement value and that the default
1091 * assumption for phone type (GSM) should be used.
1092 */
Jonathan Basseri69822f02015-06-04 13:48:08 -07001093 public static final String KEY_VOLTE_REPLACEMENT_RAT_INT = "volte_replacement_rat_int";
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08001094
Junda Liue4786492015-06-15 13:15:28 -07001095 /**
1096 * The default sim call manager to use when the default dialer doesn't implement one. A sim call
1097 * manager can control and route outgoing and incoming phone calls, even if they're placed
1098 * using another connection service (PSTN, for example).
1099 */
1100 public static final String KEY_DEFAULT_SIM_CALL_MANAGER_STRING = "default_sim_call_manager_string";
1101
Jack Yua4f2da32015-07-22 13:36:42 -07001102 /**
1103 * The default flag specifying whether ETWS/CMAS test setting is forcibly disabled in
1104 * Settings->More->Emergency broadcasts menu even though developer options is turned on.
Jack Yue4238612020-02-18 17:57:41 -08001105 * @deprecated Use {@code com.android.cellbroadcastreceiver.CellBroadcastReceiver} resource
1106 * {@code show_test_settings} to control whether to show test alert settings or not.
Jack Yua4f2da32015-07-22 13:36:42 -07001107 */
Chen Xu77e638b2019-11-15 14:59:22 -08001108 @Deprecated
Jack Yua4f2da32015-07-22 13:36:42 -07001109 public static final String KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL =
1110 "carrier_force_disable_etws_cmas_test_bool";
1111
Jack Yu6af6c342015-09-14 16:18:59 -07001112 /**
Jack Yubcbe4682020-01-10 17:24:58 -08001113 * The default flag specifying whether "Allow alerts" option will be always shown in
1114 * emergency alerts settings regardless developer options is turned on or not.
1115 *
1116 * @deprecated The allow alerts option is always shown now. No longer need a config for that.
Jack Yu6af6c342015-09-14 16:18:59 -07001117 */
Jack Yubcbe4682020-01-10 17:24:58 -08001118 @Deprecated
Jack Yu6af6c342015-09-14 16:18:59 -07001119 public static final String KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL =
1120 "always_show_emergency_alert_onoff_bool";
1121
Jack Yu090dd722015-12-18 15:16:24 -08001122 /**
Sarah Chin83469632021-12-06 18:34:24 -08001123 * Default mobile network MTU value, in bytes.
1124 * @hide
1125 */
1126 public static final String KEY_DEFAULT_MTU_INT = "default_mtu_int";
1127
1128 /**
Jack Yuc1f0e872016-09-10 00:41:17 -07001129 * The data call retry configuration for different types of APN.
Jack Yu090dd722015-12-18 15:16:24 -08001130 * @hide
1131 */
Jack Yuc1f0e872016-09-10 00:41:17 -07001132 public static final String KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS =
1133 "carrier_data_call_retry_config_strings";
Jack Yu090dd722015-12-18 15:16:24 -08001134
1135 /**
Jack Yu5523dc52017-08-16 14:26:56 -07001136 * Delay in milliseconds between trying APN from the pool
Jack Yu090dd722015-12-18 15:16:24 -08001137 * @hide
1138 */
1139 public static final String KEY_CARRIER_DATA_CALL_APN_DELAY_DEFAULT_LONG =
1140 "carrier_data_call_apn_delay_default_long";
1141
1142 /**
Jack Yu5523dc52017-08-16 14:26:56 -07001143 * Faster delay in milliseconds between trying APN from the pool
Jack Yu090dd722015-12-18 15:16:24 -08001144 * @hide
1145 */
1146 public static final String KEY_CARRIER_DATA_CALL_APN_DELAY_FASTER_LONG =
1147 "carrier_data_call_apn_delay_faster_long";
1148
Jack Yu66a6be32016-03-30 11:14:39 -07001149 /**
Jack Yu5523dc52017-08-16 14:26:56 -07001150 * Delay in milliseconds for retrying APN after disconnect
1151 * @hide
1152 */
1153 public static final String KEY_CARRIER_DATA_CALL_APN_RETRY_AFTER_DISCONNECT_LONG =
1154 "carrier_data_call_apn_retry_after_disconnect_long";
1155
1156 /**
Jack Yu9138a212021-06-10 10:40:12 -07001157 * The maximum times for telephony to retry data setup on the same APN requested by
1158 * network through the data setup response retry timer
1159 * {@link DataCallResponse#getRetryDurationMillis()}. This is to prevent that network keeps
1160 * asking device to retry data setup forever and causes power consumption issue. For infinite
1161 * retring same APN, configure this as 2147483647 (i.e. {@link Integer#MAX_VALUE}).
1162 *
1163 * Note if network does not suggest any retry timer, frameworks uses the retry configuration
1164 * from {@link #KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS}, and the maximum retry times could
1165 * be configured there.
1166 * @hide
1167 */
1168 public static final String KEY_CARRIER_DATA_CALL_RETRY_NETWORK_REQUESTED_MAX_COUNT_INT =
1169 "carrier_data_call_retry_network_requested_max_count_int";
1170
1171 /**
Jack Yu8a81a212016-06-15 14:26:59 -07001172 * Data call setup permanent failure causes by the carrier
1173 */
1174 public static final String KEY_CARRIER_DATA_CALL_PERMANENT_FAILURE_STRINGS =
1175 "carrier_data_call_permanent_failure_strings";
1176
1177 /**
Jack Yu66a6be32016-03-30 11:14:39 -07001178 * Default APN types that are metered by the carrier
1179 * @hide
1180 */
1181 public static final String KEY_CARRIER_METERED_APN_TYPES_STRINGS =
1182 "carrier_metered_apn_types_strings";
fionaxu28ffb602016-04-17 23:56:42 -07001183 /**
Jack Yu7dc56ee2017-05-20 17:06:33 -07001184 * Default APN types that are roaming-metered by the carrier
fionaxu28ffb602016-04-17 23:56:42 -07001185 * @hide
1186 */
1187 public static final String KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS =
1188 "carrier_metered_roaming_apn_types_strings";
Jack Yu7dc56ee2017-05-20 17:06:33 -07001189
1190 /**
Jack Yuac9a7312019-06-28 16:42:37 -07001191 * APN types that are not allowed on cellular
1192 * @hide
1193 */
1194 public static final String KEY_CARRIER_WWAN_DISALLOWED_APN_TYPES_STRING_ARRAY =
1195 "carrier_wwan_disallowed_apn_types_string_array";
1196
1197 /**
1198 * APN types that are not allowed on IWLAN
1199 * @hide
1200 */
1201 public static final String KEY_CARRIER_WLAN_DISALLOWED_APN_TYPES_STRING_ARRAY =
1202 "carrier_wlan_disallowed_apn_types_string_array";
1203 /**
Jack Yu360dc212016-04-08 17:11:25 -07001204 * CDMA carrier ERI (Enhanced Roaming Indicator) file name
1205 * @hide
1206 */
1207 public static final String KEY_CARRIER_ERI_FILE_NAME_STRING =
1208 "carrier_eri_file_name_string";
1209
Nancy Chen5c86e922015-04-09 13:17:20 -07001210 /* The following 3 fields are related to carrier visual voicemail. */
1211
1212 /**
Jonathan Basseri6c1dc312015-06-18 16:05:39 -07001213 * The carrier number mobile outgoing (MO) sms messages are sent to.
Nancy Chen5c86e922015-04-09 13:17:20 -07001214 */
Jonathan Basseri69822f02015-06-04 13:48:08 -07001215 public static final String KEY_VVM_DESTINATION_NUMBER_STRING = "vvm_destination_number_string";
Nancy Chen5c86e922015-04-09 13:17:20 -07001216
1217 /**
Jonathan Basseri6c1dc312015-06-18 16:05:39 -07001218 * The port through which the mobile outgoing (MO) sms messages are sent through.
Nancy Chen5c86e922015-04-09 13:17:20 -07001219 */
Jonathan Basseri69822f02015-06-04 13:48:08 -07001220 public static final String KEY_VVM_PORT_NUMBER_INT = "vvm_port_number_int";
Nancy Chen5c86e922015-04-09 13:17:20 -07001221
1222 /**
Nancy Chencb43f422015-05-27 15:06:58 -07001223 * The type of visual voicemail protocol the carrier adheres to. See {@link TelephonyManager}
1224 * for possible values. For example {@link TelephonyManager#VVM_TYPE_OMTP}.
Nancy Chen5c86e922015-04-09 13:17:20 -07001225 */
Jonathan Basseri69822f02015-06-04 13:48:08 -07001226 public static final String KEY_VVM_TYPE_STRING = "vvm_type_string";
Nancy Chen5c86e922015-04-09 13:17:20 -07001227
Nancy Chen97f5ccd2015-06-04 12:00:25 -07001228 /**
Ta-wei Yen685f53c2015-11-30 18:00:08 -08001229 * Whether cellular data is required to access visual voicemail.
1230 */
Ta-wei Yen153fcd72016-05-17 15:57:20 -07001231 public static final String KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL =
1232 "vvm_cellular_data_required_bool";
Ta-wei Yen685f53c2015-11-30 18:00:08 -08001233
1234 /**
Ta-wei Yenb618d0f2017-01-17 13:52:10 -08001235 * The default OMTP visual voicemail client prefix to use. Defaulted to "//VVM"
1236 */
1237 public static final String KEY_VVM_CLIENT_PREFIX_STRING =
1238 "vvm_client_prefix_string";
1239
1240 /**
1241 * Whether to use SSL to connect to the visual voicemail IMAP server. Defaulted to false.
1242 */
1243 public static final String KEY_VVM_SSL_ENABLED_BOOL = "vvm_ssl_enabled_bool";
1244
1245 /**
1246 * A set of capabilities that should not be used even if it is reported by the visual voicemail
1247 * IMAP CAPABILITY command.
1248 */
1249 public static final String KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY =
1250 "vvm_disabled_capabilities_string_array";
1251
1252 /**
1253 * Whether legacy mode should be used when the visual voicemail client is disabled.
1254 *
1255 * <p>Legacy mode is a mode that on the carrier side visual voicemail is still activated, but on
1256 * the client side all network operations are disabled. SMSs are still monitored so a new
1257 * message SYNC SMS will be translated to show a message waiting indicator, like traditional
1258 * voicemails.
1259 *
1260 * <p>This is for carriers that does not support VVM deactivation so voicemail can continue to
1261 * function without the data cost.
1262 */
1263 public static final String KEY_VVM_LEGACY_MODE_ENABLED_BOOL =
1264 "vvm_legacy_mode_enabled_bool";
1265
1266 /**
Ta-wei Yen76193dc2016-01-25 19:04:36 -08001267 * Whether to prefetch audio data on new voicemail arrival, defaulted to true.
1268 */
Ta-wei Yen153fcd72016-05-17 15:57:20 -07001269 public static final String KEY_VVM_PREFETCH_BOOL = "vvm_prefetch_bool";
Ta-wei Yen76193dc2016-01-25 19:04:36 -08001270
1271 /**
Nancy Chen97f5ccd2015-06-04 12:00:25 -07001272 * The package name of the carrier's visual voicemail app to ensure that dialer visual voicemail
1273 * and carrier visual voicemail are not active at the same time.
Ta-wei Yenb618d0f2017-01-17 13:52:10 -08001274 *
1275 * @deprecated use {@link #KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY}.
Nancy Chen97f5ccd2015-06-04 12:00:25 -07001276 */
Ta-wei Yenb618d0f2017-01-17 13:52:10 -08001277 @Deprecated
Jonathan Basseri69822f02015-06-04 13:48:08 -07001278 public static final String KEY_CARRIER_VVM_PACKAGE_NAME_STRING = "carrier_vvm_package_name_string";
Nancy Chen97f5ccd2015-06-04 12:00:25 -07001279
Amit Mahajan02008b72015-06-11 14:54:20 -07001280 /**
Ta-wei Yenb618d0f2017-01-17 13:52:10 -08001281 * A list of the carrier's visual voicemail app package names to ensure that dialer visual
1282 * voicemail and carrier visual voicemail are not active at the same time.
1283 */
1284 public static final String KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY =
1285 "carrier_vvm_package_name_string_array";
1286
1287 /**
Meng Wang6b2995a2016-03-14 10:08:41 -07001288 * Flag specifying whether ICCID is showed in SIM Status screen, default to false.
1289 */
1290 public static final String KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL = "show_iccid_in_sim_status_bool";
1291
1292 /**
Jordan Liua59a5eb2017-12-11 16:23:25 -08001293 * Flag specifying whether the {@link android.telephony.SignalStrength} is shown in the SIM
1294 * Status screen. The default value is true.
Patrik Bannura9124ec52017-11-24 12:39:50 +01001295 */
Jordan Liua59a5eb2017-12-11 16:23:25 -08001296 public static final String KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL =
1297 "show_signal_strength_in_sim_status_bool";
Patrik Bannura9124ec52017-11-24 12:39:50 +01001298
1299 /**
Mattias Nilssoneee4e502020-01-24 17:49:49 +01001300 * Flag specifying if we should interpret all signal strength as one bar higher
Mattias Nilsson39a60dd2020-01-24 18:33:21 +01001301 * This is a replacement for the former resource config_inflateSignalStrength
Mattias Nilssoneee4e502020-01-24 17:49:49 +01001302 * The default value is false.
1303 * @hide
1304 */
1305 public static final String KEY_INFLATE_SIGNAL_STRENGTH_BOOL =
1306 "inflate_signal_strength_bool";
1307
1308 /**
Amit Mahajan02008b72015-06-11 14:54:20 -07001309 * Flag specifying whether an additional (client initiated) intent needs to be sent on System
1310 * update
Amit Mahajan02008b72015-06-11 14:54:20 -07001311 */
1312 public static final String KEY_CI_ACTION_ON_SYS_UPDATE_BOOL = "ci_action_on_sys_update_bool";
1313
1314 /**
1315 * Intent to be sent for the additional action on System update
Amit Mahajan02008b72015-06-11 14:54:20 -07001316 */
1317 public static final String KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING =
1318 "ci_action_on_sys_update_intent_string";
1319
1320 /**
1321 * Extra to be included in the intent sent for additional action on System update
Amit Mahajan02008b72015-06-11 14:54:20 -07001322 */
1323 public static final String KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING =
1324 "ci_action_on_sys_update_extra_string";
1325
1326 /**
1327 * Value of extra included in intent sent for additional action on System update
Amit Mahajan02008b72015-06-11 14:54:20 -07001328 */
1329 public static final String KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING =
1330 "ci_action_on_sys_update_extra_val_string";
1331
Jonathan Basseri019523a2015-06-19 11:07:22 -07001332 /**
Roshan Piusa52c5e22015-08-14 12:58:08 -07001333 * Specifies the amount of gap to be added in millis between postdial DTMF tones. When a
1334 * non-zero value is specified, the UE shall wait for the specified amount of time before it
1335 * sends out successive DTMF tones on the network.
Roshan Pius9f81ce72015-08-12 12:01:42 -07001336 */
Roshan Piusdc364fe2015-09-10 10:28:06 -07001337 public static final String KEY_GSM_DTMF_TONE_DELAY_INT = "gsm_dtmf_tone_delay_int";
1338
1339 /**
1340 * Specifies the amount of gap to be added in millis between DTMF tones. When a non-zero value
1341 * is specified, the UE shall wait for the specified amount of time before it sends out
1342 * successive DTMF tones on the network.
Roshan Piusdc364fe2015-09-10 10:28:06 -07001343 */
Roshan Pius9f81ce72015-08-12 12:01:42 -07001344 public static final String KEY_IMS_DTMF_TONE_DELAY_INT = "ims_dtmf_tone_delay_int";
1345
1346 /**
Roshan Piusa52c5e22015-08-14 12:58:08 -07001347 * Specifies the amount of gap to be added in millis between postdial DTMF tones. When a
1348 * non-zero value is specified, the UE shall wait for the specified amount of time before it
1349 * sends out successive DTMF tones on the network.
Roshan Piusa52c5e22015-08-14 12:58:08 -07001350 */
1351 public static final String KEY_CDMA_DTMF_TONE_DELAY_INT = "cdma_dtmf_tone_delay_int";
1352
1353 /**
Brad Ebinger110856432017-10-12 13:58:55 -07001354 * Some carriers will send call forwarding responses for voicemail in a format that is not 3gpp
1355 * compliant, which causes issues during parsing. This causes the
1356 * {@link com.android.internal.telephony.CallForwardInfo#number} to contain non-numerical
1357 * characters instead of a number.
1358 *
1359 * If true, we will detect the non-numerical characters and replace them with "Voicemail".
1360 * @hide
1361 */
1362 public static final String KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL =
1363 "call_forwarding_map_non_number_to_voicemail_bool";
1364
1365 /**
Hall Liu788d01b2019-07-23 18:39:15 -07001366 * When {@code true}, the phone will always tell the IMS stack to keep RTT enabled and
1367 * determine on a per-call basis (based on extras from the dialer app) whether a call should be
1368 * an RTT call or not.
1369 *
1370 * When {@code false}, the old behavior is used, where the toggle in accessibility settings is
1371 * used to set the IMS stack's RTT enabled state.
Hall Liu788d01b2019-07-23 18:39:15 -07001372 */
1373 public static final String KEY_IGNORE_RTT_MODE_SETTING_BOOL =
1374 "ignore_rtt_mode_setting_bool";
1375
Ravi Paluri80aa2142019-12-02 11:57:37 +05301376
1377 /**
1378 * Determines whether adhoc conference calls are supported by a carrier. When {@code true},
1379 * adhoc conference calling is supported, {@code false otherwise}.
1380 */
1381 public static final String KEY_SUPPORT_ADHOC_CONFERENCE_CALLS_BOOL =
1382 "support_adhoc_conference_calls_bool";
1383
Hall Liu788d01b2019-07-23 18:39:15 -07001384 /**
Grace Jia8587ee52020-07-10 15:42:32 -07001385 * Determines whether conference participants can be added to existing call to form an adhoc
1386 * conference call (in contrast to merging calls to form a conference). When {@code true},
Ravi Paluri404babb2020-01-23 19:02:44 +05301387 * adding conference participants to existing call is supported, {@code false otherwise}.
1388 */
1389 public static final String KEY_SUPPORT_ADD_CONFERENCE_PARTICIPANTS_BOOL =
1390 "support_add_conference_participants_bool";
1391
1392 /**
Sungmin Choi8c651ae2015-08-14 15:55:13 -07001393 * Determines whether conference calls are supported by a carrier. When {@code true},
1394 * conference calling is supported, {@code false otherwise}.
Sungmin Choi8c651ae2015-08-14 15:55:13 -07001395 */
1396 public static final String KEY_SUPPORT_CONFERENCE_CALL_BOOL = "support_conference_call_bool";
1397
1398 /**
Tyler Gunnec5b6e32016-12-01 19:40:30 -08001399 * Determines whether a maximum size limit for IMS conference calls is enforced on the device.
1400 * When {@code true}, IMS conference calls will be limited to at most
Tyler Gunn64c43a32021-10-12 09:27:19 -07001401 * {@link #KEY_IMS_CONFERENCE_SIZE_LIMIT_INT} participants. When {@code false}, no attempt is
1402 * made to limit the number of participants in a conference (the carrier will raise an error
1403 * when an attempt is made to merge too many participants into a conference).
1404 * <p>
1405 * Note: The maximum size of a conference can ONLY be supported where
1406 * {@link #KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL} is {@code true} since the platform
1407 * needs conference event package data to accurately know the number of participants in the
1408 * conference.
Tyler Gunnec5b6e32016-12-01 19:40:30 -08001409 */
1410 public static final String KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL =
1411 "is_ims_conference_size_enforced_bool";
1412
1413 /**
1414 * Determines the maximum number of participants the carrier supports for a conference call.
1415 * This number is exclusive of the current device. A conference between 3 devices, for example,
1416 * would have a size limit of 2 participants.
1417 * Enforced when {@link #KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL} is {@code true}.
1418 */
1419 public static final String KEY_IMS_CONFERENCE_SIZE_LIMIT_INT = "ims_conference_size_limit_int";
1420
1421 /**
Wei Huang594039c2016-04-22 14:33:55 +08001422 * Determines whether manage IMS conference calls is supported by a carrier. When {@code true},
1423 * manage IMS conference call is supported, {@code false otherwise}.
1424 * @hide
1425 */
1426 public static final String KEY_SUPPORT_MANAGE_IMS_CONFERENCE_CALL_BOOL =
1427 "support_manage_ims_conference_call_bool";
1428
1429 /**
Youming Yed5472f72019-05-21 13:10:48 -07001430 * Determines whether the IMS conference merge process supports and returns its participants
1431 * data. When {@code true}, on merge complete, conference call would have a list of its
1432 * participants returned in XML format, {@code false otherwise}.
Youming Yed5472f72019-05-21 13:10:48 -07001433 */
1434 public static final String KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL =
1435 "support_ims_conference_event_package_bool";
1436
1437 /**
Tyler Gunn60e5f7c2020-04-06 15:07:48 -07001438 * Determines whether processing of conference event package data received on a device other
1439 * than the conference host is supported.
1440 * <p>
1441 * When a device A merges calls B and C into a conference it is considered the conference host
1442 * and B and C are considered the conference peers.
1443 * <p>
1444 * When {@code true}, the conference peer will display the conference state if it receives
1445 * conference event package data from the network. When {@code false}, the conference peer will
1446 * ignore conference event package data received from the network.
1447 * @hide
1448 */
1449 public static final String KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_ON_PEER_BOOL =
1450 "support_ims_conference_event_package_on_peer_bool";
1451
1452 /**
Tyler Gunn0ba79072021-03-02 09:19:55 -08001453 * Indicates whether the carrier supports the use of RFC8285 compliant RTP header extensions for
1454 * the purpose of device to device communication while in a call.
1455 * <p>
1456 * See also {@link #KEY_SUPPORTS_SDP_NEGOTIATION_OF_D2D_RTP_HEADER_EXTENSIONS_BOOL}.
1457 */
1458 public static final String KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_RTP_BOOL =
1459 "supports_device_to_device_communication_using_rtp_bool";
1460
1461 /**
1462 * Indicates whether the carrier supports the negotiations of RFC8285 compliant RTP header
1463 * extensions supported on a call during the Session Description Protocol (SDP). This option
1464 * is only used when {@link #KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_RTP_BOOL} is
1465 * {@code true}.
1466 * <p>
1467 * When {@code true}, the RTP header extensions the platform uses for device to device
1468 * communication will be offered to the remote end during the SDP negotiation process.
1469 * When {@code false}, the RTP header extensions will not be negotiated during the SDP
1470 * negotiation process and the platform will send RTP header extensions without prior
1471 * negotiation if {@link #KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_RTP_BOOL} is
1472 * {@code true}.
1473 */
1474 public static final String KEY_SUPPORTS_SDP_NEGOTIATION_OF_D2D_RTP_HEADER_EXTENSIONS_BOOL =
1475 "supports_sdp_negotiation_of_d2d_rtp_header_extensions_bool";
1476
1477 /**
1478 * Indicates whether the carrier supports the use of DTMF digits A-D for the purpose of device
1479 * to device communication while in a call.
1480 */
1481 public static final String KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_DTMF_BOOL =
1482 "supports_device_to_device_communication_using_dtmf_bool";
1483
1484 /**
Wei Huang237d7752016-03-01 17:02:40 +08001485 * Determines whether High Definition audio property is displayed in the dialer UI.
1486 * If {@code false}, remove the HD audio property from the connection so that HD audio related
1487 * UI is not displayed. If {@code true}, keep HD audio property as it is configured.
Wei Huang237d7752016-03-01 17:02:40 +08001488 */
1489 public static final String KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL =
1490 "display_hd_audio_property_bool";
1491
1492 /**
Wei Huanga8ad1522016-03-01 15:25:04 +08001493 * Determines whether IMS conference calls are supported by a carrier. When {@code true},
1494 * IMS conference calling is supported, {@code false} otherwise.
1495 * @hide
1496 */
1497 public static final String KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL =
1498 "support_ims_conference_call_bool";
1499
1500 /**
Tyler Gunn4eb18912020-04-07 19:01:15 -07001501 * Determines whether the device will locally disconnect an IMS conference when the participant
1502 * count drops to zero. When {@code true}, it is assumed the carrier does NOT disconnect a
1503 * conference when the participant count drops to zero and that the device must do this by
1504 * disconnecting the conference locally. When {@code false}, it is assumed that the carrier
1505 * is responsible for disconnecting the conference when there are no longer any participants
1506 * present.
1507 * <p>
1508 * Note: both {@link #KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL} and
1509 * {@link #KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL} must be true for this configuration to
1510 * have any effect.
1511 * <p>
1512 * Defaults to {@code false}, meaning the carrier network is responsible for disconnecting an
1513 * empty IMS conference.
1514 * @hide
1515 */
1516 public static final String KEY_LOCAL_DISCONNECT_EMPTY_IMS_CONFERENCE_BOOL =
1517 "local_disconnect_empty_ims_conference_bool";
1518
1519 /**
Tyler Gunnee61c622016-04-19 16:17:19 -07001520 * Determines whether video conference calls are supported by a carrier. When {@code true},
1521 * video calls can be merged into conference calls, {@code false} otherwiwse.
1522 * <p>
1523 * Note: even if video conference calls are not supported, audio calls may be merged into a
1524 * conference if {@link #KEY_SUPPORT_CONFERENCE_CALL_BOOL} is {@code true}.
1525 * @hide
1526 */
1527 public static final String KEY_SUPPORT_VIDEO_CONFERENCE_CALL_BOOL =
1528 "support_video_conference_call_bool";
1529
1530 /**
Sungmin Choi8d2826b2015-08-25 23:30:34 -07001531 * Determine whether user can toggle Enhanced 4G LTE Mode in Settings.
Sungmin Choi8d2826b2015-08-25 23:30:34 -07001532 */
1533 public static final String KEY_EDITABLE_ENHANCED_4G_LTE_BOOL = "editable_enhanced_4g_lte_bool";
1534
1535 /**
yinxu34016ae2017-03-14 15:36:17 -07001536 * Determines whether the Enhanced 4G LTE toggle will be shown in the settings. When this
1537 * option is {@code true}, the toggle will be hidden regardless of whether the device and
1538 * carrier supports 4G LTE or not.
1539 */
1540 public static final String KEY_HIDE_ENHANCED_4G_LTE_BOOL = "hide_enhanced_4g_lte_bool";
1541
1542 /**
Brad Ebingerfd880802018-11-08 17:41:54 -08001543 * Sets the default state for the "Enhanced 4G LTE" or "Advanced Calling" mode toggle set by the
1544 * user. When this is {@code true}, this mode by default is on, otherwise if {@code false},
1545 * this mode by default is off.
manabu, shimoda14723e32017-10-06 14:39:01 +09001546 */
1547 public static final String KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL =
1548 "enhanced_4g_lte_on_by_default_bool";
1549
1550 /**
Sungmin Choie9d3c112015-08-31 15:32:20 -07001551 * Determine whether IMS apn can be shown.
Sungmin Choie9d3c112015-08-31 15:32:20 -07001552 */
1553 public static final String KEY_HIDE_IMS_APN_BOOL = "hide_ims_apn_bool";
1554
1555 /**
Sungmin Choic03a1da2015-09-08 15:34:23 -07001556 * Determine whether preferred network type can be shown.
Sungmin Choic03a1da2015-09-08 15:34:23 -07001557 */
1558 public static final String KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL = "hide_preferred_network_type_bool";
1559
1560 /**
Junda Liu85313282017-03-28 13:58:51 -07001561 * String array for package names that need to be enabled for this carrier.
1562 * If user has explicitly disabled some packages in the list, won't re-enable.
1563 * Other carrier specific apps which are not in this list may be disabled for current carrier,
1564 * and only be re-enabled when this config for another carrier includes it.
Meng Wangd5e1af52018-03-23 16:25:03 -07001565 *
1566 * @hide
Junda Liu85313282017-03-28 13:58:51 -07001567 */
1568 public static final String KEY_ENABLE_APPS_STRING_ARRAY = "enable_apps_string_array";
1569
1570 /**
Sarah China912e112020-01-09 10:43:30 -08001571 * Determine whether user can switch Wi-Fi preferred or Cellular preferred
1572 * in calling preference.
Sungmin Choid3b28262015-12-23 14:10:41 +09001573 * Some operators support Wi-Fi Calling only, not VoLTE.
1574 * They don't need "Cellular preferred" option.
Sarah China912e112020-01-09 10:43:30 -08001575 * In this case, set uneditable attribute for preferred preference.
Sungmin Choid3b28262015-12-23 14:10:41 +09001576 */
1577 public static final String KEY_EDITABLE_WFC_MODE_BOOL = "editable_wfc_mode_bool";
1578
Sarah China912e112020-01-09 10:43:30 -08001579 /**
1580 * Flag to indicate if Wi-Fi needs to be disabled in ECBM.
1581 */
1582 public static final String KEY_CONFIG_WIFI_DISABLE_IN_ECBM = "config_wifi_disable_in_ecbm";
Sunil Dutt7c5fda82016-04-05 22:08:57 +05301583
Sungmin Choid3b28262015-12-23 14:10:41 +09001584 /**
Pavel Zhamaitsiak7b7c4fc2016-04-12 14:24:07 -07001585 * List operator-specific error codes and indices of corresponding error strings in
1586 * wfcOperatorErrorAlertMessages and wfcOperatorErrorNotificationMessages.
1587 *
1588 * Example: "REG09|0" specifies error code "REG09" and index "0". This index will be
1589 * used to find alert and notification messages in wfcOperatorErrorAlertMessages and
1590 * wfcOperatorErrorNotificationMessages.
1591 *
1592 * @hide
1593 */
1594 public static final String KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY =
1595 "wfc_operator_error_codes_string_array";
1596
1597 /**
Torbjorn Eklunda765a472018-09-24 17:45:23 +02001598 * Indexes of SPN format strings in wfcSpnFormats.
Torbjorn Eklund57684832018-08-21 16:12:42 +02001599 *
1600 * <p>Available options are:
1601 * <ul>
Torbjorn Eklunda765a472018-09-24 17:45:23 +02001602 * <li> 0: %s</li>
1603 * <li> 1: %s Wi-Fi Calling</li>
1604 * <li> 2: WLAN Call</li>
1605 * <li> 3: %s WLAN Call</li>
1606 * <li> 4: %s Wi-Fi</li>
1607 * <li> 5: WiFi Calling | %s</li>
1608 * <li> 6: %s VoWifi</li>
1609 * <li> 7: Wi-Fi Calling</li>
1610 * <li> 8: Wi-Fi</li>
1611 * <li> 9: WiFi Calling</li>
1612 * <li> 10: VoWifi</li>
Pengquan Meng7f47da02019-05-29 14:56:25 -07001613 * <li> 11: %s WiFi Calling</li>
Pavel Zhamaitsiak7b7c4fc2016-04-12 14:24:07 -07001614 * @hide
1615 */
1616 public static final String KEY_WFC_SPN_FORMAT_IDX_INT = "wfc_spn_format_idx_int";
Torbjorn Eklunda765a472018-09-24 17:45:23 +02001617
1618 /**
1619 * Indexes of data SPN format strings in wfcSpnFormats.
1620 *
1621 * @see KEY_WFC_SPN_FORMAT_IDX_INT for available options.
1622 * @hide
1623 */
Pavel Zhamaitsiak7b7c4fc2016-04-12 14:24:07 -07001624 public static final String KEY_WFC_DATA_SPN_FORMAT_IDX_INT = "wfc_data_spn_format_idx_int";
1625
1626 /**
Torbjorn Eklunda765a472018-09-24 17:45:23 +02001627 * Indexes of SPN format strings in wfcSpnFormats used during flight mode.
1628 *
1629 * Set to -1 to use the value from KEY_WFC_SPN_FORMAT_IDX_INT also in this case.
1630 * @see KEY_WFC_SPN_FORMAT_IDX_INT for other available options.
1631 * @hide
1632 */
1633 public static final String KEY_WFC_FLIGHT_MODE_SPN_FORMAT_IDX_INT =
1634 "wfc_flight_mode_spn_format_idx_int";
1635
1636 /**
Torbjorn Eklund99c11d82018-08-21 16:06:47 +02001637 * Use root locale when reading wfcSpnFormats.
1638 *
1639 * If true, then the root locale will always be used when reading wfcSpnFormats. This means the
1640 * non localized version of wfcSpnFormats will be used.
1641 * @hide
1642 */
1643 public static final String KEY_WFC_SPN_USE_ROOT_LOCALE = "wfc_spn_use_root_locale";
1644
1645 /**
Sarah China912e112020-01-09 10:43:30 -08001646 * The Component Name of the activity that can setup the emergency address for WiFi Calling
Vineeta Srivastavac7d7ab7f2016-05-14 11:05:28 -07001647 * as per carrier requirement.
Vineeta Srivastavac7d7ab7f2016-05-14 11:05:28 -07001648 */
1649 public static final String KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING =
1650 "wfc_emergency_address_carrier_app_string";
1651
1652 /**
Nathan Harold8366bcb2018-02-28 14:57:54 -08001653 * Unconditionally override the carrier name string using #KEY_CARRIER_NAME_STRING.
1654 *
Nathan Harold178020a2018-04-06 11:27:40 -07001655 * If true, then the carrier name string will be #KEY_CARRIER_NAME_STRING, unconditionally.
Nathan Harold8366bcb2018-02-28 14:57:54 -08001656 *
1657 * <p>If false, then the override will be performed conditionally and the
1658 * #KEY_CARRIER_NAME_STRING will have the lowest-precedence; it will only be used in the event
Nathan Harold178020a2018-04-06 11:27:40 -07001659 * that the name string would otherwise be empty, allowing it to serve as a last-resort. If
1660 * used, this value functions in place of the SPN on any/all ICC records for the corresponding
1661 * subscription.
Sanket Padawe49b20422016-06-01 12:17:23 -07001662 */
1663 public static final String KEY_CARRIER_NAME_OVERRIDE_BOOL = "carrier_name_override_bool";
1664
1665 /**
Nathan Haroldbaaa68d2018-01-15 10:48:00 -08001666 * String to identify carrier name in CarrierConfig app. This string overrides SPN if
1667 * #KEY_CARRIER_NAME_OVERRIDE_BOOL is true; otherwise, it will be used if its value is provided
1668 * and SPN is unavailable
Sanket Padawe49b20422016-06-01 12:17:23 -07001669 */
1670 public static final String KEY_CARRIER_NAME_STRING = "carrier_name_string";
1671
chen xu6b736ee2018-12-02 14:14:15 -08001672 /**
SongFerngWangd1b16442020-06-16 18:39:35 +08001673 * To override wifi calling's carrier name string using ef_pnn from sim card when SPN in empty.
1674 *
1675 * @hide
1676 */
1677 public static final String KEY_WFC_CARRIER_NAME_OVERRIDE_BY_PNN_BOOL =
1678 "wfc_carrier_name_override_by_pnn_bool";
1679
1680 /**
Sooraj Sasindran12765912021-03-10 11:02:55 -08001681 * Specifies SPN format of displaying carrier name only.
Sooraj Sasindran83ff8ad2020-11-23 23:42:51 -08001682 *
1683 */
1684 public static final int CROSS_SIM_SPN_FORMAT_CARRIER_NAME_ONLY = 0;
1685
1686 /**
Sooraj Sasindran12765912021-03-10 11:02:55 -08001687 * Specifies SPN format of displaying carrier name along with "Cross-SIM calling".
Sooraj Sasindran83ff8ad2020-11-23 23:42:51 -08001688 */
1689 public static final int CROSS_SIM_SPN_FORMAT_CARRIER_NAME_WITH_BRANDING = 1;
1690
1691 /**
1692 * Indexes of SPN format strings in crossSimSpnFormats.
1693 *
1694 * <p>Available options are:
1695 * <ul>
Sooraj Sasindran12765912021-03-10 11:02:55 -08001696 * <li> {@link #CROSS_SIM_SPN_FORMAT_CARRIER_NAME_ONLY}: %s</li>
1697 * <li> {@link #CROSS_SIM_SPN_FORMAT_CARRIER_NAME_WITH_BRANDING}: %s Cross-SIM Calling</li>
Sooraj Sasindran83ff8ad2020-11-23 23:42:51 -08001698 * </ul>
1699 * %s will be filled with carrier name
1700 */
1701 public static final String KEY_CROSS_SIM_SPN_FORMAT_INT = "cross_sim_spn_format_int";
1702
1703 /**
Pengquan Meng057b94f2019-04-17 19:36:58 -07001704 * Override the SPN Display Condition 2 integer bits (lsb). B2, B1 is the last two bits of the
1705 * spn display condition coding.
1706 *
Pengquan Mengb4a53fd2019-04-23 13:55:02 -07001707 * The default value -1 mean this field is not set.
Pengquan Meng057b94f2019-04-17 19:36:58 -07001708 *
1709 * B1 = 0: display of registered PLMN name not required when registered PLMN is either HPLMN
1710 * or a PLMN in the service provider PLMN list (see EF_SPDI).
1711 * B1 = 1: display of registered PLMN name required when registered PLMN is either HPLMN or a
1712 * PLMN in the service provider PLMN list(see EF_SPDI).
1713 * B2 = 0: display of the service provider name is required when registered PLMN is neither
1714 * HPLMN nor a PLMN in the service provider PLMN list(see EF_SPDI).
1715 * B2 = 1: display of the service provider name is not required when registered PLMN is neither
1716 * HPLMN nor a PLMN in the service provider PLMN list(see EF_SPDI).
1717 *
1718 * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.12 EF_SPN.
1719 * @hide
1720 */
1721 public static final String KEY_SPN_DISPLAY_CONDITION_OVERRIDE_INT =
1722 "spn_display_condition_override_int";
1723
1724 /**
1725 * Override the SPDI - an array of PLMN(MCC + MNC) strings.
1726 *
1727 * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.66 EF_SPDI.
1728 * @hide
1729 */
1730 public static final String KEY_SPDI_OVERRIDE_STRING_ARRAY = "spdi_override_string_array";
1731
1732 /**
1733 * Override the EHPLMNs - an array of PLMN(MCC + MNC) strings.
1734 *
1735 * To allow provision for multiple HPLMN codes, PLMN codes that are present within this list
1736 * shall replace the HPLMN code derived from the IMSI for PLMN selection purposes.
1737 *
1738 * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.84 EF_EHPLMN
1739 * Reference: 3GPP TS 23.122 v15.6.0 Section 1.2 Equivalent HPLMN list
1740 * @hide
1741 */
1742 public static final String KEY_EHPLMN_OVERRIDE_STRING_ARRAY = "ehplmn_override_string_array";
1743
1744 /**
1745 * Override the PNN - a string array of comma-separated alpha long and short names:
Pengquan Mengb4a53fd2019-04-23 13:55:02 -07001746 * "alpha_long1,alpha_short1".
Pengquan Meng057b94f2019-04-17 19:36:58 -07001747 *
1748 * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.58 EF_PNN.
1749 * @hide
1750 */
1751 public static final String KEY_PNN_OVERRIDE_STRING_ARRAY = "pnn_override_string_array";
1752
1753 /**
1754 * A string array of OPL records, each with comma-delimited data fields as follows:
1755 * "plmn1,lactac_start,lactac_end,index".
1756 *
1757 * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.59 EF_OPL.
1758 * @hide
1759 */
1760 public static final String KEY_OPL_OVERRIDE_STRING_ARRAY = "opl_override_opl_string_array";
1761
1762 /**
1763 * Allow ERI rules to select a carrier name display string when using 3gpp2 access technologies.
Pengquan Mengb4a53fd2019-04-23 13:55:02 -07001764 * If this bit is not set, the carrier name display string will be selected from the carrier
1765 * display name resolver which doesn't apply the ERI rules.
Pengquan Meng057b94f2019-04-17 19:36:58 -07001766 *
1767 * @hide
1768 */
1769 public static final String KEY_ALLOW_ERI_BOOL = "allow_cdma_eri_bool";
1770
1771 /**
1772 * If true, use the carrier display name(SPN and PLMN) from the carrier display name resolver.
1773 *
1774 * @hide
1775 */
1776 public static final String KEY_ENABLE_CARRIER_DISPLAY_NAME_RESOLVER_BOOL =
1777 "enable_carrier_display_name_resolver_bool";
1778
1779 /**
chen xu6b736ee2018-12-02 14:14:15 -08001780 * String to override sim country iso.
1781 * Sim country iso is based on sim MCC which is coarse and doesn't work with dual IMSI SIM where
1782 * a SIM can have multiple MCC from different countries.
1783 * Instead, each sim carrier should have a single country code, apply per carrier based iso
1784 * code as an override. The overridden value can be read from
1785 * {@link TelephonyManager#getSimCountryIso()} and {@link SubscriptionInfo#getCountryIso()}
1786 *
1787 * @hide
1788 */
1789 public static final String KEY_SIM_COUNTRY_ISO_OVERRIDE_STRING =
1790 "sim_country_iso_override_string";
1791
1792 /**
1793 * The Component Name of a carrier-provided CallScreeningService implementation. Telecom will
1794 * bind to {@link android.telecom.CallScreeningService} for ALL incoming calls and provide
1795 * the carrier
1796 * CallScreeningService with the opportunity to allow or block calls.
1797 * <p>
1798 * The String includes the package name/the class name.
1799 * Example:
1800 * <item>com.android.carrier/com.android.carrier.callscreeningserviceimpl</item>
1801 * <p>
1802 * Using {@link ComponentName#flattenToString()} to convert a ComponentName object to String.
1803 * Using {@link ComponentName#unflattenFromString(String)} to convert a String object to a
1804 * ComponentName.
1805 */
tonyzhucd0a63d2018-10-11 14:31:26 +08001806 public static final String KEY_CARRIER_CALL_SCREENING_APP_STRING = "call_screening_app";
1807
1808 /**
Amit Mahajan22e89f42018-06-05 16:27:32 -07001809 * Override the registered PLMN name using #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING.
1810 *
1811 * If true, then the registered PLMN name (only for CDMA/CDMA-LTE and only when not roaming)
1812 * will be #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING. If false, or if phone type is not
1813 * CDMA/CDMA-LTE or if roaming, then #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING will be ignored.
1814 * @hide
1815 */
1816 public static final String KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL =
1817 "cdma_home_registered_plmn_name_override_bool";
1818
1819 /**
1820 * String to identify registered PLMN name in CarrierConfig app. This string overrides
1821 * registered PLMN name if #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL is true, phone type
1822 * is CDMA/CDMA-LTE and device is not in roaming state; otherwise, it will be ignored.
1823 * @hide
1824 */
1825 public static final String KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING =
1826 "cdma_home_registered_plmn_name_string";
1827
1828 /**
Jonathan Basseri019523a2015-06-19 11:07:22 -07001829 * If this is true, the SIM card (through Customer Service Profile EF file) will be able to
1830 * prevent manual operator selection. If false, this SIM setting will be ignored and manual
1831 * operator selection will always be available. See CPHS4_2.WW6, CPHS B.4.7.1 for more
1832 * information
1833 */
1834 public static final String KEY_CSP_ENABLED_BOOL = "csp_enabled_bool";
1835
Amit Mahajan412e7c82015-10-05 11:05:02 -07001836 /**
1837 * Allow user to add APNs
Amit Mahajan412e7c82015-10-05 11:05:02 -07001838 */
1839 public static final String KEY_ALLOW_ADDING_APNS_BOOL = "allow_adding_apns_bool";
1840
Amit Mahajan0c081482016-01-12 18:25:33 -08001841 /**
Sarah China912e112020-01-09 10:43:30 -08001842 * APN types that user is not allowed to modify.
Amit Mahajand7bb9072016-09-14 18:12:11 -07001843 */
1844 public static final String KEY_READ_ONLY_APN_TYPES_STRING_ARRAY =
1845 "read_only_apn_types_string_array";
1846
1847 /**
Sarah China912e112020-01-09 10:43:30 -08001848 * APN fields that user is not allowed to modify.
Amit Mahajan71e9ea62016-09-20 10:57:47 -07001849 */
1850 public static final String KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY =
1851 "read_only_apn_fields_string_array";
1852
1853 /**
SongFerngWangc87140c2019-08-19 22:51:46 +08001854 * Default value of APN types field if not specified by user when adding/modifying an APN.
SongFerngWangc87140c2019-08-19 22:51:46 +08001855 */
1856 public static final String KEY_APN_SETTINGS_DEFAULT_APN_TYPES_STRING_ARRAY =
1857 "apn_settings_default_apn_types_string_array";
1858
1859 /**
Bonian Chen94ae34a2020-01-17 05:49:54 +08001860 * Configs used for APN setup.
1861 */
1862 public static final class Apn {
tom hsu251c44a2021-02-20 17:23:31 +08001863 /**
1864 * Prefix of all Apn.KEY_* constants.
1865 *
1866 * @deprecated Since KEY_PREFIX is unnecessary to public, it will modify to private
1867 * next android generation.
1868 */
1869 @Deprecated
1870 public static final String KEY_PREFIX = "apn.";
Bonian Chen94ae34a2020-01-17 05:49:54 +08001871
1872 /** IPv4 internet protocol */
1873 public static final String PROTOCOL_IPV4 = "IP";
1874 /** IPv6 internet protocol */
1875 public static final String PROTOCOL_IPV6 = "IPV6";
1876 /** IPv4 or IPv6 internet protocol */
1877 public static final String PROTOCOL_IPV4V6 = "IPV4V6";
1878
1879 /**
1880 * Default value of APN protocol field if not specified by user when adding/modifying
1881 * an APN.
1882 *
1883 * Available options are: {@link #PROTOCOL_IPV4}, {@link #PROTOCOL_IPV6},
1884 * {@link #PROTOCOL_IPV4V6}
1885 */
1886 public static final String KEY_SETTINGS_DEFAULT_PROTOCOL_STRING =
1887 KEY_PREFIX + "settings_default_protocol_string";
1888
1889 /**
1890 * Default value of APN roaming protocol field if not specified by user when
1891 * adding/modifying an APN.
1892 *
1893 * Available options are: {@link #PROTOCOL_IPV4}, {@link #PROTOCOL_IPV6},
1894 * {@link #PROTOCOL_IPV4V6}
1895 */
1896 public static final String KEY_SETTINGS_DEFAULT_ROAMING_PROTOCOL_STRING =
1897 KEY_PREFIX + "settings_default_roaming_protocol_string";
1898
1899 private Apn() {}
1900
1901 private static PersistableBundle getDefaults() {
1902 PersistableBundle defaults = new PersistableBundle();
1903 defaults.putString(KEY_SETTINGS_DEFAULT_PROTOCOL_STRING, "");
1904 defaults.putString(KEY_SETTINGS_DEFAULT_ROAMING_PROTOCOL_STRING, "");
1905 return defaults;
1906 }
1907 }
1908
1909 /**
Amit Mahajan0c081482016-01-12 18:25:33 -08001910 * Boolean indicating if intent for emergency call state changes should be broadcast
1911 * @hide
1912 */
1913 public static final String KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL =
1914 "broadcast_emergency_call_state_changes_bool";
1915
Jack Yubf0fd722016-05-03 11:53:30 -07001916 /**
Sooraj Sasindran6a3d36f2016-10-13 11:36:34 -07001917 * Indicates whether STK LAUNCH_BROWSER command is disabled.
1918 * If {@code true}, then the browser will not be launched
1919 * on UI for the LAUNCH_BROWSER STK command.
1920 * @hide
1921 */
1922 public static final String KEY_STK_DISABLE_LAUNCH_BROWSER_BOOL =
1923 "stk_disable_launch_browser_bool";
1924
Wenting Xiong63364fe2017-02-07 19:12:27 +08001925 /**
Yoshiaki Naka1c5203a62019-02-21 18:40:03 +09001926 * Boolean indicating if the helper text for STK GET INKEY/INPUT commands with the digit only
1927 * mode is displayed on the input screen.
1928 * The helper text is dispayed regardless of the input mode, if {@code false}.
1929 * @hide
1930 */
1931 public static final String KEY_HIDE_DIGITS_HELPER_TEXT_ON_STK_INPUT_SCREEN_BOOL =
1932 "hide_digits_helper_text_on_stk_input_screen_bool";
1933
1934 /**
Sarah China912e112020-01-09 10:43:30 -08001935 * Boolean indicating if show data RAT icon on status bar even when data is disabled.
Wenting Xiong63364fe2017-02-07 19:12:27 +08001936 */
1937 public static final String KEY_ALWAYS_SHOW_DATA_RAT_ICON_BOOL =
1938 "always_show_data_rat_icon_bool";
Sooraj Sasindran6a3d36f2016-10-13 11:36:34 -07001939
Wenting Xiongf21f3cf2016-04-01 15:25:45 +08001940 /**
Sarah China912e112020-01-09 10:43:30 -08001941 * Boolean indicating if default data account should show LTE or 4G icon.
Niklas Lindgrena02964d2018-09-21 14:01:57 +02001942 */
1943 public static final String KEY_SHOW_4G_FOR_LTE_DATA_ICON_BOOL =
1944 "show_4g_for_lte_data_icon_bool";
1945
1946 /**
kimmy.yang2d5fd292021-12-29 16:52:39 +08001947 * Boolean indicating if default data account should show 4G LTE or 4G icon.
1948 * @hide
1949 */
1950 public static final String KEY_SHOW_4GLTE_FOR_LTE_DATA_ICON_BOOL =
1951 "show_4glte_for_lte_data_icon_bool";
1952
1953 /**
vagdevi3f2b9a52019-08-09 09:45:14 -07001954 * Boolean indicating if default data account should show 4G icon when in 3G.
vagdevi3f2b9a52019-08-09 09:45:14 -07001955 */
1956 public static final String KEY_SHOW_4G_FOR_3G_DATA_ICON_BOOL =
1957 "show_4g_for_3g_data_icon_bool";
1958
1959 /**
Sarah China912e112020-01-09 10:43:30 -08001960 * Boolean indicating if LTE+ icon should be shown if available.
Niklas Lindgrena02964d2018-09-21 14:01:57 +02001961 */
1962 public static final String KEY_HIDE_LTE_PLUS_DATA_ICON_BOOL =
1963 "hide_lte_plus_data_icon_bool";
1964
1965 /**
Sarah Chinea9d40e2020-08-12 19:38:02 -07001966 * The combined channel bandwidth threshold (non-inclusive) in KHz required to display the
1967 * LTE+ data icon. It is 20000 by default, meaning the LTE+ icon will be shown if the device is
1968 * using carrier aggregation and the combined channel bandwidth is strictly greater than 20 MHz.
1969 * @hide
1970 */
1971 public static final String KEY_LTE_PLUS_THRESHOLD_BANDWIDTH_KHZ_INT =
1972 "lte_plus_threshold_bandwidth_khz_int";
1973
1974 /**
Jack Yu5e7b8532021-10-19 21:21:28 -07001975 * The combined channel bandwidth threshold (non-inclusive) in KHz required to display the
1976 * NR advanced (i.e. 5G+) data icon. It is 0 by default, meaning minimum bandwidth check is
1977 * not enabled. Other factors like bands or frequency can also determine whether the NR
1978 * advanced data icon is shown or not.
1979 *
1980 * @see #KEY_ADDITIONAL_NR_ADVANCED_BANDS_INT_ARRAY
1981 * @see #KEY_NR_ADVANCED_CAPABLE_PCO_ID_INT
1982 *
1983 * @hide
1984 */
1985 public static final String KEY_NR_ADVANCED_THRESHOLD_BANDWIDTH_KHZ_INT =
1986 "nr_advanced_threshold_bandwidth_khz_int";
1987
1988 /**
Niklas Lindgren7ef2acb2018-10-01 11:09:43 +02001989 * Boolean indicating if operator name should be shown in the status bar
1990 * @hide
1991 */
1992 public static final String KEY_SHOW_OPERATOR_NAME_IN_STATUSBAR_BOOL =
1993 "show_operator_name_in_statusbar_bool";
1994
1995 /**
SongFerngWang2d178ea2019-03-21 23:14:20 +08001996 * The string is used to filter redundant string from PLMN Network Name that's supplied by
1997 * specific carrier.
1998 *
1999 * @hide
2000 */
2001 public static final String KEY_OPERATOR_NAME_FILTER_PATTERN_STRING =
2002 "operator_name_filter_pattern_string";
2003
2004 /**
Sarah China912e112020-01-09 10:43:30 -08002005 * The string is used to compare with operator name.
2006 * If it matches the pattern then show specific data icon.
Sarah Chinb800cbd2020-02-19 12:25:36 -08002007 * @hide
SongFerngWang2d178ea2019-03-21 23:14:20 +08002008 */
2009 public static final String KEY_SHOW_CARRIER_DATA_ICON_PATTERN_STRING =
2010 "show_carrier_data_icon_pattern_string";
2011
2012 /**
Wenting Xiongf21f3cf2016-04-01 15:25:45 +08002013 * Boolean to decide whether to show precise call failed cause to user
2014 * @hide
2015 */
2016 public static final String KEY_SHOW_PRECISE_FAILED_CAUSE_BOOL =
2017 "show_precise_failed_cause_bool";
2018
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07002019 /**
SongFerngWangc42f2692021-03-11 13:18:32 +08002020 * A list of carrier nr availability is used to determine whether the carrier enable the
2021 * non-standalone (NSA) mode of 5G NR, standalone (SA) mode of 5G NR
SongFerngWang7d951852020-12-21 16:24:25 +08002022 *
SongFerngWangc42f2692021-03-11 13:18:32 +08002023 * <p> The value of list is
2024 * {@link #CARRIER_NR_AVAILABILITY_NSA}, or {@link #CARRIER_NR_AVAILABILITY_SA}.
SongFerngWang7d951852020-12-21 16:24:25 +08002025 *
SongFerngWangc42f2692021-03-11 13:18:32 +08002026 * <p> For example, if both NSA and SA are used, the list value is {
2027 * {@link #CARRIER_NR_AVAILABILITY_NSA},{@link #CARRIER_NR_AVAILABILITY_SA}}.
2028 * If the carrier doesn't support 5G NR, the value is the empty array.
2029 * If the key is invalid or not configured, the default value {
2030 * {@link #CARRIER_NR_AVAILABILITY_NSA},{@link #CARRIER_NR_AVAILABILITY_SA}} will apply.
Sarah Chin39c87c62020-05-13 23:41:52 -07002031 */
SongFerngWangc42f2692021-03-11 13:18:32 +08002032 public static final String KEY_CARRIER_NR_AVAILABILITIES_INT_ARRAY =
2033 "carrier_nr_availabilities_int_array";
Sarah Chin39c87c62020-05-13 23:41:52 -07002034
2035 /**
Sarah China912e112020-01-09 10:43:30 -08002036 * Boolean to decide whether LTE is enabled.
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07002037 */
2038 public static final String KEY_LTE_ENABLED_BOOL = "lte_enabled_bool";
2039
2040 /**
2041 * Boolean to decide whether TD-SCDMA is supported.
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07002042 */
2043 public static final String KEY_SUPPORT_TDSCDMA_BOOL = "support_tdscdma_bool";
2044
2045 /**
2046 * A list of mcc/mnc that support TD-SCDMA for device when connect to the roaming network.
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07002047 */
2048 public static final String KEY_SUPPORT_TDSCDMA_ROAMING_NETWORKS_STRING_ARRAY =
2049 "support_tdscdma_roaming_networks_string_array";
2050
2051 /**
2052 * Boolean to decide whether world mode is enabled.
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07002053 */
2054 public static final String KEY_WORLD_MODE_ENABLED_BOOL = "world_mode_enabled_bool";
2055
2056 /**
Pengquan Meng3d4e67c2018-11-07 14:54:21 -08002057 * Flatten {@link android.content.ComponentName} of the carrier's settings activity.
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07002058 */
Pengquan Meng3d4e67c2018-11-07 14:54:21 -08002059 public static final String KEY_CARRIER_SETTINGS_ACTIVITY_COMPONENT_NAME_STRING =
2060 "carrier_settings_activity_component_name_string";
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07002061
Hall Liue5b1fda2018-10-22 18:17:44 -07002062 // These variables are used by the MMS service and exposed through another API,
2063 // SmsManager. The variable names and string values are copied from there.
Jonathan Basseri69822f02015-06-04 13:48:08 -07002064 public static final String KEY_MMS_ALIAS_ENABLED_BOOL = "aliasEnabled";
2065 public static final String KEY_MMS_ALLOW_ATTACH_AUDIO_BOOL = "allowAttachAudio";
2066 public static final String KEY_MMS_APPEND_TRANSACTION_ID_BOOL = "enabledTransID";
2067 public static final String KEY_MMS_GROUP_MMS_ENABLED_BOOL = "enableGroupMms";
2068 public static final String KEY_MMS_MMS_DELIVERY_REPORT_ENABLED_BOOL = "enableMMSDeliveryReports";
2069 public static final String KEY_MMS_MMS_ENABLED_BOOL = "enabledMMS";
2070 public static final String KEY_MMS_MMS_READ_REPORT_ENABLED_BOOL = "enableMMSReadReports";
2071 public static final String KEY_MMS_MULTIPART_SMS_ENABLED_BOOL = "enableMultipartSMS";
2072 public static final String KEY_MMS_NOTIFY_WAP_MMSC_ENABLED_BOOL = "enabledNotifyWapMMSC";
2073 public static final String KEY_MMS_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES_BOOL = "sendMultipartSmsAsSeparateMessages";
2074 public static final String KEY_MMS_SHOW_CELL_BROADCAST_APP_LINKS_BOOL = "config_cellBroadcastAppLinks";
2075 public static final String KEY_MMS_SMS_DELIVERY_REPORT_ENABLED_BOOL = "enableSMSDeliveryReports";
2076 public static final String KEY_MMS_SUPPORT_HTTP_CHARSET_HEADER_BOOL = "supportHttpCharsetHeader";
2077 public static final String KEY_MMS_SUPPORT_MMS_CONTENT_DISPOSITION_BOOL = "supportMmsContentDisposition";
2078 public static final String KEY_MMS_ALIAS_MAX_CHARS_INT = "aliasMaxChars";
2079 public static final String KEY_MMS_ALIAS_MIN_CHARS_INT = "aliasMinChars";
2080 public static final String KEY_MMS_HTTP_SOCKET_TIMEOUT_INT = "httpSocketTimeout";
2081 public static final String KEY_MMS_MAX_IMAGE_HEIGHT_INT = "maxImageHeight";
2082 public static final String KEY_MMS_MAX_IMAGE_WIDTH_INT = "maxImageWidth";
2083 public static final String KEY_MMS_MAX_MESSAGE_SIZE_INT = "maxMessageSize";
2084 public static final String KEY_MMS_MESSAGE_TEXT_MAX_SIZE_INT = "maxMessageTextSize";
2085 public static final String KEY_MMS_RECIPIENT_LIMIT_INT = "recipientLimit";
2086 public static final String KEY_MMS_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD_INT = "smsToMmsTextLengthThreshold";
2087 public static final String KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT = "smsToMmsTextThreshold";
2088 public static final String KEY_MMS_SUBJECT_MAX_LENGTH_INT = "maxSubjectLength";
2089 public static final String KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING = "emailGatewayNumber";
2090 public static final String KEY_MMS_HTTP_PARAMS_STRING = "httpParams";
2091 public static final String KEY_MMS_NAI_SUFFIX_STRING = "naiSuffix";
2092 public static final String KEY_MMS_UA_PROF_TAG_NAME_STRING = "uaProfTagName";
2093 public static final String KEY_MMS_UA_PROF_URL_STRING = "uaProfUrl";
2094 public static final String KEY_MMS_USER_AGENT_STRING = "userAgent";
Sarah Chin58c5b002020-01-15 16:40:08 -08002095 /**
2096 * If true, add "Connection: close" header to MMS HTTP requests so the connection
2097 * is immediately closed (disabling keep-alive).
2098 */
Ye Wen406a41b2016-07-18 14:36:22 -07002099 public static final String KEY_MMS_CLOSE_CONNECTION_BOOL = "mmsCloseConnection";
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08002100
Tyler Gunn387ce2f2015-08-28 14:14:11 -07002101 /**
chen xud040f2d2018-11-10 10:54:45 -08002102 * The flatten {@link android.content.ComponentName componentName} of the activity that can
2103 * setup the device and activate with the network per carrier requirements.
2104 *
2105 * e.g, com.google.android.carrierPackageName/.CarrierActivityName
Stuart Scott9abc2732016-05-11 15:42:01 -07002106 * @hide
2107 */
chen xud040f2d2018-11-10 10:54:45 -08002108 @SystemApi
Hall Liue5b1fda2018-10-22 18:17:44 -07002109 public static final String KEY_CARRIER_SETUP_APP_STRING = "carrier_setup_app_string";
Stuart Scott9abc2732016-05-11 15:42:01 -07002110
2111 /**
fionaxua21a87b2016-12-13 17:15:11 -08002112 * Defines carrier-specific actions which act upon
fionaxuabeba602017-02-23 18:06:52 -08002113 * com.android.internal.telephony.CARRIER_SIGNAL_REDIRECTED, used for customization of the
Sarah China912e112020-01-09 10:43:30 -08002114 * default carrier app.
fionaxua21a87b2016-12-13 17:15:11 -08002115 * Format: "CARRIER_ACTION_IDX, ..."
2116 * Where {@code CARRIER_ACTION_IDX} is an integer defined in
Sarah China912e112020-01-09 10:43:30 -08002117 * com.android.carrierdefaultapp.CarrierActionUtils
fionaxua21a87b2016-12-13 17:15:11 -08002118 * Example:
Sarah China912e112020-01-09 10:43:30 -08002119 * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_DISABLE_METERED_APNS
2120 * disables metered APNs
fionaxua21a87b2016-12-13 17:15:11 -08002121 */
Sarah China912e112020-01-09 10:43:30 -08002122 @SuppressLint("IntentName")
fionaxua21a87b2016-12-13 17:15:11 -08002123 public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY =
2124 "carrier_default_actions_on_redirection_string_array";
2125
2126 /**
Sarah China912e112020-01-09 10:43:30 -08002127 * Defines carrier-specific actions which act upon CARRIER_SIGNAL_REQUEST_NETWORK_FAILED
fionaxua21a87b2016-12-13 17:15:11 -08002128 * and configured signal args:
Sarah China912e112020-01-09 10:43:30 -08002129 * android.telephony.TelephonyManager#EXTRA_APN_TYPE,
2130 * android.telephony.TelephonyManager#EXTRA_ERROR_CODE
fionaxua21a87b2016-12-13 17:15:11 -08002131 * used for customization of the default carrier app
2132 * Format:
2133 * {
2134 * "APN_1, ERROR_CODE_1 : CARRIER_ACTION_IDX_1, CARRIER_ACTION_IDX_2...",
2135 * "APN_1, ERROR_CODE_2 : CARRIER_ACTION_IDX_1 "
2136 * }
Hall Liu16359f32020-11-12 12:21:23 -08002137 * Where {@code APN_1} is an integer defined in {@link android.telephony.data.ApnSetting}
2138 * (e.g. {@link android.telephony.data.ApnSetting#TYPE_DEFAULT}
fionaxua21a87b2016-12-13 17:15:11 -08002139 *
Sarah China912e112020-01-09 10:43:30 -08002140 * {@code ERROR_CODE_1} is an integer defined in android.telephony.DataFailCause
fionaxua21a87b2016-12-13 17:15:11 -08002141 * Example:
Sarah China912e112020-01-09 10:43:30 -08002142 * android.telephony.DataFailCause#MISSING_UNKNOWN_APN
fionaxua21a87b2016-12-13 17:15:11 -08002143 *
2144 * {@code CARRIER_ACTION_IDX_1} is an integer defined in
Sarah China912e112020-01-09 10:43:30 -08002145 * com.android.carrierdefaultapp.CarrierActionUtils
fionaxua21a87b2016-12-13 17:15:11 -08002146 * Example:
Sarah China912e112020-01-09 10:43:30 -08002147 * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_DISABLE_METERED_APNS
2148 * disables metered APNs
fionaxua21a87b2016-12-13 17:15:11 -08002149 */
Sarah China912e112020-01-09 10:43:30 -08002150 @SuppressLint("IntentName")
fionaxua21a87b2016-12-13 17:15:11 -08002151 public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_DCFAILURE_STRING_ARRAY =
2152 "carrier_default_actions_on_dcfailure_string_array";
2153
2154 /**
Sarah China912e112020-01-09 10:43:30 -08002155 * Defines carrier-specific actions which act upon CARRIER_SIGNAL_RESET,
2156 * used for customization of the default carrier app.
fionaxu77f466d2017-04-26 16:05:25 -07002157 * Format: "CARRIER_ACTION_IDX, ..."
2158 * Where {@code CARRIER_ACTION_IDX} is an integer defined in
Sarah China912e112020-01-09 10:43:30 -08002159 * com.android.carrierdefaultapp.CarrierActionUtils
fionaxu77f466d2017-04-26 16:05:25 -07002160 * Example:
Sarah China912e112020-01-09 10:43:30 -08002161 * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_CANCEL_ALL_NOTIFICATIONS
2162 * clears all notifications on reset
fionaxu77f466d2017-04-26 16:05:25 -07002163 */
Sarah China912e112020-01-09 10:43:30 -08002164 @SuppressLint("IntentName")
fionaxu77f466d2017-04-26 16:05:25 -07002165 public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_RESET =
2166 "carrier_default_actions_on_reset_string_array";
fionaxud60a9d02017-05-23 14:55:27 -07002167
2168 /**
2169 * Defines carrier-specific actions which act upon
2170 * com.android.internal.telephony.CARRIER_SIGNAL_DEFAULT_NETWORK_AVAILABLE,
Sarah China912e112020-01-09 10:43:30 -08002171 * used for customization of the default carrier app.
fionaxud60a9d02017-05-23 14:55:27 -07002172 * Format:
2173 * {
2174 * "true : CARRIER_ACTION_IDX_1",
2175 * "false: CARRIER_ACTION_IDX_2"
2176 * }
2177 * Where {@code true} is a boolean indicates default network available/unavailable
2178 * Where {@code CARRIER_ACTION_IDX} is an integer defined in
Sarah China912e112020-01-09 10:43:30 -08002179 * com.android.carrierdefaultapp.CarrierActionUtils CarrierActionUtils
fionaxud60a9d02017-05-23 14:55:27 -07002180 * Example:
Sarah China912e112020-01-09 10:43:30 -08002181 * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_ENABLE_DEFAULT_URL_HANDLER
2182 * enables the app as the default URL handler
fionaxud60a9d02017-05-23 14:55:27 -07002183 */
Sarah China912e112020-01-09 10:43:30 -08002184 @SuppressLint("IntentName")
fionaxud60a9d02017-05-23 14:55:27 -07002185 public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_DEFAULT_NETWORK_AVAILABLE =
2186 "carrier_default_actions_on_default_network_available_string_array";
Sarah China912e112020-01-09 10:43:30 -08002187
fionaxu77f466d2017-04-26 16:05:25 -07002188 /**
Sarah China912e112020-01-09 10:43:30 -08002189 * Defines a list of acceptable redirection url for default carrier app.
fionaxua21a87b2016-12-13 17:15:11 -08002190 */
2191 public static final String KEY_CARRIER_DEFAULT_REDIRECTION_URL_STRING_ARRAY =
2192 "carrier_default_redirection_url_string_array";
2193
2194 /**
fionaxu41ca9372016-11-17 16:46:30 -08002195 * Each config includes the componentName of the carrier app, followed by a list of interesting
2196 * signals(declared in the manifest) which could wake up the app.
2197 * @see com.android.internal.telephony.TelephonyIntents
2198 * Example:
2199 * <item>com.google.android.carrierAPK/.CarrierSignalReceiverA:
fionaxuabeba602017-02-23 18:06:52 -08002200 * com.android.internal.telephony.CARRIER_SIGNAL_REDIRECTED,
2201 * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE
fionaxu41ca9372016-11-17 16:46:30 -08002202 * </item>
2203 * <item>com.google.android.carrierAPK/.CarrierSignalReceiverB:
fionaxuabeba602017-02-23 18:06:52 -08002204 * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE
fionaxu41ca9372016-11-17 16:46:30 -08002205 * </item>
2206 * @hide
2207 */
2208 public static final String KEY_CARRIER_APP_WAKE_SIGNAL_CONFIG_STRING_ARRAY =
2209 "carrier_app_wake_signal_config";
2210
2211 /**
2212 * Each config includes the componentName of the carrier app, followed by a list of interesting
2213 * signals for the app during run-time. The list of signals(intents) are targeting on run-time
2214 * broadcast receivers only, aiming to avoid unnecessary wake-ups and should not be declared in
2215 * the app's manifest.
2216 * @see com.android.internal.telephony.TelephonyIntents
2217 * Example:
2218 * <item>com.google.android.carrierAPK/.CarrierSignalReceiverA:
fionaxuabeba602017-02-23 18:06:52 -08002219 * com.android.internal.telephony.CARRIER_SIGNAL_REQUEST_NETWORK_FAILED,
2220 * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE
fionaxu41ca9372016-11-17 16:46:30 -08002221 * </item>
2222 * <item>com.google.android.carrierAPK/.CarrierSignalReceiverB:
fionaxuabeba602017-02-23 18:06:52 -08002223 * com.android.internal.telephony.CARRIER_SIGNAL_REQUEST_NETWORK_FAILED
fionaxu41ca9372016-11-17 16:46:30 -08002224 * </item>
2225 * @hide
2226 */
2227 public static final String KEY_CARRIER_APP_NO_WAKE_SIGNAL_CONFIG_STRING_ARRAY =
2228 "carrier_app_no_wake_signal_config";
2229
2230 /**
Qingxi Li38fbddc2019-03-14 13:26:03 -07002231 * Determines whether the carrier app needed to be involved when users try to finish setting up
2232 * the SIM card to get network service.
Qingxi Li38fbddc2019-03-14 13:26:03 -07002233 */
2234 public static final String KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL =
2235 "carrier_app_required_during_setup_bool";
2236
2237 /**
fionaxu7834be22017-06-22 18:14:23 -07002238 * Default value for {@link Settings.Global#DATA_ROAMING}
2239 * @hide
2240 */
2241 public static final String KEY_CARRIER_DEFAULT_DATA_ROAMING_ENABLED_BOOL =
2242 "carrier_default_data_roaming_enabled_bool";
2243
2244 /**
Tyler Gunn387ce2f2015-08-28 14:14:11 -07002245 * Determines whether the carrier supports making non-emergency phone calls while the phone is
2246 * in emergency callback mode. Default value is {@code true}, meaning that non-emergency calls
2247 * are allowed in emergency callback mode.
Tyler Gunn387ce2f2015-08-28 14:14:11 -07002248 */
2249 public static final String KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL =
Tyler Gunn6ef57c32015-08-31 13:15:27 -07002250 "allow_non_emergency_calls_in_ecm_bool";
Tyler Gunn387ce2f2015-08-28 14:14:11 -07002251
Tyler Gunn1cee4772015-12-04 21:03:30 -08002252 /**
Brad Ebinger5eeb79d2019-03-15 13:50:34 -07002253 * Time that the telephony framework stays in "emergency SMS mode" after an emergency SMS is
2254 * sent to the network. This is used by carriers to configure the time
2255 * {@link TelephonyManager#isInEmergencySmsMode()} will be true after an emergency SMS is sent.
2256 * This is used by GNSS to override user location permissions so that the carrier network can
2257 * get the user's location for emergency services.
2258 *
2259 * The default is 0, which means that this feature is disabled. The maximum value for this timer
2260 * is 300000 mS (5 minutes).
2261 *
2262 * @hide
2263 */
2264 public static final String KEY_EMERGENCY_SMS_MODE_TIMER_MS_INT =
2265 "emergency_sms_mode_timer_ms_int";
2266
2267 /**
Tyler Gunnabfdaea2015-05-28 15:09:10 -07002268 * Flag indicating whether to allow carrier video calls to emergency numbers.
2269 * When {@code true}, video calls to emergency numbers will be allowed. When {@code false},
2270 * video calls to emergency numbers will be initiated as audio-only calls instead.
Tyler Gunnabfdaea2015-05-28 15:09:10 -07002271 */
Tyler Gunnf0836192016-03-15 20:33:13 -07002272 public static final String KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL =
2273 "allow_emergency_video_calls_bool";
Tyler Gunn3e122f72016-01-11 19:25:00 -08002274
2275 /**
Brad Ebinger62713872019-11-18 18:43:35 -08002276 * Flag indicating whether or not an ongoing call will be held when an outgoing emergency call
2277 * is placed. If true, ongoing calls will be put on hold when an emergency call is placed. If
2278 * false, placing an emergency call will trigger the disconnect of all ongoing calls before
2279 * the emergency call is placed.
2280 */
2281 public static final String KEY_ALLOW_HOLD_CALL_DURING_EMERGENCY_BOOL =
2282 "allow_hold_call_during_emergency_bool";
2283
2284 /**
Brad Ebinger4612ab72020-11-30 23:37:03 +00002285 * Flag indicating whether or not the carrier supports the periodic exchange of phone numbers
2286 * in the user's address book with the carrier's presence server in order to retrieve the RCS
2287 * capabilities for each contact used in the RCS User Capability Exchange (UCE) procedure. See
2288 * RCC.71, section 3 for more information.
2289 * <p>
2290 * The flag {@link Ims#KEY_ENABLE_PRESENCE_PUBLISH_BOOL} must also be enabled if this flag is
2291 * enabled, as sending a periodic SIP PUBLISH with this device's RCS capabilities is a
2292 * requirement for capability exchange to begin.
2293 * <p>
2294 * When presence is supported, the device should use the
Tyler Gunn3e122f72016-01-11 19:25:00 -08002295 * {@link android.provider.ContactsContract.Data#CARRIER_PRESENCE} bit mask and set the
2296 * {@link android.provider.ContactsContract.Data#CARRIER_PRESENCE_VT_CAPABLE} bit to indicate
2297 * whether each contact supports video calling. The UI is made aware that presence is enabled
2298 * via {@link android.telecom.PhoneAccount#CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE}
2299 * and can choose to hide or show the video calling icon based on whether a contact supports
2300 * video.
allenwtsue6ddc2f2020-12-02 14:54:22 +08002301 *
2302 * @deprecated No longer used in framework code, however it may still be used by applications
2303 * that have not updated their code. This config should still be set to {@code true} if
2304 * {@link Ims#KEY_RCS_BULK_CAPABILITY_EXCHANGE_BOOL} is set to {@code true} and
2305 * {@link Ims#KEY_ENABLE_PRESENCE_CAPABILITY_EXCHANGE_BOOL} is set to {@code true}.
Tyler Gunn3e122f72016-01-11 19:25:00 -08002306 */
allenwtsue6ddc2f2020-12-02 14:54:22 +08002307 @Deprecated
Tyler Gunn3e122f72016-01-11 19:25:00 -08002308 public static final String KEY_USE_RCS_PRESENCE_BOOL = "use_rcs_presence_bool";
2309
Abhijith Shastryd48935872016-02-04 17:28:03 -08002310 /**
James.cf Linc8a345a2019-09-20 18:04:06 +08002311 * Flag indicating whether the carrier supports RCS SIP OPTIONS indication for
2312 * User Capability Exchange (UCE).
2313 */
2314 public static final String KEY_USE_RCS_SIP_OPTIONS_BOOL = "use_rcs_sip_options_bool";
2315
2316 /**
Abhijith Shastryd48935872016-02-04 17:28:03 -08002317 * The duration in seconds that platform call and message blocking is disabled after the user
Tyler Gunn48c570b2018-03-09 02:33:22 +00002318 * contacts emergency services. Platform considers values for below cases:
2319 * 1) 0 <= VALUE <= 604800(one week): the value will be used as the duration directly.
2320 * 2) VALUE > 604800(one week): will use the default value as duration instead.
2321 * 3) VALUE < 0: block will be disabled forever until user re-eanble block manually,
2322 * the suggested value to disable forever is -1.
2323 * See {@code android.provider.BlockedNumberContract#notifyEmergencyContact(Context)}
2324 * See {@code android.provider.BlockedNumberContract#isBlocked(Context, String)}.
Abhijith Shastryd48935872016-02-04 17:28:03 -08002325 */
2326 public static final String KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT =
2327 "duration_blocking_disabled_after_emergency_int";
2328
qingxi247e7f42016-06-03 15:24:33 -07002329 /**
Tyler Gunn48c570b2018-03-09 02:33:22 +00002330 * Determines whether to enable enhanced call blocking feature on the device.
Sarah China912e112020-01-09 10:43:30 -08002331 * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_UNREGISTERED
2332 * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_PRIVATE
2333 * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_PAYPHONE
2334 * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_UNKNOWN
Grace Jiacc16b042021-08-09 09:06:11 -07002335 * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_UNAVAILABLE
Tyler Gunn48c570b2018-03-09 02:33:22 +00002336 *
2337 * <p>
2338 * 1. For Single SIM(SS) device, it can be customized in both carrier_config_mccmnc.xml
2339 * and vendor.xml.
2340 * <p>
2341 * 2. For Dual SIM(DS) device, it should be customized in vendor.xml, since call blocking
2342 * function is used regardless of SIM.
2343 * <p>
2344 * If {@code true} enable enhanced call blocking feature on the device, {@code false} otherwise.
Tyler Gunn48c570b2018-03-09 02:33:22 +00002345 */
2346 public static final String KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL =
2347 "support_enhanced_call_blocking_bool";
2348
2349 /**
Jordan Liue1663562016-09-07 12:01:24 -07002350 * For carriers which require an empty flash to be sent before sending the normal 3-way calling
2351 * flash, the duration in milliseconds of the empty flash to send. When {@code 0}, no empty
2352 * flash is sent.
2353 */
2354 public static final String KEY_CDMA_3WAYCALL_FLASH_DELAY_INT = "cdma_3waycall_flash_delay_int";
2355
Jordan Liue1663562016-09-07 12:01:24 -07002356 /**
Jeff Davidsonaf1d3202017-10-25 12:51:43 -07002357 * The CDMA roaming mode (aka CDMA system select).
2358 *
2359 * <p>The value should be one of the CDMA_ROAMING_MODE_ constants in {@link TelephonyManager}.
2360 * Values other than {@link TelephonyManager#CDMA_ROAMING_MODE_RADIO_DEFAULT} (which is the
2361 * default) will take precedence over user selection.
2362 *
2363 * @see TelephonyManager#CDMA_ROAMING_MODE_RADIO_DEFAULT
2364 * @see TelephonyManager#CDMA_ROAMING_MODE_HOME
2365 * @see TelephonyManager#CDMA_ROAMING_MODE_AFFILIATED
2366 * @see TelephonyManager#CDMA_ROAMING_MODE_ANY
qingxi247e7f42016-06-03 15:24:33 -07002367 */
2368 public static final String KEY_CDMA_ROAMING_MODE_INT = "cdma_roaming_mode_int";
Jeff Davidsonaf1d3202017-10-25 12:51:43 -07002369
Josh Hou0e9ea952019-12-03 21:00:44 +08002370 /**
2371 * Determines whether 1X voice calls is supported for some CDMA carriers.
2372 * Default value is true.
2373 * @hide
2374 */
2375 @SystemApi
2376 public static final String KEY_SUPPORT_CDMA_1X_VOICE_CALLS_BOOL =
2377 "support_cdma_1x_voice_calls_bool";
Jeff Davidsonaf1d3202017-10-25 12:51:43 -07002378
Wileen Chiu5e8e3082016-07-15 10:00:09 -07002379 /**
2380 * Boolean indicating if support is provided for directly dialing FDN number from FDN list.
2381 * If false, this feature is not supported.
2382 * @hide
2383 */
2384 public static final String KEY_SUPPORT_DIRECT_FDN_DIALING_BOOL =
2385 "support_direct_fdn_dialing_bool";
qingxi247e7f42016-06-03 15:24:33 -07002386
Robert Greenwalt60551b62016-06-09 16:28:40 -07002387 /**
rongmei.libcadc902019-10-16 18:41:48 +08002388 * Int indicating the max number length for FDN
2389 * @hide
2390 */
2391 public static final String KEY_FDN_NUMBER_LENGTH_LIMIT_INT =
2392 "fdn_number_length_limit_int";
2393
2394 /**
Junda Liu276f4d62016-07-14 13:55:03 -07002395 * Report IMEI as device id even if it's a CDMA/LTE phone.
2396 *
2397 * @hide
2398 */
2399 public static final String KEY_FORCE_IMEI_BOOL = "force_imei_bool";
2400
2401 /**
Robert Greenwalt60551b62016-06-09 16:28:40 -07002402 * The families of Radio Access Technologies that will get clustered and ratcheted,
2403 * ie, we will report transitions up within the family, but not down until we change
2404 * cells. This prevents flapping between base technologies and higher techs that are
2405 * granted on demand within the cell.
2406 * @hide
2407 */
2408 public static final String KEY_RATCHET_RAT_FAMILIES =
2409 "ratchet_rat_families";
2410
Tyler Gunn4b6614e2016-06-22 10:35:13 -07002411 /**
2412 * Flag indicating whether some telephony logic will treat a call which was formerly a video
2413 * call as if it is still a video call. When {@code true}:
2414 * <p>
2415 * Logic which will automatically drop a video call which takes place over WIFI when a
2416 * voice call is answered (see {@link #KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL}.
2417 * <p>
2418 * Logic which determines whether the user can use TTY calling.
2419 */
2420 public static final String KEY_TREAT_DOWNGRADED_VIDEO_CALLS_AS_VIDEO_CALLS_BOOL =
2421 "treat_downgraded_video_calls_as_video_calls_bool";
2422
2423 /**
2424 * When {@code true}, if the user is in an ongoing video call over WIFI and answers an incoming
2425 * audio call, the video call will be disconnected before the audio call is answered. This is
2426 * in contrast to the usual expected behavior where a foreground video call would be put into
2427 * the background and held when an incoming audio call is answered.
2428 */
2429 public static final String KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL =
2430 "drop_video_call_when_answering_audio_call_bool";
2431
Tyler Gunn7d633d32016-06-24 07:30:10 -07002432 /**
2433 * Flag indicating whether the carrier supports merging wifi calls when VoWIFI is disabled.
2434 * This can happen in the case of a carrier which allows offloading video calls to WIFI
2435 * separately of whether voice over wifi is enabled. In such a scenario when two video calls
2436 * are downgraded to voice, they remain over wifi. However, if VoWIFI is disabled, these calls
2437 * cannot be merged.
2438 */
2439 public static final String KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL =
2440 "allow_merge_wifi_calls_when_vowifi_off_bool";
2441
Hall Liu10208662016-06-15 17:55:00 -07002442 /**
Brad Ebingerc8601012016-07-19 14:09:23 -07002443 * Flag indicating whether the carrier supports the Hold command while in an IMS call.
Tyler Gunnd81c4262016-08-03 10:53:52 -07002444 * <p>
2445 * The device configuration value {@code config_device_respects_hold_carrier_config} ultimately
2446 * controls whether this carrier configuration option is used. Where
2447 * {@code config_device_respects_hold_carrier_config} is false, the value of the
2448 * {@link #KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL} carrier configuration option is ignored.
Brad Ebingerc8601012016-07-19 14:09:23 -07002449 * @hide
2450 */
2451 public static final String KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL = "allow_hold_in_ims_call";
2452
Pooja Jaind34698d2017-12-28 14:15:31 +05302453 /**
2454 * Flag indicating whether the carrier supports call deflection for an incoming IMS call.
Pooja Jaind34698d2017-12-28 14:15:31 +05302455 */
2456 public static final String KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL =
2457 "carrier_allow_deflect_ims_call_bool";
Tyler Gunn30889422017-11-28 09:04:31 -08002458
2459 /**
Ravi Palurif4b38e72020-02-05 12:35:41 +05302460 * Flag indicating whether the carrier supports explicit call transfer for an IMS call.
2461 * @hide
2462 */
2463 public static final String KEY_CARRIER_ALLOW_TRANSFER_IMS_CALL_BOOL =
2464 "carrier_allow_transfer_ims_call_bool";
2465
2466 /**
Tyler Gunn30889422017-11-28 09:04:31 -08002467 * Flag indicating whether the carrier always wants to play an "on-hold" tone when a call has
2468 * been remotely held.
2469 * <p>
2470 * When {@code true}, if the IMS stack indicates that the call session has been held, a signal
2471 * will be sent from Telephony to play an audible "on-hold" tone played to the user.
2472 * When {@code false}, a hold tone will only be played if the audio session becomes inactive.
2473 * @hide
2474 */
2475 public static final String KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL =
2476 "always_play_remote_hold_tone_bool";
2477
Brad Ebingerc8601012016-07-19 14:09:23 -07002478 /**
Hall Liuf31f3852018-07-25 18:48:55 -07002479 * When true, the Telephony stack will automatically turn off airplane mode and retry a wifi
2480 * emergency call over the cell network if the initial attempt at dialing was met with a SIP 308
2481 * error.
2482 * @hide
2483 */
2484 public static final String KEY_AUTO_RETRY_FAILED_WIFI_EMERGENCY_CALL =
2485 "auto_retry_failed_wifi_emergency_call";
2486
2487 /**
Hall Liu41027002016-07-06 16:32:43 -07002488 * When true, indicates that adding a call is disabled when there is an ongoing video call
2489 * or when there is an ongoing call on wifi which was downgraded from video and VoWifi is
2490 * turned off.
Hall Liu10208662016-06-15 17:55:00 -07002491 */
2492 public static final String KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL =
2493 "allow_add_call_during_video_call";
2494
Tyler Gunnc96b5e02016-07-07 22:53:57 -07002495 /**
Tyler Gunnbe363242020-02-12 13:50:46 -08002496 * When {@code true}, indicates that video calls can be put on hold in order to swap to another
2497 * call (e.g. a new outgoing call).
2498 * When {@code false}, indicates that video calls will be disconnected when swapping to another
2499 * call.
2500 * <p>
2501 * This is {@code true} by default.
Ravi Paluri0fe55412019-12-10 16:53:14 +05302502 */
Tyler Gunnbe363242020-02-12 13:50:46 -08002503 public static final String KEY_ALLOW_HOLD_VIDEO_CALL_BOOL =
2504 "allow_hold_video_call_bool";
Ravi Paluri0fe55412019-12-10 16:53:14 +05302505
2506 /**
Hall Liu7c3c28b2016-07-19 11:18:49 -07002507 * When true, indicates that the HD audio icon in the in-call screen should not be shown for
2508 * VoWifi calls.
2509 * @hide
2510 */
2511 public static final String KEY_WIFI_CALLS_CAN_BE_HD_AUDIO = "wifi_calls_can_be_hd_audio";
2512
2513 /**
2514 * When true, indicates that the HD audio icon in the in-call screen should not be shown for
2515 * video calls.
2516 * @hide
2517 */
2518 public static final String KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO = "video_calls_can_be_hd_audio";
2519
2520 /**
Alex Khlivnuikabdd37c2017-11-29 12:18:05 +09002521 * When true, indicates that the HD audio icon in the in-call screen should be shown for
2522 * GSM/CDMA calls.
2523 * @hide
2524 */
2525 public static final String KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO =
2526 "gsm_cdma_calls_can_be_hd_audio";
2527
2528 /**
Ta-wei Yen9d20d982017-06-02 11:07:07 -07002529 * Whether system apps are allowed to use fallback if carrier video call is not available.
2530 * Defaults to {@code true}.
Ta-wei Yen9d20d982017-06-02 11:07:07 -07002531 */
2532 public static final String KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL =
2533 "allow_video_calling_fallback_bool";
2534
2535 /**
Brad Ebingerf8c3cd82018-01-22 13:51:52 -08002536 * Defines operator-specific {@link ImsReasonInfo} mappings.
Tyler Gunnc96b5e02016-07-07 22:53:57 -07002537 *
2538 * Format: "ORIGINAL_CODE|MESSAGE|NEW_CODE"
2539 * Where {@code ORIGINAL_CODE} corresponds to a {@link ImsReasonInfo#getCode()} code,
2540 * {@code MESSAGE} corresponds to an expected {@link ImsReasonInfo#getExtraMessage()} string,
2541 * and {@code NEW_CODE} is the new {@code ImsReasonInfo#CODE_*} which this combination of
2542 * original code and message shall be remapped to.
2543 *
Tyler Gunne0714692017-01-30 09:52:55 -08002544 * Note: If {@code *} is specified for the original code, any ImsReasonInfo with the matching
2545 * {@code MESSAGE} will be remapped to {@code NEW_CODE}.
Ian Chang71704ae2022-01-12 16:35:28 +08002546 * If {@code *} is specified for the message, any ImsReasonInfo with the matching
2547 * {@code ORIGINAL_CODE} will be remapped to {@code NEW_CODE}.
2548 * The wildcard for {@code ORIGINAL_CODE} takes precedence to the wildcard for {@code MESSAGE}.
2549 * A mapping with both wildcards has no effect.
Tyler Gunne0714692017-01-30 09:52:55 -08002550 *
Tyler Gunnc96b5e02016-07-07 22:53:57 -07002551 * Example: "501|call completion elsewhere|1014"
2552 * When the {@link ImsReasonInfo#getCode()} is {@link ImsReasonInfo#CODE_USER_TERMINATED} and
2553 * the {@link ImsReasonInfo#getExtraMessage()} is {@code "call completion elsewhere"},
2554 * {@link ImsReasonInfo#CODE_ANSWERED_ELSEWHERE} shall be used as the {@link ImsReasonInfo}
2555 * code instead.
2556 * @hide
2557 */
2558 public static final String KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY =
2559 "ims_reasoninfo_mapping_string_array";
2560
Meng Wang542e2622016-08-03 10:18:36 -07002561 /**
2562 * When {@code false}, use default title for Enhanced 4G LTE Mode settings.
2563 * When {@code true}, use the variant.
2564 * @hide
clownshen6400b932018-08-16 16:54:16 +08002565 * @deprecated use {@link #KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT}.
Meng Wang542e2622016-08-03 10:18:36 -07002566 */
clownshen6400b932018-08-16 16:54:16 +08002567 @Deprecated
Meng Wang542e2622016-08-03 10:18:36 -07002568 public static final String KEY_ENHANCED_4G_LTE_TITLE_VARIANT_BOOL =
2569 "enhanced_4g_lte_title_variant_bool";
2570
Tyler Gunn0f20d932016-08-09 15:56:43 -07002571 /**
Sarah China912e112020-01-09 10:43:30 -08002572 * The index indicates the carrier specified title string of Enhanced 4G LTE Mode settings.
clownshen6400b932018-08-16 16:54:16 +08002573 * Default value is 0, which indicates the default title string.
clownshen6400b932018-08-16 16:54:16 +08002574 */
2575 public static final String KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT =
2576 "enhanced_4g_lte_title_variant_int";
2577
2578 /**
Tyler Gunn0f20d932016-08-09 15:56:43 -07002579 * Indicates whether the carrier wants to notify the user when handover of an LTE video call to
2580 * WIFI fails.
2581 * <p>
2582 * When {@code true}, if a video call starts on LTE and the modem reports a failure to handover
2583 * the call to WIFI or if no handover success is reported within 60 seconds of call initiation,
2584 * the {@link android.telephony.TelephonyManager#EVENT_HANDOVER_TO_WIFI_FAILED} event is raised
2585 * on the connection.
2586 * @hide
2587 */
2588 public static final String KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL =
2589 "notify_vt_handover_to_wifi_failure_bool";
2590
Brad Ebinger9b63ad1a2016-08-15 11:28:26 -07002591 /**
2592 * A upper case list of CNAP names that are unhelpful to the user for distinguising calls and
2593 * should be filtered out of the CNAP information. This includes CNAP names such as "WIRELESS
2594 * CALLER" or "UNKNOWN NAME". By default, if there are no filtered names for this carrier, null
2595 * is returned.
2596 * @hide
2597 */
Jordan Liu1ca2e31d2016-12-01 11:39:30 -08002598 public static final String KEY_FILTERED_CNAP_NAMES_STRING_ARRAY = "filtered_cnap_names_string_array";
Brad Ebinger9b63ad1a2016-08-15 11:28:26 -07002599
Abhijith Shastry2215c9b2016-08-24 15:17:39 -07002600 /**
2601 * The RCS configuration server URL. This URL is used to initiate RCS provisioning.
2602 */
2603 public static final String KEY_RCS_CONFIG_SERVER_URL_STRING = "rcs_config_server_url_string";
2604
Meng Wang587a5f9c72016-09-28 21:06:55 -07002605 /**
Meng Wang2c25e4a2016-09-19 14:18:05 -07002606 * Determine whether user can change Wi-Fi Calling preference in roaming.
Hiroto Taruida081212019-02-14 14:37:09 +09002607 * {@code false} - roaming preference cannot be changed by user independently. If
2608 * {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is false,
2609 * {@link #KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT} is used as the default
2610 * value. If {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is
2611 * true, roaming preference is the same as home preference and
2612 * {@link #KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT} is used as the default value.
2613 * {@code true} - roaming preference can be changed by user independently if
2614 * {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is false. If
2615 * {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is true, this
2616 * configuration is ignored and roaming preference cannot be changed.
Meng Wang2c25e4a2016-09-19 14:18:05 -07002617 */
2618 public static final String KEY_EDITABLE_WFC_ROAMING_MODE_BOOL =
2619 "editable_wfc_roaming_mode_bool";
2620
Amit Mahajan22e89f42018-06-05 16:27:32 -07002621 /**
Sarah China912e112020-01-09 10:43:30 -08002622 * Flag specifying whether to show blocking pay phone option in blocked numbers screen.
2623 * Only show the option if payphone call presentation is present in the carrier's region.
Youming Ye9592a422019-03-20 17:53:44 -07002624 */
2625 public static final java.lang.String KEY_SHOW_BLOCKING_PAY_PHONE_OPTION_BOOL =
2626 "show_blocking_pay_phone_option_bool";
2627
2628 /**
Sooraj Sasindran83ff8ad2020-11-23 23:42:51 -08002629 * Flag specifying whether the carrier will use the
2630 * WFC home network mode in roaming network.
Hiroto Taruida081212019-02-14 14:37:09 +09002631 * {@code false} - roaming preference can be selected separately from the home preference.
2632 * {@code true} - roaming preference is the same as home preference and
2633 * {@link #KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT} is used as the default value.
Hiroto Taruida081212019-02-14 14:37:09 +09002634 */
2635 public static final String KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL =
2636 "use_wfc_home_network_mode_in_roaming_network_bool";
2637
2638 /**
Ecco Park1074c882019-03-21 12:58:09 -07002639 * Flag specifying whether the carrier is allowed to use metered network to download a
2640 * certificate of Carrier-WiFi.
2641 * {@code false} - default value.
2642 *
2643 * @hide
2644 */
2645 public static final String KEY_ALLOW_METERED_NETWORK_FOR_CERT_DOWNLOAD_BOOL =
2646 "allow_metered_network_for_cert_download_bool";
2647
2648 /**
pkanwarffd45832016-12-11 17:45:50 -08002649 * Time delay (in ms) after which we show the notification to switch the preferred
2650 * network.
2651 * @hide
2652 */
2653 public static final String KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT =
2654 "network_notification_delay_int";
2655
Brad Ebinger17acc152016-12-09 13:18:30 -08002656 /**
pkanwar68e3de72017-08-13 12:18:19 -07002657 * Time delay (in ms) after which we show the notification for emergency calls,
2658 * while the device is registered over WFC. Default value is -1, which indicates
2659 * that this notification is not pertinent for a particular carrier. We've added a delay
2660 * to prevent false positives.
pkanwar68e3de72017-08-13 12:18:19 -07002661 */
2662 public static final String KEY_EMERGENCY_NOTIFICATION_DELAY_INT =
2663 "emergency_notification_delay_int";
2664
2665 /**
Tyler Gunn02212db2017-06-05 11:26:46 -07002666 * When {@code true}, the carrier allows the user of the
2667 * {@link TelephonyManager#sendUssdRequest(String, TelephonyManager.UssdResponseCallback,
2668 * Handler)} API to perform USSD requests. {@code True} by default.
2669 * @hide
2670 */
2671 public static final String KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL =
2672 "allow_ussd_requests_via_telephony_manager_bool";
2673
2674 /**
Brad Ebinger17acc152016-12-09 13:18:30 -08002675 * Indicates whether the carrier supports 3gpp call forwarding MMI codes while roaming. If
2676 * false, the user will be notified that call forwarding is not available when the MMI code
2677 * fails.
2678 */
2679 public static final String KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL =
2680 "support_3gpp_call_forwarding_while_roaming_bool";
2681
Junda Liuf1adc1d2016-12-16 16:45:10 -08002682 /**
Qiong Liu48fe53f2017-10-16 17:04:30 +08002683 * Boolean indicating whether to display voicemail number as default call forwarding number in
2684 * call forwarding settings.
2685 * If true, display vm number when cf number is null.
2686 * If false, display the cf number from network.
2687 * By default this value is false.
2688 * @hide
2689 */
2690 public static final String KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL =
2691 "display_voicemail_number_as_default_call_forwarding_number";
2692
2693 /**
Tyler Gunn662ae092017-02-16 16:21:14 -08002694 * When {@code true}, the user will be notified when they attempt to place an international call
2695 * when the call is placed using wifi calling.
2696 * @hide
2697 */
2698 public static final String KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL =
2699 "notify_international_call_on_wfc_bool";
2700
2701 /**
taiki tsutsumi2ee96822018-07-02 17:15:42 +09002702 * Flag to hide Preset APN details. If true, user cannot enter ApnEditor view of Preset APN,
2703 * and cannot view details of the APN. If false, user can enter ApnEditor view of Preset APN.
2704 * Default value is false.
2705 */
2706 public static final String KEY_HIDE_PRESET_APN_DETAILS_BOOL = "hide_preset_apn_details_bool";
2707
2708 /**
Masaho Nishikawa4c7511c2017-12-18 14:33:38 +09002709 * Flag specifying whether to show an alert dialog for video call charges.
2710 * By default this value is {@code false}.
Masaho Nishikawa4c7511c2017-12-18 14:33:38 +09002711 */
2712 public static final String KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL =
2713 "show_video_call_charges_alert_dialog_bool";
2714
2715 /**
Brad Ebinger9ab43212016-12-12 14:57:37 -08002716 * An array containing custom call forwarding number prefixes that will be blocked while the
2717 * device is reporting that it is roaming. By default, there are no custom call
2718 * forwarding prefixes and none of these numbers will be filtered. If one or more entries are
2719 * present, the system will not complete the call and display an error message.
2720 *
2721 * To display a message to the user when call forwarding fails for 3gpp MMI codes while roaming,
2722 * use the {@link #KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL} option instead.
2723 */
2724 public static final String KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY =
2725 "call_forwarding_blocks_while_roaming_string_array";
2726
Ammar Aijazi11b44982017-01-17 17:32:15 -08002727 /**
Josh Hou7d4f7792020-05-28 23:32:37 +08002728 * Call forwarding number prefixes defined by {@link
2729 * #KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY} which will be allowed while the
2730 * device is reporting that it is roaming and IMS is registered over LTE or Wi-Fi.
2731 * By default this value is {@code true}.
2732 * @hide
2733 */
2734 public static final String KEY_SUPPORT_IMS_CALL_FORWARDING_WHILE_ROAMING_BOOL =
2735 "support_ims_call_forwarding_while_roaming_bool";
2736
2737 /**
Ammar Aijazi11b44982017-01-17 17:32:15 -08002738 * The day of the month (1-31) on which the data cycle rolls over.
2739 * <p>
Jeff Sharkey17bebd22017-07-19 21:00:38 -06002740 * If the current month does not have this day, the cycle will roll over at
2741 * the start of the next month.
Ammar Aijazi11b44982017-01-17 17:32:15 -08002742 * <p>
Jeff Sharkey17bebd22017-07-19 21:00:38 -06002743 * This setting may be still overridden by explicit user choice. By default,
Shuo Qian3d182902019-12-16 11:14:08 -08002744 * {@link #DATA_CYCLE_USE_PLATFORM_DEFAULT} will be used.
Ammar Aijazi11b44982017-01-17 17:32:15 -08002745 */
2746 public static final String KEY_MONTHLY_DATA_CYCLE_DAY_INT =
2747 "monthly_data_cycle_day_int";
2748
2749 /**
2750 * When {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, {@link #KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG},
2751 * or {@link #KEY_DATA_WARNING_THRESHOLD_BYTES_LONG} are set to this value, the platform default
2752 * value will be used for that key.
Ammar Aijazi11b44982017-01-17 17:32:15 -08002753 */
2754 public static final int DATA_CYCLE_USE_PLATFORM_DEFAULT = -1;
2755
2756 /**
2757 * Flag indicating that a data cycle threshold should be disabled.
2758 * <p>
2759 * If {@link #KEY_DATA_WARNING_THRESHOLD_BYTES_LONG} is set to this value, the platform's
2760 * default data warning, if one exists, will be disabled. A user selected data warning will not
2761 * be overridden.
2762 * <p>
2763 * If {@link #KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG} is set to this value, the platform's
2764 * default data limit, if one exists, will be disabled. A user selected data limit will not be
2765 * overridden.
2766 */
2767 public static final int DATA_CYCLE_THRESHOLD_DISABLED = -2;
2768
2769 /**
2770 * Controls the data usage warning.
2771 * <p>
2772 * If the user uses more than this amount of data in their billing cycle, as defined by
2773 * {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, the user will be alerted about the usage.
2774 * If the value is set to {@link #DATA_CYCLE_THRESHOLD_DISABLED}, the data usage warning will
2775 * be disabled.
2776 * <p>
Shuo Qian3d182902019-12-16 11:14:08 -08002777 * This setting may be overridden by explicit user choice. By default,
2778 * {@link #DATA_CYCLE_USE_PLATFORM_DEFAULT} will be used.
Ammar Aijazi11b44982017-01-17 17:32:15 -08002779 */
2780 public static final String KEY_DATA_WARNING_THRESHOLD_BYTES_LONG =
2781 "data_warning_threshold_bytes_long";
2782
2783 /**
Jeff Sharkey0a5570d2018-04-10 12:38:29 -06002784 * Controls if the device should automatically notify the user as they reach
2785 * their cellular data warning. When set to {@code false} the carrier is
Shuo Qian3d182902019-12-16 11:14:08 -08002786 * expected to have implemented their own notification mechanism. {@code true} by default.
Jeff Sharkey0a5570d2018-04-10 12:38:29 -06002787 */
2788 public static final String KEY_DATA_WARNING_NOTIFICATION_BOOL =
2789 "data_warning_notification_bool";
2790
2791 /**
chen xu00511062019-07-02 16:32:07 -07002792 * Controls if the device should automatically warn the user that sim voice & data function
2793 * might be limited due to dual sim scenario. When set to {@true} display the notification,
2794 * {@code false} otherwise.
2795 * @hide
2796 */
2797 public static final String KEY_LIMITED_SIM_FUNCTION_NOTIFICATION_FOR_DSDS_BOOL =
2798 "limited_sim_function_notification_for_dsds_bool";
2799
2800 /**
Ammar Aijazi11b44982017-01-17 17:32:15 -08002801 * Controls the cellular data limit.
2802 * <p>
2803 * If the user uses more than this amount of data in their billing cycle, as defined by
2804 * {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, cellular data will be turned off by the user's
2805 * phone. If the value is set to {@link #DATA_CYCLE_THRESHOLD_DISABLED}, the data limit will be
2806 * disabled.
2807 * <p>
Shuo Qian3d182902019-12-16 11:14:08 -08002808 * This setting may be overridden by explicit user choice. By default,
2809 * {@link #DATA_CYCLE_USE_PLATFORM_DEFAULT} will be used.
Ammar Aijazi11b44982017-01-17 17:32:15 -08002810 */
2811 public static final String KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG =
2812 "data_limit_threshold_bytes_long";
2813
Sooraj Sasindran1b7bec52017-03-08 23:43:17 -08002814 /**
Jeff Sharkey0a5570d2018-04-10 12:38:29 -06002815 * Controls if the device should automatically notify the user as they reach
2816 * their cellular data limit. When set to {@code false} the carrier is
Shuo Qian3d182902019-12-16 11:14:08 -08002817 * expected to have implemented their own notification mechanism. {@code true} by default.
Jeff Sharkey0a5570d2018-04-10 12:38:29 -06002818 */
2819 public static final String KEY_DATA_LIMIT_NOTIFICATION_BOOL =
2820 "data_limit_notification_bool";
2821
2822 /**
2823 * Controls if the device should automatically notify the user when rapid
2824 * cellular data usage is observed. When set to {@code false} the carrier is
Shuo Qian3d182902019-12-16 11:14:08 -08002825 * expected to have implemented their own notification mechanism. {@code true} by default.
Jeff Sharkey0a5570d2018-04-10 12:38:29 -06002826 */
2827 public static final String KEY_DATA_RAPID_NOTIFICATION_BOOL =
2828 "data_rapid_notification_bool";
2829
2830 /**
Sooraj Sasindran1b7bec52017-03-08 23:43:17 -08002831 * Offset to be reduced from rsrp threshold while calculating signal strength level.
2832 * @hide
2833 */
2834 public static final String KEY_LTE_EARFCNS_RSRP_BOOST_INT = "lte_earfcns_rsrp_boost_int";
2835
2836 /**
2837 * List of EARFCN (E-UTRA Absolute Radio Frequency Channel Number,
Amit Mahajanae5f04d2021-05-27 13:00:33 -07002838 * Reference: 3GPP TS 36.104 5.4.3) inclusive ranges on which lte_earfcns_rsrp_boost_int
2839 * will be applied. Format of the String array is expected to be {"earfcn1_start-earfcn1_end",
Sooraj Sasindran1b7bec52017-03-08 23:43:17 -08002840 * "earfcn2_start-earfcn2_end" ... }
2841 * @hide
2842 */
2843 public static final String KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY =
2844 "boosted_lte_earfcns_string_array";
2845
Sanket Padawedb688bb2017-03-28 15:26:13 -07002846 /**
Amit Mahajanae5f04d2021-05-27 13:00:33 -07002847 * Offset to be reduced from rsrp threshold while calculating signal strength level.
2848 * @hide
2849 */
2850 public static final String KEY_NRARFCNS_RSRP_BOOST_INT_ARRAY = "nrarfcns_rsrp_boost_int_array";
2851
2852 /**
2853 * List of NR ARFCN (5G Absolute Radio Frequency Channel Number,
2854 * Reference: 3GPP TS 36.108) inclusive ranges on which corresponding
2855 * nrarfcns_rsrp_boost_int_array will be applied. The size of this array and
2856 * nrarfcns_rsrp_boost_int_array must be the same.
2857 * Format of the String array is expected to be {"nrarfcn1_start-nrarfcn1_end",
2858 * "nrarfcn2_start-nrarfcn2_end" ... }
2859 * @hide
2860 */
2861 public static final String KEY_BOOSTED_NRARFCNS_STRING_ARRAY =
2862 "boosted_nrarfcns_string_array";
2863
2864 /**
Wenting Xiongcb35e992017-10-18 15:05:49 +09002865 * Determine whether to use only RSRP for the number of LTE signal bars.
2866 * @hide
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09002867 *
2868 * @deprecated use {@link #KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT}.
Wenting Xiongcb35e992017-10-18 15:05:49 +09002869 */
Nathan Haroldf23153f2018-11-19 18:09:40 -08002870 // FIXME: this key and related keys must not be exposed without a consistent philosophy for
2871 // all RATs.
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09002872 @Deprecated
Wenting Xiongcb35e992017-10-18 15:05:49 +09002873 public static final String KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL =
2874 "use_only_rsrp_for_lte_signal_bar_bool";
2875
2876 /**
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09002877 * Bit-field integer to determine whether to use Reference Signal Received Power (RSRP),
2878 * Reference Signal Received Quality (RSRQ), or/and Reference Signal Signal to Noise Ratio
2879 * (RSSNR) for the number of LTE signal bars and signal criteria reporting enabling.
2880 *
2881 * <p> If a measure is not set, signal criteria reporting from modem will not be triggered and
2882 * not be used for calculating signal level. If multiple measures are set bit, the parameter
2883 * whose value is smallest is used to indicate the signal level.
Shuo Qiandc861202020-03-03 19:51:13 -08002884 * <UL>
2885 * <LI>RSRP = 1 << 0</LI>
2886 * <LI>RSRQ = 1 << 1</LI>
2887 * <LI>RSSNR = 1 << 2</LI>
2888 * </UL>
2889 * <p> The value of this key must be bitwise OR of {@link CellSignalStrengthLte#USE_RSRP},
2890 * {@link CellSignalStrengthLte#USE_RSRQ}, {@link CellSignalStrengthLte#USE_RSSNR}.
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09002891 *
Shuo Qiandc861202020-03-03 19:51:13 -08002892 * <p> For example, if both RSRP and RSRQ are used, the value of key is 3 (1 << 0 | 1 << 1).
2893 * If the key is invalid or not configured, a default value (RSRP = 1 << 0) will apply.
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09002894 *
2895 * @hide
2896 */
2897 public static final String KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT =
2898 "parameters_used_for_lte_signal_bar_int";
2899
2900 /**
Shuo Qian8c1e8732019-10-24 11:12:50 -07002901 * List of 4 customized 5G SS reference signal received power (SSRSRP) thresholds.
Shuo Qiandc861202020-03-03 19:51:13 -08002902 * <p>
Shuo Qian8c1e8732019-10-24 11:12:50 -07002903 * Reference: 3GPP TS 38.215
Shuo Qiandc861202020-03-03 19:51:13 -08002904 * <p>
Shuo Qian8c1e8732019-10-24 11:12:50 -07002905 * 4 threshold integers must be within the boundaries [-140 dB, -44 dB], and the levels are:
Shuo Qiandc861202020-03-03 19:51:13 -08002906 * <UL>
Yang Caoaf14d7c2021-12-17 10:26:32 +08002907 * <LI>"NONE: [-140, threshold1)"</LI>
2908 * <LI>"POOR: [threshold1, threshold2)"</LI>
2909 * <LI>"MODERATE: [threshold2, threshold3)"</LI>
2910 * <LI>"GOOD: [threshold3, threshold4)"</LI>
2911 * <LI>"EXCELLENT: [threshold4, -44]"</LI>
Shuo Qiandc861202020-03-03 19:51:13 -08002912 * </UL>
2913 * <p>
Shuo Qian8c1e8732019-10-24 11:12:50 -07002914 * This key is considered invalid if the format is violated. If the key is invalid or
2915 * not configured, a default value set will apply.
2916 */
2917 public static final String KEY_5G_NR_SSRSRP_THRESHOLDS_INT_ARRAY =
2918 "5g_nr_ssrsrp_thresholds_int_array";
2919
2920 /**
2921 * List of 4 customized 5G SS reference signal received quality (SSRSRQ) thresholds.
Shuo Qiandc861202020-03-03 19:51:13 -08002922 * <p>
Shuo Qian26e679e2020-07-01 11:48:52 -07002923 * Reference: 3GPP TS 38.215; 3GPP TS 38.133 section 10
Shuo Qiandc861202020-03-03 19:51:13 -08002924 * <p>
Shuo Qian26e679e2020-07-01 11:48:52 -07002925 * 4 threshold integers must be within the boundaries [-43 dB, 20 dB], and the levels are:
Shuo Qiandc861202020-03-03 19:51:13 -08002926 * <UL>
Yang Caoaf14d7c2021-12-17 10:26:32 +08002927 * <LI>"NONE: [-43, threshold1)"</LI>
2928 * <LI>"POOR: [threshold1, threshold2)"</LI>
2929 * <LI>"MODERATE: [threshold2, threshold3)"</LI>
2930 * <LI>"GOOD: [threshold3, threshold4)"</LI>
2931 * <LI>"EXCELLENT: [threshold4, 20]"</LI>
Shuo Qiandc861202020-03-03 19:51:13 -08002932 * </UL>
2933 * <p>
Shuo Qian8c1e8732019-10-24 11:12:50 -07002934 * This key is considered invalid if the format is violated. If the key is invalid or
2935 * not configured, a default value set will apply.
2936 */
2937 public static final String KEY_5G_NR_SSRSRQ_THRESHOLDS_INT_ARRAY =
2938 "5g_nr_ssrsrq_thresholds_int_array";
2939
2940 /**
2941 * List of 4 customized 5G SS signal-to-noise and interference ratio (SSSINR) thresholds.
Shuo Qiandc861202020-03-03 19:51:13 -08002942 * <p>
Shuo Qian8c1e8732019-10-24 11:12:50 -07002943 * Reference: 3GPP TS 38.215,
2944 * 3GPP TS 38.133 10.1.16.1
Shuo Qiandc861202020-03-03 19:51:13 -08002945 * <p>
Shuo Qian8c1e8732019-10-24 11:12:50 -07002946 * 4 threshold integers must be within the boundaries [-23 dB, 40 dB], and the levels are:
Shuo Qiandc861202020-03-03 19:51:13 -08002947 * <UL>
Yang Caoaf14d7c2021-12-17 10:26:32 +08002948 * <LI>"NONE: [-23, threshold1)"</LI>
2949 * <LI>"POOR: [threshold1, threshold2)"</LI>
2950 * <LI>"MODERATE: [threshold2, threshold3)"</LI>
2951 * <LI>"GOOD: [threshold3, threshold4)"</LI>
2952 * <LI>"EXCELLENT: [threshold4, 40]"</LI>
Shuo Qiandc861202020-03-03 19:51:13 -08002953 * </UL>
2954 * <p>
Shuo Qian8c1e8732019-10-24 11:12:50 -07002955 * This key is considered invalid if the format is violated. If the key is invalid or
2956 * not configured, a default value set will apply.
2957 */
2958 public static final String KEY_5G_NR_SSSINR_THRESHOLDS_INT_ARRAY =
2959 "5g_nr_sssinr_thresholds_int_array";
2960
2961 /**
2962 * Bit-field integer to determine whether to use SS reference signal received power (SSRSRP),
2963 * SS reference signal received quality (SSRSRQ), or/and SS signal-to-noise and interference
Shuo Qian7d7b2f12019-11-23 19:09:36 -08002964 * ratio (SSSINR) for the number of 5G NR signal bars and signal criteria reporting enabling.
2965 *
2966 * <p> If a measure is not set, signal criteria reporting from modem will not be triggered and
2967 * not be used for calculating signal level. If multiple measures are set bit, the parameter
2968 * whose value is smallest is used to indicate the signal level.
Shuo Qiandc861202020-03-03 19:51:13 -08002969 * <UL>
2970 * <LI>SSRSRP = 1 << 0</LI>
2971 * <LI>SSRSRQ = 1 << 1</LI>
2972 * <LI>SSSINR = 1 << 2</LI>
2973 * </UL>
Shuo Qian7d7b2f12019-11-23 19:09:36 -08002974 * The value of this key must be bitwise OR of {@link CellSignalStrengthNr#USE_SSRSRP},
2975 * {@link CellSignalStrengthNr#USE_SSRSRQ}, {@link CellSignalStrengthNr#USE_SSSINR}.
2976 *
Shuo Qiandc861202020-03-03 19:51:13 -08002977 * <p> For example, if both SSRSRP and SSSINR are used, the value of key is 5 (1 << 0 | 1 << 2).
Shuo Qian7d7b2f12019-11-23 19:09:36 -08002978 * If the key is invalid or not configured, a default value (SSRSRP = 1 << 0) will apply.
2979 *
Shuo Qiandc861202020-03-03 19:51:13 -08002980 * <p> Reference: 3GPP TS 38.215,
2981 * 3GPP TS 38.133 10.1.16.1
Shuo Qian7d7b2f12019-11-23 19:09:36 -08002982 *
2983 * @hide
Shuo Qian8c1e8732019-10-24 11:12:50 -07002984 */
2985 public static final String KEY_PARAMETERS_USE_FOR_5G_NR_SIGNAL_BAR_INT =
2986 "parameters_use_for_5g_nr_signal_bar_int";
2987
2988 /**
SongFerngWang68c58a52020-04-13 18:13:04 +08002989 * There are two signal strengths, NR and LTE signal strength, during NR (non-standalone).
2990 * Boolean indicating whether to use LTE signal strength as primary during NR (non-standalone).
2991 * By default this value is true.
2992 *
2993 * @hide
2994 */
2995 public static final String KEY_SIGNAL_STRENGTH_NR_NSA_USE_LTE_AS_PRIMARY_BOOL =
2996 "signal_strength_nr_nsa_use_lte_as_primary_bool";
2997
2998 /**
Sarah Chin5023ffd2020-02-07 10:33:06 -08002999 * String array of default bandwidth values per network type.
Sarah Chin83469632021-12-06 18:34:24 -08003000 * The entries should be of form: "network_name:downlink,uplink", with values in Kbps.
3001 * For NR (5G), the following network names should be used:
3002 * - NR_NSA: NR NSA, sub-6 frequencies
3003 * - NR_NSA_MMWAVE: NR NSA, mmwave frequencies
3004 * - NR_SA: NR SA, sub-6 frequencies
3005 * - NR_SA_MMWAVE: NR SA, mmwave frequencies
Sarah Chin5023ffd2020-02-07 10:33:06 -08003006 * @hide
3007 */
3008 public static final String KEY_BANDWIDTH_STRING_ARRAY = "bandwidth_string_array";
3009
3010 /**
3011 * For NR (non-standalone), whether to use the LTE value instead of NR value as the default for
Sarah Chin83469632021-12-06 18:34:24 -08003012 * uplink bandwidth. Downlink bandwidth will still use the NR value as the default.
Sarah Chin5023ffd2020-02-07 10:33:06 -08003013 * @hide
3014 */
Sarah Chin83469632021-12-06 18:34:24 -08003015 public static final String KEY_BANDWIDTH_NR_NSA_USE_LTE_VALUE_FOR_UPLINK_BOOL =
3016 "bandwidth_nr_nsa_use_lte_value_for_uplink_bool";
Sarah Chin5023ffd2020-02-07 10:33:06 -08003017
3018 /**
Sanket Padawedb688bb2017-03-28 15:26:13 -07003019 * Key identifying if voice call barring notification is required to be shown to the user.
3020 * @hide
3021 */
Mathew Inwood8e742f92020-10-27 11:47:29 +00003022 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
Sanket Padawedb688bb2017-03-28 15:26:13 -07003023 public static final String KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL =
3024 "disable_voice_barring_notification_bool";
3025
pkanwar232573f2017-05-31 13:10:03 -07003026 /**
fionaxu1c6027c2017-06-01 18:52:17 -07003027 * List of operators considered non-roaming which won't show roaming icon.
3028 * <p>
3029 * Can use mcc or mcc+mnc as item. For example, 302 or 21407.
3030 * If operators, 21404 and 21407, make roaming agreements, users of 21404 should not see
3031 * the roaming icon as using 21407 network.
3032 * @hide
3033 */
3034 public static final String KEY_NON_ROAMING_OPERATOR_STRING_ARRAY =
3035 "non_roaming_operator_string_array";
3036
3037 /**
3038 * List of operators considered roaming with the roaming icon.
3039 * <p>
3040 * Can use mcc or mcc+mnc as item. For example, 302 or 21407.
3041 * If operators, 21404 and 21407, make roaming agreements, users of 21404 should see
3042 * the roaming icon as using 21407 network.
3043 * <p>
3044 * A match on this supersedes a match on {@link #KEY_NON_ROAMING_OPERATOR_STRING_ARRAY}.
3045 * @hide
3046 */
3047 public static final String KEY_ROAMING_OPERATOR_STRING_ARRAY =
3048 "roaming_operator_string_array";
3049
pkanwar766f4612017-05-31 13:10:03 -07003050 /**
3051 * URL from which the proto containing the public key of the Carrier used for
3052 * IMSI encryption will be downloaded.
3053 * @hide
3054 */
3055 public static final String IMSI_KEY_DOWNLOAD_URL_STRING = "imsi_key_download_url_string";
3056
3057 /**
Jordan Liu762fe4b2021-01-14 13:00:06 -08003058 * String representation of a carrier's public key used for IMSI encryption for ePDG. If this
3059 * is provided, the device will use it as a fallback when no key exists on device, but the key
3060 * download will still initiate.
3061 * Example string:
3062 * "-----BEGIN CERTIFICATE-----\nabcde12345abcde12345abcde12345abcde1234
3063 * 5abcde12345abcde12345\nabcde12345abcde12345abcde12345abcde12345a\n-----END CERTIFICATE-----"
3064 * @hide
3065 */
3066 public static final String IMSI_CARRIER_PUBLIC_KEY_EPDG_STRING =
3067 "imsi_carrier_public_key_epdg_string";
3068
3069 /**
3070 * String representation of a carrier's public key used for IMSI encryption for WLAN. If this
3071 * is provided, the device will use it as a fallback when no key exists on device, but the key
3072 * download will still initiate.
3073 * Example string:
3074 * "-----BEGIN CERTIFICATE-----\nabcde12345abcde12345abcde12345abcde1234
3075 * 5abcde12345abcde12345\nabcde12345abcde12345abcde12345abcde12345a\n-----END CERTIFICATE-----"
3076 * @hide
3077 */
3078 public static final String IMSI_CARRIER_PUBLIC_KEY_WLAN_STRING =
3079 "imsi_carrier_public_key_wlan_string";
3080
3081 /**
pkanwarbecc8692017-07-04 16:04:44 -07003082 * Identifies if the key is available for WLAN or EPDG or both. The value is a bitmask.
3083 * 0 indicates that neither EPDG or WLAN is enabled.
Sarah China912e112020-01-09 10:43:30 -08003084 * 1 indicates that key type TelephonyManager#KEY_TYPE_EPDG is enabled.
3085 * 2 indicates that key type TelephonyManager#KEY_TYPE_WLAN is enabled.
pkanwarbecc8692017-07-04 16:04:44 -07003086 * 3 indicates that both are enabled.
pkanwar766f4612017-05-31 13:10:03 -07003087 */
pkanwarbecc8692017-07-04 16:04:44 -07003088 public static final String IMSI_KEY_AVAILABILITY_INT = "imsi_key_availability_int";
3089
Naveen Kallaabd28422017-07-11 20:03:58 -07003090 /**
3091 * Key identifying if the CDMA Caller ID presentation and suppression MMI codes
3092 * should be converted to 3GPP CLIR codes when a multimode (CDMA+UMTS+LTE) device is roaming
3093 * on a 3GPP network. Specifically *67<number> will be converted to #31#<number> and
3094 * *82<number> will be converted to *31#<number> before dialing a call when this key is
3095 * set TRUE and device is roaming on a 3GPP network.
3096 * @hide
3097 */
3098 public static final String KEY_CONVERT_CDMA_CALLER_ID_MMI_CODES_WHILE_ROAMING_ON_3GPP_BOOL =
3099 "convert_cdma_caller_id_mmi_codes_while_roaming_on_3gpp_bool";
3100
Ping Sune0e3cbd2016-03-02 19:09:27 +08003101 /**
3102 * Flag specifying whether IMS registration state menu is shown in Status Info setting,
3103 * default to false.
Ping Sune0e3cbd2016-03-02 19:09:27 +08003104 */
3105 public static final String KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL =
3106 "show_ims_registration_status_bool";
3107
Omata Shou9766b182017-08-22 17:17:55 +09003108 /**
Hall Liu47ed6202017-11-20 16:25:39 -08003109 * Flag indicating whether the carrier supports RTT over IMS.
3110 */
3111 public static final String KEY_RTT_SUPPORTED_BOOL = "rtt_supported_bool";
3112
3113 /**
Tyler Gunne4d72b42019-02-25 10:42:45 -08003114 * Boolean flag indicating whether the carrier supports TTY.
3115 * <p>
3116 * Note that {@link #KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL} controls availability of TTY over
3117 * VoLTE; if {@link #KEY_TTY_SUPPORTED_BOOL} is disabled, then
3118 * {@link #KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL} is also implicitly disabled.
3119 * <p>
3120 * {@link TelecomManager#isTtySupported()} should be used to determine if a device supports TTY,
3121 * and this carrier config key should be used to see if the current carrier supports it.
3122 */
3123 public static final String KEY_TTY_SUPPORTED_BOOL = "tty_supported_bool";
3124
3125 /**
Hall Liu86fec032018-10-09 16:33:45 -07003126 * Indicates if the carrier supports auto-upgrading a call to RTT when receiving a call from a
3127 * RTT-supported device.
Hall Liu86fec032018-10-09 16:33:45 -07003128 */
3129 public static final String KEY_RTT_AUTO_UPGRADE_BOOL = "rtt_auto_upgrade_bool";
3130
3131 /**
3132 * Indicates if the carrier supports RTT during a video call.
Hall Liu86fec032018-10-09 16:33:45 -07003133 */
3134 public static final String KEY_RTT_SUPPORTED_FOR_VT_BOOL = "rtt_supported_for_vt_bool";
3135
3136 /**
Hall Liuf4eae0f2021-03-15 16:03:38 -07003137 * Indicates if the carrier supports upgrading a call that was previously an RTT call to VT.
3138 */
3139 public static final String KEY_VT_UPGRADE_SUPPORTED_FOR_DOWNGRADED_RTT_CALL_BOOL =
3140 "vt_upgrade_supported_for_downgraded_rtt_call";
3141
3142 /**
3143 * Indicates if the carrier supports upgrading a call that was previously a VT call to RTT.
3144 */
3145 public static final String KEY_RTT_UPGRADE_SUPPORTED_FOR_DOWNGRADED_VT_CALL_BOOL =
3146 "rtt_upgrade_supported_for_downgraded_vt_call";
3147
3148 /**
Hall Liu86fec032018-10-09 16:33:45 -07003149 * Indicates if the carrier supports upgrading a voice call to an RTT call during the call.
Hall Liu86fec032018-10-09 16:33:45 -07003150 */
3151 public static final String KEY_RTT_UPGRADE_SUPPORTED_BOOL = "rtt_upgrade_supported_bool";
3152
3153 /**
3154 * Indicates if the carrier supports downgrading a RTT call to a voice call during the call.
Hall Liu86fec032018-10-09 16:33:45 -07003155 */
3156 public static final String KEY_RTT_DOWNGRADE_SUPPORTED_BOOL = "rtt_downgrade_supported_bool";
3157
3158 /**
Hall Liu3a23d7e2019-07-29 17:30:12 -07003159 * Indicates if the TTY HCO and VCO options should be hidden in the accessibility menu
3160 * if the device is capable of RTT.
Hall Liu3a23d7e2019-07-29 17:30:12 -07003161 */
3162 public static final String KEY_HIDE_TTY_HCO_VCO_WITH_RTT_BOOL = "hide_tty_hco_vco_with_rtt";
3163
3164 /**
Omata Shou9766b182017-08-22 17:17:55 +09003165 * The flag to disable the popup dialog which warns the user of data charges.
Omata Shou9766b182017-08-22 17:17:55 +09003166 */
3167 public static final String KEY_DISABLE_CHARGE_INDICATION_BOOL =
3168 "disable_charge_indication_bool";
3169
DongYuchen439f16d2017-02-16 18:22:36 +08003170 /**
3171 * Boolean indicating whether to skip the call forwarding (CF) fail-to-disable dialog.
3172 * The logic used to determine whether we succeeded in disabling is carrier specific,
3173 * so the dialog may not always be accurate.
3174 * {@code false} - show CF fail-to-disable dialog.
3175 * {@code true} - skip showing CF fail-to-disable dialog.
3176 *
3177 * @hide
3178 */
3179 public static final String KEY_SKIP_CF_FAIL_TO_DISABLE_DIALOG_BOOL =
3180 "skip_cf_fail_to_disable_dialog_bool";
3181
Kazuya Ohshiro990af172017-09-27 16:02:55 +09003182 /**
manabu, shimoda6ce31382017-12-25 18:38:47 +09003183 * Flag specifying whether operator supports including no reply condition timer option on
3184 * CFNRy (3GPP TS 24.082 3: Call Forwarding on No Reply) in the call forwarding settings UI.
3185 * {@code true} - include no reply condition timer option on CFNRy
3186 * {@code false} - don't include no reply condition timer option on CFNRy
3187 *
3188 * @hide
3189 */
3190 public static final String KEY_SUPPORT_NO_REPLY_TIMER_FOR_CFNRY_BOOL =
3191 "support_no_reply_timer_for_cfnry_bool";
3192
3193 /**
Kazuya Ohshiro990af172017-09-27 16:02:55 +09003194 * List of the FAC (feature access codes) to dial as a normal call.
3195 * @hide
3196 */
3197 public static final String KEY_FEATURE_ACCESS_CODES_STRING_ARRAY =
3198 "feature_access_codes_string_array";
3199
Kazuya Ohshirob8981ba2017-10-27 16:26:15 +09003200 /**
3201 * Determines if the carrier wants to identify high definition calls in the call log.
3202 * @hide
3203 */
3204 public static final String KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL =
3205 "identify_high_definition_calls_in_call_log_bool";
3206
Masaho Nishikawa40184352017-11-01 20:33:36 +09003207 /**
3208 * Flag specifying whether to use the {@link ServiceState} roaming status, which can be
3209 * affected by other carrier configs (e.g.
3210 * {@link #KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY}), when setting the SPN display.
3211 * <p>
3212 * If {@code true}, the SPN display uses {@link ServiceState#getRoaming}.
3213 * If {@code false} the SPN display checks if the current MCC/MNC is different from the
3214 * SIM card's MCC/MNC.
3215 *
3216 * @see KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY
3217 * @see KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY
3218 * @see KEY_NON_ROAMING_OPERATOR_STRING_ARRAY
3219 * @see KEY_ROAMING_OPERATOR_STRING_ARRAY
3220 * @see KEY_FORCE_HOME_NETWORK_BOOL
3221 *
3222 * @hide
3223 */
3224 public static final String KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL =
3225 "spn_display_rule_use_roaming_from_service_state_bool";
3226
yinxu0d56f3c2017-11-29 15:02:05 -08003227 /**
3228 * Determines whether any carrier has been identified and its specific config has been applied,
3229 * default to false.
yinxu0d56f3c2017-11-29 15:02:05 -08003230 */
3231 public static final String KEY_CARRIER_CONFIG_APPLIED_BOOL = "carrier_config_applied_bool";
3232
pkanwar1e96fae2018-01-03 18:41:18 -08003233 /**
3234 * Determines whether we should show a warning asking the user to check with their carrier
Sarah China912e112020-01-09 10:43:30 -08003235 * on pricing when the user enabled data roaming,
pkanwar1e96fae2018-01-03 18:41:18 -08003236 * default to false.
pkanwar1e96fae2018-01-03 18:41:18 -08003237 */
3238 public static final String KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL =
3239 "check_pricing_with_carrier_data_roaming_bool";
3240
Jordan Liub5fbb912019-07-23 15:52:08 -07003241 /**
3242 * Determines whether we should show a notification when the phone established a data
3243 * connection in roaming network, to warn users about possible roaming charges.
3244 * @hide
3245 */
3246 public static final String KEY_SHOW_DATA_CONNECTED_ROAMING_NOTIFICATION_BOOL =
3247 "show_data_connected_roaming_notification";
3248
Kitta Koutarou911f56c2017-12-01 19:19:49 +09003249 /**
Jordan Liu407b4792018-02-26 15:50:21 -08003250 * A list of 4 LTE RSRP thresholds above which a signal level is considered POOR,
3251 * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.
3252 *
3253 * Note that the min and max thresholds are fixed at -140 and -44, as explained in
3254 * TS 136.133 9.1.4 - RSRP Measurement Report Mapping.
3255 * <p>
3256 * See SignalStrength#MAX_LTE_RSRP and SignalStrength#MIN_LTE_RSRP. Any signal level outside
3257 * these boundaries is considered invalid.
Kitta Koutarou911f56c2017-12-01 19:19:49 +09003258 * @hide
3259 */
3260 public static final String KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY =
3261 "lte_rsrp_thresholds_int_array";
3262
Malcolm Chenec102212018-01-29 15:10:46 -08003263 /**
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09003264 * A list of 4 customized LTE Reference Signal Received Quality (RSRQ) thresholds.
3265 *
3266 * Reference: TS 136.133 v12.6.0 section 9.1.7 - RSRQ Measurement Report Mapping.
3267 *
3268 * 4 threshold integers must be within the boundaries [-34 dB, 3 dB], and the levels are:
3269 * "NONE: [-34, threshold1)"
3270 * "POOR: [threshold1, threshold2)"
3271 * "MODERATE: [threshold2, threshold3)"
3272 * "GOOD: [threshold3, threshold4)"
3273 * "EXCELLENT: [threshold4, 3]"
3274 *
3275 * This key is considered invalid if the format is violated. If the key is invalid or
3276 * not configured, a default value set will apply.
3277 */
3278 public static final String KEY_LTE_RSRQ_THRESHOLDS_INT_ARRAY =
3279 "lte_rsrq_thresholds_int_array";
3280
3281 /**
3282 * A list of 4 customized LTE Reference Signal Signal to Noise Ratio (RSSNR) thresholds.
3283 *
Shuo Qian6775b772020-06-11 10:32:17 -07003284 * 4 threshold integers must be within the boundaries [-20 dB, 30 dB], and the levels are:
3285 * "NONE: [-20, threshold1)"
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09003286 * "POOR: [threshold1, threshold2)"
3287 * "MODERATE: [threshold2, threshold3)"
3288 * "GOOD: [threshold3, threshold4)"
Shuo Qian6775b772020-06-11 10:32:17 -07003289 * "EXCELLENT: [threshold4, 30]"
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09003290 *
3291 * This key is considered invalid if the format is violated. If the key is invalid or
3292 * not configured, a default value set will apply.
3293 */
3294 public static final String KEY_LTE_RSSNR_THRESHOLDS_INT_ARRAY =
3295 "lte_rssnr_thresholds_int_array";
3296
3297 /**
Malcolm Chenec102212018-01-29 15:10:46 -08003298 * Decides when clients try to bind to iwlan network service, which package name will
3299 * the binding intent go to.
3300 * @hide
3301 */
Jack Yu4d21a402018-08-27 16:59:05 -07003302 public static final String KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING =
3303 "carrier_network_service_wlan_package_override_string";
Malcolm Chenec102212018-01-29 15:10:46 -08003304
3305 /**
Yatai Lin6ed1ada2019-04-09 10:24:15 +08003306 * Decides when clients try to bind to iwlan network service, which class name will
3307 * the binding intent go to.
3308 * @hide
3309 */
3310 public static final String KEY_CARRIER_NETWORK_SERVICE_WLAN_CLASS_OVERRIDE_STRING =
3311 "carrier_network_service_wlan_class_override_string";
3312
3313 /**
Malcolm Chenec102212018-01-29 15:10:46 -08003314 * Decides when clients try to bind to wwan (cellular) network service, which package name will
3315 * the binding intent go to.
3316 * @hide
3317 */
Jack Yu4d21a402018-08-27 16:59:05 -07003318 public static final String KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING =
3319 "carrier_network_service_wwan_package_override_string";
Malcolm Chenec102212018-01-29 15:10:46 -08003320
Tomita, Ryounosuke Xd41feee2017-12-13 18:46:12 +09003321 /**
Yatai Lin6ed1ada2019-04-09 10:24:15 +08003322 * Decides when clients try to bind to wwan (cellular) network service, which class name will
3323 * the binding intent go to.
3324 * @hide
3325 */
3326 public static final String KEY_CARRIER_NETWORK_SERVICE_WWAN_CLASS_OVERRIDE_STRING =
3327 "carrier_network_service_wwan_class_override_string";
3328
3329 /**
Jack Yu4d21a402018-08-27 16:59:05 -07003330 * The package name of qualified networks service that telephony binds to.
3331 *
3332 * @hide
3333 */
3334 public static final String KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_PACKAGE_OVERRIDE_STRING =
3335 "carrier_qualified_networks_service_package_override_string";
Yatai Lin6ed1ada2019-04-09 10:24:15 +08003336
3337 /**
3338 * The class name of qualified networks service that telephony binds to.
3339 *
3340 * @hide
3341 */
3342 public static final String KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_CLASS_OVERRIDE_STRING =
3343 "carrier_qualified_networks_service_class_override_string";
Jack Yu4d21a402018-08-27 16:59:05 -07003344 /**
Tomita, Ryounosuke Xd41feee2017-12-13 18:46:12 +09003345 * A list of 4 LTE RSCP thresholds above which a signal level is considered POOR,
3346 * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.
3347 *
3348 * Note that the min and max thresholds are fixed at -120 and -24, as set in 3GPP TS 27.007
3349 * section 8.69.
3350 * <p>
3351 * See SignalStrength#MAX_WCDMA_RSCP and SignalStrength#MIN_WDCMA_RSCP. Any signal level outside
3352 * these boundaries is considered invalid.
3353 * @hide
3354 */
3355 public static final String KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY =
3356 "wcdma_rscp_thresholds_int_array";
3357
3358 /**
3359 * The default measurement to use for signal strength reporting. If this is not specified, the
3360 * RSSI is used.
3361 * <p>
3362 * e.g.) To use RSCP by default, set the value to "rscp". The signal strength level will
3363 * then be determined by #KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY
3364 * <p>
Nathan Harold549c3ba2019-01-03 10:30:31 -08003365 * Currently this supports the value "rscp" and "rssi".
Tomita, Ryounosuke Xd41feee2017-12-13 18:46:12 +09003366 * @hide
3367 */
Nathan Haroldf23153f2018-11-19 18:09:40 -08003368 // FIXME: this key and related keys must not be exposed without a consistent philosophy for
3369 // all RATs.
Tomita, Ryounosuke Xd41feee2017-12-13 18:46:12 +09003370 public static final String KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING =
3371 "wcdma_default_signal_strength_measurement_string";
3372
Malcolm Chenb56234f2018-04-16 15:20:38 -07003373 /**
3374 * When a partial sms / mms message stay in raw table for too long without being completed,
3375 * we expire them and delete them from the raw table. This carrier config defines the
3376 * expiration time.
3377 * @hide
3378 */
3379 public static final String KEY_UNDELIVERED_SMS_MESSAGE_EXPIRATION_TIME =
3380 "undelivered_sms_message_expiration_time";
3381
sqianea8970c2018-06-06 22:54:04 -07003382 /**
sqian4be071a2019-03-18 14:10:53 -07003383 * Specifies a carrier-defined {@link android.telecom.CallRedirectionService} which Telecom
3384 * will bind to for outgoing calls. An empty string indicates that no carrier-defined
3385 * {@link android.telecom.CallRedirectionService} is specified.
sqianea8970c2018-06-06 22:54:04 -07003386 */
3387 public static final String KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING =
3388 "call_redirection_service_component_name_string";
Sarah China912e112020-01-09 10:43:30 -08003389
Mengjun Lengc9356222018-08-28 11:05:34 +08003390 /**
3391 * Support for the original string display of CDMA MO call.
3392 * By default, it is disabled.
3393 * @hide
3394 */
3395 public static final String KEY_CONFIG_SHOW_ORIG_DIAL_STRING_FOR_CDMA_BOOL =
3396 "config_show_orig_dial_string_for_cdma";
sqianea8970c2018-06-06 22:54:04 -07003397
Kikkawa Shohei638d11e2018-09-21 17:06:07 +09003398 /**
3399 * Flag specifying whether to show notification(call blocking disabled) when Enhanced Call
3400 * Blocking(KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL) is enabled and making emergency call.
3401 * When true, notification is shown always.
3402 * When false, notification is shown only when any setting of "Enhanced Blocked number" is
3403 * enabled.
3404 */
3405 public static final String KEY_SHOW_CALL_BLOCKING_DISABLED_NOTIFICATION_ALWAYS_BOOL =
3406 "show_call_blocking_disabled_notification_always_bool";
3407
SongFerngWang165d2d22018-07-09 21:10:26 +08003408 /**
3409 * Some carriers only support SS over UT via INTERNET PDN.
3410 * When mobile data is OFF or data roaming OFF during roaming,
3411 * UI should block the call forwarding operation and notify the user
3412 * that the function only works if data is available.
3413 * @hide
3414 */
3415 public static final String KEY_CALL_FORWARDING_OVER_UT_WARNING_BOOL =
3416 "call_forwarding_over_ut_warning_bool";
3417
3418 /**
3419 * Some carriers only support SS over UT via INTERNET PDN.
3420 * When mobile data is OFF or data roaming OFF during roaming,
3421 * UI should block the call barring operation and notify the user
3422 * that the function only works if data is available.
3423 * @hide
3424 */
3425 public static final String KEY_CALL_BARRING_OVER_UT_WARNING_BOOL =
3426 "call_barring_over_ut_warning_bool";
3427
3428 /**
3429 * Some carriers only support SS over UT via INTERNET PDN.
3430 * When mobile data is OFF or data roaming OFF during roaming,
3431 * UI should block the caller id operation and notify the user
3432 * that the function only works if data is available.
3433 * @hide
3434 */
3435 public static final String KEY_CALLER_ID_OVER_UT_WARNING_BOOL =
3436 "caller_id_over_ut_warning_bool";
3437
3438 /**
3439 * Some carriers only support SS over UT via INTERNET PDN.
3440 * When mobile data is OFF or data roaming OFF during roaming,
3441 * UI should block the call waiting operation and notify the user
3442 * that the function only works if data is available.
3443 * @hide
3444 */
3445 public static final String KEY_CALL_WAITING_OVER_UT_WARNING_BOOL =
3446 "call_waiting_over_ut_warning_bool";
3447
Youming Ye568455f2018-10-24 14:54:39 -07003448 /**
3449 * Flag indicating whether to support "Network default" option in Caller ID settings for Calling
3450 * Line Identification Restriction (CLIR).
3451 */
3452 public static final String KEY_SUPPORT_CLIR_NETWORK_DEFAULT_BOOL =
3453 "support_clir_network_default_bool";
3454
Chuck Liao3bad37e2018-10-30 11:39:56 +08003455 /**
3456 * Determines whether the carrier want to support emergency dialer shortcut.
3457 * @hide
3458 */
3459 public static final String KEY_SUPPORT_EMERGENCY_DIALER_SHORTCUT_BOOL =
3460 "support_emergency_dialer_shortcut_bool";
3461
SongFerngWangc64d9702018-10-24 11:37:13 +08003462 /**
3463 * Call forwarding uses USSD command without SS command.
3464 * When {@code true}, the call forwarding query/set by ussd command and UI only display Call
3465 * Forwarding when unanswered.
3466 * When {@code false}, don't use USSD to query/set call forwarding.
3467 * @hide
3468 */
3469 public static final String KEY_USE_CALL_FORWARDING_USSD_BOOL = "use_call_forwarding_ussd_bool";
3470
3471 /**
3472 * This flag specifies whether to support for the caller id set command by ussd.
3473 * When {@code true}, device shall sync caller id ussd result to ss command.
3474 * When {@code false}, caller id don't support ussd command.
3475 * @hide
3476 */
3477 public static final String KEY_USE_CALLER_ID_USSD_BOOL = "use_caller_id_ussd_bool";
3478
3479 /**
SongFerngWang7718c202021-03-31 22:55:50 +08003480 * Call waiting uses USSD command without SS command.
3481 * When {@code true}, the call waiting query/set by ussd command.
3482 * When {@code false}, doesn't use USSD to query/set call waiting.
3483 * @hide
3484 */
3485 public static final String KEY_USE_CALL_WAITING_USSD_BOOL = "use_call_waiting_ussd_bool";
3486
3487 /**
SongFerngWangc64d9702018-10-24 11:37:13 +08003488 * Specifies the service class for call waiting service.
3489 * Default value is
3490 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_VOICE}.
3491 * <p>
3492 * See 27.007 +CCFC or +CLCK.
3493 * The value set as below:
3494 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_NONE}
3495 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_VOICE}
3496 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_DATA}
3497 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_FAX}
3498 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_SMS}
3499 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_DATA_SYNC}
3500 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_DATA_ASYNC}
3501 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_PACKET}
3502 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_PAD}
3503 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_MAX}
3504 * @hide
3505 */
3506 public static final String KEY_CALL_WAITING_SERVICE_CLASS_INT =
3507 "call_waiting_service_class_int";
3508
Pengquan Mengdfb39562018-12-05 16:26:42 -08003509 /**
Sarah China912e112020-01-09 10:43:30 -08003510 * This configuration allows the system UI to display different 5G icons for different 5G
3511 * scenarios.
Pengquan Mengdfb39562018-12-05 16:26:42 -08003512 *
SongFerngWang52dada72019-08-14 16:59:29 +08003513 * There are five 5G scenarios:
Pengquan Mengdfb39562018-12-05 16:26:42 -08003514 * 1. connected_mmwave: device currently connected to 5G cell as the secondary cell and using
3515 * millimeter wave.
3516 * 2. connected: device currently connected to 5G cell as the secondary cell but not using
3517 * millimeter wave.
SongFerngWang52dada72019-08-14 16:59:29 +08003518 * 3. not_restricted_rrc_idle: device camped on a network that has 5G capability(not necessary
3519 * to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3520 * currently in IDLE state.
3521 * 4. not_restricted_rrc_con: device camped on a network that has 5G capability(not necessary
3522 * to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3523 * currently in CONNECTED state.
3524 * 5. restricted: device camped on a network that has 5G capability(not necessary to connect a
Pengquan Mengdfb39562018-12-05 16:26:42 -08003525 * 5G cell as a secondary cell) but the use of 5G is restricted.
3526 *
3527 * The configured string contains multiple key-value pairs separated by comma. For each pair,
Sarah China912e112020-01-09 10:43:30 -08003528 * the key and value are separated by a colon. The key corresponds to a 5G status above and
Pengquan Mengdfb39562018-12-05 16:26:42 -08003529 * the value is the icon name. Use "None" as the icon name if no icon should be shown in a
SongFerngWang52dada72019-08-14 16:59:29 +08003530 * specific 5G scenario. If the scenario is "None", config can skip this key and value.
Pengquan Mengdfb39562018-12-05 16:26:42 -08003531 *
SongFerngWangb532af62019-08-20 22:32:16 +08003532 * Icon name options: "5G_Plus", "5G".
3533 *
SongFerngWang52dada72019-08-14 16:59:29 +08003534 * Here is an example:
Sarah China912e112020-01-09 10:43:30 -08003535 * UE wants to display 5G_Plus icon for scenario#1, and 5G icon for scenario#2; otherwise not
SongFerngWang52dada72019-08-14 16:59:29 +08003536 * define.
SongFerngWangb532af62019-08-20 22:32:16 +08003537 * The configuration is: "connected_mmwave:5G_Plus,connected:5G"
Sarah Chinb800cbd2020-02-19 12:25:36 -08003538 * @hide
Pengquan Mengdfb39562018-12-05 16:26:42 -08003539 */
Sarah Chinb800cbd2020-02-19 12:25:36 -08003540 public static final String KEY_5G_ICON_CONFIGURATION_STRING = "5g_icon_configuration_string";
Pengquan Mengdfb39562018-12-05 16:26:42 -08003541
Sooraj Sasindran873252f2018-12-11 10:35:16 -08003542 /**
Sarah Chin46941d62020-04-20 21:11:40 -07003543 * This configuration allows the system UI to determine how long to continue to display 5G icons
3544 * when the device switches between different 5G scenarios.
Pengquan Meng0ac07b22019-06-26 16:56:45 -07003545 *
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003546 * There are seven 5G scenarios:
Sarah Chin46941d62020-04-20 21:11:40 -07003547 * 1. connected_mmwave: device currently connected to 5G cell as the secondary cell and using
3548 * millimeter wave.
3549 * 2. connected: device currently connected to 5G cell as the secondary cell but not using
3550 * millimeter wave.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003551 * 3. not_restricted_rrc_idle: device camped on a network that has 5G capability (not necessary
Sarah Chin46941d62020-04-20 21:11:40 -07003552 * to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3553 * currently in IDLE state.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003554 * 4. not_restricted_rrc_con: device camped on a network that has 5G capability (not necessary
Sarah Chin46941d62020-04-20 21:11:40 -07003555 * to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3556 * currently in CONNECTED state.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003557 * 5. restricted: device camped on a network that has 5G capability (not necessary to connect a
Sarah Chin46941d62020-04-20 21:11:40 -07003558 * 5G cell as a secondary cell) but the use of 5G is restricted.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003559 * 6. legacy: device is not camped on a network that has 5G capability
3560 * 7. any: any of the above scenarios
Pengquan Meng0ac07b22019-06-26 16:56:45 -07003561 *
Sarah Chin46941d62020-04-20 21:11:40 -07003562 * The configured string contains various timer rules separated by a semicolon.
3563 * Each rule will have three items: prior 5G scenario, current 5G scenario, and grace period
3564 * in seconds before changing the icon. When the 5G state changes from the prior to the current
3565 * 5G scenario, the system UI will continue to show the icon for the prior 5G scenario (defined
3566 * in {@link #KEY_5G_ICON_CONFIGURATION_STRING}) for the amount of time specified by the grace
3567 * period. If the prior 5G scenario is reestablished, the timer will reset and start again if
3568 * the UE changes 5G scenarios again. Defined states (5G scenarios #1-5) take precedence over
3569 * 'any' (5G scenario #6), and unspecified transitions have a default grace period of 0.
3570 * The order of rules in the configuration determines the priority (the first applicable timer
3571 * rule will be used).
3572 *
3573 * Here is an example: "connected_mmwave,connected,30;connected_mmwave,any,10;connected,any,10"
3574 * This configuration defines 3 timers:
3575 * 1. When UE goes from 'connected_mmwave' to 'connected', system UI will continue to display
3576 * the 5G icon for 'connected_mmwave' for 30 seconds.
3577 * 2. When UE goes from 'connected_mmwave' to any other state (except for connected, since
3578 * rule 1 would be used instead), system UI will continue to display the 5G icon for
3579 * 'connected_mmwave' for 10 seconds.
3580 * 3. When UE goes from 'connected' to any other state, system UI will continue to display the
3581 * 5G icon for 'connected' for 10 seconds.
3582 *
Sarah Chinb800cbd2020-02-19 12:25:36 -08003583 * @hide
Pengquan Meng0ac07b22019-06-26 16:56:45 -07003584 */
Sarah Chin46941d62020-04-20 21:11:40 -07003585 public static final String KEY_5G_ICON_DISPLAY_GRACE_PERIOD_STRING =
3586 "5g_icon_display_grace_period_string";
3587
3588 /**
3589 * This configuration extends {@link #KEY_5G_ICON_DISPLAY_GRACE_PERIOD_STRING} to allow the
3590 * system UI to continue displaying 5G icons after the initial timer expires.
3591 *
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003592 * There are seven 5G scenarios:
Sarah Chin46941d62020-04-20 21:11:40 -07003593 * 1. connected_mmwave: device currently connected to 5G cell as the secondary cell and using
3594 * millimeter wave.
3595 * 2. connected: device currently connected to 5G cell as the secondary cell but not using
3596 * millimeter wave.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003597 * 3. not_restricted_rrc_idle: device camped on a network that has 5G capability (not necessary
Sarah Chin46941d62020-04-20 21:11:40 -07003598 * to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3599 * currently in IDLE state.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003600 * 4. not_restricted_rrc_con: device camped on a network that has 5G capability (not necessary
Sarah Chin46941d62020-04-20 21:11:40 -07003601 * to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3602 * currently in CONNECTED state.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003603 * 5. restricted: device camped on a network that has 5G capability (not necessary to connect a
Sarah Chin46941d62020-04-20 21:11:40 -07003604 * 5G cell as a secondary cell) but the use of 5G is restricted.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003605 * 6. legacy: device is not camped on a network that has 5G capability
3606 * 7. any: any of the above scenarios
Sarah Chin46941d62020-04-20 21:11:40 -07003607 *
3608 * The configured string contains various timer rules separated by a semicolon.
3609 * Each rule will have three items: primary 5G scenario, secondary 5G scenario, and
3610 * grace period in seconds before changing the icon. When the timer for the primary 5G timer
3611 * expires, the system UI will continue to show the icon for the primary 5G scenario (defined
3612 * in {@link #KEY_5G_ICON_CONFIGURATION_STRING}) for the amount of time specified by the grace
3613 * period. If the primary 5G scenario is reestablished, the timers will reset and the system UI
3614 * will continue to display the icon for the primary 5G scenario without interruption. If the
3615 * secondary 5G scenario is lost, the timer will reset and the icon will reflect the true state.
3616 * Defined states (5G scenarios #1-5) take precedence over 'any' (5G scenario #6), and
3617 * unspecified transitions have a default grace period of 0. The order of rules in the
3618 * configuration determines the priority (the first applicable timer rule will be used).
3619 *
3620 * Here is an example: "connected,not_restricted_rrc_idle,30"
3621 * This configuration defines a secondary timer that extends the primary 'connected' timer.
3622 * When the primary 'connected' timer expires while the UE is in the 'not_restricted_rrc_idle'
3623 * 5G state, system UI will continue to display the 5G icon for 'connected' for 30 seconds.
3624 * If the 5G state returns to 'connected', the timer will be reset without change to the icon,
3625 * and if the 5G state changes to neither 'connected' not 'not_restricted_rrc_idle', the icon
3626 * will change to reflect the true state.
3627 *
3628 * @hide
3629 */
3630 public static final String KEY_5G_ICON_DISPLAY_SECONDARY_GRACE_PERIOD_STRING =
3631 "5g_icon_display_secondary_grace_period_string";
Pengquan Meng0ac07b22019-06-26 16:56:45 -07003632
3633 /**
SongFerngWang3a3af2f2020-07-07 18:10:00 +08003634 * Whether device reset all of NR timers when device camped on a network that haven't 5G
3635 * capability and RRC currently in IDLE state.
3636 *
3637 * The default value is false;
3638 *
3639 * @hide
3640 */
3641 public static final String KEY_NR_TIMERS_RESET_IF_NON_ENDC_AND_RRC_IDLE_BOOL =
3642 "nr_timers_reset_if_non_endc_and_rrc_idle_bool";
3643
3644 /**
SongFerngWangea06cec2021-04-07 23:14:46 +08003645 * A list of additional NR advanced band would map to
3646 * {@link TelephonyDisplayInfo#OVERRIDE_NETWORK_TYPE_NR_ADVANCED} when the device is on that
3647 * band.
3648 *
3649 * @hide
3650 */
3651 public static final String KEY_ADDITIONAL_NR_ADVANCED_BANDS_INT_ARRAY =
3652 "additional_nr_advanced_bands_int_array";
3653
3654 /**
SongFerngWang6c1f38e2021-05-10 22:43:14 +08003655 * This configuration allows the framework to control the NR advanced capable by protocol
3656 * configuration options(PCO).
3657 *
3658 * If this config is 0, then the nr advanced capable is enabled.
3659 * If this config is not 0 and PCO container with this config's address is 1, then the nr
3660 * advanced capable is enabled.
3661 * If this config is not 0 and PCO container with this config's address is 0, then the nr
3662 * advanced capable is disabled.
3663 *
3664 * @hide
3665 */
3666 public static final String KEY_NR_ADVANCED_CAPABLE_PCO_ID_INT =
3667 "nr_advanced_capable_pco_id_int";
3668
3669 /**
Jack Yu5e7b8532021-10-19 21:21:28 -07003670 * Enabled NR advanced (i.e. 5G+) icon while roaming. The default value is {@code true}, meaming
3671 * the same NR advanced logic used for home network will be used for roaming network as well.
3672 * Set this to {@code false} will disable NR advanced icon while the device is roaming,
3673 * regardless meeting NR advanced criteria or not.
3674 *
3675 * @hide
3676 */
3677 public static final String KEY_ENABLE_NR_ADVANCED_WHILE_ROAMING_BOOL =
3678 "enable_nr_advanced_for_roaming_bool";
3679
3680 /**
SongFerngWang7ac38072021-07-22 23:20:32 +08003681 * This configuration allows the framework to use user data communication to detect Idle state,
SongFerngWangaf6fd222021-07-03 01:06:09 +08003682 * and this is used on the 5G icon.
3683 *
3684 * There is a new way for for RRC state detection at Android 12. If
3685 * {@link android.telephony.TelephonyManager#isRadioInterfaceCapabilitySupported}(
3686 * {@link TelephonyManager#CAPABILITY_PHYSICAL_CHANNEL_CONFIG_1_6_SUPPORTED}) returns true,
3687 * then framework can use PHYSICAL_CHANNEL_CONFIG for RRC state detection. Based on this
3688 * condition, some carriers want to use the legacy behavior that way is using user data
SongFerngWang7ac38072021-07-22 23:20:32 +08003689 * communication to detect the Idle state. Therefore, this configuration allows the framework
3690 * to use user data communication to detect Idle state.
SongFerngWangaf6fd222021-07-03 01:06:09 +08003691 *
SongFerngWang7ac38072021-07-22 23:20:32 +08003692 * There are 3 situations reflects the carrier define Idle state.
3693 * 1. using PHYSICAL_CHANNEL_CONFIG to detect RRC Idle
3694 * 2. using all of data connections to detect RRC Idle.
3695 * 3. using data communication(consider internet data connection only) to detect data Idle.
3696 *
3697 * How to setup for above 3 cases?
3698 * For below part, we call the condition#1 is device support
SongFerngWangaf6fd222021-07-03 01:06:09 +08003699 * {@link android.telephony.TelephonyManager#isRadioInterfaceCapabilitySupported}(
SongFerngWang7ac38072021-07-22 23:20:32 +08003700 * {@link TelephonyManager#CAPABILITY_PHYSICAL_CHANNEL_CONFIG_1_6_SUPPORTED}).
3701 * The condition#2 is carrier enable the KEY_LTE_ENDC_USING_USER_DATA_FOR_RRC_DETECTION_BOOL.
SongFerngWangaf6fd222021-07-03 01:06:09 +08003702 *
SongFerngWang7ac38072021-07-22 23:20:32 +08003703 * For case#1, the condition#1 is true and the condition#2 is false.
3704 * For case#2, the condition#1 is false and the condition#2 is false.
3705 * For case#3, the condition#2 is true.
SongFerngWangaf6fd222021-07-03 01:06:09 +08003706 * @hide
3707 */
3708 public static final String KEY_LTE_ENDC_USING_USER_DATA_FOR_RRC_DETECTION_BOOL =
3709 "lte_endc_using_user_data_for_rrc_detection_bool";
3710
3711 /**
Sarah Chine0b991e2020-02-04 12:08:45 -08003712 * Controls time in milliseconds until DcTracker reevaluates 5G connection state.
Sarah Chinb800cbd2020-02-19 12:25:36 -08003713 * @hide
Sarah Chine0b991e2020-02-04 12:08:45 -08003714 */
Sarah Chine2642ad2020-03-19 21:13:02 -07003715 public static final String KEY_5G_WATCHDOG_TIME_MS_LONG = "5g_watchdog_time_ms_long";
Sarah Chine0b991e2020-02-04 12:08:45 -08003716
3717 /**
Sarah Chin69f721e2021-12-13 17:52:25 -08003718 * Which network types are unmetered. A string array that can contain network type names from
3719 * {@link TelephonyManager#getNetworkTypeName(int)} in addition to the following NR keys:
Sarah Chin83469632021-12-06 18:34:24 -08003720 * NR_NSA - NR NSA is unmetered for sub-6 frequencies
3721 * NR_NSA_MMWAVE - NR NSA is unmetered for mmwave frequencies
3722 * NR_SA - NR SA is unmetered for sub-6 frequencies
3723 * NR_SA_MMWAVE - NR SA is unmetered for mmwave frequencies
Sarah Chin69f721e2021-12-13 17:52:25 -08003724 *
3725 * Note that this config only applies if an unmetered SubscriptionPlan is set via
3726 * {@link SubscriptionManager#setSubscriptionPlans(int, List)} or an unmetered override is set
3727 * via {@link SubscriptionManager#setSubscriptionOverrideUnmetered(int, boolean, int[], long)}
3728 * or {@link SubscriptionManager#setSubscriptionOverrideUnmetered(int, boolean, long)}.
3729 * If neither SubscriptionPlans nor an override are set, then no network types can be unmetered
3730 * regardless of the value of this config.
Sarah Chin83469632021-12-06 18:34:24 -08003731 * TODO: remove other unmetered keys and replace with this
3732 * @hide
3733 */
3734 public static final String KEY_UNMETERED_NETWORK_TYPES_STRING_ARRAY =
3735 "unmetered_network_types_string_array";
3736
3737 /**
Sarah Chin69f721e2021-12-13 17:52:25 -08003738 * Which network types are unmetered when roaming. A string array that can contain network type
3739 * names from {@link TelephonyManager#getNetworkTypeName(int)} in addition to the following
3740 * NR keys:
3741 * NR_NSA - NR NSA is unmetered when roaming for sub-6 frequencies
3742 * NR_NSA_MMWAVE - NR NSA is unmetered when roaming for mmwave frequencies
3743 * NR_SA - NR SA is unmetered when roaming for sub-6 frequencies
3744 * NR_SA_MMWAVE - NR SA is unmetered when roaming for mmwave frequencies
3745 *
3746 * Note that this config only applies if an unmetered SubscriptionPlan is set via
3747 * {@link SubscriptionManager#setSubscriptionPlans(int, List)} or an unmetered override is set
3748 * via {@link SubscriptionManager#setSubscriptionOverrideUnmetered(int, boolean, int[], long)}
3749 * or {@link SubscriptionManager#setSubscriptionOverrideUnmetered(int, boolean, long)}.
3750 * If neither SubscriptionPlans nor an override are set, then no network types can be unmetered
3751 * when roaming regardless of the value of this config.
3752 * TODO: remove KEY_UNMETERED_NR_NSA_WHEN_ROAMING_BOOL and replace with this
3753 * @hide
3754 */
3755 public static final String KEY_ROAMING_UNMETERED_NETWORK_TYPES_STRING_ARRAY =
3756 "roaming_unmetered_network_types_string_array";
3757
3758 /**
Sarah Chine0b991e2020-02-04 12:08:45 -08003759 * Whether NR (non-standalone) should be unmetered for all frequencies.
3760 * If either {@link #KEY_UNMETERED_NR_NSA_MMWAVE_BOOL} or
3761 * {@link #KEY_UNMETERED_NR_NSA_SUB6_BOOL} are true, then this value will be ignored.
3762 * @hide
3763 */
3764 public static final String KEY_UNMETERED_NR_NSA_BOOL = "unmetered_nr_nsa_bool";
3765
3766 /**
3767 * Whether NR (non-standalone) frequencies above 6GHz (millimeter wave) should be unmetered.
3768 * If this is true, then the value for {@link #KEY_UNMETERED_NR_NSA_BOOL} will be ignored.
3769 * @hide
3770 */
3771 public static final String KEY_UNMETERED_NR_NSA_MMWAVE_BOOL = "unmetered_nr_nsa_mmwave_bool";
3772
3773 /**
3774 * Whether NR (non-standalone) frequencies below 6GHz (sub6) should be unmetered.
3775 * If this is true, then the value for {@link #KEY_UNMETERED_NR_NSA_BOOL} will be ignored.
3776 * @hide
3777 */
3778 public static final String KEY_UNMETERED_NR_NSA_SUB6_BOOL = "unmetered_nr_nsa_sub6_bool";
3779
3780 /**
Sarah Chindc310312020-04-01 10:59:34 -07003781 * Whether NR (non-standalone) should be unmetered when the device is roaming.
3782 * If false, then the values for {@link #KEY_UNMETERED_NR_NSA_BOOL},
3783 * {@link #KEY_UNMETERED_NR_NSA_MMWAVE_BOOL}, {@link #KEY_UNMETERED_NR_NSA_SUB6_BOOL},
3784 * and unmetered {@link SubscriptionPlan} will be ignored.
3785 * @hide
3786 */
3787 public static final String KEY_UNMETERED_NR_NSA_WHEN_ROAMING_BOOL =
3788 "unmetered_nr_nsa_when_roaming_bool";
3789
3790 /**
Sarah Chin5956f302020-04-09 10:33:28 -07003791 * Whether NR (standalone) should be unmetered for all frequencies.
3792 * If either {@link #KEY_UNMETERED_NR_SA_MMWAVE_BOOL} or
3793 * {@link #KEY_UNMETERED_NR_SA_SUB6_BOOL} are true, then this value will be ignored.
3794 * @hide
3795 */
3796 public static final String KEY_UNMETERED_NR_SA_BOOL = "unmetered_nr_sa_bool";
3797
3798 /**
3799 * Whether NR (standalone) frequencies above 6GHz (millimeter wave) should be unmetered.
3800 * If this is true, then the value for {@link #KEY_UNMETERED_NR_SA_BOOL} will be ignored.
3801 * @hide
3802 */
3803 public static final String KEY_UNMETERED_NR_SA_MMWAVE_BOOL = "unmetered_nr_sa_mmwave_bool";
3804
3805 /**
3806 * Whether NR (standalone) frequencies below 6GHz (sub6) should be unmetered.
3807 * If this is true, then the value for {@link #KEY_UNMETERED_NR_SA_BOOL} will be ignored.
3808 * @hide
3809 */
3810 public static final String KEY_UNMETERED_NR_SA_SUB6_BOOL = "unmetered_nr_sa_sub6_bool";
3811
3812 /**
Sukanya Rajkhowa6de48e42018-08-20 16:35:36 +08003813 * Support ASCII 7-BIT encoding for long SMS. This carrier config is used to enable
3814 * this feature.
3815 * @hide
3816 */
3817 public static final String KEY_ASCII_7_BIT_SUPPORT_FOR_LONG_MESSAGE_BOOL =
3818 "ascii_7_bit_support_for_long_message_bool";
3819
3820 /**
Nishizawa Nobuhiro4583ccb2020-01-30 18:01:36 +09003821 * Controls whether to show wifi calling icon in statusbar when wifi calling is available.
3822 * @hide
3823 */
3824 public static final String KEY_SHOW_WIFI_CALLING_ICON_IN_STATUS_BAR_BOOL =
3825 "show_wifi_calling_icon_in_status_bar_bool";
3826
3827 /**
Avinash Malipatila27b8d1a2021-10-27 03:30:18 +00003828 * Configuration to indicate that the carrier supports opportunistic data
3829 * auto provisioning. Based on this flag, the device downloads and activates
3830 * corresponding opportunistic profile.
3831 */
3832 public static final String KEY_CARRIER_SUPPORTS_OPP_DATA_AUTO_PROVISIONING_BOOL =
3833 "carrier_supports_opp_data_auto_provisioning_bool";
3834
3835 /**
3836 * SMDP+ server address for downloading opportunistic eSIM profile.
3837 * FQDN (Fully Qualified Domain Name) of the SM-DP+ (e.g., smdp.gsma.com) restricted to the
Avinash Malipatilc179ec32022-02-03 17:37:58 +00003838 * Alphanumeric mode character set defined in table 5 of ISO/IEC 18004 excluding '$'.
Avinash Malipatila27b8d1a2021-10-27 03:30:18 +00003839 */
3840 public static final String KEY_SMDP_SERVER_ADDRESS_STRING =
3841 "smdp_server_address_string";
3842
3843 /**
3844 * This timer value is used in the eSIM Exponential Backoff download retry algorithm.
3845 * Value should be in seconds.
3846 * <OL>
3847 * <LI>When the first download failure occurs, retry download after BACKOFF_TIMER_VALUE
3848 * seconds.</LI>
3849 *
3850 * <LI>If download fails again then, retry after either BACKOFF_TIMER_VALUE,
3851 * 2xBACKOFF_TIMER_VALUE, or 3xBACKOFF_TIMER_VALUE seconds.</LI>
3852 *
3853 * <LI>In general after the cth failed attempt, retry after k * BACKOFF_TIMER_VALUE
3854 * seconds, where k is a random integer between 1 and 2^c − 1. Max c value is
3855 * {@link #KEY_ESIM_MAX_DOWNLOAD_RETRY_ATTEMPTS_INT}</LI>
3856 * </OL>
3857 */
3858 public static final String KEY_ESIM_DOWNLOAD_RETRY_BACKOFF_TIMER_SEC_INT =
3859 "esim_download_retry_backoff_timer_sec_int";
3860
3861 /**
3862 * If eSIM profile download fails then, the number of retry attempts by UE
3863 * will be based on this configuration. If download still fails even after the
3864 * MAX attempts configured by this item then the retry is postponed until next
3865 * device bootup.
3866 */
3867 public static final String KEY_ESIM_MAX_DOWNLOAD_RETRY_ATTEMPTS_INT =
3868 "esim_max_download_retry_attempts_int";
3869
3870 /**
Avinash Malipatilf63c1fd2021-12-07 08:01:03 +00003871 * List of opportunistic carrier-ids associated with CBRS Primary SIM. When CBRS pSIM is
3872 * inserted, opportunistic eSIM is download and this configuration is used for grouping pSIM
3873 * and opportunistic eSIM. Also when a new CBRS pSIM is inserted, old opportunistic eSIMs are
3874 * deleted using the carrier-ids in this configuration.
3875 *
3876 * @hide
3877 */
3878 public static final String KEY_OPPORTUNISTIC_CARRIER_IDS_INT_ARRAY =
3879 "opportunistic_carrier_ids_int_array";
3880
3881 /**
Avinash Malipatilc179ec32022-02-03 17:37:58 +00003882 * Boolean configuration to control auto provisioning eSIM download in
3883 * OpportunisticNetworkService using only WiFi or both WiFi/Data.
3884 * True will download esim only via WiFi.
3885 * False will use both WiFi and Data connection.
3886 *
3887 * @hide
3888 */
3889 public static final String KEY_OPPORTUNISTIC_ESIM_DOWNLOAD_VIA_WIFI_ONLY_BOOL =
3890 "opportunistic_esim_download_via_wifi_only_bool";
3891
Jack Nudelman35d62382022-02-28 14:48:46 -08003892/**
3893 * Controls RSRP threshold, in dBm, at which OpportunisticNetworkService will decide whether
Sooraj Sasindran873252f2018-12-11 10:35:16 -08003894 * the opportunistic network is good enough for internet data.
Jack Nudelman35d62382022-02-28 14:48:46 -08003895 *
3896 * <p>The value of {@link CellSignalStrengthLte#getRsrp()} will be compared with this
3897 * threshold.
Sooraj Sasindran873252f2018-12-11 10:35:16 -08003898 */
3899 public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSRP_INT =
3900 "opportunistic_network_entry_threshold_rsrp_int";
3901
3902 /**
Jack Nudelman35d62382022-02-28 14:48:46 -08003903 * Controls RSSNR threshold, in dB, at which OpportunisticNetworkService will
3904 * decide whether the opportunistic network is good enough for internet data.
3905 *
3906 * <p>The value of {@link CellSignalStrengthLte#getRssnr()} will be compared with this
3907 * threshold.
Sooraj Sasindran873252f2018-12-11 10:35:16 -08003908 */
3909 public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSSNR_INT =
3910 "opportunistic_network_entry_threshold_rssnr_int";
3911
3912 /**
Jack Nudelman35d62382022-02-28 14:48:46 -08003913 * Controls RSRP threshold, in dBm, below which OpportunisticNetworkService will decide whether
Sooraj Sasindran873252f2018-12-11 10:35:16 -08003914 * the opportunistic network available is not good enough for internet data.
Jack Nudelman35d62382022-02-28 14:48:46 -08003915 *
3916 * <p>The value of {@link CellSignalStrengthLte#getRsrp()} will be compared with this
3917 * threshold.
Sooraj Sasindran873252f2018-12-11 10:35:16 -08003918 */
3919 public static final String KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT =
3920 "opportunistic_network_exit_threshold_rsrp_int";
3921
3922 /**
Jack Nudelman35d62382022-02-28 14:48:46 -08003923 * Controls RSSNR threshold, in dB, below which OpportunisticNetworkService will
3924 * decide whether the opportunistic network available is not good enough for internet data.
3925 *
3926 * <p>The value of {@link CellSignalStrengthLte#getRssnr()} will be compared with this
3927 * threshold.
Sooraj Sasindran873252f2018-12-11 10:35:16 -08003928 */
3929 public static final String KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT =
3930 "opportunistic_network_exit_threshold_rssnr_int";
3931
Meng Wang19b214d2018-11-07 12:14:39 -08003932 /**
Sooraj Sasindran73710f82019-01-09 11:09:22 -08003933 * Controls bandwidth threshold in Kbps at which OpportunisticNetworkService will decide whether
3934 * the opportunistic network is good enough for internet data.
3935 */
3936 public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_BANDWIDTH_INT =
3937 "opportunistic_network_entry_threshold_bandwidth_int";
3938
3939 /**
3940 * Controls hysteresis time in milli seconds for which OpportunisticNetworkService
3941 * will wait before attaching to a network.
3942 */
3943 public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_OR_EXIT_HYSTERESIS_TIME_LONG =
3944 "opportunistic_network_entry_or_exit_hysteresis_time_long";
3945
3946 /**
3947 * Controls hysteresis time in milli seconds for which OpportunisticNetworkService
Sooraj Sasindran9f80e4b2019-08-01 13:52:32 -07003948 * will wait before switching data to an opportunistic network.
Sooraj Sasindran73710f82019-01-09 11:09:22 -08003949 */
3950 public static final String KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG =
3951 "opportunistic_network_data_switch_hysteresis_time_long";
3952
3953 /**
Sooraj Sasindran9f80e4b2019-08-01 13:52:32 -07003954 * Controls hysteresis time in milli seconds for which OpportunisticNetworkService
3955 * will wait before switching data from opportunistic network to primary network.
Sooraj Sasindran9f80e4b2019-08-01 13:52:32 -07003956 */
3957 public static final String KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG =
3958 "opportunistic_network_data_switch_exit_hysteresis_time_long";
3959
3960 /**
Sooraj Sasindran75c09602019-09-13 10:40:32 -07003961 * Controls whether to do ping test before switching data to opportunistic network.
3962 * This carrier config is used to disable this feature.
Sooraj Sasindran75c09602019-09-13 10:40:32 -07003963 */
3964 public static final String KEY_PING_TEST_BEFORE_DATA_SWITCH_BOOL =
3965 "ping_test_before_data_switch_bool";
3966
3967 /**
Sooraj Sasindran8c04a5a2019-11-04 13:07:23 -08003968 * Controls whether to switch data to primary from opportunistic subscription
3969 * if primary is out of service. This control only affects system or 1st party app
3970 * initiated data switch, but will not override data switch initiated by privileged carrier apps
3971 * This carrier config is used to disable this feature.
Sooraj Sasindran8c04a5a2019-11-04 13:07:23 -08003972 */
3973 public static final String KEY_SWITCH_DATA_TO_PRIMARY_IF_PRIMARY_IS_OOS_BOOL =
3974 "switch_data_to_primary_if_primary_is_oos_bool";
3975
3976 /**
Sooraj Sasindran74891f22019-11-19 10:23:22 -08003977 * Controls the ping pong determination of opportunistic network.
3978 * If opportunistic network is determined as out of service or below
3979 * #KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT or
3980 * #KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT within
3981 * #KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG of switching to opportunistic network,
3982 * it will be determined as ping pong situation by system app or 1st party app.
Sooraj Sasindran74891f22019-11-19 10:23:22 -08003983 */
3984 public static final String KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG =
3985 "opportunistic_network_ping_pong_time_long";
3986 /**
Sooraj Sasindran8c04a5a2019-11-04 13:07:23 -08003987 * Controls back off time in milli seconds for switching back to
3988 * opportunistic subscription. This time will be added to
3989 * {@link CarrierConfigManager#KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG} to
Sooraj Sasindran74891f22019-11-19 10:23:22 -08003990 * determine hysteresis time if there is ping pong situation
Sooraj Sasindran8c04a5a2019-11-04 13:07:23 -08003991 * (determined by system app or 1st party app) between primary and opportunistic
Sooraj Sasindran74891f22019-11-19 10:23:22 -08003992 * subscription. Ping ping situation is defined in
3993 * #KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG.
3994 * If ping pong situation continuous #KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG
3995 * will be added to previously determined hysteresis time.
Sooraj Sasindran8c04a5a2019-11-04 13:07:23 -08003996 */
3997 public static final String KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG =
3998 "opportunistic_network_backoff_time_long";
Sarah Chin92860a702019-08-19 18:08:21 -07003999
4000 /**
Sooraj Sasindran74891f22019-11-19 10:23:22 -08004001 * Controls the max back off time in milli seconds for switching back to
4002 * opportunistic subscription.
4003 * This time will be the max hysteresis that can be determined irrespective of there is
4004 * continuous ping pong situation or not as described in
4005 * #KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG and
4006 * #KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG.
Sooraj Sasindran74891f22019-11-19 10:23:22 -08004007 */
4008 public static final String KEY_OPPORTUNISTIC_NETWORK_MAX_BACKOFF_TIME_LONG =
4009 "opportunistic_network_max_backoff_time_long";
4010
Meng Wang84b8cd12022-01-22 01:02:27 +00004011 /** @hide */
4012 public static class OpportunisticNetwork {
4013 /**
4014 * Prefix of all {@code OpportunisticNetwork.KEY_*} constants.
4015 *
4016 * @hide
4017 */
4018 public static final String PREFIX = "opportunistic.";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004019
Meng Wang84b8cd12022-01-22 01:02:27 +00004020 /**
4021 * Controls SS-RSRP threshold in dBm at which 5G opportunistic network will be considered
4022 * good enough for internet data. Note other factors may be considered for the final
4023 * decision.
4024 *
Jack Nudelman35d62382022-02-28 14:48:46 -08004025 * <p>The value of {@link CellSignalStrengthNr#getSsRsrp()} will be compared with this
Meng Wang84b8cd12022-01-22 01:02:27 +00004026 * threshold.
4027 *
4028 * @hide
4029 */
4030 public static final String KEY_ENTRY_THRESHOLD_SS_RSRP_INT =
4031 PREFIX + "entry_threshold_ss_rsrp_int";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004032
Meng Wang84b8cd12022-01-22 01:02:27 +00004033 /**
4034 * Similar to {@link #KEY_ENTRY_THRESHOLD_SS_RSRP_INT} but supports different
4035 * thresholds for different 5G bands. For bands not specified here, the threshold
4036 * will be {@link #KEY_ENTRY_THRESHOLD_SS_RSRP_INT}.
4037 *
4038 * <p>For each key-value in the bundle: the key is the band number in string, which
4039 * shall be a decimal integer as defined in {@code NgranBands.BAND_*} constants;
4040 * the value is the threshold in int.
4041 *
4042 * @hide
4043 */
4044 public static final String KEY_ENTRY_THRESHOLD_SS_RSRP_INT_BUNDLE =
4045 PREFIX + "entry_threshold_ss_rsrp_int_bundle";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004046
Meng Wang84b8cd12022-01-22 01:02:27 +00004047 /**
4048 * Controls SS-RSRQ threshold in dB at which 5G opportunistic network will be considered
4049 * good enough for internet data. Note other factors may be considered for the final
4050 * decision.
4051 *
Jack Nudelman35d62382022-02-28 14:48:46 -08004052 * <p>The value of {@link CellSignalStrengthNr#getSsRsrq()} will be compared with this
Meng Wang84b8cd12022-01-22 01:02:27 +00004053 * threshold.
4054 *
4055 * @hide
4056 */
4057 public static final String KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE =
4058 PREFIX + "entry_threshold_ss_rsrq_double";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004059
Meng Wang84b8cd12022-01-22 01:02:27 +00004060 /**
4061 * Similar to {@link #KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE} but supports different
4062 * thresholds for different 5G bands. For bands not specified here, the threshold
4063 * will be {@link #KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE}.
4064 *
4065 * <p>For each key-value in the bundle: the key is the band number in string, which
4066 * shall be a decimal integer as defined in {@code NgranBands.BAND_*} constants;
4067 * the value is the threshold in double.
4068 *
4069 * @hide
4070 */
4071 public static final String KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE_BUNDLE =
4072 PREFIX + "entry_threshold_ss_rsrq_double_bundle";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004073
Meng Wang84b8cd12022-01-22 01:02:27 +00004074 /**
4075 * Controls SS-RSRP threshold in dBm below which 5G opportunistic network available will not
4076 * be considered good enough for internet data. Note other factors may be considered
4077 * for the final decision.
4078 *
Jack Nudelman35d62382022-02-28 14:48:46 -08004079 * <p>The value of {@link CellSignalStrengthNr#getSsRsrp()} will be compared with this
4080 * threshold.
4081 *
Meng Wang84b8cd12022-01-22 01:02:27 +00004082 * @hide
4083 */
4084 public static final String KEY_EXIT_THRESHOLD_SS_RSRP_INT =
4085 PREFIX + "exit_threshold_ss_rsrp_int";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004086
Meng Wang84b8cd12022-01-22 01:02:27 +00004087 /**
4088 * Similar to {@link #KEY_EXIT_THRESHOLD_SS_RSRP_INT} but supports different
4089 * thresholds for different 5G bands. For bands not specified here, the threshold
4090 * will be {@link #KEY_EXIT_THRESHOLD_SS_RSRP_INT}.
4091 *
4092 * <p>The syntax of its value is similar to
4093 * {@link #KEY_ENTRY_THRESHOLD_SS_RSRP_INT_BUNDLE}.
4094 *
4095 * @hide
4096 */
4097 public static final String KEY_EXIT_THRESHOLD_SS_RSRP_INT_BUNDLE =
4098 PREFIX + "exit_threshold_ss_rsrp_int_bundle";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004099
Meng Wang84b8cd12022-01-22 01:02:27 +00004100 /**
4101 * Controls SS-RSRQ threshold in dB below which 5G opportunistic network available will not
4102 * be considered good enough for internet data. Note other factors may be considered
4103 * for the final decision.
4104 *
Jack Nudelman35d62382022-02-28 14:48:46 -08004105 * <p>The value of {@link CellSignalStrengthNr#getSsRsrq()} will be compared with this
4106 * threshold.
4107 *
Meng Wang84b8cd12022-01-22 01:02:27 +00004108 * @hide
4109 */
4110 public static final String KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE =
4111 PREFIX + "exit_threshold_ss_rsrq_double";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004112
Meng Wang84b8cd12022-01-22 01:02:27 +00004113 /**
4114 * Similar to {@link #KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE} but supports different
4115 * thresholds for different 5G bands. For bands not specified here, the threshold
4116 * will be {@link #KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE}.
4117 *
4118 * <p>The syntax of its value is similar to
4119 * {@link #KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE_BUNDLE}.
4120 *
4121 * @hide
4122 */
4123 public static final String KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE_BUNDLE =
4124 PREFIX + "exit_threshold_ss_rsrq_double_bundle";
4125
4126 /**
4127 * Controls hysteresis time in milliseconds for which will be waited before switching
4128 * data to a 5G opportunistic network.
4129 *
4130 * @hide
4131 */
4132 public static final String KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG =
4133 PREFIX + "5g_data_switch_hysteresis_time_long";
4134
4135 /**
4136 * Similar to {@link #KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG} but supports
4137 * different values for different 5G bands. For bands not specified here, the threshold
4138 * will be {@link #KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG}.
4139 *
4140 * <p>For each key-value in the bundle: the key is the band number in string, which
4141 * shall be a decimal integer as defined in {@code NgranBands.BAND_*} constants;
4142 * the value is the time in long.
4143 *
4144 * @hide
4145 */
4146 public static final String KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG_BUNDLE =
4147 PREFIX + "5g_data_switch_hysteresis_time_long_bundle";
4148
4149 /**
4150 * Controls hysteresis time in milliseconds for which will be waited before switching from
4151 * 5G opportunistic network to primary network.
4152 *
4153 * @hide
4154 */
4155 public static final String KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG =
4156 PREFIX + "5g_data_switch_exit_hysteresis_time_long";
4157
4158 /**
4159 * Similar to {@link #KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG} but supports
4160 * different values for different 5G bands. For bands not specified here, the threshold
4161 * will be {@link #KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG}.
4162 *
4163 * <p>The syntax is similar to
4164 * {@link KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG_BUNDLE}.
4165 *
4166 * @hide
4167 */
4168 public static final String KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG_BUNDLE =
4169 PREFIX + "5g_data_switch_exit_hysteresis_time_long_bundle";
4170
4171 /**
4172 * Controls back off time in milliseconds for switching back to
4173 * 5G opportunistic subscription. This time will be added to
4174 * {@link #KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG} to
4175 * determine hysteresis time if there is ping pong situation
4176 * (determined by system app or 1st party app) between primary and 5G opportunistic
4177 * subscription. Ping ping situation is defined in
4178 * {@link #KEY_5G_PING_PONG_TIME_LONG}.
4179 * If ping pong situation continuous {@link #KEY_5G_NETWORK_BACKOFF_TIME_LONG}
4180 * will be added to previously determined hysteresis time.
4181 *
4182 * @hide
4183 */
4184 public static final String KEY_5G_BACKOFF_TIME_LONG =
4185 PREFIX + "5g_backoff_time_long";
4186
4187 /**
4188 * Controls the max back off time in milliseconds for switching back to
4189 * 5G opportunistic subscription.
4190 * This time will be the max hysteresis that can be determined irrespective of there is
4191 * continuous ping pong situation or not as described in
4192 * {@link #KEY_5G_PING_PONG_TIME_LONG} and
4193 * {@link #KEY_5G_BACKOFF_TIME_LONG}.
4194 *
4195 * @hide
4196 */
4197 public static final String KEY_5G_MAX_BACKOFF_TIME_LONG =
4198 PREFIX + "5g_max_backoff_time_long";
4199
4200 /**
4201 * Controls the ping pong determination of 5G opportunistic network.
4202 * If opportunistic network is determined as out of service or below
4203 * {@link #KEY_EXIT_THRESHOLD_SS_RSRP_INT} or
4204 * {@link #KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE} within
4205 * {@link #KEY_5G_PING_PONG_TIME_LONG} of switching to opportunistic network,
4206 * it will be determined as ping pong situation by system app or 1st party app.
4207 *
4208 * @hide
4209 */
4210 public static final String KEY_5G_PING_PONG_TIME_LONG =
4211 PREFIX + "5g_ping_pong_time_long";
4212
4213 private static PersistableBundle getDefaults() {
4214 PersistableBundle defaults = new PersistableBundle();
4215 // Default value is -111 dBm for all bands.
4216 sDefaults.putInt(KEY_ENTRY_THRESHOLD_SS_RSRP_INT, -111);
4217 sDefaults.putPersistableBundle(KEY_ENTRY_THRESHOLD_SS_RSRP_INT_BUNDLE,
4218 PersistableBundle.EMPTY);
4219 // Default value is -18.5 dB for all bands.
4220 sDefaults.putDouble(KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE, -18.5);
4221 sDefaults.putPersistableBundle(
4222 KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE_BUNDLE,
4223 PersistableBundle.EMPTY);
4224 // Default value is -120 dBm for all bands.
4225 sDefaults.putInt(KEY_EXIT_THRESHOLD_SS_RSRP_INT, -120);
4226 sDefaults.putPersistableBundle(KEY_EXIT_THRESHOLD_SS_RSRP_INT_BUNDLE,
4227 PersistableBundle.EMPTY);
4228 // Default value is -18.5 dB for all bands.
4229 sDefaults.putDouble(KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE, -18.5);
4230 sDefaults.putPersistableBundle(
4231 KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE_BUNDLE,
4232 PersistableBundle.EMPTY);
4233 // Default value is 2 seconds for all bands.
4234 defaults.putLong(KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG, 2000);
4235 defaults.putPersistableBundle(
4236 KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG_BUNDLE,
4237 PersistableBundle.EMPTY);
4238 // Default value is 2 seconds for all bands.
4239 defaults.putLong(KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG, 2000);
4240 defaults.putPersistableBundle(
4241 KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG_BUNDLE,
4242 PersistableBundle.EMPTY);
4243 // Default value is 10 seconds.
4244 sDefaults.putLong(KEY_5G_BACKOFF_TIME_LONG, 10000);
4245 // Default value is 60 seconds.
4246 sDefaults.putLong(KEY_5G_MAX_BACKOFF_TIME_LONG, 60000);
4247 // Default value is 60 seconds.
4248 sDefaults.putLong(KEY_5G_PING_PONG_TIME_LONG, 60000);
4249 return defaults;
4250 }
4251 }
4252
Jack Nudelman0cd98972021-07-01 06:40:52 -07004253 /**
4254 * Controls whether 4G opportunistic networks should be scanned for possible data switch.
4255 *
4256 * @hide
4257 */
4258 public static final String KEY_ENABLE_4G_OPPORTUNISTIC_NETWORK_SCAN_BOOL =
4259 "enabled_4g_opportunistic_network_scan_bool";
4260
Jack Nudelmanda76b832021-10-07 14:20:55 -07004261 /**
4262 * Only relevant when the device supports opportunistic networks but does not support
4263 * simultaneuous 5G+5G. Controls how long, in milliseconds, to wait before opportunistic network
4264 * goes out of service before switching the 5G capability back to primary stack. The idea of
4265 * waiting a few seconds is to minimize the calling of the expensive capability switching
4266 * operation in the case where CBRS goes back into service shortly after going out of it.
4267 *
4268 * @hide
4269 */
4270 public static final String KEY_TIME_TO_SWITCH_BACK_TO_PRIMARY_IF_OPPORTUNISTIC_OOS_LONG =
4271 "time_to_switch_back_to_primary_if_opportunistic_oos_long";
4272
4273 /**
4274 * Only relevant when the device supports opportunistic networks but does not support
4275 * simultaneuous 5G+5G. Controls how long, in milliseconds, after 5G capability has switched back
4276 * to primary stack due to opportunistic network being OOS. The idea is to minimizing the
4277 * 'ping-ponging' effect where device is constantly witching capability back and forth between
4278 * primary and opportunistic stack.
4279 *
4280 * @hide
4281 */
4282 public static final String KEY_OPPORTUNISTIC_TIME_TO_SCAN_AFTER_CAPABILITY_SWITCH_TO_PRIMARY_LONG
4283 = "opportunistic_time_to_scan_after_capability_switch_to_primary_long";
4284
Jack Nudelman0cd98972021-07-01 06:40:52 -07004285 /**
sqian69f48c52019-02-15 16:19:36 -08004286 * Indicates zero or more emergency number prefix(es), because some carrier requires
4287 * if users dial an emergency number address with a specific prefix, the combination of the
4288 * prefix and the address is also a valid emergency number to dial. For example, an emergency
4289 * number prefix is 318, and the emergency number is 911. Both 318911 and 911 can be dialed by
4290 * users for emergency call. An empty array of string indicates that current carrier does not
4291 * have this requirement.
4292 */
4293 public static final String KEY_EMERGENCY_NUMBER_PREFIX_STRING_ARRAY =
4294 "emergency_number_prefix_string_array";
4295
4296 /**
Shuo Qiand4dd13c2021-05-07 01:48:14 -07004297 * Indicates whether carrier treats "*67" or "*82" as a temporary mode CLIR.
4298 * @hide
4299 */
4300 public static final String KEY_CARRIER_SUPPORTS_CALLER_ID_VERTICAL_SERVICE_CODES_BOOL =
4301 "carrier_supports_caller_id_vertical_service_codes_bool";
4302
4303 /**
Bonian Chen612e6a92019-03-26 01:49:39 +08004304 * Smart forwarding config. Smart forwarding is a feature to configure call forwarding to a
4305 * different SIM in the device when one SIM is not reachable. The config here specifies a smart
4306 * forwarding component that will launch UI for changing the configuration. An empty string
4307 * indicates that no smart forwarding component is specified.
4308 *
4309 * Currently, only one non-empty configuration of smart forwarding component within system will
4310 * be used when multiple SIMs are inserted.
4311 *
4312 * Empty string by default.
4313 *
4314 * @hide
4315 */
4316 public static final String KEY_SMART_FORWARDING_CONFIG_COMPONENT_NAME_STRING =
4317 "smart_forwarding_config_component_name_string";
4318
4319 /**
Malcolm Chen50ba9632019-02-26 16:49:56 -08004320 * Indicates when a carrier has a primary subscription and an opportunistic subscription active,
4321 * and when Internet data is switched to opportunistic network, whether to still show
4322 * signal bar of primary network. By default it will be false, meaning whenever data
4323 * is going over opportunistic network, signal bar will reflect signal strength and rat
4324 * icon of that network.
Malcolm Chen50ba9632019-02-26 16:49:56 -08004325 */
4326 public static final String KEY_ALWAYS_SHOW_PRIMARY_SIGNAL_BAR_IN_OPPORTUNISTIC_NETWORK_BOOLEAN =
4327 "always_show_primary_signal_bar_in_opportunistic_network_boolean";
4328
4329 /**
Malcolm Chen58f8d0f2019-10-31 15:06:19 -07004330 * Upon data switching between subscriptions within a carrier group, if switch depends on
4331 * validation result, this value defines customized value of how long we wait for validation
4332 * success before we fail and revoke the switch.
4333 * Time out is in milliseconds.
Malcolm Chen58f8d0f2019-10-31 15:06:19 -07004334 */
4335 public static final String KEY_DATA_SWITCH_VALIDATION_TIMEOUT_LONG =
4336 "data_switch_validation_timeout_long";
4337
4338 /**
Hai Shalom0a5b2072019-12-26 16:17:00 -08004339 * Specifies whether the system should prefix the EAP method to the anonymous identity.
4340 * The following prefix will be added if this key is set to TRUE:
4341 * EAP-AKA: "0"
4342 * EAP-SIM: "1"
4343 * EAP-AKA_PRIME: "6"
Hai Shalom0a5b2072019-12-26 16:17:00 -08004344 */
4345 public static final String ENABLE_EAP_METHOD_PREFIX_BOOL = "enable_eap_method_prefix_bool";
4346
Hall Liuab470f72021-03-10 18:02:47 -08004347 /**
4348 * Indicates that GBA_ME should be used for GBA authentication, as defined in 3GPP TS 33.220.
4349 * @hide
4350 */
4351 @SystemApi
4352 public static final int GBA_ME = 1;
4353
4354 /**
4355 * Indicates that GBA_U should be used for GBA authentication, as defined in 3GPP TS 33.220.
4356 * @hide
4357 */
4358 @SystemApi
4359 public static final int GBA_U = 2;
4360
4361 /**
4362 * Indicates that GBA_Digest should be used for GBA authentication, as defined
4363 * in 3GPP TS 33.220.
4364 * @hide
4365 */
4366 @SystemApi
4367 public static final int GBA_DIGEST = 3;
4368
4369 /**
4370 * An integer representing the GBA mode to use for requesting credentials
4371 * via {@link TelephonyManager#bootstrapAuthenticationRequest}.
4372 *
4373 * One of {@link #GBA_ME}, {@link #GBA_U}, or {@link #GBA_DIGEST}.
4374 * @hide
4375 */
4376 @SystemApi
4377 public static final String KEY_GBA_MODE_INT = "gba_mode_int";
4378
4379 /**
4380 * An integer representing the organization code to be used when building the
4381 * {@link UaSecurityProtocolIdentifier} used when requesting GBA authentication.
4382 *
4383 * See the {@code ORG_} constants in {@link UaSecurityProtocolIdentifier}.
4384 * @hide
4385 */
4386 @SystemApi
4387 public static final String KEY_GBA_UA_SECURITY_ORGANIZATION_INT =
4388 "gba_ua_security_organization_int";
4389
4390 /**
4391 * An integer representing the security protocol to be used when building the
4392 * {@link UaSecurityProtocolIdentifier} used when requesting GBA authentication.
4393 *
4394 * See the {@code UA_SECURITY_PROTOCOL_} constants in {@link UaSecurityProtocolIdentifier}.
4395 * @hide
4396 */
4397 @SystemApi
4398 public static final String KEY_GBA_UA_SECURITY_PROTOCOL_INT =
4399 "gba_ua_security_protocol_int";
4400
4401 /**
4402 * An integer representing the cipher suite to be used when building the
4403 * {@link UaSecurityProtocolIdentifier} used when requesting GBA authentication.
4404 *
4405 * See the {@code TLS_} constants in {@link android.telephony.gba.TlsParams}.
4406 * @hide
4407 */
4408 @SystemApi
4409 public static final String KEY_GBA_UA_TLS_CIPHER_SUITE_INT =
4410 "gba_ua_tls_cipher_suite_int";
danielwbhuange600a8e2021-01-08 14:49:18 +08004411
4412 /**
Willy Hua7846ec2021-12-22 02:52:06 +08004413 * The data stall recovery timers array in milliseconds, each element is the delay before
4414 * performining next recovery action.
4415 *
Willy Huc20021e2022-03-18 17:09:17 +08004416 * The default value of timers array are: [180000ms, 180000ms, 180000ms, 180000ms] (3 minutes)
Willy Hua7846ec2021-12-22 02:52:06 +08004417 * Array[0]: It's the timer between RECOVERY_ACTION GET_DATA_CALL_LIST and CLEANUP, if data
4418 * stall symptom still occurred, it will perform next recovery action after 180000ms.
Willy Huc20021e2022-03-18 17:09:17 +08004419 * Array[1]: It's the timer between RECOVERY_ACTION CLEANUP and RE-REGISTER, if data stall
Willy Hua7846ec2021-12-22 02:52:06 +08004420 * symptom still occurred, it will perform next recovery action after 180000ms.
Willy Huc20021e2022-03-18 17:09:17 +08004421 * Array[2]: It's the timer between RECOVERY_ACTION RE-REGISTER and RADIO_RESTART, if data stall
4422 * symptom still occurred, it will perform next recovery action after 180000ms.
4423 * Array[3]: It's the timer between RECOVERY_ACTION RADIO_RESTART and RESET_MODEM, if data stall
Willy Hua7846ec2021-12-22 02:52:06 +08004424 * symptom still occurred, it will perform next recovery action after 180000ms.
4425 *
4426 * See the {@code RECOVERY_ACTION_*} constants in
4427 * {@link com.android.internal.telephony.data.DataStallRecoveryManager}
4428 * @hide
4429 */
4430 public static final String KEY_DATA_STALL_RECOVERY_TIMERS_LONG_ARRAY =
4431 "data_stall_recovery_timers_long_array";
4432
4433 /**
4434 * The data stall recovery action boolean array, we use this array to determine if the
4435 * data stall recovery action needs to be skipped.
4436 *
4437 * For example, if the carrier use the same APN for both of IA and default type,
4438 * the data call will not disconnect in modem side (so the RECOVERY_ACTION_CLEANUP
4439 * did not effect). In this case, we can config the boolean variable of action
4440 * RECOVERY_ACTION_CLEANUP to true, then it can be ignored to speed up the recovery
4441 * action procedure.
4442 *
Willy Huc20021e2022-03-18 17:09:17 +08004443 * The default value of boolean array are: [false, false, true, false, false]
Willy Hua7846ec2021-12-22 02:52:06 +08004444 * Array[0]: When performing the recovery action, we can use this boolean value to determine
4445 * if we need to perform RECOVERY_ACTION_GET_DATA_CALL_LIST.
4446 * Array[1]: If data stall symptom still occurred, we can use this boolean value to determine
4447 * if we need to perform RECOVERY_ACTION_CLEANUP. For example, if the carrier use the same APN
4448 * for both of IA and default type, the data call will not disconnect in modem side
4449 * (so the RECOVERY_ACTION_CLEANUP did not effect). In this case, we can config the boolean
4450 * variable of action RECOVERY_ACTION_CLEANUP to true, then it can be ignored to speed up the
4451 * recovery action procedure.
4452 * Array[2]: If data stall symptom still occurred, we can use this boolean value to determine
Willy Huc20021e2022-03-18 17:09:17 +08004453 * if we need to perform RE-REGISTER.
Willy Hua7846ec2021-12-22 02:52:06 +08004454 * Array[3]: If data stall symptom still occurred, we can use this boolean value to determine
Willy Huc20021e2022-03-18 17:09:17 +08004455 * if we need to perform RECOVERY_ACTION_RADIO_RESTART.
4456 * Array[4]: If data stall symptom still occurred, we can use this boolean value to determine
Willy Hua7846ec2021-12-22 02:52:06 +08004457 * if we need to perform RECOVERY_ACTION_MODEM_RESET.
4458 *
4459 * See the {@code RECOVERY_ACTION_*} constants in
4460 * {@link com.android.internal.telephony.data.DataStallRecoveryManager}
4461 * @hide
4462 */
4463 public static final String KEY_DATA_STALL_RECOVERY_SHOULD_SKIP_BOOL_ARRAY =
4464 "data_stall_recovery_should_skip_bool_array";
4465
4466 /**
danielwbhuange600a8e2021-01-08 14:49:18 +08004467 * Configs used by ImsServiceEntitlement.
4468 */
4469 public static final class ImsServiceEntitlement {
4470 private ImsServiceEntitlement() {}
4471
4472 /** Prefix of all ImsServiceEntitlement.KEY_* constants. */
4473 public static final String KEY_PREFIX = "imsserviceentitlement.";
4474
danielwbhuang8744fc02021-03-02 18:30:05 +08004475 /**
4476 * The address of the entitlement configuration server.
4477 *
4478 * Reference: GSMA TS.43-v5, section 2.1 Default Entitlement Configuration Server.
4479 */
danielwbhuang0b9aeb42021-02-23 15:22:42 +08004480 public static final String KEY_ENTITLEMENT_SERVER_URL_STRING =
4481 KEY_PREFIX + "entitlement_server_url_string";
danielwbhuange600a8e2021-01-08 14:49:18 +08004482
danielwbhuang8744fc02021-03-02 18:30:05 +08004483 /**
4484 * For some carriers, end-users may be presented with a web portal of the carrier before
4485 * being allowed to use the VoWiFi service.
4486 * To support this feature, the app hosts a {@link android.webkit.WebView} in the foreground
4487 * VoWiFi entitlement configuration flow to show the web portal.
4488 *
4489 * {@code true} - show the VoWiFi portal in a webview.
4490 *
4491 * Note: this is effective only if the {@link #KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING}
4492 * is set to this app.
4493 *
4494 * Reference: GSMA TS.43-v5, section 3, VoWiFi entitlement configuration.
4495 */
4496 public static final String KEY_SHOW_VOWIFI_WEBVIEW_BOOL =
4497 KEY_PREFIX + "show_vowifi_webview_bool";
4498
4499 /**
4500 * For some carriers, the network is not provisioned by default to support
4501 * IMS (VoLTE/VoWiFi/SMSoIP) service for all end users. Some type of network-side
4502 * provisioning must then take place before offering the IMS service to the end-user.
4503 *
4504 * {@code true} - need this ImsServiceEntitlement app to do IMS (VoLTE/VoWiFi/SMSoIP)
4505 * provisioning in the background before offering the IMS service to the end-user.
4506 *
4507 * Note: this is effective only if the carrier needs IMS provisioning, i.e.
4508 * {@link #KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL} is set to true.
4509 *
4510 * Reference: GSMA TS.43-v5, section 3 - 5, VoWiFi/VoLTE/SMSoIP entitlement configuration.
4511 */
4512 public static final String KEY_IMS_PROVISIONING_BOOL = KEY_PREFIX + "ims_provisioning_bool";
4513
4514 /**
4515 * The FCM sender ID for the carrier.
4516 * Used to trigger a carrier network requested entitlement configuration
4517 * via Firebase Cloud Messaging (FCM). Do not set if the carrier doesn't use FCM for network
4518 * requested entitlement configuration.
4519 *
4520 * Reference: GSMA TS.43-v5, section 2.4, Network Requested Entitlement Configuration.
4521 *
4522 * @see <a href="https://firebase.google.com/docs/cloud-messaging/concept-options#senderid">
4523 * About FCM messages - Credentials</a>
4524 */
4525 public static final String KEY_FCM_SENDER_ID_STRING = KEY_PREFIX + "fcm_sender_id_string";
4526
danielwbhuange600a8e2021-01-08 14:49:18 +08004527 private static PersistableBundle getDefaults() {
4528 PersistableBundle defaults = new PersistableBundle();
danielwbhuang0b9aeb42021-02-23 15:22:42 +08004529 defaults.putString(KEY_ENTITLEMENT_SERVER_URL_STRING, "");
danielwbhuang8744fc02021-03-02 18:30:05 +08004530 defaults.putString(KEY_FCM_SENDER_ID_STRING, "");
4531 defaults.putBoolean(KEY_SHOW_VOWIFI_WEBVIEW_BOOL, false);
4532 defaults.putBoolean(KEY_IMS_PROVISIONING_BOOL, false);
danielwbhuange600a8e2021-01-08 14:49:18 +08004533 return defaults;
4534 }
4535 }
4536
Hai Shalom0a5b2072019-12-26 16:17:00 -08004537 /**
Shuo Qian6fe660e2019-12-17 13:07:33 -08004538 * GPS configs. See the GNSS HAL documentation for more details.
Meng Wang19b214d2018-11-07 12:14:39 -08004539 */
4540 public static final class Gps {
Shuo Qian6fe660e2019-12-17 13:07:33 -08004541 private Gps() {}
4542
Meng Wang19b214d2018-11-07 12:14:39 -08004543 /** Prefix of all Gps.KEY_* constants. */
4544 public static final String KEY_PREFIX = "gps.";
4545
4546 /**
Brad Ebingerc9654c12019-05-30 16:31:57 -07004547 * Location information during (and after) an emergency call is only provided over control
4548 * plane signaling from the network.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004549 * @hide
Brad Ebingerc9654c12019-05-30 16:31:57 -07004550 */
4551 public static final int SUPL_EMERGENCY_MODE_TYPE_CP_ONLY = 0;
4552
4553 /**
4554 * Location information during (and after) an emergency call is provided over the data
4555 * plane and serviced by the framework GNSS service, but if it fails, the carrier also
4556 * supports control plane backup signaling.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004557 * @hide
Brad Ebingerc9654c12019-05-30 16:31:57 -07004558 */
4559 public static final int SUPL_EMERGENCY_MODE_TYPE_CP_FALLBACK = 1;
4560
4561 /**
4562 * Location information during (and after) an emergency call is provided over the data plane
4563 * and serviced by the framework GNSS service only. There is no backup signalling over the
4564 * control plane if it fails.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004565 * @hide
Brad Ebingerc9654c12019-05-30 16:31:57 -07004566 */
4567 public static final int SUPL_EMERGENCY_MODE_TYPE_DP_ONLY = 2;
4568
4569
4570 /**
Meng Wang19b214d2018-11-07 12:14:39 -08004571 * Determine whether current lpp_mode used for E-911 needs to be kept persistently.
4572 * {@code false} - not keeping the lpp_mode means using default configuration of gps.conf
4573 * when sim is not presented.
4574 * {@code true} - current lpp_profile of carrier will be kepted persistently
4575 * even after sim is removed. This is default.
4576 */
4577 public static final String KEY_PERSIST_LPP_MODE_BOOL = KEY_PREFIX + "persist_lpp_mode_bool";
4578
4579 /**
4580 * SUPL server host for SET Initiated & non-ES Network-Initiated SUPL requests.
4581 * Default to supl.google.com
Shuo Qian6fe660e2019-12-17 13:07:33 -08004582 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004583 */
4584 public static final String KEY_SUPL_HOST_STRING = KEY_PREFIX + "supl_host";
4585
Shuo Qian6fe660e2019-12-17 13:07:33 -08004586 /**
4587 * SUPL server port. Default to 7275.
4588 * @hide
4589 */
Meng Wang19b214d2018-11-07 12:14:39 -08004590 public static final String KEY_SUPL_PORT_STRING = KEY_PREFIX + "supl_port";
4591
4592 /**
4593 * The SUPL version requested by Carrier. This is a bit mask
4594 * with bits 0:7 representing a service indicator field, bits 8:15
4595 * representing the minor version and bits 16:23 representing the
4596 * major version. Default to 0x20000.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004597 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004598 */
4599 public static final String KEY_SUPL_VER_STRING = KEY_PREFIX + "supl_ver";
4600
4601 /**
4602 * SUPL_MODE configuration bit mask
4603 * 1 - Mobile Station Based. This is default.
4604 * 2 - Mobile Station Assisted.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004605 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004606 */
4607 public static final String KEY_SUPL_MODE_STRING = KEY_PREFIX + "supl_mode";
4608
4609 /**
4610 * Whether to limit responses to SUPL ES mode requests only during user emergency sessions
4611 * (e.g. E911), and SUPL non-ES requests to only outside of non user emergency sessions.
4612 * 0 - no.
4613 * 1 - yes. This is default.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004614 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004615 */
Meng Wang19b214d2018-11-07 12:14:39 -08004616 public static final String KEY_SUPL_ES_STRING = KEY_PREFIX + "supl_es";
4617
4618 /**
4619 * LTE Positioning Profile settings bit mask.
4620 * 0 - Radio Resource Location Protocol in user plane and control plane. This is default.
4621 * 1 - Enable LTE Positioning Protocol in user plane.
4622 * 2 - Enable LTE Positioning Protocol in control plane.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004623 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004624 */
4625 public static final String KEY_LPP_PROFILE_STRING = KEY_PREFIX + "lpp_profile";
4626
4627 /**
4628 * Determine whether to use emergency PDN for emergency SUPL.
4629 * 0 - no.
4630 * 1 - yes. This is default.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004631 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004632 */
4633 public static final String KEY_USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL_STRING =
4634 KEY_PREFIX + "use_emergency_pdn_for_emergency_supl";
4635
4636 /**
4637 * A_GLONASS_POS_PROTOCOL_SELECT bit mask.
4638 * 0 - Don't use A-GLONASS. This is default.
4639 * 1 - Use A-GLONASS in Radio Resource Control(RRC) control-plane.
4640 * 2 - Use A-GLONASS in Radio Resource Location user-plane.
4641 * 4 - Use A-GLONASS in LTE Positioning Protocol User plane.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004642 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004643 */
4644 public static final String KEY_A_GLONASS_POS_PROTOCOL_SELECT_STRING =
4645 KEY_PREFIX + "a_glonass_pos_protocol_select";
4646
4647 /**
4648 * GPS_LOCK configuration bit mask to specify GPS device behavior toward other services,
4649 * when Location Settings are off.
4650 * "0" - No lock.
4651 * "1" - Lock Mobile Originated GPS functionalities.
4652 * "2" - Lock Network initiated GPS functionalities.
4653 * "3" - Lock both. This is default.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004654 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004655 */
4656 public static final String KEY_GPS_LOCK_STRING = KEY_PREFIX + "gps_lock";
4657
4658 /**
Anil Admal0177f902019-01-17 14:23:37 -08004659 * Control Plane / SUPL NI emergency extension time in seconds. Default to "0".
Shuo Qian6fe660e2019-12-17 13:07:33 -08004660 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004661 */
Anil Admalbefd4832019-05-09 19:58:13 -07004662 public static final String KEY_ES_EXTENSION_SEC_STRING = KEY_PREFIX + "es_extension_sec";
Meng Wang19b214d2018-11-07 12:14:39 -08004663
Anil Admal0177f902019-01-17 14:23:37 -08004664 /**
4665 * Space separated list of Android package names of proxy applications representing
4666 * the non-framework entities requesting location directly from GNSS without involving
4667 * the framework, as managed by IGnssVisibilityControl.hal. For example,
4668 * "com.example.mdt com.example.ims".
Shuo Qian6fe660e2019-12-17 13:07:33 -08004669 * @hide
Anil Admal0177f902019-01-17 14:23:37 -08004670 */
Anil Admalbefd4832019-05-09 19:58:13 -07004671 public static final String KEY_NFW_PROXY_APPS_STRING = KEY_PREFIX + "nfw_proxy_apps";
4672
Brad Ebingerc9654c12019-05-30 16:31:57 -07004673 /**
4674 * Determines whether or not SUPL ES mode supports a control-plane mechanism to get a user's
4675 * location in the event that data plane SUPL fails or is otherwise unavailable.
4676 * <p>
4677 * An integer value determines the support type of this carrier. If this carrier only
4678 * supports data plane SUPL ES, then the value will be
4679 * {@link #SUPL_EMERGENCY_MODE_TYPE_DP_ONLY}. If the carrier supports control plane fallback
4680 * for emergency SUPL, the value will be {@link #SUPL_EMERGENCY_MODE_TYPE_CP_FALLBACK}.
4681 * If the carrier does not support data plane SUPL using the framework, the value will be
4682 * {@link #SUPL_EMERGENCY_MODE_TYPE_CP_ONLY}.
4683 * <p>
4684 * The default value for this configuration is {@link #SUPL_EMERGENCY_MODE_TYPE_CP_ONLY}.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004685 * @hide
Brad Ebingerc9654c12019-05-30 16:31:57 -07004686 */
4687 public static final String KEY_ES_SUPL_CONTROL_PLANE_SUPPORT_INT = KEY_PREFIX
4688 + "es_supl_control_plane_support_int";
4689
Brad Ebinger82dc2792019-12-09 16:09:57 -08004690 /**
4691 * A list of roaming PLMNs where SUPL ES mode does not support a control-plane mechanism to
4692 * get a user's location in the event that data plane SUPL fails or is otherwise
4693 * unavailable.
4694 * <p>
4695 * A string array of PLMNs that do not support a control-plane mechanism for getting a
4696 * user's location for SUPL ES.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004697 * @hide
Brad Ebinger82dc2792019-12-09 16:09:57 -08004698 */
4699 public static final String KEY_ES_SUPL_DATA_PLANE_ONLY_ROAMING_PLMN_STRING_ARRAY =
4700 KEY_PREFIX + "es_supl_data_plane_only_roaming_plmn_string_array";
4701
Meng Wang19b214d2018-11-07 12:14:39 -08004702 private static PersistableBundle getDefaults() {
4703 PersistableBundle defaults = new PersistableBundle();
4704 defaults.putBoolean(KEY_PERSIST_LPP_MODE_BOOL, true);
4705 defaults.putString(KEY_SUPL_HOST_STRING, "supl.google.com");
4706 defaults.putString(KEY_SUPL_PORT_STRING, "7275");
4707 defaults.putString(KEY_SUPL_VER_STRING, "0x20000");
4708 defaults.putString(KEY_SUPL_MODE_STRING, "1");
4709 defaults.putString(KEY_SUPL_ES_STRING, "1");
joethhuang851befb2019-07-25 16:33:09 +08004710 defaults.putString(KEY_LPP_PROFILE_STRING, "2");
Meng Wang19b214d2018-11-07 12:14:39 -08004711 defaults.putString(KEY_USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL_STRING, "1");
4712 defaults.putString(KEY_A_GLONASS_POS_PROTOCOL_SELECT_STRING, "0");
4713 defaults.putString(KEY_GPS_LOCK_STRING, "3");
Anil Admalbefd4832019-05-09 19:58:13 -07004714 defaults.putString(KEY_ES_EXTENSION_SEC_STRING, "0");
4715 defaults.putString(KEY_NFW_PROXY_APPS_STRING, "");
Brad Ebingerc9654c12019-05-30 16:31:57 -07004716 defaults.putInt(KEY_ES_SUPL_CONTROL_PLANE_SUPPORT_INT,
4717 SUPL_EMERGENCY_MODE_TYPE_CP_ONLY);
Brad Ebinger82dc2792019-12-09 16:09:57 -08004718 defaults.putStringArray(KEY_ES_SUPL_DATA_PLANE_ONLY_ROAMING_PLMN_STRING_ARRAY, null);
Meng Wang19b214d2018-11-07 12:14:39 -08004719 return defaults;
4720 }
4721 }
4722
chen xueb07e4e2019-02-08 17:40:33 -08004723 /**
4724 * An int array containing CDMA enhanced roaming indicator values for Home (non-roaming) network.
4725 * The default values come from 3GPP2 C.R1001 table 8.1-1.
4726 * Enhanced Roaming Indicator Number Assignments
4727 *
4728 * @hide
4729 */
4730 public static final String KEY_CDMA_ENHANCED_ROAMING_INDICATOR_FOR_HOME_NETWORK_INT_ARRAY =
4731 "cdma_enhanced_roaming_indicator_for_home_network_int_array";
4732
mavishsu00111212019-03-06 13:12:23 +08004733 /**
Minoru Sakuma7f3a9d02017-10-25 15:52:31 +09004734 * Determines whether wifi calling location privacy policy is shown.
Minoru Sakuma7f3a9d02017-10-25 15:52:31 +09004735 */
4736 public static final String KEY_SHOW_WFC_LOCATION_PRIVACY_POLICY_BOOL =
4737 "show_wfc_location_privacy_policy_bool";
4738
4739 /**
mavishsu00111212019-03-06 13:12:23 +08004740 * Indicates use 3GPP application to replace 3GPP2 application even if it's a CDMA/CDMA-LTE
4741 * phone, becasue some carriers's CSIM application is present but not supported.
4742 * @hide
4743 */
4744 public static final String KEY_USE_USIM_BOOL = "use_usim_bool";
4745
Seongho Kim93f78f52018-11-13 15:08:34 +09004746 /**
4747 * Determines whether the carrier wants to cancel the cs reject notification automatically
4748 * when the voice registration state changes.
4749 * If true, the notification will be automatically removed
4750 * when the voice registration state changes.
4751 * If false, the notification will persist until the user dismisses it,
4752 * the SIM is removed, or the device is rebooted.
4753 * @hide
4754 */
4755 public static final String KEY_AUTO_CANCEL_CS_REJECT_NOTIFICATION =
4756 "carrier_auto_cancel_cs_notification";
4757
Nathan Harold773b0822019-03-12 15:51:42 -07004758 /**
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08004759 * Passing this value as {@link #KEY_SUBSCRIPTION_GROUP_UUID_STRING} will remove the
Nathan Harold773b0822019-03-12 15:51:42 -07004760 * subscription from a group instead of adding it to a group.
4761 *
Hunter Knepshield731616582020-05-21 17:17:04 -07004762 * <p>This value will work all the way back to {@link android.os.Build.VERSION_CODES#Q}.
Nathan Harold773b0822019-03-12 15:51:42 -07004763 */
4764 public static final String REMOVE_GROUP_UUID_STRING = "00000000-0000-0000-0000-000000000000";
4765
4766 /**
4767 * The UUID of a Group of related subscriptions in which to place the current subscription.
4768 *
4769 * A grouped subscription will behave for billing purposes and other UI purposes as though it
4770 * is a transparent extension of other subscriptions in the group.
4771 *
4772 * <p>If set to {@link #REMOVE_GROUP_UUID_STRING}, then the subscription will be removed from
4773 * its current group.
4774 *
Hunter Knepshield731616582020-05-21 17:17:04 -07004775 * <p>This key will work all the way back to {@link android.os.Build.VERSION_CODES#Q}.
Nathan Harold773b0822019-03-12 15:51:42 -07004776 */
4777 public static final String KEY_SUBSCRIPTION_GROUP_UUID_STRING =
Nathan Haroldbbb89682019-04-11 16:33:26 -07004778 "subscription_group_uuid_string";
Nathan Harold773b0822019-03-12 15:51:42 -07004779
4780 /**
Nathan Harold8ab07282021-11-04 18:22:24 -07004781 * Controls the cellular usage setting.
4782 *
4783 * The usage setting indicates whether a device will remain attached to a network based on
4784 * the primary use case for the service. A device will detach and search for a more-preferred
4785 * network if the primary use case (voice or data) is not satisfied. Depending on the type
4786 * of device, it may operate in a voice or data-centric mode by default.
4787 *
Nathan Harolddff34b32021-12-15 16:38:25 -08004788 * <p>Sets the usage setting in accordance with 3gpp 24.301 sec 4.3 and 3gpp 24.501 sec 4.3.
4789 * Also refer to "UE's usage setting" as defined in 3gpp 24.301 section 3.1 and 3gpp 23.221
4790 * Annex A.
4791 *
Nathan Harold8ab07282021-11-04 18:22:24 -07004792 * Either omit this key or pass a value of
4793 * {@link SubscriptionManager#USAGE_SETTING_UNKNOWN unknown} to preserve the current setting.
4794 *
Nathan Haroldb36dcb02022-03-25 13:51:55 -07004795 * <p>Devices that support configuration of the cellular usage setting, including devices
4796 * with HAL capability to set the cellular usage setting, must honor this setting accordingly.
4797 *
Nathan Harold8ab07282021-11-04 18:22:24 -07004798 * {@link SubscriptionManager#USAGE_SETTING_DEFAULT default},
4799 * {@link SubscriptionManager#USAGE_SETTING_VOICE_CENTRIC voice-centric},
4800 * or {@link SubscriptionManager#USAGE_SETTING_DATA_CENTRIC data-centric}.
4801 * {@see SubscriptionInfo#getUsageSetting}
Nathan Haroldb36dcb02022-03-25 13:51:55 -07004802 *
Nathan Harold8ab07282021-11-04 18:22:24 -07004803 */
4804 public static final String KEY_CELLULAR_USAGE_SETTING_INT =
4805 "cellular_usage_setting_int";
4806
4807 /**
Malcolm Chen46e16492020-02-04 19:01:25 -08004808 * Data switch validation minimal gap time, in milliseconds.
4809 *
4810 * Which means, if the same subscription on the same network (based on MCC+MNC+TAC+subId)
4811 * was recently validated (within this time gap), and Telephony receives a request to switch to
4812 * it again, Telephony will skip the validation part and switch to it as soon as connection
4813 * is setup, as if it's already validated.
4814 *
4815 * If the network was validated within the gap but the latest validation result is false, the
4816 * validation will not be skipped.
4817 *
4818 * If not set or set to 0, validation will never be skipped.
4819 * The max acceptable value of this config is 24 hours.
4820 *
4821 * @hide
4822 */
4823 public static final String KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG =
Malcolm Chen9859e172020-02-27 17:11:43 -08004824 "data_switch_validation_min_gap_long";
Malcolm Chen46e16492020-02-04 19:01:25 -08004825
4826 /**
Hunter Knepshield731616582020-05-21 17:17:04 -07004827 * A boolean property indicating whether this subscription should be managed as an opportunistic
4828 * subscription.
4829 *
4830 * If true, then this subscription will be selected based on available coverage and will not be
4831 * available for a user in settings menus for selecting macro network providers. If unset,
4832 * defaults to “false”.
4833 *
4834 * <p>This key will work all the way back to {@link android.os.Build.VERSION_CODES#Q}.
4835 */
Nathan Harold773b0822019-03-12 15:51:42 -07004836 public static final String KEY_IS_OPPORTUNISTIC_SUBSCRIPTION_BOOL =
Nathan Haroldbbb89682019-04-11 16:33:26 -07004837 "is_opportunistic_subscription_bool";
Nathan Harold773b0822019-03-12 15:51:42 -07004838
andychoub80dbce2019-04-09 14:50:31 +08004839 /**
Calvin Pan2260d0b2021-03-05 00:21:32 +08004840 * The flatten string {@link android.content.ComponentName componentName} of carrier
4841 * provisioning app receiver.
4842 *
4843 * <p>
4844 * The RadioInfo activity(*#*#INFO#*#*) will broadcast an intent to this receiver when the
4845 * "Carrier Provisioning Info" or "Trigger Carrier Provisioning" button clicked.
4846 *
4847 * <p>
4848 * e.g, com.google.android.carrierPackageName/.CarrierReceiverName
4849 *
4850 * @hide
4851 */
4852 public static final String KEY_CARRIER_PROVISIONING_APP_STRING =
4853 "carrier_provisioning_app_string";
4854
4855 /**
Dheeraj Shetty054700a2019-05-23 18:22:05 -07004856 * Configs used by the IMS stack.
4857 */
4858 public static final class Ims {
4859 /** Prefix of all Ims.KEY_* constants. */
4860 public static final String KEY_PREFIX = "ims.";
4861
Jimmy Chen7e47f392019-12-03 09:49:10 +08004862 /**
4863 * Delay in milliseconds to turn off wifi when IMS is registered over wifi.
4864 */
Jimmy Chen8c3cfcd2020-02-26 09:34:46 +08004865 public static final String KEY_WIFI_OFF_DEFERRING_TIME_MILLIS_INT =
4866 KEY_PREFIX + "wifi_off_deferring_time_millis_int";
Dheeraj Shetty054700a2019-05-23 18:22:05 -07004867
Brad Ebinger119076ae2020-09-23 17:00:10 -07004868 /**
4869 * A boolean flag specifying whether or not this carrier requires one IMS registration for
4870 * all IMS services (MMTEL and RCS).
4871 * <p>
4872 * If set to {@code true}, the IMS Service must use one IMS registration for all IMS
4873 * services. If set to {@code false}, IMS services may use separate IMS registrations for
4874 * MMTEL and RCS.
4875 * <p>
4876 * The default value for this configuration is {@code false}.
4877 * @see android.telephony.ims.SipDelegateManager
4878 */
4879 public static final String KEY_IMS_SINGLE_REGISTRATION_REQUIRED_BOOL =
4880 KEY_PREFIX + "ims_single_registration_required_bool";
4881
Brad Ebinger4612ab72020-11-30 23:37:03 +00004882 /**
4883 * A boolean flag specifying whether or not this carrier supports the device notifying the
4884 * network of its RCS capabilities using the SIP PUBLISH procedure defined for User
4885 * Capability Exchange (UCE). See RCC.71, section 3 for more information.
4886 * <p>
4887 * If this key's value is set to false, the procedure for RCS contact capability exchange
4888 * via SIP SUBSCRIBE/NOTIFY will also be disabled internally, and
allenwtsue6ddc2f2020-12-02 14:54:22 +08004889 * {@link Ims#KEY_ENABLE_PRESENCE_PUBLISH_BOOL} must also be set to false to ensure
4890 * apps do not improperly think that capability exchange via SIP PUBLISH is enabled.
Brad Ebinger4612ab72020-11-30 23:37:03 +00004891 * <p> The default value for this key is {@code false}.
4892 */
4893 public static final String KEY_ENABLE_PRESENCE_PUBLISH_BOOL =
4894 KEY_PREFIX + "enable_presence_publish_bool";
4895
allenwtsue6ddc2f2020-12-02 14:54:22 +08004896 /**
Brad Ebinger1a17e242021-02-21 21:48:50 -08004897 * Each string in this array contains a mapping between the service-id and version portion
4898 * of the service-description element and the associated IMS feature tag(s) that are
4899 * associated with each element (see RCC.07 Table 7).
4900 * <p>
4901 * Each string contains 3 parts, which define the mapping between service-description and
4902 * feature tag(s) that must be present in the IMS REGISTER for the RCS service to be
4903 * published as part of the RCS PUBLISH procedure:
4904 * [service-id]|[version]|[desc]|[feature_tag];[feature_tag];...
4905 * <ul>
4906 * <li>[service-id]: the service-id element associated with the RCS capability.</li>
4907 * <li>[version]: The version element associated with that service-id</li>
4908 * <li>[desc]: The optional desecription element associated with that service-id</li>
4909 * <li>[feature_tag];[feature_tag]: The list of all feature tags associated with this
4910 * capability that MUST ALL be present in the IMS registration for this this
4911 * capability to be published to the network.</li>
4912 * </ul>
4913 * <p>
4914 * Features managed by the framework will be considered capable when the ImsService reports
4915 * that those services are capable via the
4916 * {@link MmTelFeature#notifyCapabilitiesStatusChanged(MmTelFeature.MmTelCapabilities)} or
4917 * {@link RcsFeature#notifyCapabilitiesStatusChanged(RcsFeature.RcsImsCapabilities)} APIs.
4918 * For RCS services not managed by the framework, the capability of these services are
4919 * determined by looking at the feature tags associated with the IMS registration using the
4920 * {@link ImsRegistrationAttributes} API and mapping them to the service-description map.
4921 * <p>
4922 * The framework contains a default value of this key, which is based off of RCC.07
4923 * specification. Capabilities based of carrier extensions may be added to this list on a
4924 * carrier-by-carrier basis as required in order to support additional services in the
4925 * PUBLISH. If this list contains a service-id and version that overlaps with the default,
4926 * it will override the framework default.
4927 * @hide
4928 */
Brad Ebinger1a17e242021-02-21 21:48:50 -08004929 public static final String KEY_PUBLISH_SERVICE_DESC_FEATURE_TAG_MAP_OVERRIDE_STRING_ARRAY =
4930 KEY_PREFIX + "publish_service_desc_feature_tag_map_override_string_array";
4931
4932 /**
allenwtsue6ddc2f2020-12-02 14:54:22 +08004933 * Flag indicating whether or not this carrier supports the exchange of phone numbers with
4934 * the carrier's RCS presence server in order to retrieve the RCS capabilities of requested
4935 * contacts used in the RCS User Capability Exchange (UCE) procedure. See RCC.71, section 3
4936 * for more information.
4937 * <p>
4938 * When presence is supported, the device uses the SIP SUBSCRIBE/NOTIFY procedure internally
4939 * to retrieve the requested RCS capabilities. See
4940 * {@link android.telephony.ims.RcsUceAdapter} for more information on how RCS capabilities
4941 * can be retrieved from the carrier's network.
4942 */
4943 public static final String KEY_ENABLE_PRESENCE_CAPABILITY_EXCHANGE_BOOL =
4944 KEY_PREFIX + "enable_presence_capability_exchange_bool";
4945
4946
4947 /**
4948 * Flag indicating whether or not the carrier expects the RCS UCE service to periodically
4949 * refresh the RCS capabilities cache of the user's contacts as well as request the
4950 * capabilities of call contacts when the SIM card is first inserted or when a new contact
4951 * is added, removed, or modified. This corresponds to the RCC.07 A.19
4952 * "DISABLE INITIAL ADDRESS BOOK SCAN" parameter.
4953 * <p>
4954 * If this flag is disabled, the capabilities cache will not be refreshed internally at all
4955 * and will only be updated if the cached capabilities are stale when an application
4956 * requests them.
Brad Ebinger722cacf2021-05-14 01:53:56 +00004957 *
4958 * @see RcsUceAdapter#isUceSettingEnabled() more information about this feature and how
4959 * it is enabled by the user.
allenwtsue6ddc2f2020-12-02 14:54:22 +08004960 */
4961 public static final String KEY_RCS_BULK_CAPABILITY_EXCHANGE_BOOL =
4962 KEY_PREFIX + "rcs_bulk_capability_exchange_bool";
4963
4964 /**
4965 * Flag indicating whether or not the carrier supports capability exchange with a list of
4966 * contacts. When {@code true}, the device will batch together multiple requests and
4967 * construct a RLMI document in the SIP SUBSCRIBE request (see RFC 4662). If {@code false},
4968 * the request will be split up into one SIP SUBSCRIBE request per contact.
4969 */
4970 public static final String KEY_ENABLE_PRESENCE_GROUP_SUBSCRIBE_BOOL =
4971 KEY_PREFIX + "enable_presence_group_subscribe_bool";
4972
calvinpan39884872021-01-27 21:09:51 +08004973 /**
Hyunhob32f2e72022-01-26 06:26:40 +00004974 * Flag indicating whether or not to use SIP URI when send a presence subscribe.
4975 * When {@code true}, the device sets the To and Contact header to be SIP URI using
4976 * the TelephonyManager#getIsimDomain" API.
4977 * If {@code false}, the device uses a TEL URI.
4978 */
4979 public static final String KEY_USE_SIP_URI_FOR_PRESENCE_SUBSCRIBE_BOOL =
4980 KEY_PREFIX + "use_sip_uri_for_presence_subscribe_bool";
4981
4982 /**
calvinpan39884872021-01-27 21:09:51 +08004983 * An integer key associated with the period of time in seconds the non-rcs capability
4984 * information of each contact is cached on the device.
4985 * <p>
4986 * The rcs capability cache expiration sec is managed by
4987 * {@code android.telephony.ims.ProvisioningManager} but non-rcs capability is managed by
4988 * {@link CarrierConfigManager} since non-rcs capability will be provided via ACS or carrier
4989 * config.
4990 * <p>
4991 * The default value is 2592000 secs (30 days), see RCC.07 Annex A.1.9.
4992 */
4993 public static final String KEY_NON_RCS_CAPABILITIES_CACHE_EXPIRATION_SEC_INT =
4994 KEY_PREFIX + "non_rcs_capabilities_cache_expiration_sec_int";
4995
Hui Wang840afdd2021-03-05 20:13:22 -08004996 /**
4997 * Specifies the RCS feature tag allowed for the carrier.
4998 *
4999 * <p>The values refer to RCC.07 2.4.4.
5000 */
5001 public static final String KEY_RCS_FEATURE_TAG_ALLOWED_STRING_ARRAY =
5002 KEY_PREFIX + "rcs_feature_tag_allowed_string_array";
5003
James.cf Lincf451202021-04-29 15:41:17 +08005004 /**
5005 * Flag indicating whether or not carrier forbids device send the RCS request when the
5006 * device receive the network response with the SIP code 489 BAD EVENT.
5007 * <p>
5008 * The default value for this key is {@code false}.
5009 * @hide
5010 */
5011 public static final String KEY_RCS_REQUEST_FORBIDDEN_BY_SIP_489_BOOL =
5012 KEY_PREFIX + "rcs_request_forbidden_by_sip_489_bool";
5013
5014 /**
5015 * Indicates the interval that SUBSCRIBE requests from applications will be retried at when
5016 * the carrier network has responded to a previous request with a forbidden error.
5017 * <p>
5018 * The default value for this key is 20 minutes.
5019 * @hide
5020 */
5021 public static final String KEY_RCS_REQUEST_RETRY_INTERVAL_MILLIS_LONG =
5022 KEY_PREFIX + "rcs_request_retry_interval_millis_long";
5023
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08005024 /** SIP timer T1 as per 3GPP TS 24.229 Table 7.7.1 */
5025 public static final String KEY_SIP_TIMER_T1_MILLIS_INT =
5026 KEY_PREFIX + "sip_timer_t1_millis_int";
5027
5028 /** SIP timer T2 as per 3GPP TS 24.229 Table 7.7.1 */
5029 public static final String KEY_SIP_TIMER_T2_MILLIS_INT =
5030 KEY_PREFIX + "sip_timer_t2_millis_int";
5031
5032 /** SIP timer T4 as per 3GPP TS 24.229 Table 7.7.1 */
5033 public static final String KEY_SIP_TIMER_T4_MILLIS_INT =
5034 KEY_PREFIX + "sip_timer_t4_millis_int";
5035
5036 /** SIP timer B as per 3GPP TS 24.229 Table 7.7.1 */
5037 public static final String KEY_SIP_TIMER_B_MILLIS_INT =
5038 KEY_PREFIX + "sip_timer_b_millis_int";
5039
5040 /** SIP timer C as per 3GPP TS 24.229 Table 7.7.1 */
5041 public static final String KEY_SIP_TIMER_C_MILLIS_INT =
5042 KEY_PREFIX + "sip_timer_c_millis_int";
5043
5044 /** SIP timer D as per 3GPP TS 24.229 Table 7.7.1 */
5045 public static final String KEY_SIP_TIMER_D_MILLIS_INT =
5046 KEY_PREFIX + "sip_timer_d_millis_int";
5047
5048 /** SIP timer F as per 3GPP TS 24.229 Table 7.7.1 */
5049 public static final String KEY_SIP_TIMER_F_MILLIS_INT =
5050 KEY_PREFIX + "sip_timer_f_millis_int";
5051
5052 /** SIP timer H as per 3GPP TS 24.229 Table 7.7.1 */
5053 public static final String KEY_SIP_TIMER_H_MILLIS_INT =
5054 KEY_PREFIX + "sip_timer_h_millis_int";
5055
5056 /** SIP timer J as per 3GPP TS 24.229 Table 7.7.1 */
5057 public static final String KEY_SIP_TIMER_J_MILLIS_INT =
5058 KEY_PREFIX + "sip_timer_j_millis_int";
5059
5060 /** Specifies the SIP Server default port. */
5061 public static final String KEY_SIP_SERVER_PORT_NUMBER_INT =
5062 KEY_PREFIX + "sip_server_port_number_int";
5063
5064 /**
5065 * Specify the “phone-context” parameter as defined in
5066 * section 7.2A.10 in 3GPP TS 24.229.
5067 */
5068 public static final String KEY_PHONE_CONTEXT_DOMAIN_NAME_STRING =
5069 KEY_PREFIX + "phone_context_domain_name_string";
5070
5071 /** @hide */
5072 @IntDef({REQUEST_URI_FORMAT_TEL, REQUEST_URI_FORMAT_SIP})
5073
5074 public @interface RequestUriFormatType {}
5075
5076 /**
5077 * Request URI is of type TEL URI.
5078 */
5079 public static final int REQUEST_URI_FORMAT_TEL = 0;
5080
5081 /**
5082 * Request URI is of type SIP URI.
5083 */
5084 public static final int REQUEST_URI_FORMAT_SIP = 1;
5085
5086 /**
5087 * Specify whether the request URI is SIP URI
5088 * {@link #REQUEST_URI_FORMAT_SIP} or
5089 * TEL URI {@link #REQUEST_URI_FORMAT_TEL}.
5090 */
5091 public static final String KEY_REQUEST_URI_TYPE_INT =
5092 KEY_PREFIX + "request_uri_type_int";
5093
5094 /**
5095 * Flag indicating whether Globally Routable User agent (GRUU)
5096 * in supported HEADER is included or not.
5097 *
5098 * <p> Reference: RFC 5627.
5099 */
5100 public static final String KEY_GRUU_ENABLED_BOOL =
5101 KEY_PREFIX + "gruu_enabled_bool";
5102
5103 /**
5104 * Flag indicating whether to keep/release IMS PDN in case of
5105 * moving to non VOPS area.
5106 *
5107 * <p>if {@code True}, keep IMS PDN in case of moving to non VOPS area.
5108 * if {@code false}, otherwise.
5109 */
5110 public static final String KEY_KEEP_PDN_UP_IN_NO_VOPS_BOOL =
5111 KEY_PREFIX + "keep_pdn_up_in_no_vops_bool";
5112
5113 /** @hide */
5114 @IntDef({
5115 PREFERRED_TRANSPORT_UDP,
5116 PREFERRED_TRANSPORT_TCP,
5117 PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP,
5118 PREFERRED_TRANSPORT_TLS
5119 })
5120
5121 public @interface PreferredTransportType {}
5122
5123 /** Preferred Transport is always UDP. */
5124 public static final int PREFERRED_TRANSPORT_UDP = 0;
5125
5126 /** Preferred Transport is always TCP. */
5127 public static final int PREFERRED_TRANSPORT_TCP = 1;
5128
5129 /**
5130 * Preferred Transport is both UDP and TCP and selected based
5131 * on MTU size specified in {@link #KEY_IPV4_SIP_MTU_SIZE_CELLULAR_INT}
5132 * and {@link #KEY_IPV6_SIP_MTU_SIZE_CELLULAR_INT}.
5133 *
5134 * <p>Default transport is UDP. If message size is larger
5135 * than MTU, then TCP shall be used.
5136 */
5137 public static final int PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP = 2;
5138
5139 /** Preferred Transport is TLS. */
5140 public static final int PREFERRED_TRANSPORT_TLS = 3;
5141
5142 /**
5143 * Specify the preferred transport protocol for SIP messages.
5144 *
5145 * <p>Possible values are,
5146 * {@link #PREFERRED_TRANSPORT_UDP},
5147 * {@link #PREFERRED_TRANSPORT_TCP},
5148 * {@link #PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP}
5149 */
5150 public static final String KEY_SIP_PREFERRED_TRANSPORT_INT =
5151 KEY_PREFIX + "sip_preferred_transport_int";
5152
5153 /**
5154 * Specify the maximum IPV4 MTU size of SIP message on Cellular.
5155 *
5156 * <p>If {@link #KEY_SIP_PREFERRED_TRANSPORT_INT} is
5157 * {@link #PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP} and SIP message MTU size
5158 * is more than this value, then SIP transport will be TCP, else the
5159 * SIP transport is UDP.
5160 */
5161 public static final String KEY_IPV4_SIP_MTU_SIZE_CELLULAR_INT =
5162 KEY_PREFIX + "ipv4_sip_mtu_size_cellular_int";
5163
5164 /**
5165 * Specify the maximum IPV6 MTU size of SIP message on Cellular.
5166 *
5167 * <p>If {@link #KEY_SIP_PREFERRED_TRANSPORT_INT} is
5168 * {@link #PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP} and SIP message MTU size
5169 * is more than this value, then SIP transport will be TCP, else the
5170 * SIP transport is UDP.
5171 */
5172 public static final String KEY_IPV6_SIP_MTU_SIZE_CELLULAR_INT =
5173 KEY_PREFIX + "ipv6_sip_mtu_size_cellular_int";
5174
5175 /**
5176 * This config determines whether IMS PDN needs to be enabled
5177 * when VOPS support is not available in both home and roaming scenarios.
5178 *
5179 * <p>This is applicable before IMS PDN is up, to decide whether
5180 * IMS PDN needs to be enabled based on VOPS support in home/roaming.
5181 *
5182 * <p>Possible values are,
5183 * {@link #NETWORK_TYPE_HOME},
5184 * {@link #NETWORK_TYPE_ROAMING}
5185 * An empty array indicates IMS PDN depends on VOPS on both home
5186 * and roaming scenarios.
5187 */
5188 public static final String KEY_IMS_PDN_ENABLED_IN_NO_VOPS_SUPPORT_INT_ARRAY =
5189 KEY_PREFIX + "ims_pdn_enabled_in_no_vops_support_int_array";
5190
5191 /**
5192 * Flag indicating whether IPSec enabled for SIP messages.
5193 *
5194 * <p> Reference: 3GPP TS 33.203 and RFC 3329.
5195 */
5196 public static final String KEY_SIP_OVER_IPSEC_ENABLED_BOOL =
5197 KEY_PREFIX + "sip_over_ipsec_enabled_bool";
5198
5199 /** @hide */
5200 @IntDef({IPSEC_AUTHENTICATION_ALGORITHM_HMAC_MD5, IPSEC_AUTHENTICATION_ALGORITHM_HMAC_SHA1})
5201
5202 public @interface IpsecAuthenticationAlgorithmType {}
5203
5204 /** IPSec Authentication algorithm is HMAC-MD5. see Annex H of TS 33.203 */
5205 public static final int IPSEC_AUTHENTICATION_ALGORITHM_HMAC_MD5 = 0;
5206
5207 /** IPSec Authentication algorithm is HMAC-SHA1. see Annex H of TS 33.203 */
5208 public static final int IPSEC_AUTHENTICATION_ALGORITHM_HMAC_SHA1 = 1;
5209
5210 /**
5211 * List of supported IPSEC Authentication algorithms.
5212 *
5213 * <p>Possible values are,
5214 * {@link #IPSEC_AUTHENTICATION_ALGORITHM_HMAC_MD5},
5215 * {@link #IPSEC_AUTHENTICATION_ALGORITHM_HMAC_SHA1}
5216 */
5217 public static final String KEY_IPSEC_AUTHENTICATION_ALGORITHMS_INT_ARRAY =
5218 KEY_PREFIX + "ipsec_authentication_algorithms_int_array";
5219
5220 /** @hide */
5221 @IntDef({
5222 IPSEC_ENCRYPTION_ALGORITHM_NULL,
5223 IPSEC_ENCRYPTION_ALGORITHM_DES_EDE3_CBC,
5224 IPSEC_ENCRYPTION_ALGORITHM_AES_CBC
5225 })
5226
5227 public @interface IpsecEncryptionAlgorithmType {}
5228
5229 /** IPSec Encryption algorithm is NULL. see Annex H of TS 33.203 */
5230 public static final int IPSEC_ENCRYPTION_ALGORITHM_NULL = 0;
5231
5232 /** IPSec Encryption algorithm is DES_EDE3_CBC. see Annex H of TS 33.203 */
5233 public static final int IPSEC_ENCRYPTION_ALGORITHM_DES_EDE3_CBC = 1;
5234
5235 /** IPSec Encryption algorithm is AES_CBC. see Annex H of TS 33.203 */
5236 public static final int IPSEC_ENCRYPTION_ALGORITHM_AES_CBC = 2;
5237
5238 /**
5239 * List of supported IPSEC encryption algorithms.
5240 *
5241 * <p>Possible values are,
5242 * {@link #IPSEC_ENCRYPTION_ALGORITHM_NULL},
5243 * {@link #IPSEC_ENCRYPTION_ALGORITHM_DES_EDE3_CBC},
5244 * {@link #IPSEC_ENCRYPTION_ALGORITHM_AES_CBC}
5245 */
5246 public static final String KEY_IPSEC_ENCRYPTION_ALGORITHMS_INT_ARRAY =
5247 KEY_PREFIX + "ipsec_encryption_algorithms_int_array";
5248
5249 /**
5250 * Expiry timer for IMS Registration in seconds.
5251 * <p>Reference: RFC 3261 Section 20.19.
5252 */
5253 public static final String KEY_REGISTRATION_EXPIRY_TIMER_SEC_INT =
5254 KEY_PREFIX + "registration_expiry_timer_sec_int";
5255
5256 /** Registration Retry Base-time as per RFC 5626 Section 4.5. */
5257 public static final String KEY_REGISTRATION_RETRY_BASE_TIMER_MILLIS_INT =
5258 KEY_PREFIX + "registration_retry_base_timer_millis_int";
5259
5260 /** Registration Retry max-time as per RFC 5626 Section 4.5. */
5261 public static final String KEY_REGISTRATION_RETRY_MAX_TIMER_MILLIS_INT =
5262 KEY_PREFIX + "registration_retry_max_timer_millis_int";
5263
5264 /**
5265 * Flag indicating whether subscription to registration event package
5266 * is supported or not.
5267 */
5268 public static final String KEY_REGISTRATION_EVENT_PACKAGE_SUPPORTED_BOOL =
5269 KEY_PREFIX + "registration_event_package_supported_bool";
5270
5271 /**
5272 * Expiry timer for SUBSCRIBE in seconds.
5273 * <p>Reference: RFC 3261 Section 20.19.
5274 */
5275 public static final String KEY_REGISTRATION_SUBSCRIBE_EXPIRY_TIMER_SEC_INT =
5276 KEY_PREFIX + "registration_subscribe_expiry_timer_sec_int";
5277
5278 /** @hide */
5279 @IntDef({
5280 GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_WIFI,
5281 GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI,
5282 GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_CELLULAR,
5283 GEOLOCATION_PIDF_FOR_EMERGENCY_ON_CELLULAR
5284 })
5285
5286 public @interface GeolocationPidfAllowedType {}
5287
5288 /**
5289 * Indicates geolocation PIDF XML needs to be included for
5290 * normal/non-emergency call scenario on WiFi
5291 *
5292 * <p>Geolocation for normal/non-emergency call should only include
5293 * country code.
5294 */
5295 public static final int GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_WIFI = 1;
5296
5297 /**
5298 * Indicates geolocation PIDF XML needs to be included for emergency
5299 * call scenario on WiFi
5300 */
5301 public static final int GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI = 2;
5302
5303 /**
5304 * Indicates geolocation PIDF XML needs to be included for normal/non-emergency
5305 * call scenario on Cellular
5306 *
5307 * <p>Geolocation for normal/non-emergency call should only include
5308 * country code.
5309 */
5310 public static final int GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_CELLULAR = 3;
5311
5312 /**
5313 * Indicates geolocation PIDF XML needs to be included for emergency
5314 * call scenario on Cellular
5315 */
5316 public static final int GEOLOCATION_PIDF_FOR_EMERGENCY_ON_CELLULAR = 4;
5317
5318 /**
5319 * List of cases where geolocation PIDF XML needs to be included in the
5320 * SIP REGISTER over WiFi and Cellular.
5321 *
5322 * <p>Possible values are,
5323 * {@link #GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_WIFI},
5324 * {@link #GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI},
5325 * {@link #GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_CELLULAR},
5326 * {@link #GEOLOCATION_PIDF_FOR_EMERGENCY_ON_CELLULAR}
5327 *
5328 * <p>An empty array indicates geolocation PIDF XML should not be included in
5329 * the SIP REGISTER over WiFi and Cellular.
5330 */
5331 public static final String KEY_GEOLOCATION_PIDF_IN_SIP_REGISTER_SUPPORT_INT_ARRAY =
5332 KEY_PREFIX + "geolocation_pidf_in_sip_register_support_int_array";
5333
5334 /**
5335 * List of cases where geolocation PIDF XML needs to be included in the
5336 * SIP INVITE over WiFi and Cellular.
5337 *
5338 * <p>Possible values are,
5339 * {@link #GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_WIFI},
5340 * {@link #GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI},
5341 * {@link #GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_CELLULAR},
5342 * {@link #GEOLOCATION_PIDF_FOR_EMERGENCY_ON_CELLULAR}
5343 *
5344 * <p>An empty array indicates geolocation PIDF XML should not be included
5345 * in the SIP INVITE over WiFi and Cellular.
5346 */
5347 public static final String KEY_GEOLOCATION_PIDF_IN_SIP_INVITE_SUPPORT_INT_ARRAY =
5348 KEY_PREFIX + "geolocation_pidf_in_sip_invite_support_int_array";
5349
5350 /**
5351 * Specifies the IMS User Agent in template format.
5352 *
5353 * <p>Example: #MANUFACTURER#_#MODEL#_Android#AV#_#BUILD#".
5354 * IMS Stack should internally substitute the tokens with the
5355 * values from the respective android properties.
5356 *
5357 * <p>List of allowed tokens and the corresponding android properties are,
5358 * <UL>
5359 * <LI>MANUFACTURER : ro.product.manufacturer</LI>
5360 * <LI>MODEL : ro.product.model</LI>
5361 * <LI>AV : ro.build.version.release"</LI>
5362 * <LI>BUILD : ro.build.id</LI>
5363 * </UL>
5364 * <p> Vendor IMS Stack should strip any whitespace characters present
5365 * in the android properties values before replacing the token.
5366 *
5367 * <p> An empty string is invalid as per IR92 section 2.6. This key is
5368 * considered invalid if the format is violated. If the key is invalid or
5369 * not configured, IMS stack should use internal default values.
5370 */
5371 public static final String KEY_IMS_USER_AGENT_STRING =
5372 KEY_PREFIX + "ims_user_agent_string";
5373
5374 /** @hide */
5375 @IntDef({
5376 NETWORK_TYPE_HOME,
5377 NETWORK_TYPE_ROAMING
5378 })
5379
5380 public @interface NetworkType {}
5381
5382 /** Indicates HOME Network. */
5383 public static final int NETWORK_TYPE_HOME = 0;
5384
5385 /** Indicates Roaming Network. */
5386 public static final int NETWORK_TYPE_ROAMING = 1;
5387
5388 /** @hide */
5389 @IntDef({
5390 RTCP_INACTIVITY_ON_HOLD,
5391 RTCP_INACTIVITY_ON_CONNECTED,
5392 RTP_INACTIVITY_ON_CONNECTED,
5393 E911_RTCP_INACTIVITY_ON_CONNECTED,
5394 E911_RTP_INACTIVITY_ON_CONNECTED
5395 })
5396
5397 public @interface MediaInactivityReason {}
5398
5399 /** RTCP inactivity occurred when call is on HOLD. */
5400 public static final int RTCP_INACTIVITY_ON_HOLD = 0;
5401
5402 /** RTCP inactivity occurred when call is connected. */
5403 public static final int RTCP_INACTIVITY_ON_CONNECTED = 1;
5404
5405 /** RTP inactivity occurred when call is connected. */
5406 public static final int RTP_INACTIVITY_ON_CONNECTED = 2;
5407
5408 /** E911 RTCP inactivity occurred when call is connected. */
5409 public static final int E911_RTCP_INACTIVITY_ON_CONNECTED = 3;
5410
5411 /** E911 RTP inactivity occurred when call is connected. */
5412 public static final int E911_RTP_INACTIVITY_ON_CONNECTED = 4;
5413
Hakjun Choia9008582021-11-26 03:12:52 +00005414 /**
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08005415 * List of different RAT technologies on which IMS
5416 * is supported.
5417 *
5418 * <p>Possible values are,
5419 * {@link AccessNetworkConstants.AccessNetworkType#NGRAN}
5420 * {@link AccessNetworkConstants.AccessNetworkType#EUTRAN}
5421 * {@link AccessNetworkConstants.AccessNetworkType#IWLAN}
5422 * {@link AccessNetworkConstants.AccessNetworkType#UTRAN}
5423 * {@link AccessNetworkConstants.AccessNetworkType#GERAN}
5424 */
5425 public static final String KEY_SUPPORTED_RATS_INT_ARRAY =
5426 KEY_PREFIX + "supported_rats_int_array";
5427
5428 /**
Hakjun Choia972ee22022-01-17 09:49:53 +00005429 * A bundle which specifies the MMTEL capability and registration technology
5430 * that requires provisioning. If a tuple is not present, the
Hakjun Choia9008582021-11-26 03:12:52 +00005431 * framework will not require that the tuple requires provisioning before
5432 * enabling the capability.
Hakjun Choia972ee22022-01-17 09:49:53 +00005433 * <p> Possible keys in this bundle are
5434 * <ul>
5435 * <li>{@link #KEY_CAPABILITY_TYPE_VOICE_INT_ARRAY}</li>
5436 * <li>{@link #KEY_CAPABILITY_TYPE_VIDEO_INT_ARRAY}</li>
5437 * <li>{@link #KEY_CAPABILITY_TYPE_UT_INT_ARRAY}</li>
5438 * <li>{@link #KEY_CAPABILITY_TYPE_SMS_INT_ARRAY}</li>
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005439 * <li>{@link #KEY_CAPABILITY_TYPE_CALL_COMPOSER_INT_ARRAY}</li>
Hakjun Choia972ee22022-01-17 09:49:53 +00005440 * </ul>
5441 * <p> The values are defined in
Hakjun Choia9008582021-11-26 03:12:52 +00005442 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech}
Hakjun Choi79a50532022-04-21 06:24:26 +00005443 *
5444 * changing mmtel_requires_provisioning_bundle requires changes to
5445 * carrier_volte_provisioning_required_bool and vice versa
5446 * {@link Ims#KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL}
Hakjun Choia9008582021-11-26 03:12:52 +00005447 */
Hakjun Choia972ee22022-01-17 09:49:53 +00005448 public static final String KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE =
5449 KEY_PREFIX + "mmtel_requires_provisioning_bundle";
Hakjun Choia9008582021-11-26 03:12:52 +00005450
5451 /**
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005452 * List of different RAT technologies on which Provisioning for Voice calling (IR.92)
5453 * is supported.
Hakjun Choia972ee22022-01-17 09:49:53 +00005454 * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_VOICE
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005455 * <p>Possible values are,
5456 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5457 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5458 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5459 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
Hakjun Choia972ee22022-01-17 09:49:53 +00005460 */
5461 public static final String KEY_CAPABILITY_TYPE_VOICE_INT_ARRAY =
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005462 KEY_PREFIX + "capability_type_voice_int_array";
Hakjun Choia972ee22022-01-17 09:49:53 +00005463
5464 /**
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005465 * List of different RAT technologies on which Provisioning for Video Telephony (IR.94)
5466 * is supported.
Hakjun Choia972ee22022-01-17 09:49:53 +00005467 * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_VIDEO
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005468 * <p>Possible values are,
5469 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5470 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5471 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5472 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
Hakjun Choia972ee22022-01-17 09:49:53 +00005473 */
5474 public static final String KEY_CAPABILITY_TYPE_VIDEO_INT_ARRAY =
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005475 KEY_PREFIX + "capability_type_video_int_array";
Hakjun Choia972ee22022-01-17 09:49:53 +00005476
5477 /**
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005478 * List of different RAT technologies on which Provisioning for XCAP over Ut for
5479 * supplementary services. (IR.92) is supported.
Hakjun Choia972ee22022-01-17 09:49:53 +00005480 * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_UT
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005481 * <p>Possible values are,
5482 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5483 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5484 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5485 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
Hakjun Choia972ee22022-01-17 09:49:53 +00005486 */
5487 public static final String KEY_CAPABILITY_TYPE_UT_INT_ARRAY =
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005488 KEY_PREFIX + "capability_type_ut_int_array";
Hakjun Choia972ee22022-01-17 09:49:53 +00005489
5490 /**
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005491 * List of different RAT technologies on which Provisioning for SMS (IR.92) is supported.
Hakjun Choia972ee22022-01-17 09:49:53 +00005492 * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_SMS
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005493 * <p>Possible values are,
5494 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5495 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5496 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5497 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
Hakjun Choia972ee22022-01-17 09:49:53 +00005498 */
5499 public static final String KEY_CAPABILITY_TYPE_SMS_INT_ARRAY =
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005500 KEY_PREFIX + "capability_type_sms_int_array";
Hakjun Choia972ee22022-01-17 09:49:53 +00005501
5502 /**
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005503 * List of different RAT technologies on which Provisioning for Call Composer
5504 * (section 2.4 of RCC.20) is supported.
Hakjun Choia972ee22022-01-17 09:49:53 +00005505 * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_CALL_COMPOSER
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005506 * <p>Possible values are,
5507 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5508 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5509 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5510 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
Hakjun Choia972ee22022-01-17 09:49:53 +00005511 */
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005512 public static final String KEY_CAPABILITY_TYPE_CALL_COMPOSER_INT_ARRAY =
5513 KEY_PREFIX + "capability_type_call_composer_int_array";
Hakjun Choia972ee22022-01-17 09:49:53 +00005514
5515 /**
5516 * A bundle which specifies the RCS capability and registration technology
5517 * that requires provisioning. If a tuple is not present, the
Hakjun Choia9008582021-11-26 03:12:52 +00005518 * framework will not require that the tuple requires provisioning before
5519 * enabling the capability.
Hakjun Choia972ee22022-01-17 09:49:53 +00005520 * <p> Possible keys in this bundle are
5521 * <ul>
5522 * <li>{@link #KEY_CAPABILITY_TYPE_OPTIONS_UCE_INT_ARRAY}</li>
5523 * <li>{@link #KEY_CAPABILITY_TYPE_PRESENCE_UCE_INT_ARRAY}</li>
5524 * </ul>
5525 * <p> The values are defined in
Hakjun Choia9008582021-11-26 03:12:52 +00005526 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech}
Hakjun Choia9008582021-11-26 03:12:52 +00005527 */
Hakjun Choia972ee22022-01-17 09:49:53 +00005528 public static final String KEY_RCS_REQUIRES_PROVISIONING_BUNDLE =
5529 KEY_PREFIX + "rcs_requires_provisioning_bundle";
5530
5531 /**
5532 * This carrier supports User Capability Exchange using SIP OPTIONS as defined by the
5533 * framework. If set, the RcsFeature should support capability exchange using SIP OPTIONS.
5534 * If not set, this RcsFeature should not service capability requests.
5535 * @see RcsFeature.RcsImsCapabilities#CAPABILITY_TYPE_OPTIONS_UCE
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005536 * <p>Possible values are,
5537 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5538 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5539 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5540 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
Hakjun Choia972ee22022-01-17 09:49:53 +00005541 */
5542 public static final String KEY_CAPABILITY_TYPE_OPTIONS_UCE_INT_ARRAY =
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005543 KEY_PREFIX + "capability_type_options_uce_int_array";
Hakjun Choia972ee22022-01-17 09:49:53 +00005544
5545 /**
5546 * This carrier supports User Capability Exchange using a presence server as defined by the
5547 * framework. If set, the RcsFeature should support capability exchange using a presence
5548 * server. If not set, this RcsFeature should not publish capabilities or service capability
5549 * requests using presence.
5550 * @see RcsFeature.RcsImsCapabilities#CAPABILITY_TYPE_PRESENCE_UCE
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005551 * <p>Possible values are,
5552 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5553 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5554 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5555 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
Hakjun Choia972ee22022-01-17 09:49:53 +00005556 */
5557 public static final String KEY_CAPABILITY_TYPE_PRESENCE_UCE_INT_ARRAY =
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005558 KEY_PREFIX + "capability_type_presence_uce_int_array";
Hakjun Choia9008582021-11-26 03:12:52 +00005559
Dheeraj Shetty054700a2019-05-23 18:22:05 -07005560 private Ims() {}
5561
5562 private static PersistableBundle getDefaults() {
5563 PersistableBundle defaults = new PersistableBundle();
radhika1599ce02020-03-03 11:47:14 -08005564 defaults.putInt(KEY_WIFI_OFF_DEFERRING_TIME_MILLIS_INT, 4000);
Brad Ebinger119076ae2020-09-23 17:00:10 -07005565 defaults.putBoolean(KEY_IMS_SINGLE_REGISTRATION_REQUIRED_BOOL, false);
Brad Ebinger4612ab72020-11-30 23:37:03 +00005566 defaults.putBoolean(KEY_ENABLE_PRESENCE_PUBLISH_BOOL, false);
Brad Ebinger1a17e242021-02-21 21:48:50 -08005567 defaults.putStringArray(KEY_PUBLISH_SERVICE_DESC_FEATURE_TAG_MAP_OVERRIDE_STRING_ARRAY,
5568 new String[] {});
allenwtsue6ddc2f2020-12-02 14:54:22 +08005569 defaults.putBoolean(KEY_ENABLE_PRESENCE_CAPABILITY_EXCHANGE_BOOL, false);
5570 defaults.putBoolean(KEY_RCS_BULK_CAPABILITY_EXCHANGE_BOOL, false);
James.cf Lin5b001192021-06-30 02:03:15 +08005571 defaults.putBoolean(KEY_ENABLE_PRESENCE_GROUP_SUBSCRIBE_BOOL, false);
Hyunhob32f2e72022-01-26 06:26:40 +00005572 defaults.putBoolean(KEY_USE_SIP_URI_FOR_PRESENCE_SUBSCRIBE_BOOL, false);
calvinpan39884872021-01-27 21:09:51 +08005573 defaults.putInt(KEY_NON_RCS_CAPABILITIES_CACHE_EXPIRATION_SEC_INT, 30 * 24 * 60 * 60);
James.cf Lincf451202021-04-29 15:41:17 +08005574 defaults.putBoolean(KEY_RCS_REQUEST_FORBIDDEN_BY_SIP_489_BOOL, false);
5575 defaults.putLong(KEY_RCS_REQUEST_RETRY_INTERVAL_MILLIS_LONG, 20 * 60 * 1000);
Hui Wang840afdd2021-03-05 20:13:22 -08005576 defaults.putStringArray(KEY_RCS_FEATURE_TAG_ALLOWED_STRING_ARRAY, new String[]{
5577 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.msg\"",
5578 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.largemsg\"",
5579 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.deferred\"",
5580 "+g.gsma.rcs.cpm.pager-large",
5581 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.session\"",
allenwtsu09708832021-06-01 16:42:27 +08005582 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.filetransfer\"",
Hui Wang840afdd2021-03-05 20:13:22 -08005583 "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.fthttp\"",
5584 "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.ftsms\"",
5585 "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.gsma.callcomposer\"",
5586 "+g.gsma.callcomposer",
5587 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.gsma.callunanswered\"",
5588 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.gsma.sharedmap\"",
5589 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.gsma.sharedsketch\"",
5590 "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.geopush\"",
5591 "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.geosms\"",
5592 "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.chatbot\"",
5593 "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.chatbot.sa\"",
5594 "+g.gsma.rcs.botversion=\"#=1,#=2\"",
5595 "+g.gsma.rcs.cpimext"});
Hakjun Choia972ee22022-01-17 09:49:53 +00005596
5597 /**
5598 * @see #KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE
5599 */
Hakjun Choia972ee22022-01-17 09:49:53 +00005600 defaults.putPersistableBundle(
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005601 KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE, new PersistableBundle());
Hakjun Choia972ee22022-01-17 09:49:53 +00005602 /**
5603 * @see #KEY_RCS_REQUIRES_PROVISIONING_BUNDLE
5604 */
Hakjun Choia972ee22022-01-17 09:49:53 +00005605 defaults.putPersistableBundle(
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005606 KEY_RCS_REQUIRES_PROVISIONING_BUNDLE, new PersistableBundle());
Hui Wang840afdd2021-03-05 20:13:22 -08005607
Sateshk Kumar Chinnappan9b1b1df2022-02-14 09:16:32 -08005608 defaults.putBoolean(KEY_GRUU_ENABLED_BOOL, false);
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08005609 defaults.putBoolean(KEY_SIP_OVER_IPSEC_ENABLED_BOOL, true);
5610 defaults.putBoolean(KEY_KEEP_PDN_UP_IN_NO_VOPS_BOOL, false);
5611 defaults.putBoolean(KEY_REGISTRATION_EVENT_PACKAGE_SUPPORTED_BOOL, true);
5612
5613 defaults.putInt(KEY_SIP_TIMER_T1_MILLIS_INT, 2000);
5614 defaults.putInt(KEY_SIP_TIMER_T2_MILLIS_INT, 16000);
5615 defaults.putInt(KEY_SIP_TIMER_T4_MILLIS_INT, 17000);
5616 defaults.putInt(KEY_SIP_TIMER_B_MILLIS_INT, 128000);
5617 defaults.putInt(KEY_SIP_TIMER_C_MILLIS_INT, 210000);
5618 defaults.putInt(KEY_SIP_TIMER_D_MILLIS_INT, 130000);
5619 defaults.putInt(KEY_SIP_TIMER_F_MILLIS_INT, 128000);
5620 defaults.putInt(KEY_SIP_TIMER_H_MILLIS_INT, 128000);
5621 defaults.putInt(KEY_SIP_TIMER_J_MILLIS_INT, 128000);
5622 defaults.putInt(KEY_SIP_SERVER_PORT_NUMBER_INT, 5060);
Sateshk Kumar Chinnappan9b1b1df2022-02-14 09:16:32 -08005623 defaults.putInt(KEY_REQUEST_URI_TYPE_INT, REQUEST_URI_FORMAT_TEL);
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08005624 defaults.putInt(KEY_SIP_PREFERRED_TRANSPORT_INT, PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP);
5625 defaults.putInt(KEY_IPV4_SIP_MTU_SIZE_CELLULAR_INT, 1500);
5626 defaults.putInt(KEY_IPV6_SIP_MTU_SIZE_CELLULAR_INT, 1500);
5627 defaults.putInt(KEY_REGISTRATION_EXPIRY_TIMER_SEC_INT, 600000);
5628 defaults.putInt(KEY_REGISTRATION_RETRY_BASE_TIMER_MILLIS_INT, 30000);
5629 defaults.putInt(KEY_REGISTRATION_RETRY_MAX_TIMER_MILLIS_INT, 1800000);
5630 defaults.putInt(KEY_REGISTRATION_SUBSCRIBE_EXPIRY_TIMER_SEC_INT, 600000);
5631
5632 defaults.putIntArray(
5633 KEY_IPSEC_AUTHENTICATION_ALGORITHMS_INT_ARRAY,
5634 new int[] {
5635 IPSEC_AUTHENTICATION_ALGORITHM_HMAC_MD5,
5636 IPSEC_AUTHENTICATION_ALGORITHM_HMAC_SHA1
5637 });
5638 defaults.putIntArray(
5639 KEY_IPSEC_ENCRYPTION_ALGORITHMS_INT_ARRAY,
5640 new int[] {
5641 IPSEC_ENCRYPTION_ALGORITHM_NULL,
5642 IPSEC_ENCRYPTION_ALGORITHM_DES_EDE3_CBC,
5643 IPSEC_ENCRYPTION_ALGORITHM_AES_CBC
5644 });
5645 defaults.putIntArray(
5646 KEY_IMS_PDN_ENABLED_IN_NO_VOPS_SUPPORT_INT_ARRAY,
5647 new int[] {
5648 });
5649 defaults.putIntArray(
5650 KEY_GEOLOCATION_PIDF_IN_SIP_REGISTER_SUPPORT_INT_ARRAY,
5651 new int[] {
5652 GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI
5653 });
5654 defaults.putIntArray(
5655 KEY_GEOLOCATION_PIDF_IN_SIP_INVITE_SUPPORT_INT_ARRAY,
5656 new int[] {
5657 GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI
5658 });
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08005659 defaults.putIntArray(
5660 KEY_SUPPORTED_RATS_INT_ARRAY,
5661 new int[] {
5662 AccessNetworkType.NGRAN,
5663 AccessNetworkType.EUTRAN,
5664 AccessNetworkType.IWLAN
5665 });
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08005666
5667 defaults.putString(KEY_PHONE_CONTEXT_DOMAIN_NAME_STRING, "");
5668 defaults.putString(KEY_IMS_USER_AGENT_STRING,
5669 "#MANUFACTURER#_#MODEL#_Android#AV#_#BUILD#");
5670
5671 return defaults;
5672 }
5673 }
5674
5675 /**
5676 * IMS Voice configs. This groups the configs required for IMS Voice - VoNR/VoLTE
5677 *
5678 * <p>Reference: IR.92
5679 */
5680 public static final class ImsVoice {
5681 private ImsVoice() {}
5682
5683 /** Prefix of all imsvoice.KEY_* constants. */
5684 public static final String KEY_PREFIX = "imsvoice.";
5685
5686 /**
5687 * Flag specifying whether VoLTE should be available when on
5688 * roaming network.
5689 *
5690 * <p>If {@code false}: hard disabled.
5691 * If {@code true}: then depends on availability, etc.
5692 */
5693 public static final String KEY_CARRIER_VOLTE_ROAMING_AVAILABLE_BOOL =
5694 KEY_PREFIX + "carrier_volte_roaming_available_bool";
5695
5696 /**
5697 * Flag specifying whether to send vertical caller id service codes
5698 * (*67 and *82) in the dialed string in the SIP:INVITE.
5699 *
5700 * <p>If {@code true}, vertical caller id service codes *67 and *82
5701 * will be sent in the dialed string in the SIP:INVITE.
5702 * If {@code false}, *67 and *82 will be removed.
5703 */
5704 public static final String KEY_INCLUDE_CALLER_ID_SERVICE_CODES_IN_SIP_INVITE_BOOL =
5705 KEY_PREFIX + "include_caller_id_service_codes_in_sip_invite_bool";
5706
5707 /**
5708 * Flag indicating whether Multi-end point setting is enabled or not.
5709 */
5710 public static final String KEY_MULTIENDPOINT_SUPPORTED_BOOL =
5711 KEY_PREFIX + "multiendpoint_supported_bool";
5712
5713 /**
5714 * Flag indicating whether Supported header field with the option tag
5715 * 'timer' is enabled or not.
5716 *
5717 * <p>If {@code true}, session timer support is available.{@code false} otherwise.
5718 *
5719 * Reference: RFC 4028 Section 3
5720 */
5721 public static final String KEY_SESSION_TIMER_SUPPORTED_BOOL =
5722 KEY_PREFIX + "session_timer_supported_bool";
5723
5724 /**
5725 * Session-expires header field expressed in seconds as per
5726 * RFC 4028 Section 3.
5727 *
5728 * <p>This establishes the upper bound for the session refresh interval.
5729 */
5730 public static final String KEY_SESSION_EXPIRES_TIMER_SEC_INT =
5731 KEY_PREFIX + "session_expires_timer_sec_int";
5732
5733 /**
5734 * Indicates the minimum value for the session interval in seconds.
5735 * Represented as min-SE header field as per RFC 4028 Section 3.
5736 *
5737 * <p>This establishes the lower bound for the session refresh interval.
5738 */
5739 public static final String KEY_MINIMUM_SESSION_EXPIRES_TIMER_SEC_INT =
5740 KEY_PREFIX + "minimum_session_expires_timer_sec_int";
5741
5742 /** @hide */
5743 @IntDef({
5744 SESSION_REFRESHER_TYPE_UNKNOWN,
5745 SESSION_REFRESHER_TYPE_UAC,
5746 SESSION_REFRESHER_TYPE_UAS
5747 })
5748
5749 public @interface SessionRefresherType {}
5750
5751 /**
5752 * Session Refresher entity is unknown. This means UE does not include the
5753 * "refresher" parameter in the Session-Expires header field of
5754 * the SIP INVITE request.
5755 */
5756 public static final int SESSION_REFRESHER_TYPE_UNKNOWN = 0;
5757
5758 /**
5759 * Session Refresher entity is User Agent Client (UAC).
5760 *
5761 * <p>Type of "refresher" parameter in the Session-Expires header field
5762 * of the SIP INVITE request is UAC.
5763 */
5764 public static final int SESSION_REFRESHER_TYPE_UAC = 1;
5765
5766 /**
5767 * Session Refresher entity is User Agent Server (UAS).
5768 *
5769 * <p>Type of "refresher" parameter in the Session-Expires header field
5770 * of the SIP INVITE request is UAS.
5771 */
5772 public static final int SESSION_REFRESHER_TYPE_UAS = 2;
5773
5774 /**
5775 * Session Refresher entity as per RFC 4028 and IR.92 Section 2.2.8.
5776 *
5777 * <p>This determines,
5778 * a) whether to include the "refresher" parameter
5779 * b) Type of refresher" parameter
5780 * in the Session-Expires header field of the SIP INVITE request.
5781 *
5782 * <p>Possible values are,
5783 * {@link #SESSION_REFRESHER_TYPE_UNKNOWN},
5784 * {@link #SESSION_REFRESHER_TYPE_UAC},
5785 * {@link #SESSION_REFRESHER_TYPE_UAS}
5786 */
5787 public static final String KEY_SESSION_REFRESHER_TYPE_INT =
5788 KEY_PREFIX + "session_refresher_type_int";
5789
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08005790
5791 /** @hide */
5792 @IntDef({
5793 SESSION_PRIVACY_TYPE_HEADER,
5794 SESSION_PRIVACY_TYPE_NONE,
5795 SESSION_PRIVACY_TYPE_ID
5796 })
5797
5798 public @interface SessionPrivacyType {}
5799
5800 /**
5801 * Session privacy type is HEADER as per RFC 3323 Section 4.2.
5802 */
5803 public static final int SESSION_PRIVACY_TYPE_HEADER = 0;
5804
5805 /**
5806 * Session privacy type is NONE as per RFC 3323 Section 4.2.
5807 */
5808 public static final int SESSION_PRIVACY_TYPE_NONE = 1;
5809
5810 /**
5811 * Session privacy type is ID as per RFC 3325 Section 9.3.
5812 */
5813 public static final int SESSION_PRIVACY_TYPE_ID = 2;
5814
5815 /**
5816 * Specify the session privacy type.
5817 *
5818 * <p>Reference: RFC 3323 Section 4.2, RFC 3325 Section 9.3.
5819 *
5820 * <p>Possible values are,
5821 * {@link #SESSION_PRIVACY_TYPE_HEADER},
5822 * {@link #SESSION_PRIVACY_TYPE_NONE},
5823 * {@link #SESSION_PRIVACY_TYPE_ID}
5824 */
5825 public static final String KEY_SESSION_PRIVACY_TYPE_INT =
5826 KEY_PREFIX + "session_privacy_type_int";
5827
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08005828 /**
5829 * Flag indicating whether PRACK must be enabled for all 18x messages.
5830 *
5831 * <p>If {@code false}, only 18x responses with SDP are sent reliably.
5832 * If {@code true}, SIP 18x responses (other than SIP 183 response)
5833 * are sent reliably.
5834 */
5835 public static final String KEY_PRACK_SUPPORTED_FOR_18X_BOOL =
5836 KEY_PREFIX + "prack_supported_for_18x_bool";
5837
5838 /** @hide */
5839 @IntDef({
5840 CONFERENCE_SUBSCRIBE_TYPE_IN_DIALOG,
5841 CONFERENCE_SUBSCRIBE_TYPE_OUT_OF_DIALOG
5842 })
5843
5844 public @interface ConferenceSubscribeType {}
5845
5846 /**
5847 * The SIP SUBSCRIBE to conference state events is sent in the
5848 * SIP INVITE dialog between the UE and the conference server.
5849 *
5850 * <p>Reference: IR.92 Section 2.3.3.
5851 */
5852 public static final int CONFERENCE_SUBSCRIBE_TYPE_IN_DIALOG = 0;
5853
5854 /**
5855 * The SIP SUBSCRIBE to conference state events is sent out of
5856 * the SIP INVITE dialog between the UE and the conference server.
5857 *
5858 * <p>Reference: IR.92 Section 2.3.3.
5859 */
5860 public static final int CONFERENCE_SUBSCRIBE_TYPE_OUT_OF_DIALOG = 1;
5861
5862 /**
5863 * This is used to specify whether the SIP SUBSCRIBE to conference state events,
5864 * is sent in or out of the SIP INVITE dialog between the UE and the
5865 * conference server.
5866 *
5867 * <p>Reference: IR.92 Section 2.3.3.
5868 *
5869 * <p>Possible values are,
5870 * {@link #CONFERENCE_SUBSCRIBE_TYPE_IN_DIALOG},
5871 * {@link #CONFERENCE_SUBSCRIBE_TYPE_OUT_OF_DIALOG}
5872 *
5873 * An empty array indicates SUBSCRIBE to conference event package
5874 * is not required.
5875 */
5876 public static final String KEY_CONFERENCE_SUBSCRIBE_TYPE_INT =
5877 KEY_PREFIX + "conference_subscribe_type_int";
5878
5879 /**
5880 * Flag specifying whether QoS preconditions are supported during call setup.
5881 *
5882 * <p>If {@code true}: QoS Preconditions are supported during call setup and
5883 * 'precondition' tag is included in the SIP INVITE header and precondition
5884 * parameters are sent in SDP as required.
5885 * <p>If {@code false}: QoS Preconditions are not supported during call setup.
5886 *
5887 * <p>Reference: 3GPP TS 24.229
5888 */
5889 public static final String KEY_VOICE_QOS_PRECONDITION_SUPPORTED_BOOL =
5890 KEY_PREFIX + "voice_qos_precondition_supported_bool";
5891
5892 /**
5893 * Flag specifying whether voice is allowed on default bearer.
5894 *
5895 * <p>If {@code true}: voice packets can be sent on default bearer. {@code false} otherwise.
5896 */
5897 public static final String KEY_VOICE_ON_DEFAULT_BEARER_SUPPORTED_BOOL =
5898 KEY_PREFIX + "voice_on_default_bearer_supported_bool";
5899
5900 /**
5901 * Specifies the dedicated bearer wait time during call establishment.
5902 *
5903 * <p>If dedicated bearer is not established within this time and if
5904 * {@link #KEY_VOICE_ON_DEFAULT_BEARER_SUPPORTED_BOOL} is false, then call setup would fail.
5905 * <p>If dedicated bearer is not established within this time and if
5906 * {@link #KEY_VOICE_ON_DEFAULT_BEARER_SUPPORTED_BOOL} is true, then the media is allowed
5907 * on default bearer.
5908 */
5909 public static final String KEY_DEDICATED_BEARER_WAIT_TIMER_MILLIS_INT =
5910 KEY_PREFIX + "dedicated_bearer_wait_timer_millis_int";
5911
5912 /** @hide */
5913 @IntDef({
5914 BASIC_SRVCC_SUPPORT,
5915 ALERTING_SRVCC_SUPPORT,
5916 PREALERTING_SRVCC_SUPPORT,
5917 MIDCALL_SRVCC_SUPPORT
5918 })
5919
5920 public @interface SrvccType {}
5921
5922 /**
5923 * Indicates support for basic SRVCC, typically 1 active call
5924 * as detailed in IR.92 Section A.3.
5925 */
5926 public static final int BASIC_SRVCC_SUPPORT = 0;
5927
5928 /**
5929 * SRVCC access transfer for calls in alerting phase as per 3GPP 24.237
5930 * and IR.64 Section 4.4.
5931 * Media feature tag used: g.3gpp.srvcc-alerting.
5932 */
5933 public static final int ALERTING_SRVCC_SUPPORT = 1;
5934
5935 /**
5936 * SRVCC access transfer for calls in pre-alerting phase as per 3GPP 24.237.
5937 * Media feature tag used: g.3gpp.ps2cs-srvcc-orig-pre-alerting.
5938 */
5939 public static final int PREALERTING_SRVCC_SUPPORT = 2;
5940
5941 /**
5942 * SRVCC access transfer for calls in mid-call phase as per 3GPP 24.237.
5943 * and IR.64 Section 4.4.
5944 * <p>This means UE supports the MSC server assisted mid-call feature.
5945 * Media feature tag used: g.3gpp.mid-call.
5946 */
5947 public static final int MIDCALL_SRVCC_SUPPORT = 3;
5948
5949 /**
5950 * List of different SRVCC types supported as defined in 3GPP 24.237.
5951 *
5952 * <p> Possible values are,
5953 * {@link #BASIC_SRVCC_SUPPORT},
5954 * {@link #ALERTING_SRVCC_SUPPORT},
5955 * {@link #PREALERTING_SRVCC_SUPPORT},
5956 * {@link #MIDCALL_SRVCC_SUPPORT}
5957 *
5958 * <p> Reference: IR.64, 3GPP 24.237, 3GPP 23.216
5959 */
5960 public static final String KEY_SRVCC_TYPE_INT_ARRAY =
5961 KEY_PREFIX + "srvcc_type_int_array";
5962
5963 /**
5964 * Specifies the ringing timer for Mobile terminated calls.
5965 *
5966 * <p>Ringing timer starts when the device sends SIP 180 Ringing in
5967 * response to a received SIP INVITE. If Ringing timer expires,
5968 * the device sends SIP 486 response.
5969 */
5970 public static final String KEY_RINGING_TIMER_MILLIS_INT =
5971 KEY_PREFIX + "ringing_timer_millis_int";
5972
5973 /**
5974 * Specifies the ringback timer for Mobile originated calls.
5975 *
5976 * <p>Ringback timer starts when the device receives SIP 180 Ringing
5977 * in response to its SIP INVITE. If Ringback timer expires,
5978 * the device sends SIP CANCEL.
5979 */
5980 public static final String KEY_RINGBACK_TIMER_MILLIS_INT =
5981 KEY_PREFIX + "ringback_timer_millis_int";
5982
5983 /**
5984 * Specifies the timeout value for RTP inactivity for audio media.
5985 * <p>On timer expiry, call will end.
5986 * See {@link #KEY_AUDIO_INACTIVITY_CALL_END_REASONS_INT_ARRAY} for more
5987 * details.
5988 * <p> Value of 0 means this timer is not enabled.
5989 */
5990 public static final String KEY_AUDIO_RTP_INACTIVITY_TIMER_MILLIS_INT =
5991 KEY_PREFIX + "audio_rtp_inactivity_timer_millis_int";
5992
5993 /**
5994 * Specifies the timeout value for RTCP inactivity for audio media.
5995 * <p>On timer expiry, call will end.
5996 * See {@link #KEY_AUDIO_INACTIVITY_CALL_END_REASONS_INT_ARRAY} for more
5997 * details.
5998 * <p> Value of 0 means this timer is not enabled.
5999 */
6000 public static final String KEY_AUDIO_RTCP_INACTIVITY_TIMER_MILLIS_INT =
6001 KEY_PREFIX + "audio_rtcp_inactivity_timer_millis_int";
6002
6003 /**
6004 * Used to specify the conference factory URI.
6005 *
6006 * <p>If this is empty, then conference URI is generated from MCC/MNC as
6007 * specified in clause 13.10 of 3GPP 23.003.
6008 */
6009 public static final String KEY_CONFERENCE_FACTORY_URI_STRING =
6010 KEY_PREFIX + "conference_factory_uri_string";
6011
6012 /** @hide */
6013 @IntDef({
6014 SESSION_REFRESH_METHOD_INVITE,
6015 SESSION_REFRESH_METHOD_UPDATE_PREFERRED
6016 })
6017
6018 public @interface SessionRefreshMethod {}
6019
6020 /**
6021 * SIP INVITE is used for Session Refresh
6022 */
6023 public static final int SESSION_REFRESH_METHOD_INVITE = 0;
6024
6025 /**
6026 * Both SIP INVITE and UPDATE are used for session refresh.
6027 *
6028 * <p>SIP UPDATE will be used if UPDATE is in 'Allow' header.
6029 * If UPDATE is not in 'Allow' header, then INVITE will be used.
6030 */
6031 public static final int SESSION_REFRESH_METHOD_UPDATE_PREFERRED = 1;
6032
6033 /**
6034 * This is used to specify the method used for session refresh.
6035 *
6036 * <p>Possible values are,
6037 * {@link #SESSION_REFRESH_METHOD_INVITE},
6038 * {@link #SESSION_REFRESH_METHOD_UPDATE_PREFERRED}
6039 */
6040 public static final String KEY_SESSION_REFRESH_METHOD_INT =
6041 KEY_PREFIX + "session_refresh_method_int";
6042
6043 /**
6044 * Flag specifying whether the 'From' header field is used for determination of
6045 * the originating party identity in Originating Identification Presentation(OIP)
6046 * service.
6047 *
6048 * <p>If {@code true}: Indicates that the 'From' header field is used for
6049 * determination of the originating party identity in OIP.
6050 * {@code false} otherwise.
6051 */
6052 public static final String KEY_OIP_SOURCE_FROM_HEADER_BOOL =
6053 KEY_PREFIX + "oip_source_from_header_bool";
6054
6055 /**
6056 * Specifies the timer value for INVITE to the first 1xx response
6057 * (including 100 trying). If no response is received at timer expiry,
6058 * call is redialed over CS.
6059 *
6060 * <p> Reference: 24.173 Table L.1
6061 */
6062 public static final String KEY_MO_CALL_REQUEST_TIMEOUT_MILLIS_INT =
6063 KEY_PREFIX + "mo_call_request_timeout_millis_int";
6064
6065 /**
6066 * List of various reasons of media inactivity for which
6067 * voice/emergency call will end.
6068 *
6069 * <p>Possible values are,
6070 * {@link Ims#RTCP_INACTIVITY_ON_HOLD},
6071 * {@link Ims#RTCP_INACTIVITY_ON_CONNECTED},
6072 * {@link Ims#RTP_INACTIVITY_ON_CONNECTED}
6073 * {@link Ims#E911_RTCP_INACTIVITY_ON_CONNECTED},
6074 * {@link Ims#E911_RTP_INACTIVITY_ON_CONNECTED}
6075 */
6076 public static final String KEY_AUDIO_INACTIVITY_CALL_END_REASONS_INT_ARRAY =
6077 KEY_PREFIX + "audio_inactivity_call_end_reasons_int_array";
6078
6079 /**
6080 * Specifies the AS (Application Specific) SDP modifier for audio media.
6081 *
6082 * <p>This value is expressed in kilobits per second.
6083 * Reference: RFC 3556 Section 2.
6084 */
6085 public static final String KEY_AUDIO_AS_BANDWIDTH_KBPS_INT =
6086 KEY_PREFIX + "audio_as_bandwidth_kbps_int";
6087
6088 /**
6089 * Specifies the RS SDP modifier for audio media. This indicates the RTCP
6090 * bandwidth allocated to active data senders for audio media.
6091 *
6092 * <p>This value is expressed in bits per second.
6093 * Reference: RFC 3556 Section 2.
6094 */
6095 public static final String KEY_AUDIO_RS_BANDWIDTH_BPS_INT =
6096 KEY_PREFIX + "audio_rs_bandwidth_bps_int";
6097
6098 /**
6099 * Specifies the RR SDP modifier for audio media. This indicates the RTCP
6100 * bandwidth allocated to receivers for audio media.
6101 *
6102 * <p>This value is expressed in bits per second.
6103 * Reference: RFC 3556 Section 2.
6104 */
6105 public static final String KEY_AUDIO_RR_BANDWIDTH_BPS_INT =
6106 KEY_PREFIX + "audio_rr_bandwidth_bps_int";
6107
6108 /**
6109 * Specifies the Audio Codec capability. This contains a list of payload types
6110 * representing different audio codec instances.
6111 *
6112 * <p> The priority of the codecs is EVS, AMRWB, AMRNB, DTMF WB, DTMF NB
6113 * from highest to lowest. In each individual codec, the priority is determined
6114 * by the order of the payload types from highest to lowest.
6115 *
6116 * <p>Possible keys in this bundle are,
6117 * <UL>
6118 * <LI>{@link #KEY_EVS_PAYLOAD_TYPE_INT_ARRAY}</LI>
6119 * <LI>{@link #KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY}</LI>
6120 * <LI>{@link #KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY}</LI>
6121 * <LI>{@link #KEY_DTMFWB_PAYLOAD_TYPE_INT_ARRAY}</LI>
6122 * <LI>{@link #KEY_DTMFNB_PAYLOAD_TYPE_INT_ARRAY}</LI>
6123 * </UL>
6124 * <p>To specify payload descriptions for each of the audio payload types, see
6125 * <UL>
6126 * <LI>{@link #KEY_EVS_PAYLOAD_DESCRIPTION_BUNDLE}</LI>
6127 * <LI>{@link #KEY_AMRNB_PAYLOAD_DESCRIPTION_BUNDLE}</LI>
6128 * <LI>{@link #KEY_AMRWB_PAYLOAD_DESCRIPTION_BUNDLE}</LI>
6129 * </UL>
6130 */
6131 public static final String KEY_AUDIO_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE =
6132 KEY_PREFIX + "audio_codec_capability_payload_types_bundle";
6133
6134 /**
6135 * A list of integers representing the different payload types
6136 * in EVS codec in priority order from highest to lowest.
6137 * <p>Payload type is an integer in dynamic payload type range 96-127
6138 * as per RFC RFC 3551 Section 6.
6139 */
6140 public static final String KEY_EVS_PAYLOAD_TYPE_INT_ARRAY =
6141 KEY_PREFIX + "evs_payload_type_int_array";
6142
6143 /**
6144 * A list of integers representing the different payload types
6145 * in AMR-WB codec in priority order from highest to lowest.
6146 * <p>Payload type is an integer in dynamic payload type range 96-127
6147 * as per RFC RFC 3551 Section 6.
6148 */
6149 public static final String KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY =
6150 KEY_PREFIX + "amrwb_payload_type_int_array";
6151
6152 /**
6153 * A list of integers representing the different payload types
6154 * in AMR-NB codec in priority order from highest to lowest.
6155 * <p>Payload type is an integer in dynamic payload type range 96-127
6156 * as per RFC RFC 3551 Section 6.
6157 */
6158 public static final String KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY =
6159 KEY_PREFIX + "amrnb_payload_type_int_array";
6160
6161 /**
6162 * A list of integers representing the different payload types
6163 * in DTMF WB codec in priority order from highest to lowest.
6164 * <p>Payload type is an integer in dynamic payload type range 96-127
6165 * as per RFC RFC 3551 Section 6.
6166 */
6167 public static final String KEY_DTMFWB_PAYLOAD_TYPE_INT_ARRAY =
6168 KEY_PREFIX + "dtmfwb_payload_type_int_array";
6169
6170 /**
6171 * A list of integers representing the different payload types
6172 * in DTMF NB codec in priority order from highest to lowest.
6173 * <p>Payload type is an integer in dynamic payload type range 96-127
6174 * as per RFC RFC 3551 Section 6.
6175 */
6176 public static final String KEY_DTMFNB_PAYLOAD_TYPE_INT_ARRAY =
6177 KEY_PREFIX + "dtmfnb_payload_type_int_array";
6178
6179 /** @hide */
6180 @IntDef({
6181 BANDWIDTH_EFFICIENT,
6182 OCTET_ALIGNED
6183 })
6184
6185 public @interface AmrPayloadFormat {}
6186
6187 /** AMR NB/WB Payload format is bandwidth-efficient. */
6188 public static final int BANDWIDTH_EFFICIENT = 0;
6189
6190 /** AMR NB/WB Payload format is octet-aligned. */
6191 public static final int OCTET_ALIGNED = 1;
6192
6193 /**
6194 * Specifies the payload format of the AMR-NB/AMR-WB codec.
6195 *
6196 * <p>Possible values are,
6197 * {@link #BANDWIDTH_EFFICIENT},
6198 * {@link #OCTET_ALIGNED}
6199
6200 * <p>If value is not specified, payload format is
6201 * {@link #BANDWIDTH_EFFICIENT}.
6202 *
6203 * <p>Reference: RFC 4867 Section 8.1.
6204 */
6205 public static final String KEY_AMR_CODEC_ATTRIBUTE_PAYLOAD_FORMAT_INT =
6206 KEY_PREFIX + "amr_codec_attribute_payload_format_int";
6207
6208 /**
6209 * Restricts the active mode set to a subset of all modes in the codec.
6210 *
6211 * <p>This attribute is optional. If value is set, then session mode
6212 * set is restricted to the modes specified in this list. If this value
6213 * is not specified, then all available modes in the codec are allowed.
6214 * This attribute is applicable for AMR-WB, AMR-NB,
6215 * and EVS codec (operating in AMR-WB IO Mode).
6216 *
6217 * <p>Possible values are subset of,
6218 * [0,1,2,3,4,5,6,7,8] - AMRWB with the modes representing nine speech codec modes
6219 * with bit rates of 6.6, 8.85, 12.65, 14.25, 15.85, 18.25, 19.85, 23.05, 23.85 kbps.
6220 * [0,1,2,3,4,5,6,7] - AMRNB with the modes representing eight speech codec modes
6221 * with bit rates of 4.75, 5.15, 5.90, 6.70, 7.40, 7.95, 10.2, 12.2 kbps.
6222 *
6223 * <p>If value is not specified, then it means device supports all
6224 * modes in the codec but not included in SDP.
6225 *
6226 * <p>Reference: RFC 4867 Section 8.1, 3GPP 26.445 A.3.1
6227 */
6228 public static final String KEY_AMR_CODEC_ATTRIBUTE_MODESET_INT_ARRAY =
6229 KEY_PREFIX + "amr_codec_attribute_modeset_int_array";
6230
6231 /**
6232 * Specifies the codec attributes of different payload types in
6233 * the AMR NarrowBand (AMR-NB) codec.
6234 *
6235 * <p> The keys in this bundle are payload types specified
6236 * in {@link #KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY}.
6237 *
6238 * <p>Codec attributes allowed as part of AMR-NB codec bundle are,
6239 * <UL>
6240 * <LI>{@link #KEY_AMR_CODEC_ATTRIBUTE_PAYLOAD_FORMAT_INT}</LI>
6241 * <LI>{@link #KEY_AMR_CODEC_ATTRIBUTE_MODESET_INT_ARRAY}</LI>
6242 * </UL>
6243 *
6244 * <p> If this bundle is not configured and AMRNB payload type is added
6245 * in {@link #KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY}, then default
6246 * values as in the individual codec attribute to be used
6247 * for that payload type.
6248 */
6249 public static final String KEY_AMRNB_PAYLOAD_DESCRIPTION_BUNDLE =
6250 KEY_PREFIX + "amrnb_payload_description_bundle";
6251
6252 /**
6253 * Specifies the codec attributes of different payload types in
6254 * the AMR WideBand (AMR-WB) codec.
6255 *
6256 * <p> The keys in this bundle are payload types specified
6257 * in {@link #KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY}.
6258 *
6259 * <p>Codec attributes allowed as part of AMR-NB codec bundle are,
6260 * <UL>
6261 * <LI>{@link #KEY_AMR_CODEC_ATTRIBUTE_PAYLOAD_FORMAT_INT}</LI>
6262 * <LI>{@link #KEY_AMR_CODEC_ATTRIBUTE_MODESET_INT_ARRAY}</LI>
6263 * </UL>
6264 *
6265 * <p> If this bundle is not configured and AMRWB payload type is added
6266 * in {@link #KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY}, then default
6267 * values as in the individual codec attribute to be used
6268 * for that payload type.
6269 */
6270 public static final String KEY_AMRWB_PAYLOAD_DESCRIPTION_BUNDLE =
6271 KEY_PREFIX + "amrwb_payload_description_bundle";
6272
6273 /** @hide */
6274 @IntDef({
6275 EVS_OPERATIONAL_MODE_PRIMARY,
6276 EVS_OPERATIONAL_MODE_AMRWB_IO
6277 })
6278
6279 public @interface EvsOperationalMode {}
6280
6281 /** Indicates the EVS primary mode. 3GPP 26.445 Section 3.1 */
6282 public static final int EVS_OPERATIONAL_MODE_PRIMARY = 0;
6283
6284 /** Indicates the EVS AMR-WB IO mode. 3GPP 26.445 Section 3.1 */
6285 public static final int EVS_OPERATIONAL_MODE_AMRWB_IO = 1;
6286
6287 /**
6288 * Specifies if the EVS mode used is EVS primary mode
6289 * or EVS AMR-WB IO mode.
6290 *
6291 * <p>Possible values are,
6292 * {@link #EVS_OPERATIONAL_MODE_PRIMARY},
6293 * {@link #EVS_OPERATIONAL_MODE_AMRWB_IO}
6294 *
6295 * <p>If this is not present, then {@link #EVS_OPERATIONAL_MODE_PRIMARY} is used.
6296 * <p>Reference: 3GPP 26.445 Section 3.1.
6297 */
6298 public static final String KEY_EVS_CODEC_ATTRIBUTE_MODE_SWITCH_INT =
6299 KEY_PREFIX + "evs_codec_attribute_mode_switch_int";
6300
6301 /** @hide */
6302 @IntDef({
6303 EVS_ENCODED_BW_TYPE_NB,
6304 EVS_ENCODED_BW_TYPE_WB,
6305 EVS_ENCODED_BW_TYPE_SWB,
6306 EVS_ENCODED_BW_TYPE_FB,
6307 EVS_ENCODED_BW_TYPE_NB_WB,
6308 EVS_ENCODED_BW_TYPE_NB_WB_SWB,
6309 EVS_ENCODED_BW_TYPE_NB_WB_SWB_FB,
6310 EVS_ENCODED_BW_TYPE_WB_SWB,
6311 EVS_ENCODED_BW_TYPE_WB_SWB_FB
6312 })
6313
6314 public @interface EvsEncodedBwType {}
6315
6316 /**
6317 * EVS encoded Bandwidth is Narrow Band (NB).
6318 * Reference: 3GPP 26.441 Table 1.
6319 */
6320 public static final int EVS_ENCODED_BW_TYPE_NB = 0;
6321
6322 /**
6323 * EVS encoded Bandwidth is Wide Band (WB).
6324 * Reference: 3GPP 26.441 Table 1.
6325 */
6326 public static final int EVS_ENCODED_BW_TYPE_WB = 1;
6327
6328 /**
6329 * EVS encoded Bandwidth is Super WideBand (SWB).
6330 * Reference: 3GPP 26.441 Table 1.
6331 */
6332 public static final int EVS_ENCODED_BW_TYPE_SWB = 2;
6333
6334 /**
6335 * EVS encoded Bandwidth is Full Band (FB).
6336 * Reference: 3GPP 26.441 Table 1.
6337 */
6338 public static final int EVS_ENCODED_BW_TYPE_FB = 3;
6339
6340 /**
6341 * EVS encoded Bandwidth is in the range NB,WB.
6342 * Reference: 3GPP 26.441 Table 1.
6343 */
6344 public static final int EVS_ENCODED_BW_TYPE_NB_WB = 4;
6345
6346 /**
6347 * EVS encoded Bandwidth is in the range NB,WB,SWB.
6348 * Reference: 3GPP 26.441 Table 1.
6349 */
6350 public static final int EVS_ENCODED_BW_TYPE_NB_WB_SWB = 5;
6351
6352 /**
6353 * EVS encoded Bandwidth is in the range NB,WB,SWB,FB.
6354 * Reference: 3GPP 26.441 Table 1.
6355 */
6356 public static final int EVS_ENCODED_BW_TYPE_NB_WB_SWB_FB = 6;
6357
6358 /**
6359 * EVS encoded Bandwidth is in the range WB,SWB.
6360 * Reference: 3GPP 26.441 Table 1.
6361 */
6362 public static final int EVS_ENCODED_BW_TYPE_WB_SWB = 7;
6363
6364 /**
6365 * EVS encoded Bandwidth is in the range WB,SWB,FB.
6366 * Reference: 3GPP 26.441 Table 1.
6367 */
6368 public static final int EVS_ENCODED_BW_TYPE_WB_SWB_FB = 8;
6369
6370 /**
6371 * Specifies the EVS codec encoding bandwidth options.
6372 *
6373 * Possible values are,
6374 * {@link #EVS_ENCODED_BW_TYPE_NB},
6375 * {@link #EVS_ENCODED_BW_TYPE_WB},
6376 * {@link #EVS_ENCODED_BW_TYPE_SWB},
6377 * {@link #EVS_ENCODED_BW_TYPE_FB},
6378 * {@link #EVS_ENCODED_BW_TYPE_NB_WB},
6379 * {@link #EVS_ENCODED_BW_TYPE_NB_WB_SWB},
6380 * {@link #EVS_ENCODED_BW_TYPE_NB_WB_SWB_FB},
6381 * {@link #EVS_ENCODED_BW_TYPE_WB_SWB},
6382 * {@link #EVS_ENCODED_BW_TYPE_WB_SWB_FB}
6383 *
6384 * If this key is not specified, then the behavior is same as
6385 * value {@link #EVS_ENCODED_BW_TYPE_NB_WB_SWB}
6386 *
6387 * <p>Reference: 3GPP 26.441 Table 1.
6388 */
6389 public static final String KEY_EVS_CODEC_ATTRIBUTE_BANDWIDTH_INT =
6390 KEY_PREFIX + "evs_codec_attribute_bandwidth_int";
6391
6392 /** @hide */
6393 @IntDef({
6394 EVS_PRIMARY_MODE_BITRATE_5_9_KBPS,
6395 EVS_PRIMARY_MODE_BITRATE_7_2_KBPS,
6396 EVS_PRIMARY_MODE_BITRATE_8_0_KBPS,
6397 EVS_PRIMARY_MODE_BITRATE_9_6_KBPS,
6398 EVS_PRIMARY_MODE_BITRATE_13_2_KBPS,
6399 EVS_PRIMARY_MODE_BITRATE_16_4_KBPS,
6400 EVS_PRIMARY_MODE_BITRATE_24_4_KBPS,
6401 EVS_PRIMARY_MODE_BITRATE_32_0_KBPS,
6402 EVS_PRIMARY_MODE_BITRATE_48_0_KBPS,
6403 EVS_PRIMARY_MODE_BITRATE_64_0_KBPS,
6404 EVS_PRIMARY_MODE_BITRATE_96_0_KBPS,
6405 EVS_PRIMARY_MODE_BITRATE_128_0_KBPS
6406 })
6407
6408 public @interface EvsPrimaryModeBitRate {}
6409
6410 /** EVS primary mode with bitrate 5.9 kbps */
6411 public static final int EVS_PRIMARY_MODE_BITRATE_5_9_KBPS = 0;
6412
6413 /** EVS primary mode with bitrate 7.2 kbps */
6414 public static final int EVS_PRIMARY_MODE_BITRATE_7_2_KBPS = 1;
6415
6416 /** EVS primary mode with bitrate 8.0 kbps */
6417 public static final int EVS_PRIMARY_MODE_BITRATE_8_0_KBPS = 2;
6418
6419 /** EVS primary mode with bitrate 9.6 kbps */
6420 public static final int EVS_PRIMARY_MODE_BITRATE_9_6_KBPS = 3;
6421
6422 /** EVS primary mode with bitrate 13.2 kbps */
6423 public static final int EVS_PRIMARY_MODE_BITRATE_13_2_KBPS = 4;
6424
6425 /** EVS primary mode with bitrate 16.4 kbps */
6426 public static final int EVS_PRIMARY_MODE_BITRATE_16_4_KBPS = 5;
6427
6428 /** EVS primary mode with bitrate 24.4 kbps */
6429 public static final int EVS_PRIMARY_MODE_BITRATE_24_4_KBPS = 6;
6430
6431 /** EVS primary mode with bitrate 32.0 kbps */
6432 public static final int EVS_PRIMARY_MODE_BITRATE_32_0_KBPS = 7;
6433
6434 /** EVS primary mode with bitrate 48.0 kbps */
6435 public static final int EVS_PRIMARY_MODE_BITRATE_48_0_KBPS = 8;
6436
6437 /** EVS primary mode with bitrate 64.0 kbps */
6438 public static final int EVS_PRIMARY_MODE_BITRATE_64_0_KBPS = 9;
6439
6440 /** EVS primary mode with bitrate 96.0 kbps */
6441 public static final int EVS_PRIMARY_MODE_BITRATE_96_0_KBPS = 10;
6442
6443 /** EVS primary mode with bitrate 128.0 kbps */
6444 public static final int EVS_PRIMARY_MODE_BITRATE_128_0_KBPS = 11;
6445
6446 /**
6447 * Specifies the range of source codec bit-rate for EVS Primary mode
6448 * in the session. This is expressed in kilobits per second and
6449 * applicable for both the send and the receive directions.
6450 *
6451 * <p>The range is specified as integer aray of size 2,
6452 * represented as [low, high], where low <= high
6453 *
6454 * <p>Possible values for low and high are,
6455 * {@link #EVS_PRIMARY_MODE_BITRATE_5_9_KBPS},
6456 * {@link #EVS_PRIMARY_MODE_BITRATE_7_2_KBPS},
6457 * {@link #EVS_PRIMARY_MODE_BITRATE_8_0_KBPS},
6458 * {@link #EVS_PRIMARY_MODE_BITRATE_9_6_KBPS},
6459 * {@link #EVS_PRIMARY_MODE_BITRATE_13_2_KBPS},
6460 * {@link #EVS_PRIMARY_MODE_BITRATE_16_4_KBPS},
6461 * {@link #EVS_PRIMARY_MODE_BITRATE_24_4_KBPS},
6462 * {@link #EVS_PRIMARY_MODE_BITRATE_32_0_KBPS},
6463 * {@link #EVS_PRIMARY_MODE_BITRATE_48_0_KBPS},
6464 * {@link #EVS_PRIMARY_MODE_BITRATE_64_0_KBPS},
6465 * {@link #EVS_PRIMARY_MODE_BITRATE_96_0_KBPS},
6466 * {@link #EVS_PRIMARY_MODE_BITRATE_128_0_KBPS}
6467 *
6468 * If this key is not specified, then the behavior is same as
6469 * value {@link #EVS_PRIMARY_MODE_BITRATE_24_4_KBPS}
6470 *
6471 * <p>Reference: 3GPP 26.445 Section A.3.1
6472 */
6473 public static final String KEY_EVS_CODEC_ATTRIBUTE_BITRATE_INT_ARRAY =
6474 KEY_PREFIX + "evs_codec_attribute_bitrate_int_array";
6475
6476 /**
6477 * Specifies the Channel aware mode (ch-aw-recv) for the receive direction.
6478 * This is applicable for EVS codec.
6479 *
6480 * <p>Permissible values are -1, 0, 2, 3, 5, and 7.
6481 * If this key is not specified, then the behavior is same as value 0
6482 * (channel aware mode disabled).
6483 * <p> If this key is configured, then device is expected to send
6484 * this parameter in the SDP offer.
6485 *
6486 * <p>Reference: 3GPP TS 26.445 section 4.4.5, 3GPP 26.445 Section A.3.1
6487 */
6488 public static final String KEY_EVS_CODEC_ATTRIBUTE_CH_AW_RECV_INT =
6489 KEY_PREFIX + "evs_codec_attribute_ch_aw_recv_int";
6490
6491 /**
6492 * Specifies whether to limit the session to header-full format.
6493 * This applies to both directions in the session. This attribute
6494 * is applicable for EVS codec.
6495 *
6496 * <p>Permissible values are 0, 1
6497 * If hf-only is 1, only Header-Full format is used and hf-only is
6498 * included in the SDP.
6499 * <p>If hf-only is 0, both Compact and Header-Full formats are used
6500 * and hf-only is included in the SDP.
6501 * <p>If this key is not present, then both Compact
6502 * and Header-Full formats are used and hf-only is not included in
6503 * the SDP.
6504 * <p> If this key is configured, then device is expected to send
6505 * this parameter in the SDP offer if operator required it.
6506 *
6507 * <p>Reference: 3GPP 26.445 Section A.3.1.
6508 */
6509 public static final String KEY_EVS_CODEC_ATTRIBUTE_HF_ONLY_INT =
6510 KEY_PREFIX + "evs_codec_attribute_hf_only_int";
6511
6512 /**
6513 * Specifies whether DTX (Discontinuous transmission) is enabled
6514 * or not. This applies to both directions in the session.
6515 * This attribute is applicable for EVS codec and can be used
6516 * in both EVS Primary mode and EVS AMR-WB IO mode.
6517 *
6518 * <p>If {@code true}: Indicates DTX is enabled.
6519 * If {@code false}: Indicates DTX is disabled.
6520 *
6521 * <p>If this is not present, then default value of {@code true}
6522 * will apply.
6523 * <p>Reference: 3GPP TS 26.445 Section A.3.1.
6524 */
6525 public static final String KEY_EVS_CODEC_ATTRIBUTE_DTX_BOOL =
6526 KEY_PREFIX + "evs_codec_attribute_dtx_bool";
6527
6528 /**
6529 * This is used if further restriction is required on DTX in the
6530 * receive direction. This attribute is applicable for EVS codec
6531 * and can be used in both EVS Primary mode and EVS AMR-WB IO mode.
6532 *
6533 * <p> If this value is true or not present, then DTX setting is
6534 * dependent on {@link #KEY_EVS_CODEC_ATTRIBUTE_DTX_BOOL}.
6535 *
6536 * <p> If this is not present, then default value of {@code true}
6537 * will apply.
6538 *
6539 * <p>Reference: 3GPP TS 26.445 Section A.3.1.
6540 */
6541 public static final String KEY_EVS_CODEC_ATTRIBUTE_DTX_RECV_BOOL =
6542 KEY_PREFIX + "evs_codec_attribute_dtx_recv_bool";
6543
6544 /**
6545 * Specifies the number of audio channels.
6546 * If this is not present, then default value of 1 will apply.
6547 *
6548 * <p>Reference: RFC 3551
6549 */
6550 public static final String KEY_EVS_CODEC_ATTRIBUTE_CHANNELS_INT =
6551 KEY_PREFIX + "evs_codec_attribute_channels_int";
6552
6553 /**
6554 * Indicates whether the Codec Mode Request (CMR) is supported
6555 * for the session.
6556 * This attribute is applicable for EVS codec in Primary Mode only.
6557 *
6558 * <p>Possible values are -1, 0, 1. If this key is not present,
6559 * then behavior as per value 0 is applicable.
6560 *
6561 * <p>Reference: 3GPP 26.445 Section A.3.1, 3GPP 26.114 Table 6.2a
6562 */
6563 public static final String KEY_EVS_CODEC_ATTRIBUTE_CMR_INT =
6564 KEY_PREFIX + "codec_attribute_cmr_int";
6565
6566 /**
6567 * Specifies the number of frame-blocks. This indicates the frame-block period
6568 * at which codec mode changes are allowed for the sender. This attribute is
6569 * applicable for EVS codec in AMR-WB IO mode and AMR-WB.
6570 *
6571 * <p>Possible values are 1, 2.
6572 * If the key is not present, behavior as per value 1 is applicable and this
6573 * parameter is not included in SDP.
6574 *
6575 * <p>Reference: RFC 4867 Section 8.1.
6576 */
6577 public static final String KEY_CODEC_ATTRIBUTE_MODE_CHANGE_PERIOD_INT =
6578 KEY_PREFIX + "codec_attribute_mode_change_period_int";
6579
6580 /**
6581 * Specifies if the client is capable to transmit with a restricted mode
6582 * change period. This attribute is applicable for EVS codec in
6583 * AMR-WB IO mode and AMR-WB.
6584 *
6585 * <p>Possible values are 1, 2. If this key is not present,
6586 * then behavior as per value 1 is applicable and this
6587 * parameter is not included in SDP.
6588 *
6589 * <p>Reference: RFC 4867 Section 8.1.
6590 */
6591 public static final String KEY_CODEC_ATTRIBUTE_MODE_CHANGE_CAPABILITY_INT =
6592 KEY_PREFIX + "codec_attribute_mode_change_capability_int";
6593
6594 /**
6595 * Specifies the allowed mode changes for the sender in the active mode set.
6596 * This attribute is applicable for EVS codec in AMR-WB IO mode
6597 * and AMR-WB.
6598 *
6599 * <p>Possible values are 0, 1. If value is 1, then the sender should only
6600 * perform mode changes to the neighboring modes in the active codec mode set.
6601 * If value is 0, then mode changes between any two modes
6602 * in the active codec mode set is allowed.
6603 * If the key is not present, behavior as per value 0 is applicable and this
6604 * parameter is not included in SDP.
6605 *
6606 * <p>Reference: RFC 4867 Section 8.1.
6607 */
6608 public static final String KEY_CODEC_ATTRIBUTE_MODE_CHANGE_NEIGHBOR_INT =
6609 KEY_PREFIX + "codec_attribute_mode_change_neighbor_int";
6610
6611 /**
6612 * Specifies the codec attributes of different payload types in
6613 * the EVS codec.
6614 *
6615 * <p> The keys in this bundle are payload types specified
6616 * in {@link #KEY_EVS_PAYLOAD_TYPE_INT_ARRAY}.
6617 *
6618 * <p>Codec attributes allowed as part of EVS codec are,
6619 * <UL>
6620 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_BANDWIDTH_INT}</LI>
6621 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_BITRATE_INT_ARRAY}</LI>
6622 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_CH_AW_RECV_INT}</LI>
6623 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_HF_ONLY_INT}</LI>
6624 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_DTX_BOOL}</LI>
6625 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_DTX_RECV_BOOL}</LI>
6626 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_MODE_SWITCH_INT}</LI>
6627 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_CMR_INT}</LI>
6628 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_CHANNELS_INT}</LI>
6629 * <LI>{@link #KEY_CODEC_ATTRIBUTE_MODE_CHANGE_PERIOD_INT}</LI>
6630 * <LI>{@link #KEY_CODEC_ATTRIBUTE_MODE_CHANGE_CAPABILITY_INT}</LI>
6631 * <LI>{@link #KEY_CODEC_ATTRIBUTE_MODE_CHANGE_NEIGHBOR_INT}</LI>
6632 * </UL>
6633 */
6634 public static final String KEY_EVS_PAYLOAD_DESCRIPTION_BUNDLE =
6635 KEY_PREFIX + "evs_payload_description_bundle";
6636
6637 private static PersistableBundle getDefaults() {
6638 PersistableBundle defaults = new PersistableBundle();
6639 defaults.putBoolean(KEY_CARRIER_VOLTE_ROAMING_AVAILABLE_BOOL, true);
6640 defaults.putBoolean(KEY_INCLUDE_CALLER_ID_SERVICE_CODES_IN_SIP_INVITE_BOOL, false);
6641 defaults.putBoolean(KEY_MULTIENDPOINT_SUPPORTED_BOOL, false);
6642 defaults.putBoolean(KEY_SESSION_TIMER_SUPPORTED_BOOL, true);
6643 defaults.putBoolean(KEY_OIP_SOURCE_FROM_HEADER_BOOL, false);
Sateshk Kumar Chinnappan9b1b1df2022-02-14 09:16:32 -08006644 defaults.putBoolean(KEY_PRACK_SUPPORTED_FOR_18X_BOOL, false);
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08006645 defaults.putBoolean(KEY_VOICE_QOS_PRECONDITION_SUPPORTED_BOOL, true);
6646 defaults.putBoolean(KEY_VOICE_ON_DEFAULT_BEARER_SUPPORTED_BOOL, false);
6647
Sateshk Kumar Chinnappan9b1b1df2022-02-14 09:16:32 -08006648 defaults.putInt(KEY_SESSION_REFRESHER_TYPE_INT, SESSION_REFRESHER_TYPE_UAC);
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08006649 defaults.putInt(KEY_SESSION_PRIVACY_TYPE_INT, SESSION_PRIVACY_TYPE_HEADER);
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08006650 defaults.putInt(KEY_SESSION_REFRESH_METHOD_INT,
6651 SESSION_REFRESH_METHOD_UPDATE_PREFERRED);
6652 defaults.putInt(KEY_CONFERENCE_SUBSCRIBE_TYPE_INT,
6653 CONFERENCE_SUBSCRIBE_TYPE_OUT_OF_DIALOG);
6654 defaults.putInt(KEY_AUDIO_RTP_INACTIVITY_TIMER_MILLIS_INT, 20000);
6655 defaults.putInt(KEY_AUDIO_RTCP_INACTIVITY_TIMER_MILLIS_INT, 20000);
6656 defaults.putInt(KEY_DEDICATED_BEARER_WAIT_TIMER_MILLIS_INT, 8000);
6657 defaults.putInt(KEY_RINGING_TIMER_MILLIS_INT, 90000);
6658 defaults.putInt(KEY_RINGBACK_TIMER_MILLIS_INT, 90000);
6659 defaults.putInt(KEY_MO_CALL_REQUEST_TIMEOUT_MILLIS_INT, 5000);
6660 defaults.putInt(KEY_SESSION_EXPIRES_TIMER_SEC_INT, 1800);
6661 defaults.putInt(KEY_MINIMUM_SESSION_EXPIRES_TIMER_SEC_INT, 90);
6662 defaults.putInt(KEY_AUDIO_AS_BANDWIDTH_KBPS_INT, 41);
6663 defaults.putInt(KEY_AUDIO_RS_BANDWIDTH_BPS_INT, 600);
6664 defaults.putInt(KEY_AUDIO_RR_BANDWIDTH_BPS_INT, 2000);
6665
6666 defaults.putIntArray(
6667 KEY_AUDIO_INACTIVITY_CALL_END_REASONS_INT_ARRAY,
6668 new int[] {
6669 Ims.RTCP_INACTIVITY_ON_CONNECTED,
Sateshk Kumar Chinnappan9b1b1df2022-02-14 09:16:32 -08006670 Ims.RTP_INACTIVITY_ON_CONNECTED,
6671 Ims.E911_RTCP_INACTIVITY_ON_CONNECTED,
6672 Ims.RTCP_INACTIVITY_ON_HOLD
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08006673 });
6674
6675 defaults.putIntArray(
6676 KEY_SRVCC_TYPE_INT_ARRAY,
6677 new int[] {
6678 BASIC_SRVCC_SUPPORT,
6679 ALERTING_SRVCC_SUPPORT,
6680 PREALERTING_SRVCC_SUPPORT,
6681 MIDCALL_SRVCC_SUPPORT
6682 });
6683
6684 defaults.putString(KEY_CONFERENCE_FACTORY_URI_STRING, "");
6685
6686 PersistableBundle audio_codec_capability_payload_types = new PersistableBundle();
6687
6688 audio_codec_capability_payload_types.putIntArray(
6689 KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY,
6690 new int[] { 97, 98 });
6691
6692 audio_codec_capability_payload_types.putIntArray(
6693 KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY,
6694 new int[] { 99, 100 });
6695
6696 audio_codec_capability_payload_types.putIntArray(
6697 KEY_DTMFWB_PAYLOAD_TYPE_INT_ARRAY,
6698 new int[] { 101 });
6699
6700 audio_codec_capability_payload_types.putIntArray(
6701 KEY_DTMFNB_PAYLOAD_TYPE_INT_ARRAY,
6702 new int[] { 102 });
6703
6704 defaults.putPersistableBundle(
6705 KEY_AUDIO_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE,
6706 audio_codec_capability_payload_types);
6707
6708 /* Setting defaults for AMRWB */
6709 PersistableBundle all_amrwb_payload_bundles = new PersistableBundle();
6710 PersistableBundle amrwb_bundle_instance1 = new PersistableBundle();
6711
6712 all_amrwb_payload_bundles.putPersistableBundle(
6713 "97", /* Same value of payload type as in KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY */
6714 amrwb_bundle_instance1);
6715
6716 PersistableBundle amrwb_bundle_instance2 = new PersistableBundle();
6717
6718 amrwb_bundle_instance2.putInt(KEY_AMR_CODEC_ATTRIBUTE_PAYLOAD_FORMAT_INT,
6719 OCTET_ALIGNED);
6720
6721 all_amrwb_payload_bundles.putPersistableBundle(
6722 "98", /* Same value of payload type as in KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY */
6723 amrwb_bundle_instance2);
6724
6725 defaults.putPersistableBundle(
6726 KEY_AMRWB_PAYLOAD_DESCRIPTION_BUNDLE,
6727 all_amrwb_payload_bundles);
6728
6729 /* Setting defaults for AMRNB */
6730 PersistableBundle all_amrnb_payload_bundles = new PersistableBundle();
6731 PersistableBundle amrnb_bundle_instance1 = new PersistableBundle();
6732
6733 all_amrnb_payload_bundles.putPersistableBundle(
6734 "99", /* Same value of payload type as in KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY */
6735 amrnb_bundle_instance1);
6736
6737 PersistableBundle amrnb_bundle_instance2 = new PersistableBundle();
6738
6739 amrnb_bundle_instance2.putInt(KEY_AMR_CODEC_ATTRIBUTE_PAYLOAD_FORMAT_INT,
6740 OCTET_ALIGNED);
6741
6742 all_amrnb_payload_bundles.putPersistableBundle(
6743 "100", /* Same value of payload type as in KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY */
6744 amrnb_bundle_instance2);
6745
6746 defaults.putPersistableBundle(
6747 KEY_AMRNB_PAYLOAD_DESCRIPTION_BUNDLE,
6748 all_amrnb_payload_bundles);
6749
6750 return defaults;
6751 }
6752 }
6753
6754 /**
6755 * IMS SMS configs. This groups the configs specific for SMS over IMS
6756 */
6757 public static final class ImsSms {
6758 private ImsSms() {}
6759
6760 /** Prefix of all imssms.KEY_* constants. */
6761 public static final String KEY_PREFIX = "imssms.";
6762
6763 /**
6764 * Flag specifying if SMS over IMS support is available or not.
6765 *
6766 * <p>If {@code true}: SMS over IMS support available.
6767 * {@code false}: otherwise.
6768 */
6769 public static final String KEY_SMS_OVER_IMS_SUPPORTED_BOOL =
6770 KEY_PREFIX + "sms_over_ims_supported_bool";
6771
6772 /**
6773 * Flag specifying whether to allow SMS CSFB in case of
6774 * SMS over PS failure.
6775 *
6776 * <p>If {@code true}: allow SMS CSFB in case of SMS over PS failure.
6777 * {@code false} otherwise.
6778 */
6779 public static final String KEY_SMS_CSFB_RETRY_ON_FAILURE_BOOL =
6780 KEY_PREFIX + "sms_csfb_retry_on_failure_bool";
6781
6782 /** @hide */
6783 @IntDef({
6784 SMS_FORMAT_3GPP,
6785 SMS_FORMAT_3GPP2
6786 })
6787
6788 public @interface SmsFormat {}
6789
6790 /** SMS format is 3GPP. */
6791 public static final int SMS_FORMAT_3GPP = 0;
6792
6793 /** SMS format is 3GPP2. */
6794 public static final int SMS_FORMAT_3GPP2 = 1;
6795
6796 /**
6797 * Specifies the SMS over IMS format.
6798 *
6799 * <p>Possible values are,
6800 * {@link #SMS_FORMAT_3GPP},
6801 * {@link #SMS_FORMAT_3GPP2}
6802 */
6803 public static final String KEY_SMS_OVER_IMS_FORMAT_INT =
6804 KEY_PREFIX + "sms_over_ims_format_int";
6805
6806 /**
6807 * List of different RAT technologies on which SMS over IMS
6808 * is supported.
6809 *
6810 * <p>Possible values are,
6811 * {@link AccessNetworkConstants.AccessNetworkType#NGRAN}
6812 * {@link AccessNetworkConstants.AccessNetworkType#EUTRAN}
6813 * {@link AccessNetworkConstants.AccessNetworkType#IWLAN}
6814 * {@link AccessNetworkConstants.AccessNetworkType#UTRAN}
6815 * {@link AccessNetworkConstants.AccessNetworkType#GERAN}
6816 */
6817 public static final String KEY_SMS_OVER_IMS_SUPPORTED_RATS_INT_ARRAY =
6818 KEY_PREFIX + "sms_over_ims_supported_rats_int_array";
6819
6820 private static PersistableBundle getDefaults() {
6821 PersistableBundle defaults = new PersistableBundle();
6822 defaults.putBoolean(KEY_SMS_OVER_IMS_SUPPORTED_BOOL, true);
6823 defaults.putBoolean(KEY_SMS_CSFB_RETRY_ON_FAILURE_BOOL, true);
6824
6825 defaults.putInt(KEY_SMS_OVER_IMS_FORMAT_INT, SMS_FORMAT_3GPP);
6826
6827 defaults.putIntArray(
6828 KEY_SMS_OVER_IMS_SUPPORTED_RATS_INT_ARRAY,
6829 new int[] {
6830 AccessNetworkType.EUTRAN,
6831 AccessNetworkType.IWLAN
6832 });
6833
6834 return defaults;
6835 }
6836 }
6837
6838 /**
6839 * IMS RTT configs. This groups the configs specific for text media,
6840 * RTT (Real Time Text).
6841 */
6842 public static final class ImsRtt {
6843 private ImsRtt() {}
6844
6845 /** Prefix of all imsrtt.KEY_* constants. */
6846 public static final String KEY_PREFIX = "imsrtt.";
6847
6848 /**
6849 * Flag specifying whether text media is allowed on default bearer.
6850 *
6851 * <p>If {@code true}: text media can be sent on default bearer.
6852 * {@code false} otherwise.
6853 */
6854 public static final String KEY_TEXT_ON_DEFAULT_BEARER_SUPPORTED_BOOL =
6855 KEY_PREFIX + "text_on_default_bearer_supported_bool";
6856
6857 /**
6858 * Flag specifying whether QoS preconditions are supported for text.
6859 *
6860 * <p>If {@code true}: QoS Preconditions are supported.
6861 * {@code false} otherwise.
6862 * <p>Reference: 3GPP TS 24.229
6863 */
6864 public static final String KEY_TEXT_QOS_PRECONDITION_SUPPORTED_BOOL =
6865 KEY_PREFIX + "text_qos_precondition_supported_bool";
6866
6867 /**
6868 * Specifies the AS (Application Specific) SDP modifier for text media.
6869 *
6870 * <p>Expressed in kilobits per second as per RFC 3556 Section 2.
6871 */
6872 public static final String KEY_TEXT_AS_BANDWIDTH_KBPS_INT =
6873 KEY_PREFIX + "text_as_bandwidth_kbps_int";
6874
6875 /**
6876 * Specifies the RS (RTCP bandwidth-Sender) SDP modifier for text media.
6877 *
6878 * <p>This indicates the RTCP bandwidth allocated to active data senders
6879 * for text media.
6880 *
6881 * <p>Expressed in bits per second as per RFC 3556 Section 2.
6882 */
6883 public static final String KEY_TEXT_RS_BANDWIDTH_BPS_INT =
6884 KEY_PREFIX + "text_rs_bandwidth_bps_int";
6885
6886 /**
6887 * Specifies the RR (RTCP bandwidth-Receiver) SDP modifier for
6888 * text media.
6889 *
6890 * <p>This indicates the RTCP bandwidth allocated to receivers
6891 * for text media.
6892 *
6893 * <p>Expressed in bits per second as per RFC 3556 Section 2.
6894 */
6895 public static final String KEY_TEXT_RR_BANDWIDTH_BPS_INT =
6896 KEY_PREFIX + "text_rr_bandwidth_bps_int";
6897
6898 /**
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08006899 * Specifies the Text Codec capability.
6900 *
6901 * <p>Possible keys in this bundle are,
6902 * <UL>
6903 * <LI>{@link #KEY_T140_PAYLOAD_TYPE_INT}</LI>
6904 * <LI>{@link #KEY_RED_PAYLOAD_TYPE_INT}</LI>
6905 * </UL>
6906 */
6907 public static final String KEY_TEXT_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE =
6908 KEY_PREFIX + "text_codec_capability_payload_types_bundle";
6909
6910 /** Integer representing payload type for T140 codec.
6911 * <p>Payload type is an integer in dynamic payload type range 96-127
6912 * as per RFC RFC 3551 Section 6.
6913 */
6914 public static final String KEY_T140_PAYLOAD_TYPE_INT =
6915 KEY_PREFIX + "t140_payload_type_int";
6916
6917 /** Integer representing payload type for RED/redundancy codec.
6918 * <p>Payload type is an integer in dynamic payload type range 96-127
6919 * as per RFC RFC 3551 Section 6.
6920 */
6921 public static final String KEY_RED_PAYLOAD_TYPE_INT =
6922 KEY_PREFIX + "red_payload_type_int";
6923
6924 private static PersistableBundle getDefaults() {
6925 PersistableBundle defaults = new PersistableBundle();
6926 defaults.putBoolean(KEY_TEXT_ON_DEFAULT_BEARER_SUPPORTED_BOOL, false);
6927 defaults.putBoolean(KEY_TEXT_QOS_PRECONDITION_SUPPORTED_BOOL, true);
6928
6929 defaults.putInt(KEY_TEXT_AS_BANDWIDTH_KBPS_INT, 4);
6930 defaults.putInt(KEY_TEXT_RS_BANDWIDTH_BPS_INT, 100);
6931 defaults.putInt(KEY_TEXT_RR_BANDWIDTH_BPS_INT, 300);
6932
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08006933 PersistableBundle text_codec_capability_payload_types = new PersistableBundle();
6934
6935 text_codec_capability_payload_types.putInt(
6936 KEY_RED_PAYLOAD_TYPE_INT,
6937 112);
6938
6939 text_codec_capability_payload_types.putInt(
6940 KEY_T140_PAYLOAD_TYPE_INT,
6941 111);
6942
6943 defaults.putPersistableBundle(
6944 KEY_TEXT_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE,
6945 text_codec_capability_payload_types);
6946
6947 return defaults;
6948 }
6949 }
6950
6951 /**
6952 * Emergency Call/E911. This groups the configs specific for emergency call
6953 * over IMS.
6954 *
6955 * <p> Reference: 3GPP 24.229, 3GPP 23.167 Annex H, 3GPP 24.301.
6956 */
6957 public static final class ImsEmergency {
6958 private ImsEmergency() {}
6959
6960 /** Prefix of all imsemergency.KEY_* constants. */
6961 public static final String KEY_PREFIX = "imsemergency.";
6962
6963 /**
6964 * Flag specifying whether UE would retry E911 call on
6965 * IMS PDN if emergency PDN setup failed.
6966 *
6967 * <p>If {@code true}: Allow UE to retry emergency call on
6968 * IMS PDN if emergency PDN setup failed.{@code false} otherwise.
6969 */
6970 public static final String KEY_RETRY_EMERGENCY_ON_IMS_PDN_BOOL =
6971 KEY_PREFIX + "retry_emergency_on_ims_pdn_bool";
6972
6973 /**
6974 * Flag specifying whether UE should enter Emergency CallBack Mode(ECBM)
6975 * after E911 call is ended.
6976 *
6977 * <p>If {@code true}: Enter ECBM mode after E911 call is ended.
6978 * {@code false} otherwise.
6979 */
6980 public static final String KEY_EMERGENCY_CALLBACK_MODE_SUPPORTED_BOOL =
6981 KEY_PREFIX + "emergency_callback_mode_supported_bool";
6982
6983 /**
6984 * Flag specifying whether QoS preconditions are supported for emergency
6985 * call setup.
6986 *
6987 * <p>If {@code true}: QoS Preconditions are supported.
6988 * {@code false} otherwise.
6989 *
6990 * <p>Reference: 3GPP TS 24.229
6991 */
6992 public static final String KEY_EMERGENCY_QOS_PRECONDITION_SUPPORTED_BOOL =
6993 KEY_PREFIX + "emergency_qos_precondition_supported_bool";
6994
6995 /**
6996 * List of different RAT technologies on which emergency call using IMS
6997 * is supported.
6998 *
6999 * <p>Possible values are,
7000 * {@link AccessNetworkConstants.AccessNetworkType#NGRAN}
7001 * {@link AccessNetworkConstants.AccessNetworkType#EUTRAN}
7002 * {@link AccessNetworkConstants.AccessNetworkType#IWLAN}
7003 */
7004 public static final String KEY_EMERGENCY_OVER_IMS_SUPPORTED_RATS_INT_ARRAY =
7005 KEY_PREFIX + "emergency_over_ims_supported_rats_int_array";
7006
7007 /**
7008 * Specifies the maximum time from deciding that an emergency service is to
7009 * be established until completion of the emergency registration procedure.
7010 * Upon timer expiry, the UE considers the emergency REGISTER request or
7011 * the emergency call attempt as failed.
7012 */
7013 public static final String KEY_EMERGENCY_REGISTRATION_TIMER_MILLIS_INT =
7014 KEY_PREFIX + "emergency_registration_timer_millis_int";
7015
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08007016 /**
7017 * This setting will be specify the wait time for refreshing
7018 * geolocation information before dialing emergency call.
7019 */
7020 public static final String KEY_REFRESH_GEOLOCATION_TIMEOUT_MILLIS_INT =
7021 KEY_PREFIX + "refresh_geolocation_timeout_millis_int";
7022
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08007023 private static PersistableBundle getDefaults() {
7024 PersistableBundle defaults = new PersistableBundle();
7025 defaults.putBoolean(KEY_RETRY_EMERGENCY_ON_IMS_PDN_BOOL, false);
7026 defaults.putBoolean(KEY_EMERGENCY_CALLBACK_MODE_SUPPORTED_BOOL, false);
7027 defaults.putBoolean(KEY_EMERGENCY_QOS_PRECONDITION_SUPPORTED_BOOL, true);
7028
7029 defaults.putIntArray(
7030 KEY_EMERGENCY_OVER_IMS_SUPPORTED_RATS_INT_ARRAY,
7031 new int[] {
7032 AccessNetworkType.EUTRAN,
7033 AccessNetworkType.IWLAN
7034 });
7035
Sateshk Kumar Chinnappan9b1b1df2022-02-14 09:16:32 -08007036 defaults.putInt(KEY_EMERGENCY_REGISTRATION_TIMER_MILLIS_INT, 10000);
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08007037 defaults.putInt(KEY_REFRESH_GEOLOCATION_TIMEOUT_MILLIS_INT, 5000);
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08007038
7039 return defaults;
7040 }
7041 }
7042
7043 /**
7044 * IMS Video Telephony configs. This groups the configs that are specific for video call.
7045 */
7046 public static final class ImsVt {
7047 private ImsVt() {}
7048
7049 /** Prefix of all imsvt.KEY_* constants. */
7050 public static final String KEY_PREFIX = "imsvt.";
7051
7052 /**
7053 * Flag specifying whether video media is allowed on default bearer.
7054 *
7055 * <p>If {@code true}: video media can be sent on default bearer.
7056 * {@code false} otherwise.
7057 */
7058 public static final String KEY_VIDEO_ON_DEFAULT_BEARER_SUPPORTED_BOOL =
7059 KEY_PREFIX + "video_on_default_bearer_supported_bool";
7060
7061 /**
7062 * Specifies the timeout value for no video RTP packets received.
7063 * <p>On timer expiry, VT call can downgrade to voice call or end
7064 * or continue depending on the operator requirement.
7065 */
7066 public static final String KEY_VIDEO_RTP_INACTIVITY_TIMER_MILLIS_INT =
7067 KEY_PREFIX + "video_rtp_inactivity_timer_millis_int";
7068
7069 /**
7070 * Specifies the timeout value for no video RTCP packets received.
7071 * <p>On timer expiry, VT call can downgrade to voice call or end
7072 * or continue depending on the operator requirement.
7073 */
7074 public static final String KEY_VIDEO_RTCP_INACTIVITY_TIMER_MILLIS_INT =
7075 KEY_PREFIX + "video_rtcp_inactivity_timer_millis_int";
7076
7077 /**
7078 * Specifies the AS (Application Specific) SDP modifier for video media.
7079 *
7080 * <p>Expressed in kilobits per second as per RFC 3556 Section 2.
7081 */
7082 public static final String KEY_VIDEO_AS_BANDWIDTH_KBPS_INT =
7083 KEY_PREFIX + "video_as_bandwidth_kbps_int";
7084
7085 /**
7086 * Specifies the RS (RTCP bandwidth-Sender) SDP modifier for video media.
7087 *
7088 * <p>This indicates the RTCP bandwidth allocated to active data senders
7089 * for video media.
7090 *
7091 * <p>Expressed in bits per second as per RFC 3556 Section 2.
7092 */
7093 public static final String KEY_VIDEO_RS_BANDWIDTH_BPS_INT =
7094 KEY_PREFIX + "video_rs_bandwidth_bps_int";
7095
7096 /**
7097 * Specifies the RR (RTCP bandwidth-Receiver) SDP modifier
7098 * for video media.
7099 *
7100 * <p>This indicates the RTCP bandwidth allocated to receivers
7101 * for video media.
7102 *
7103 * <p>Expressed in bits per second as per RFC 3556 Section 2.
7104 */
7105 public static final String KEY_VIDEO_RR_BANDWIDTH_BPS_INT =
7106 KEY_PREFIX + "video_rr_bandwidth_bps_int";
7107
7108 /**
7109 * Specifies the differentiated services code point (DSCP) value
7110 * for Video RTP.
7111 *
7112 * <p>Reference: RFC 4594 Section 1.4.4
7113 */
7114 public static final String KEY_VIDEO_RTP_DSCP_INT =
7115 KEY_PREFIX + "video_rtp_dscp_int";
7116
7117 /**
7118 * Flag specifying whether QoS preconditions are supported for Video.
7119 *
7120 * <p>If {@code true}: QoS Preconditions are supported.
7121 * {@code false} otherwise.
7122 * <p>Reference: 3GPP TS 24.229
7123 */
7124 public static final String KEY_VIDEO_QOS_PRECONDITION_SUPPORTED_BOOL =
7125 KEY_PREFIX + "video_qos_precondition_supported_bool";
7126
7127 /**
7128 * Specifies the Video Codec capability. This contains a list of
7129 * payload types representing different Video codec instances.
7130
7131 * <p>Possible key(s) in this bundle are,
7132 * <UL>
7133 * <LI>{@link #KEY_H264_PAYLOAD_TYPE_INT_ARRAY}</LI>
7134 * </UL>
7135 * <p>To specify payload descriptions for each of the payload types, see
7136 * <UL>
7137 * <LI>{@link #KEY_H264_PAYLOAD_DESCRIPTION_BUNDLE}</LI>
7138 * </UL>
7139 */
7140 public static final String KEY_VIDEO_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE =
7141 KEY_PREFIX + "video_codec_capability_payload_types_bundle";
7142
7143 /**
7144 * A list of integers representing the different payload types
7145 * in H264 video codec in priority order from highest to lowest.
7146 * <p>Payload type is an integer in dynamic payload type range 96-127
7147 * as per RFC RFC 3551 Section 6.
7148 */
7149 public static final String KEY_H264_PAYLOAD_TYPE_INT_ARRAY =
7150 KEY_PREFIX + "h264_payload_type_int_array";
7151
7152 /**
7153 * Specifies the codec attributes of different payload types
7154 * representing H264 video codec instances.
7155 *
7156 * <p> The allowed payload types of the video codecs are specified in,
7157 * {@link #KEY_H264_PAYLOAD_TYPE_INT_ARRAY}.
7158 *
7159 * <p>Codec attributes allowed as part of H264 codec bundle are,
7160 * <UL>
7161 * <LI>{@link #KEY_H264_VIDEO_CODEC_ATTRIBUTE_PROFILE_LEVEL_ID_STRING}</LI>
7162 * <LI>{@link #KEY_VIDEO_CODEC_ATTRIBUTE_PACKETIZATION_MODE_INT}</LI>
7163 * <LI>{@link #KEY_VIDEO_CODEC_ATTRIBUTE_FRAME_RATE_INT}</LI>
7164 * <LI>{@link #KEY_VIDEO_CODEC_ATTRIBUTE_RESOLUTION_INT_ARRAY}</LI>
7165 * </UL>
7166 *
7167 * <p>If this bundle is not configured and
7168 * {@link #KEY_H264_PAYLOAD_TYPE_INT_ARRAY} is not empty,
7169 * then default values as in the individual codec attributes to
7170 * be used for that payload type.
7171 * <p>If the codec attributes in a particular codec instance bundle
7172 * is not valid together, then that codec instance should not be used.
7173 */
7174 public static final String KEY_H264_PAYLOAD_DESCRIPTION_BUNDLE =
7175 KEY_PREFIX + "h264_payload_description_bundle";
7176
7177 /**
7178 * Specifies the packetization mode of the video codec.
7179 *
7180 * <p>Permissible values are 0 (Single NAL unit mode),
7181 * 1(Non-interleaved mode).
7182 *
7183 * <p>If this key is not specified or invalid, then the following
7184 * default value to be used.
7185 * <UL>
7186 * <LI>For H264: 1(Non-interleaved mode)</LI>
7187 * <UL>
7188 *
7189 * <p>Reference: RFC 6184 Section 5.4
7190 */
7191 public static final String KEY_VIDEO_CODEC_ATTRIBUTE_PACKETIZATION_MODE_INT =
7192 KEY_PREFIX + "video_codec_attribute_packetization_mode_int";
7193
7194 /**
7195 * Specifies the maximum frame rate the offerer wishes to receive.
7196 * This gives the maximum video frame rate in frames/sec.
7197 *
7198 * <p>If this key is not specified or invalid, then the following
7199 * default value to be used.
7200 * <UL>
7201 * <LI>For H264: 15 </LI>
7202 * <UL>
7203 * <p>Reference: RFC 4566 Section 6, 3GPP 26.114 Section 6.2.3.2
7204 */
7205 public static final String KEY_VIDEO_CODEC_ATTRIBUTE_FRAME_RATE_INT =
7206 KEY_PREFIX + "video_codec_attribute_frame_rate_int";
7207
7208 /**
7209 * Specifies the maximum resolution allowed for the video codec
7210 * instance.
7211 *
7212 * <p>This is specified as an array of two integers, with
7213 * index 0 : Width,
7214 * index 1 : Height
7215 *
7216 * <p>If this key is not specified or invalid as per the video codec,
7217 * then the following default value to be used.
7218 * <UL>
7219 * <LI>For H264: 240 (WIDTH) x 320 (HEIGHT) </LI>
7220 * <UL>
7221 * <p>Reference: RFC 4566 Section 6, 3GPP 26.114 Section 6.2.3.2
7222 *
7223 */
7224 public static final String KEY_VIDEO_CODEC_ATTRIBUTE_RESOLUTION_INT_ARRAY =
7225 KEY_PREFIX + "video_codec_attribute_resolution_int_array";
7226
7227 /**
7228 * Specifies the profile level id of the H264 video codec.
7229 * This value is represented as "profile-level-id" in the SDP offer
7230 * as per RFC 6184 Section 8.1.
7231 *
7232 * <p>If this key is not specified or invalid as per the video codec,
7233 * then default value of 42C00C to be used.
7234 *
7235 * <p>Reference: RFC 6184 Section 8.1, ITU-T Recommendation H.264
7236 */
7237 public static final String KEY_H264_VIDEO_CODEC_ATTRIBUTE_PROFILE_LEVEL_ID_STRING =
7238 KEY_PREFIX + "h264_video_codec_attribute_profile_level_id_string";
7239
7240 private static PersistableBundle getDefaults() {
7241 PersistableBundle defaults = new PersistableBundle();
7242 defaults.putBoolean(KEY_VIDEO_ON_DEFAULT_BEARER_SUPPORTED_BOOL, false);
7243 defaults.putBoolean(KEY_VIDEO_QOS_PRECONDITION_SUPPORTED_BOOL, true);
7244
7245 defaults.putInt(KEY_VIDEO_RTP_INACTIVITY_TIMER_MILLIS_INT, 0);
7246 defaults.putInt(KEY_VIDEO_RTCP_INACTIVITY_TIMER_MILLIS_INT, 0);
7247
7248 defaults.putInt(KEY_VIDEO_AS_BANDWIDTH_KBPS_INT, 960);
7249 defaults.putInt(KEY_VIDEO_RS_BANDWIDTH_BPS_INT, 8000);
7250 defaults.putInt(KEY_VIDEO_RR_BANDWIDTH_BPS_INT, 6000);
7251 defaults.putInt(KEY_VIDEO_RTP_DSCP_INT, 40);
7252
7253 PersistableBundle video_codec_capability_payload_types = new PersistableBundle();
7254
7255 video_codec_capability_payload_types.putIntArray(
7256 KEY_H264_PAYLOAD_TYPE_INT_ARRAY,
7257 new int[] { 99, 100 });
7258
7259 defaults.putPersistableBundle(
7260 KEY_VIDEO_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE,
7261 video_codec_capability_payload_types);
7262
7263 PersistableBundle all_h264_payload_bundles = new PersistableBundle();
7264
7265 /* Setting default codec attributes for individual H264 profiles*/
7266
7267 /* For H264 profile-level-id: 42C00C, frame rate:15, Resolution: 240x320 */
7268 PersistableBundle h264_bundle_instance1 = new PersistableBundle();
7269 all_h264_payload_bundles.putPersistableBundle(
7270 "99", /* Same value of payload type as in KEY_H264_PAYLOAD_TYPE_INT_ARRAY */
7271 h264_bundle_instance1);
7272
7273 /* For H264 profile-level-id: 42C00C, packetisation mode:0, frame rate:15,
7274 * Resolution: 240x320 */
7275 PersistableBundle h264_bundle_instance2 = new PersistableBundle();
7276 h264_bundle_instance2.putInt(
7277 KEY_VIDEO_CODEC_ATTRIBUTE_PACKETIZATION_MODE_INT,
7278 0);
7279
7280 all_h264_payload_bundles.putPersistableBundle(
7281 "100", /* Same value of payload type as in KEY_H264_PAYLOAD_TYPE_INT_ARRAY */
7282 h264_bundle_instance2);
7283
7284 defaults.putPersistableBundle(
7285 KEY_H264_PAYLOAD_DESCRIPTION_BUNDLE,
7286 all_h264_payload_bundles);
7287
7288 return defaults;
7289 }
7290 }
7291
7292 /**
7293 * WiFi Calling. This groups the configs specific for Voice over WiFi/WFC call.
7294 */
7295 public static final class ImsWfc {
7296 private ImsWfc() {}
7297
7298 /** Prefix of all imswfc.KEY_* constants. */
7299 public static final String KEY_PREFIX = "imswfc.";
7300
7301 /**
7302 * List of MDNs for which Geo-location PIDF XML with country info
7303 * needs to included for normal calls involving short code.
7304 */
7305 public static final String KEY_PIDF_SHORT_CODE_STRING_ARRAY =
7306 KEY_PREFIX + "pidf_short_code_string_array";
7307
7308 /**
7309 * Flag specifying whether emergency call over VoWiFi is requested over
7310 * emergency PDN or IMS PDN.
7311 *
7312 * <p>If {@code false}: E911 call uses IMS PDN for E911 call over VoWiFi.
7313 * If {@code true}: E911 call uses Emergency PDN for E911 call over VoWiFi.
7314 */
7315 public static final String KEY_EMERGENCY_CALL_OVER_EMERGENCY_PDN_BOOL =
7316 KEY_PREFIX + "emergency_call_over_emergency_pdn_bool";
7317
7318
7319 private static PersistableBundle getDefaults() {
7320 PersistableBundle defaults = new PersistableBundle();
7321
7322 defaults.putBoolean(KEY_EMERGENCY_CALL_OVER_EMERGENCY_PDN_BOOL, false);
7323 defaults.putStringArray(KEY_PIDF_SHORT_CODE_STRING_ARRAY, new String[] {});
7324
7325 return defaults;
7326 }
7327 }
7328
7329 /**
7330 * IMS supplementary services configs. This groups the configs required for
7331 * supplementary services (SS) like XCAP over UT,
7332 * Unstructured Supplementary Service Data(USSD).
7333 */
7334 public static final class ImsSs {
7335 private ImsSs() {}
7336
7337 /** Prefix of all imsss.KEY_* constants. */
7338 public static final String KEY_PREFIX = "imsss.";
7339
7340 /**
7341 * Flag that controls whether XCAP over UT status need to be
7342 * dependent on IMS registration.
7343 *
7344 * <p>If {@code true}: XCAP over UT status need to be
7345 * dependent on IMS registration.
7346 * {@code false} otherwise.
7347 */
7348 public static final String KEY_UT_REQUIRES_IMS_REGISTRATION_BOOL =
7349 KEY_PREFIX + "ut_requires_ims_registration_bool";
7350
7351 /**
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08007352 * Flag that controls whether XCAP over UT is supported
7353 * when on roaming network.
7354 *
7355 * <p>If {@code true}: XCAP over UT is supported when on
7356 * roaming network.
7357 * {@code false} otherwise.
7358 */
7359 public static final String KEY_UT_SUPPORTED_WHEN_ROAMING_BOOL =
7360 KEY_PREFIX + "ut_supported_when_roaming_bool";
7361
7362 /**
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08007363 * Flag that controls whether Circuit Switched Fallback (CSFB)
7364 * option is available when XCAP over UT fails.
7365 *
7366 * <p>If {@code false}: XCAP over UT only with no CSFB option.
7367 * If XCAP over UT fails, return error.
7368 * if {@code true}, Use CSFB if XCAP over UT fails.
7369 */
7370 public static final String KEY_USE_CSFB_ON_XCAP_OVER_UT_FAILURE_BOOL =
7371 KEY_PREFIX + "use_csfb_on_xcap_over_ut_failure_bool";
7372
7373 /**
7374 * Flag that controls whether XCAP over UT is enabled or not
7375 * when PS data is turned off.
7376 *
7377 * <p>If {@code true}: XCAP over UT is enabled when PS data is off.
7378 * {@code false}: Otherwise.
7379 *
7380 * Reference: IR.92 Section 5.5.1
7381 */
7382 public static final String KEY_UT_SUPPORTED_WHEN_PS_DATA_OFF_BOOL =
7383 KEY_PREFIX + "ut_supported_when_ps_data_off_bool";
7384
7385 /**
7386 * Flag that controls whether network initiated USSD over IMS is
7387 * supported by the UE.
7388 *
7389 * <p>If {@code true}: Support Available.{@code false}: Otherwise.
7390 * Reference: 3GPP 24.390.
7391 */
7392 public static final String KEY_NETWORK_INITIATED_USSD_OVER_IMS_SUPPORTED_BOOL =
7393 KEY_PREFIX + "network_initiated_ussd_over_ims_supported_bool";
7394
7395 /**
7396 * Specifies the 'XCAP over UT' IP Type when device is
7397 * on Home Network.
7398 *
7399 * <p>Possible values are,
7400 * {@link ApnSetting#PROTOCOL_IPV4V6},
7401 * {@link ApnSetting#PROTOCOL_IP},
7402 * {@link ApnSetting#PROTOCOL_IPV6}
7403 *
7404 * If key is invalid or not configured, the default value
7405 * {@link ApnSetting#PROTOCOL_IPV4V6} will apply.
7406 */
7407 public static final String KEY_UT_IPTYPE_HOME_INT =
7408 KEY_PREFIX + "ut_iptype_home_int";
7409
7410 /**
7411 * Specifies the 'XCAP over UT' IP Type when device is roaming.
7412 *
7413 * <p>Possible values are,
7414 * {@link ApnSetting#PROTOCOL_IPV4V6},
7415 * {@link ApnSetting#PROTOCOL_IP},
7416 * {@link ApnSetting#PROTOCOL_IPV6}
7417
7418 * If key is invalid or not configured, the default value
7419 * {@link ApnSetting#PROTOCOL_IPV4V6} will apply.
7420 */
7421 public static final String KEY_UT_IPTYPE_ROAMING_INT =
7422 KEY_PREFIX + "ut_iptype_roaming_int";
7423
7424 /**
7425 * Specifies the XCAP Application Server fully qualified domain name (FQDN).
7426 * <p> Reference: 24.623 Section 5.2.3.
7427 */
7428 public static final String KEY_UT_AS_SERVER_FQDN_STRING =
7429 KEY_PREFIX + "ut_as_server_fqdn_string";
7430
7431 /**
7432 * Specifies the XCAP Application Server Remote port.
7433 * As XCAP is a usage of HTTP, the default value is same as HTTP, i.e. 80.
7434 */
7435 public static final String KEY_UT_AS_SERVER_PORT_INT =
7436 KEY_PREFIX + "ut_as_server_port_int";
7437
7438 /**
7439 * Specifies the preferred transport to be used for XCAP over UT.
7440 *
7441 * <p>Possible values are,
7442 * {@link Ims#PREFERRED_TRANSPORT_TCP},
7443 * {@link Ims#PREFERRED_TRANSPORT_TLS}
7444 *
7445 * <p>If key is invalid or not configured, the default value
7446 * {@link Ims#PREFERRED_TRANSPORT_TCP} will apply.
7447 */
7448 public static final String KEY_UT_TRANSPORT_TYPE_INT =
7449 KEY_PREFIX + "ut_transport_type_int";
7450
7451 /** @hide */
7452 @IntDef({
7453 SUPPLEMENTARY_SERVICE_CW,
7454 SUPPLEMENTARY_SERVICE_CF_ALL,
7455 SUPPLEMENTARY_SERVICE_CF_CFU,
7456 SUPPLEMENTARY_SERVICE_CF_ALL_CONDITONAL_FORWARDING,
7457 SUPPLEMENTARY_SERVICE_CF_CFB,
7458 SUPPLEMENTARY_SERVICE_CF_CFNRY,
7459 SUPPLEMENTARY_SERVICE_CF_CFNRC,
7460 SUPPLEMENTARY_SERVICE_CF_CFNL,
7461 SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIP,
7462 SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIP,
7463 SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIR,
7464 SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIR,
7465 SUPPLEMENTARY_SERVICE_CB_ALL,
7466 SUPPLEMENTARY_SERVICE_CB_OBS,
7467 SUPPLEMENTARY_SERVICE_CB_BAOC,
7468 SUPPLEMENTARY_SERVICE_CB_BOIC,
7469 SUPPLEMENTARY_SERVICE_CB_BOIC_EXHC,
7470 SUPPLEMENTARY_SERVICE_CB_IBS,
7471 SUPPLEMENTARY_SERVICE_CB_BAIC,
7472 SUPPLEMENTARY_SERVICE_CB_BIC_ROAM,
7473 SUPPLEMENTARY_SERVICE_CB_ACR,
7474 SUPPLEMENTARY_SERVICE_CB_BIL
7475 })
7476
7477 public @interface SsType {}
7478
7479 /** Communication Waiting (CW) support as per 3GPP 24.615. */
7480 public static final int SUPPLEMENTARY_SERVICE_CW = 0;
7481
7482 /**
7483 * Call Diversion - All call forwarding support as per 3GPP 24.604.
7484 *
7485 * <p>This value is associated with MMI support service code 002
7486 * as indicated in TS 22.030 Table B.1
7487 */
7488 public static final int SUPPLEMENTARY_SERVICE_CF_ALL = 1;
7489
7490 /**
7491 * Call Diversion - All Unconditional call forwarding support (CFU) as
7492 * per 3GPP 24.604.
7493 *
7494 * <p>This value is associated with MMI support service code 21
7495 * as indicated in TS 22.030 Table B.1
7496 */
7497 public static final int SUPPLEMENTARY_SERVICE_CF_CFU = 2;
7498
7499 /**
7500 * Call Diversion - All conditional call forwarding support as
7501 * per 3GPP 24.604.
7502 *
7503 * <p>This value is associated with MMI support service code 004
7504 * as indicated in TS 22.030 Table B.1
7505 */
7506 public static final int SUPPLEMENTARY_SERVICE_CF_ALL_CONDITONAL_FORWARDING = 3;
7507
7508 /**
7509 * Call Diversion - Call forwarding on mobile subscriber busy (CFB)
7510 * support as per 3GPP 24.604.
7511 *
7512 * <p>This value is associated with MMI support service code 67
7513 * as indicated in TS 22.030 Table B.1
7514 */
7515 public static final int SUPPLEMENTARY_SERVICE_CF_CFB = 4;
7516
7517 /**
7518 * Call Diversion - Call forwarding on no reply (CFNRY)
7519 * support as per 3GPP 24.604.
7520 *
7521 * <p>This value is associated with MMI support service code 61
7522 * as indicated in TS 22.030 Table B.1
7523 */
7524 public static final int SUPPLEMENTARY_SERVICE_CF_CFNRY = 5;
7525
7526 /**
7527 * Call Diversion - Call forwarding on mobile subscriber not reachable
7528 * (CFNRC) support as per 3GPP 24.604.
7529 *
7530 * <p>This value is associated with MMI support service code 62
7531 * as indicated in TS 22.030 Table B.1
7532 */
7533 public static final int SUPPLEMENTARY_SERVICE_CF_CFNRC = 6;
7534
7535 /**
7536 * Communication Forwarding on Not Logged-in (CFNL).
7537 * support as per 3GPP 24.604 Section 4.2.1.7
7538 *
7539 */
7540 public static final int SUPPLEMENTARY_SERVICE_CF_CFNL = 7;
7541
7542 /**
7543 * Originating Identification Presentation (OIP) support
7544 * as per 3GPP 24.607.
7545 *
7546 */
7547 public static final int SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIP = 8;
7548
7549 /**
7550 * Terminating Identification Presentation (TIP) support
7551 * as per 3GPP 24.608.
7552 */
7553 public static final int SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIP = 9;
7554
7555 /**
7556 * Originating Identification Restriction (OIR) support
7557 * as per 3GPP 24.607.
7558 */
7559 public static final int SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIR = 10;
7560
7561 /**
7562 * Terminating Identification Restriction (TIR) support
7563 * as per 3GPP 24.608.
7564 */
7565 public static final int SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIR = 11;
7566
7567 /**
7568 * Call Barring - All barring services,
7569 * This value is associated with MMI support service code 330
7570 * as indicated TS 22.030 Table B.1
7571 */
7572 public static final int SUPPLEMENTARY_SERVICE_CB_ALL = 12;
7573
7574 /**
7575 * Call Barring - Outgoing barring services,
7576 * This value is associated with MMI support service code 333
7577 * as indicated TS 22.030 Table B.1
7578 */
7579 public static final int SUPPLEMENTARY_SERVICE_CB_OBS = 13;
7580
7581 /**
7582 * Call Barring - Barring of all outgoing calls (BAOC)
7583 * support as per 3GPP TS 24.611.
7584 *
7585 * <p>This value is associated with MMI support service code 33
7586 * as indicated TS 22.030 Table B.1
7587 */
7588 public static final int SUPPLEMENTARY_SERVICE_CB_BAOC = 14;
7589
7590 /**
7591 * Call Barring - Barring of outgoing international calls
7592 * (BOIC) support as per 3GPP TS 24.611.
7593 *
7594 * <p>This value is associated with MMI support service code 331
7595 * as indicated TS 22.030 Table B.1
7596 */
7597 public static final int SUPPLEMENTARY_SERVICE_CB_BOIC = 15;
7598
7599 /**
7600 * Call Barring - Barring of outgoing international calls
7601 * except those directed to the home PLMN country (BOIC-EXHC) support
7602 * as per 3GPP TS 24.611.
7603 *
7604 * <p>This value is associated with MMI support service code 332
7605 * as indicated TS 22.030 Table B.1
7606 */
7607 public static final int SUPPLEMENTARY_SERVICE_CB_BOIC_EXHC = 16;
7608
7609 /**
7610 * Call Barring - Incoming barring services,
7611 * This value is associated with MMI support service code 353
7612 * as indicated TS 22.030 Table B.1
7613 */
7614 public static final int SUPPLEMENTARY_SERVICE_CB_IBS = 17;
7615
7616 /**
7617 * Call Barring - Barring of all incoming calls (BAIC)
7618 * support as per 3GPP TS 24.611.
7619 *
7620 * <p>This value is associated with MMI support service code 35
7621 * as indicated TS 22.030 Table B.1
7622 */
7623 public static final int SUPPLEMENTARY_SERVICE_CB_BAIC = 18;
7624
7625 /**
7626 * Call Barring - Barring of incoming calls when roaming outside
7627 * the home PLMN country (BIC-ROAM) support as per 3GPP TS 24.611.
7628 *
7629 * <p>This value is associated with MMI support service code 351
7630 * as indicated TS 22.030 Table B.1
7631 */
7632 public static final int SUPPLEMENTARY_SERVICE_CB_BIC_ROAM = 19;
7633
7634 /**
7635 * Call Barring - Anonymous Call Rejection/Barring of all anonymous
7636 * incoming number support as per 3GPP TS 24.611.
7637 */
7638 public static final int SUPPLEMENTARY_SERVICE_CB_ACR = 20;
7639
7640 /**
7641 * Call Barring - Barring list of incoming numbers support.
7642 */
7643 public static final int SUPPLEMENTARY_SERVICE_CB_BIL = 21;
7644
7645 /**
7646 * List of UT services that are Server based.
7647 *
7648 * <p>Possible values are,
7649 * <UL>
7650 * <LI>{@link #SUPPLEMENTARY_SERVICE_CW}</LI>
7651 * <LI>{@link #SUPPLEMENTARY_SERVICE_CF_ALL}</LI>
7652 * <LI>{@link #SUPPLEMENTARY_SERVICE_CF_CFU}</LI>
7653 * <LI>{@link #SUPPLEMENTARY_SERVICE_CF_ALL_CONDITONAL_FORWARDING}</LI>
7654 * <LI>{@link #SUPPLEMENTARY_SERVICE_CF_CFB}</LI>
7655 * <LI>{@link #SUPPLEMENTARY_SERVICE_CF_CFNRY}</LI>
7656 * <LI>{@link #SUPPLEMENTARY_SERVICE_CF_CFNRC}</LI>
7657 * <LI>{@link #SUPPLEMENTARY_SERVICE_CF_CFNL}</LI>
7658 * <LI>{@link #SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIP}</LI>
7659 * <LI>{@link #SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIP}</LI>
7660 * <LI>{@link #SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIR}</LI>
7661 * <LI>{@link #SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIR}</LI>
7662 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_ALL}</LI>
7663 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_OBS}</LI>
7664 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_IBS}</LI>
7665 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BAOC}</LI>
7666 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BOIC}</LI>
7667 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BOIC_EXHC}</LI>
7668 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BAIC}</LI>
7669 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BIC_ROAM}</LI>
7670 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_ACR}</LI>
7671 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BIL}</LI>
7672 * </UL>
7673 */
7674 public static final String KEY_UT_SERVER_BASED_SERVICES_INT_ARRAY =
7675 KEY_PREFIX + "ut_server_based_services_int_array";
7676
7677 /**
7678 * List of UT services that are terminal based.
7679 *
7680 * By default, all services are server based and defined in
7681 * {@link #KEY_UT_SERVER_BASED_SERVICES_INT_ARRAY}.
7682 * Adding here will override that service setting to terminal based.
7683 *
7684 * <p>Possible values are,
7685 * <UL>
7686 * <LI>{@link #SUPPLEMENTARY_SERVICE_CW}</LI>
7687 * <LI>{@link #SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIR}</LI>
7688 * </UL>
7689 */
7690 public static final String KEY_UT_TERMINAL_BASED_SERVICES_INT_ARRAY =
7691 KEY_PREFIX + "ut_terminal_based_services_int_array";
7692
7693 /**
7694 * List of different RAT technologies on which XCAP over UT
7695 * is supported.
7696 *
7697 * <p>Possible values are,
7698 * {@link AccessNetworkConstants.AccessNetworkType#NGRAN}
7699 * {@link AccessNetworkConstants.AccessNetworkType#EUTRAN}
7700 * {@link AccessNetworkConstants.AccessNetworkType#IWLAN}
7701 * {@link AccessNetworkConstants.AccessNetworkType#UTRAN}
7702 * {@link AccessNetworkConstants.AccessNetworkType#GERAN}
7703 */
7704 public static final String KEY_XCAP_OVER_UT_SUPPORTED_RATS_INT_ARRAY =
7705 KEY_PREFIX + "xcap_over_ut_supported_rats_int_array";
7706
7707 private static PersistableBundle getDefaults() {
7708 PersistableBundle defaults = new PersistableBundle();
Sateshk Kumar Chinnappan9b1b1df2022-02-14 09:16:32 -08007709 defaults.putBoolean(KEY_UT_REQUIRES_IMS_REGISTRATION_BOOL, false);
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08007710 defaults.putBoolean(KEY_USE_CSFB_ON_XCAP_OVER_UT_FAILURE_BOOL, true);
7711 defaults.putBoolean(KEY_UT_SUPPORTED_WHEN_PS_DATA_OFF_BOOL, true);
7712 defaults.putBoolean(KEY_NETWORK_INITIATED_USSD_OVER_IMS_SUPPORTED_BOOL, true);
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08007713 defaults.putBoolean(KEY_UT_SUPPORTED_WHEN_ROAMING_BOOL, true);
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08007714
7715 defaults.putInt(KEY_UT_IPTYPE_HOME_INT, ApnSetting.PROTOCOL_IPV4V6);
7716 defaults.putInt(KEY_UT_IPTYPE_ROAMING_INT, ApnSetting.PROTOCOL_IPV4V6);
7717 defaults.putInt(KEY_UT_AS_SERVER_PORT_INT, 80);
7718 defaults.putInt(KEY_UT_TRANSPORT_TYPE_INT, Ims.PREFERRED_TRANSPORT_TCP);
7719
7720 defaults.putIntArray(
7721 KEY_UT_SERVER_BASED_SERVICES_INT_ARRAY,
7722 new int[] {
7723 SUPPLEMENTARY_SERVICE_CW,
7724 SUPPLEMENTARY_SERVICE_CF_ALL,
7725 SUPPLEMENTARY_SERVICE_CF_CFU,
7726 SUPPLEMENTARY_SERVICE_CF_CFNRC,
7727 SUPPLEMENTARY_SERVICE_CF_ALL_CONDITONAL_FORWARDING,
7728 SUPPLEMENTARY_SERVICE_CF_CFB,
7729 SUPPLEMENTARY_SERVICE_CF_CFNRY,
7730 SUPPLEMENTARY_SERVICE_CF_CFNL,
7731 SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIP,
7732 SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIP,
7733 SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIR,
7734 SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIR,
7735 SUPPLEMENTARY_SERVICE_CB_ALL,
7736 SUPPLEMENTARY_SERVICE_CB_OBS,
7737 SUPPLEMENTARY_SERVICE_CB_IBS,
7738 SUPPLEMENTARY_SERVICE_CB_BAOC,
7739 SUPPLEMENTARY_SERVICE_CB_BOIC,
7740 SUPPLEMENTARY_SERVICE_CB_BOIC_EXHC,
7741 SUPPLEMENTARY_SERVICE_CB_BAIC,
7742 SUPPLEMENTARY_SERVICE_CB_BIC_ROAM,
7743 SUPPLEMENTARY_SERVICE_CB_ACR,
7744 SUPPLEMENTARY_SERVICE_CB_BIL
7745 });
7746 defaults.putIntArray(
7747 KEY_UT_TERMINAL_BASED_SERVICES_INT_ARRAY,
7748 new int[] {});
7749
7750 defaults.putIntArray(
7751 KEY_XCAP_OVER_UT_SUPPORTED_RATS_INT_ARRAY,
7752 new int[] {
7753 AccessNetworkType.EUTRAN,
7754 AccessNetworkType.IWLAN
7755 });
7756 defaults.putString(KEY_UT_AS_SERVER_FQDN_STRING, "");
7757
7758 return defaults;
7759 }
7760 }
7761
7762 /**
7763 * This groups the BSF (BootStrapping Function) related configs.
7764 * Reference: 3GPP TS 24.109.
7765 */
7766 public static final class Bsf {
7767 private Bsf() {}
7768
7769 /** Prefix of all bsf.KEY_* constants. */
7770 public static final String KEY_PREFIX = "bsf.";
7771
7772 /** Specifies the fully qualified domain name (FQDN) of BSF Server
7773 * as per 3GPP 24.109.
7774 */
7775 public static final String KEY_BSF_SERVER_FQDN_STRING =
7776 KEY_PREFIX + "bsf_server_fqdn_string";
7777
7778 /**
7779 * Specifies the port number of the BSF server as per 3GPP 24.109.
7780 * This is usually default port number of HTTP, i.e. 80.
7781 */
7782 public static final String KEY_BSF_SERVER_PORT_INT =
7783 KEY_PREFIX + "bsf_server_port_int";
7784
7785 /**
7786 * Specifies the transport type used in communication with
7787 * BSF server.
7788 *
7789 * <p>Possible values are,
7790 * {@link Ims#PREFERRED_TRANSPORT_TCP},
7791 * {@link Ims#PREFERRED_TRANSPORT_TLS}
7792 *
7793 * <p>If key is invalid or not configured, the default value
7794 * {@link Ims#PREFERRED_TRANSPORT_TCP} will apply.
7795 */
7796 public static final String KEY_BSF_TRANSPORT_TYPE_INT =
Sateshk Kumar Chinnappanf59e2752022-01-27 07:40:53 -08007797 KEY_PREFIX + "bsf_transport_type_int";
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08007798
7799 private static PersistableBundle getDefaults() {
7800 PersistableBundle defaults = new PersistableBundle();
7801
7802 defaults.putInt(KEY_BSF_SERVER_PORT_INT, 80);
7803 defaults.putInt(KEY_BSF_TRANSPORT_TYPE_INT, Ims.PREFERRED_TRANSPORT_TCP);
7804 defaults.putString(KEY_BSF_SERVER_FQDN_STRING, "");
7805
Dheeraj Shetty054700a2019-05-23 18:22:05 -07007806 return defaults;
7807 }
7808 }
7809
7810 /**
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007811 * Configs used for epdg tunnel bring up.
7812 *
7813 * @see <a href="https://tools.ietf.org/html/rfc7296">RFC 7296, Internet Key Exchange Protocol
7814 * Version 2 (IKEv2)</a>
7815 */
7816 public static final class Iwlan {
7817 /** Prefix of all Epdg.KEY_* constants. */
7818 public static final String KEY_PREFIX = "iwlan.";
7819
7820 /**
7821 * Time in seconds after which the child security association session is terminated if rekey
7822 * procedure is not successful. If not set or set to <= 0, the default value is 3600
7823 * seconds.
7824 */
7825 public static final String KEY_CHILD_SA_REKEY_HARD_TIMER_SEC_INT =
7826 KEY_PREFIX + "child_sa_rekey_hard_timer_sec_int";
7827
7828 /**
7829 * Time in seconds after which the child session rekey procedure is started. If not set or
7830 * set to <= 0, default value is 3000 seconds.
7831 */
7832 public static final String KEY_CHILD_SA_REKEY_SOFT_TIMER_SEC_INT =
7833 KEY_PREFIX + "child_sa_rekey_soft_timer_sec_int";
7834
7835 /**
Naina Nallurid50baf12021-03-08 13:13:36 -08007836 * Supported DH groups for IKE negotiation. Possible values are:
7837 * {@link android.net.ipsec.ike.SaProposal#DH_GROUP_NONE},
7838 * {@link android.net.ipsec.ike.SaProposal#DH_GROUP_1024_BIT_MODP},
7839 * {@link android.net.ipsec.ike.SaProposal#DH_GROUP_1536_BIT_MODP},
7840 * {@link android.net.ipsec.ike.SaProposal#DH_GROUP_2048_BIT_MODP}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007841 */
7842 public static final String KEY_DIFFIE_HELLMAN_GROUPS_INT_ARRAY =
7843 KEY_PREFIX + "diffie_hellman_groups_int_array";
7844
7845 /**
7846 * Time in seconds after which a dead peer detection (DPD) request is sent. If not set or
7847 * set to <= 0, default value is 120 seconds.
7848 */
7849 public static final String KEY_DPD_TIMER_SEC_INT = KEY_PREFIX + "dpd_timer_sec_int";
7850
7851 /**
7852 * Method used to authenticate epdg server. Possible values are {@link
7853 * #AUTHENTICATION_METHOD_EAP_ONLY}, {@link #AUTHENTICATION_METHOD_CERT}
7854 */
7855 public static final String KEY_EPDG_AUTHENTICATION_METHOD_INT =
7856 KEY_PREFIX + "epdg_authentication_method_int";
7857
7858 /**
7859 * A priority list of ePDG addresses to be used. Possible values are {@link
7860 * #EPDG_ADDRESS_STATIC}, {@link #EPDG_ADDRESS_PLMN}, {@link #EPDG_ADDRESS_PCO}, {@link
EdenSu2fad1162022-01-05 17:32:50 +08007861 * #EPDG_ADDRESS_CELLULAR_LOC}, {@link #EPDG_ADDRESS_VISITED_COUNTRY}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007862 */
7863 public static final String KEY_EPDG_ADDRESS_PRIORITY_INT_ARRAY =
7864 KEY_PREFIX + "epdg_address_priority_int_array";
7865
7866 /** Epdg static IP address or FQDN */
7867 public static final String KEY_EPDG_STATIC_ADDRESS_STRING =
7868 KEY_PREFIX + "epdg_static_address_string";
7869
7870 /** Epdg static IP address or FQDN for roaming */
7871 public static final String KEY_EPDG_STATIC_ADDRESS_ROAMING_STRING =
7872 KEY_PREFIX + "epdg_static_address_roaming_string";
7873
7874 /**
7875 * List of supported key sizes for AES Cipher Block Chaining (CBC) encryption mode of child
Naina Nallurid50baf12021-03-08 13:13:36 -08007876 * session. Possible values are:
7877 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_UNUSED},
7878 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_128},
7879 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_192},
7880 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_256}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007881 */
7882 public static final String KEY_CHILD_SESSION_AES_CBC_KEY_SIZE_INT_ARRAY =
7883 KEY_PREFIX + "child_session_aes_cbc_key_size_int_array";
7884
7885 /**
7886 * List of supported key sizes for AES Counter (CTR) encryption mode of child session.
Naina Nallurid50baf12021-03-08 13:13:36 -08007887 * Possible values are:
7888 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_UNUSED},
7889 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_128},
7890 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_192},
7891 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_256}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007892 */
7893 public static final String KEY_CHILD_SESSION_AES_CTR_KEY_SIZE_INT_ARRAY =
7894 KEY_PREFIX + "child_session_aes_ctr_key_size_int_array";
7895
7896 /**
7897 * List of supported encryption algorithms for child session. Possible values are
Naina Nallurid50baf12021-03-08 13:13:36 -08007898 * {@link android.net.ipsec.ike.SaProposal#ENCRYPTION_ALGORITHM_AES_CBC}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007899 */
7900 public static final String KEY_SUPPORTED_CHILD_SESSION_ENCRYPTION_ALGORITHMS_INT_ARRAY =
7901 KEY_PREFIX + "supported_child_session_encryption_algorithms_int_array";
7902
7903 /**
7904 * Time in seconds after which the IKE session is terminated if rekey procedure is not
7905 * successful. If not set or set to <= 0, default value is 3600 seconds.
7906 */
7907 public static final String KEY_IKE_REKEY_HARD_TIMER_SEC_INT =
7908 KEY_PREFIX + "ike_rekey_hard_timer_in_sec";
7909
7910 /**
7911 * Time in seconds after which the IKE session rekey procedure is started. If not set or set
7912 * to <= 0, default value is 3000 seconds.
7913 */
7914 public static final String KEY_IKE_REKEY_SOFT_TIMER_SEC_INT =
7915 KEY_PREFIX + "ike_rekey_soft_timer_sec_int";
7916
7917 /**
7918 * List of supported key sizes for AES Cipher Block Chaining (CBC) encryption mode of IKE
Naina Nallurid50baf12021-03-08 13:13:36 -08007919 * session. Possible values:
7920 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_UNUSED},
7921 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_128},
7922 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_192},
7923 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_256}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007924 */
7925 public static final String KEY_IKE_SESSION_AES_CBC_KEY_SIZE_INT_ARRAY =
7926 KEY_PREFIX + "ike_session_encryption_aes_cbc_key_size_int_array";
7927
7928
7929 /**
7930 * List of supported key sizes for AES Counter (CTR) encryption mode of IKE session.
Naina Nallurid50baf12021-03-08 13:13:36 -08007931 * Possible values -
7932 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_UNUSED},
7933 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_128},
7934 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_192},
7935 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_256}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007936 */
7937 public static final String KEY_IKE_SESSION_AES_CTR_KEY_SIZE_INT_ARRAY =
7938 KEY_PREFIX + "ike_session_encryption_aes_ctr_key_size_int_array";
7939
7940 /**
7941 * List of supported encryption algorithms for IKE session. Possible values are
Naina Nallurid50baf12021-03-08 13:13:36 -08007942 * {@link android.net.ipsec.ike.SaProposal#ENCRYPTION_ALGORITHM_AES_CBC},
7943 * {@link android.net.ipsec.ike.SaProposal#ENCRYPTION_ALGORITHM_AES_CTR}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007944 */
7945 public static final String KEY_SUPPORTED_IKE_SESSION_ENCRYPTION_ALGORITHMS_INT_ARRAY =
7946 KEY_PREFIX + "supported_ike_session_encryption_algorithms_int_array";
7947
7948 /**
Naina Nallurid50baf12021-03-08 13:13:36 -08007949 * List of supported integrity algorithms for IKE session. Possible values are
7950 * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_NONE},
7951 * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_HMAC_SHA1_96},
7952 * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_AES_XCBC_96},
7953 * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_HMAC_SHA2_256_128},
7954 * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_HMAC_SHA2_384_192},
7955 * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_HMAC_SHA2_512_256}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007956 */
7957 public static final String KEY_SUPPORTED_INTEGRITY_ALGORITHMS_INT_ARRAY =
7958 KEY_PREFIX + "supported_integrity_algorithms_int_array";
7959
7960 /** Maximum number of retries for tunnel establishment. */
7961 public static final String KEY_MAX_RETRIES_INT = KEY_PREFIX + "max_retries_int";
7962
7963 /**
7964 * Time in seconds after which a NATT keep alive message is sent. If not set or set to <= 0,
7965 * default value is 20 seconds.
7966 */
7967 public static final String KEY_NATT_KEEP_ALIVE_TIMER_SEC_INT =
7968 KEY_PREFIX + "natt_keep_alive_timer_sec_int";
7969
7970 /** List of '-' separated MCC/MNCs used to create ePDG FQDN as per 3GPP TS 23.003 */
7971 public static final String KEY_MCC_MNCS_STRING_ARRAY = KEY_PREFIX + "mcc_mncs_string_array";
7972
7973 /**
7974 * List of supported pseudo random function algorithms for IKE session. Possible values are
Naina Nallurid50baf12021-03-08 13:13:36 -08007975 * {@link android.net.ipsec.ike.SaProposal#PSEUDORANDOM_FUNCTION_HMAC_SHA1},
7976 * {@link android.net.ipsec.ike.SaProposal#PSEUDORANDOM_FUNCTION_AES128_XCBC},
7977 * {@link android.net.ipsec.ike.SaProposal#PSEUDORANDOM_FUNCTION_SHA2_256},
7978 * {@link android.net.ipsec.ike.SaProposal#PSEUDORANDOM_FUNCTION_SHA2_384},
7979 * {@link android.net.ipsec.ike.SaProposal#PSEUDORANDOM_FUNCTION_SHA2_512}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007980 */
7981 public static final String KEY_SUPPORTED_PRF_ALGORITHMS_INT_ARRAY =
7982 KEY_PREFIX + "supported_prf_algorithms_int_array";
7983
7984 /**
7985 * List of IKE message retransmission timeouts in milliseconds, where each timeout
7986 * is the waiting time before next retry, except the last timeout which is the waiting time
7987 * before terminating the IKE Session. Min list length = 1, Max
7988 * list length = 10 Min timeout = 500 ms, Max timeout = 1800000 ms
7989 */
7990 public static final String KEY_RETRANSMIT_TIMER_MSEC_INT_ARRAY =
7991 KEY_PREFIX + "retransmit_timer_sec_int_array";
7992
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007993 /**
7994 * Specifies the local identity type for IKE negotiations. Possible values are {@link
7995 * #ID_TYPE_FQDN}, {@link #ID_TYPE_RFC822_ADDR}, {@link #ID_TYPE_KEY_ID}
7996 */
7997 public static final String KEY_IKE_LOCAL_ID_TYPE_INT = KEY_PREFIX + "ike_local_id_type_int";
7998
7999 /**
8000 * Specifies the remote identity type for IKE negotiations. Possible values are {@link
8001 * #ID_TYPE_FQDN}, {@link #ID_TYPE_RFC822_ADDR}, {@link #ID_TYPE_KEY_ID}
8002 */
8003 public static final String KEY_IKE_REMOTE_ID_TYPE_INT =
8004 KEY_PREFIX + "ike_remote_id_type_int";
8005
8006 /** Controls if KE payload should be added during child session local rekey procedure. */
8007 public static final String KEY_ADD_KE_TO_CHILD_SESSION_REKEY_BOOL =
8008 KEY_PREFIX + "add_ke_to_child_session_rekey_bool";
8009
8010 /** Specifies the PCO id for IPv6 Epdg server address */
8011 public static final String KEY_EPDG_PCO_ID_IPV6_INT = KEY_PREFIX + "epdg_pco_id_ipv6_int";
8012
8013 /** Specifies the PCO id for IPv4 Epdg server address */
8014 public static final String KEY_EPDG_PCO_ID_IPV4_INT = KEY_PREFIX + "epdg_pco_id_ipv4_int";
8015
EdenSu8192e6a2022-01-22 02:58:06 +08008016 /** Controls if the IKE tunnel setup supports EAP-AKA fast reauth */
8017 public static final String KEY_SUPPORTS_EAP_AKA_FAST_REAUTH_BOOL =
8018 KEY_PREFIX + "supports_eap_aka_fast_reauth_bool";
8019
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008020 /** @hide */
8021 @IntDef({AUTHENTICATION_METHOD_EAP_ONLY, AUTHENTICATION_METHOD_CERT})
8022 public @interface AuthenticationMethodType {}
8023
8024 /**
8025 * Certificate sent from the server is ignored. Only Extensible Authentication Protocol
8026 * (EAP) is used to authenticate the server. EAP_ONLY_AUTH payload is added to IKE_AUTH
8027 * request if supported.
8028 *
8029 * @see <a href="https://tools.ietf.org/html/rfc5998">RFC 5998</a>
8030 */
8031 public static final int AUTHENTICATION_METHOD_EAP_ONLY = 0;
8032 /** Server is authenticated using its certificate. */
8033 public static final int AUTHENTICATION_METHOD_CERT = 1;
8034
8035 /** @hide */
8036 @IntDef({
8037 EPDG_ADDRESS_STATIC,
8038 EPDG_ADDRESS_PLMN,
8039 EPDG_ADDRESS_PCO,
EdenSu2fad1162022-01-05 17:32:50 +08008040 EPDG_ADDRESS_CELLULAR_LOC,
8041 EPDG_ADDRESS_VISITED_COUNTRY
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008042 })
8043 public @interface EpdgAddressType {}
8044
8045 /** Use static epdg address. */
8046 public static final int EPDG_ADDRESS_STATIC = 0;
8047 /** Construct the epdg address using plmn. */
8048 public static final int EPDG_ADDRESS_PLMN = 1;
8049 /**
8050 * Use the epdg address received in protocol configuration options (PCO) from the network.
8051 */
8052 public static final int EPDG_ADDRESS_PCO = 2;
8053 /** Use cellular location to chose epdg server */
8054 public static final int EPDG_ADDRESS_CELLULAR_LOC = 3;
EdenSu2fad1162022-01-05 17:32:50 +08008055 /* Use Visited Country FQDN rule*/
8056 public static final int EPDG_ADDRESS_VISITED_COUNTRY = 4;
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008057
8058 /** @hide */
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008059 @IntDef({ID_TYPE_FQDN, ID_TYPE_RFC822_ADDR, ID_TYPE_KEY_ID})
8060 public @interface IkeIdType {}
8061
8062 /**
8063 * Ike Identification Fully Qualified Domain Name
8064 *
8065 * @see <a href="https://tools.ietf.org/html/rfc7296#section-3.5">RFC 7296, Internet Key
8066 * Exchange Protocol Version 2 (IKEv2)</a>
8067 */
8068 public static final int ID_TYPE_FQDN = 2;
8069 /**
8070 * Ike Identification Fully Qualified RFC 822 email address.
8071 *
8072 * @see <a href="https://tools.ietf.org/html/rfc7296#section-3.5">RFC 7296, Internet Key
8073 * Exchange Protocol Version 2 (IKEv2)</a>
8074 */
8075 public static final int ID_TYPE_RFC822_ADDR = 3;
8076 /**
8077 * Ike Identification opaque octet stream for vendor specific information
8078 *
8079 * @see <a href="https://tools.ietf.org/html/rfc7296#section-3.5">RFC 7296, Internet Key
8080 * Exchange Protocol Version 2 (IKEv2)</a>
8081 */
8082 public static final int ID_TYPE_KEY_ID = 11;
8083
8084 private Iwlan() {}
8085
8086 private static PersistableBundle getDefaults() {
8087 PersistableBundle defaults = new PersistableBundle();
8088 defaults.putInt(KEY_IKE_REKEY_SOFT_TIMER_SEC_INT, 7200);
8089 defaults.putInt(KEY_IKE_REKEY_HARD_TIMER_SEC_INT, 14400);
8090 defaults.putInt(KEY_CHILD_SA_REKEY_SOFT_TIMER_SEC_INT, 3600);
8091 defaults.putInt(KEY_CHILD_SA_REKEY_HARD_TIMER_SEC_INT, 7200);
8092 defaults.putIntArray(
8093 KEY_RETRANSMIT_TIMER_MSEC_INT_ARRAY, new int[] {500, 1000, 2000, 4000, 8000});
8094 defaults.putInt(KEY_DPD_TIMER_SEC_INT, 120);
8095 defaults.putInt(KEY_MAX_RETRIES_INT, 3);
8096 defaults.putIntArray(
8097 KEY_DIFFIE_HELLMAN_GROUPS_INT_ARRAY,
8098 new int[] {
Naina Nallurid50baf12021-03-08 13:13:36 -08008099 SaProposal.DH_GROUP_1024_BIT_MODP,
8100 SaProposal.DH_GROUP_1536_BIT_MODP,
8101 SaProposal.DH_GROUP_2048_BIT_MODP
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008102 });
8103 defaults.putIntArray(
8104 KEY_SUPPORTED_IKE_SESSION_ENCRYPTION_ALGORITHMS_INT_ARRAY,
Naina Nallurid50baf12021-03-08 13:13:36 -08008105 new int[] {SaProposal.ENCRYPTION_ALGORITHM_AES_CBC});
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008106 defaults.putIntArray(
8107 KEY_SUPPORTED_CHILD_SESSION_ENCRYPTION_ALGORITHMS_INT_ARRAY,
Naina Nallurid50baf12021-03-08 13:13:36 -08008108 new int[] {SaProposal.ENCRYPTION_ALGORITHM_AES_CBC});
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008109 defaults.putIntArray(
8110 KEY_SUPPORTED_INTEGRITY_ALGORITHMS_INT_ARRAY,
8111 new int[] {
Naina Nallurid50baf12021-03-08 13:13:36 -08008112 SaProposal.INTEGRITY_ALGORITHM_AES_XCBC_96,
8113 SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96,
8114 SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_256_128,
8115 SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_384_192,
8116 SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_512_256,
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008117 });
8118 defaults.putIntArray(
8119 KEY_SUPPORTED_PRF_ALGORITHMS_INT_ARRAY,
8120 new int[] {
Naina Nallurid50baf12021-03-08 13:13:36 -08008121 SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1,
8122 SaProposal.PSEUDORANDOM_FUNCTION_AES128_XCBC,
8123 SaProposal.PSEUDORANDOM_FUNCTION_SHA2_256,
8124 SaProposal.PSEUDORANDOM_FUNCTION_SHA2_384,
8125 SaProposal.PSEUDORANDOM_FUNCTION_SHA2_512
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008126 });
8127
8128 defaults.putInt(KEY_EPDG_AUTHENTICATION_METHOD_INT, AUTHENTICATION_METHOD_EAP_ONLY);
8129 defaults.putString(KEY_EPDG_STATIC_ADDRESS_STRING, "");
8130 defaults.putString(KEY_EPDG_STATIC_ADDRESS_ROAMING_STRING, "");
8131 // will be used after b/158036773 is fixed
8132 defaults.putInt(KEY_NATT_KEEP_ALIVE_TIMER_SEC_INT, 20);
8133 defaults.putIntArray(
8134 KEY_IKE_SESSION_AES_CBC_KEY_SIZE_INT_ARRAY,
Naina Nallurid50baf12021-03-08 13:13:36 -08008135 new int[] {
8136 SaProposal.KEY_LEN_AES_128,
8137 SaProposal.KEY_LEN_AES_192,
8138 SaProposal.KEY_LEN_AES_256});
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008139 defaults.putIntArray(
8140 KEY_CHILD_SESSION_AES_CBC_KEY_SIZE_INT_ARRAY,
Naina Nallurid50baf12021-03-08 13:13:36 -08008141 new int[] {
8142 SaProposal.KEY_LEN_AES_128,
8143 SaProposal.KEY_LEN_AES_192,
8144 SaProposal.KEY_LEN_AES_256});
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008145 defaults.putIntArray(
8146 KEY_IKE_SESSION_AES_CTR_KEY_SIZE_INT_ARRAY,
Naina Nallurid50baf12021-03-08 13:13:36 -08008147 new int[] {
8148 SaProposal.KEY_LEN_AES_128,
8149 SaProposal.KEY_LEN_AES_192,
8150 SaProposal.KEY_LEN_AES_256});
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008151 defaults.putIntArray(
8152 KEY_CHILD_SESSION_AES_CTR_KEY_SIZE_INT_ARRAY,
Naina Nallurid50baf12021-03-08 13:13:36 -08008153 new int[] {
8154 SaProposal.KEY_LEN_AES_128,
8155 SaProposal.KEY_LEN_AES_192,
8156 SaProposal.KEY_LEN_AES_256});
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008157 defaults.putIntArray(
8158 KEY_EPDG_ADDRESS_PRIORITY_INT_ARRAY,
8159 new int[] {EPDG_ADDRESS_PLMN, EPDG_ADDRESS_STATIC});
8160 defaults.putStringArray(KEY_MCC_MNCS_STRING_ARRAY, new String[] {});
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008161 defaults.putInt(KEY_IKE_LOCAL_ID_TYPE_INT, ID_TYPE_RFC822_ADDR);
8162 defaults.putInt(KEY_IKE_REMOTE_ID_TYPE_INT, ID_TYPE_FQDN);
8163 defaults.putBoolean(KEY_ADD_KE_TO_CHILD_SESSION_REKEY_BOOL, false);
8164 defaults.putInt(KEY_EPDG_PCO_ID_IPV6_INT, 0);
8165 defaults.putInt(KEY_EPDG_PCO_ID_IPV4_INT, 0);
EdenSu8192e6a2022-01-22 02:58:06 +08008166 defaults.putBoolean(KEY_SUPPORTS_EAP_AKA_FAST_REAUTH_BOOL, false);
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008167
8168 return defaults;
8169 }
8170 }
8171
8172 /**
andychoub80dbce2019-04-09 14:50:31 +08008173 * A list of 4 GSM RSSI thresholds above which a signal level is considered POOR,
8174 * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.
8175 *
8176 * Note that the min and max thresholds are fixed at -113 and -51, as set in 3GPP TS 27.007
8177 * section 8.5.
8178 * <p>
8179 * See CellSignalStrengthGsm#GSM_RSSI_MAX and CellSignalStrengthGsm#GSM_RSSI_MIN. Any signal
8180 * level outside these boundaries is considered invalid.
8181 * @hide
8182 */
8183 public static final String KEY_GSM_RSSI_THRESHOLDS_INT_ARRAY =
8184 "gsm_rssi_thresholds_int_array";
Nathan Harold773b0822019-03-12 15:51:42 -07008185
andychoudcc0dd22019-05-08 23:24:08 +08008186 /**
8187 * Determines whether Wireless Priority Service call is supported over IMS.
8188 *
8189 * See Wireless Priority Service from https://www.fcc.gov/general/wireless-priority-service-wps
8190 * @hide
8191 */
8192 public static final String KEY_SUPPORT_WPS_OVER_IMS_BOOL =
8193 "support_wps_over_ims_bool";
8194
Nazanin Bakhshi9ed96bd2019-08-02 16:43:44 -07008195 /**
James.cf Lin8da1b072020-02-27 18:37:17 +08008196 * The two digital number pattern of MMI code which is defined by carrier.
8197 * If the dial number matches this pattern, it will be dialed out normally not USSD.
8198 *
8199 * @hide
8200 */
8201 public static final String KEY_MMI_TWO_DIGIT_NUMBER_PATTERN_STRING_ARRAY =
8202 "mmi_two_digit_number_pattern_string_array";
8203
8204 /**
Franck Perez32bd38842021-01-28 11:06:26 -05008205 * Holds the list of carrier certificate hashes, followed by optional package names.
8206 * Format: "sha1/256" or "sha1/256:package1,package2,package3..."
8207 * Note that each carrier has its own hashes.
Nazanin Bakhshi9ed96bd2019-08-02 16:43:44 -07008208 */
8209 public static final String KEY_CARRIER_CERTIFICATE_STRING_ARRAY =
8210 "carrier_certificate_string_array";
8211
Saki Oomori63bb8562018-08-22 16:07:07 +09008212 /**
Nishizawa Nobuhiroe8e1ed62019-12-13 18:09:39 +09008213 * Flag specifying whether the incoming call number should be formatted to national number
8214 * for Japan. @return {@code true} convert to the national format, {@code false} otherwise.
8215 * e.g. "+819012345678" -> "09012345678"
8216 * @hide
8217 */
8218 public static final String KEY_FORMAT_INCOMING_NUMBER_TO_NATIONAL_FOR_JP_BOOL =
8219 "format_incoming_number_to_national_for_jp_bool";
8220
8221 /**
Saki Oomori63bb8562018-08-22 16:07:07 +09008222 * DisconnectCause array to play busy tone. Value should be array of
8223 * {@link android.telephony.DisconnectCause}.
8224 */
8225 public static final String KEY_DISCONNECT_CAUSE_PLAY_BUSYTONE_INT_ARRAY =
8226 "disconnect_cause_play_busytone_int_array";
8227
Hideki Ishiide2688e2018-09-27 17:26:21 +09008228 /**
8229 * Flag specifying whether to prevent sending CLIR activation("*31#") and deactivation("#31#")
8230 * code only without dialing number.
8231 * When {@code true}, these are prevented, {@code false} otherwise.
8232 */
8233 public static final String KEY_PREVENT_CLIR_ACTIVATION_AND_DEACTIVATION_CODE_BOOL =
8234 "prevent_clir_activation_and_deactivation_code_bool";
8235
Dheeraj Shetty81a4f4e2020-01-15 16:30:18 -08008236 /**
Shinsuke Ishioka5ee45892018-08-30 13:33:30 +09008237 * Flag specifying whether to show forwarded number on call-in-progress screen.
8238 * When true, forwarded number is shown.
8239 * When false, forwarded number is not shown.
8240 */
8241 public static final String KEY_SHOW_FORWARDED_NUMBER_BOOL =
8242 "show_forwarded_number_bool";
8243
Jack Yu1e1ff942019-12-23 15:19:56 -08008244 /**
8245 * The list of originating address of missed incoming call SMS. If the SMS has originator
8246 * matched, the SMS will be treated as special SMS for notifying missed incoming call to the
8247 * user.
8248 *
8249 * @hide
8250 */
8251 public static final String KEY_MISSED_INCOMING_CALL_SMS_ORIGINATOR_STRING_ARRAY =
8252 "missed_incoming_call_sms_originator_string_array";
8253
Daniel Brightdcc3c0a2020-03-24 14:53:59 -07008254
8255 /**
8256 * String array of Apn Type configurations.
8257 * The entries should be of form "APN_TYPE_NAME:priority".
8258 * priority is an integer that is sorted from highest to lowest.
8259 * example: cbs:5
8260 *
8261 * @hide
8262 */
8263 public static final String KEY_APN_PRIORITY_STRING_ARRAY = "apn_priority_string_array";
8264
Jack Yu1e1ff942019-12-23 15:19:56 -08008265 /**
Jack Yucc516a82021-11-20 13:15:59 -08008266 * Network capability priority for determine the satisfy order in telephony. The priority is
8267 * from the lowest 0 to the highest 100. The long-lived network shall have the lowest priority.
8268 * This allows other short-lived requests like MMS requests to be established. Emergency request
8269 * always has the highest priority.
Jack Yu98819652021-10-01 02:50:46 -07008270 *
Jack Yu98819652021-10-01 02:50:46 -07008271 * @hide
8272 */
8273 public static final String KEY_TELEPHONY_NETWORK_CAPABILITY_PRIORITIES_STRING_ARRAY =
8274 "telephony_network_capability_priorities_string_array";
Jack Yu07844fb2021-10-07 01:12:15 -07008275
8276 /**
Jack Yu24e84522021-12-16 11:17:42 -08008277 * Defines the rules for data setup retry.
Jack Yu07844fb2021-10-07 01:12:15 -07008278 *
8279 * The syntax of the retry rule:
Jack Yucc516a82021-11-20 13:15:59 -08008280 * 1. Retry based on {@link NetworkCapabilities}. Note that only APN-type network capabilities
8281 * are supported.
8282 * "capabilities=[netCaps1|netCaps2|...], [retry_interval=n1|n2|n3|n4...], [maximum_retries=n]"
Jack Yu07844fb2021-10-07 01:12:15 -07008283 *
8284 * 2. Retry based on {@link DataFailCause}
Jack Yucc516a82021-11-20 13:15:59 -08008285 * "fail_causes=[cause1|cause2|cause3|..], [retry_interval=n1|n2|n3|n4...], [maximum_retries=n]"
Jack Yu07844fb2021-10-07 01:12:15 -07008286 *
Jack Yucc516a82021-11-20 13:15:59 -08008287 * 3. Retry based on {@link NetworkCapabilities} and {@link DataFailCause}. Note that only
8288 * APN-type network capabilities are supported.
Jack Yu07844fb2021-10-07 01:12:15 -07008289 * "capabilities=[netCaps1|netCaps2|...], fail_causes=[cause1|cause2|cause3|...],
Jack Yucc516a82021-11-20 13:15:59 -08008290 * [retry_interval=n1|n2|n3|n4...], [maximum_retries=n]"
Jack Yu07844fb2021-10-07 01:12:15 -07008291 *
8292 * For example,
8293 * "capabilities=eims, retry_interval=1000, maximum_retries=20" means if the attached
8294 * network request is emergency, then retry data network setup every 1 second for up to 20
8295 * times.
8296 *
8297 * "fail_causes=8|27|28|29|30|32|33|35|50|51|111|-5|-6|65537|65538|-3|2253|2254
8298 * , maximum_retries=0" means for those fail causes, never retry with timers. Note that
Jack Yucc516a82021-11-20 13:15:59 -08008299 * when environment changes, retry can still happen.
8300 *
8301 * "capabilities=internet|enterprise|dun|ims|fota, retry_interval=2500|3000|"
8302 * "5000|10000|15000|20000|40000|60000|120000|240000|600000|1200000|1800000"
8303 * "1800000, maximum_retries=20" means for those capabilities, retry happens in 2.5s, 3s, 5s,
8304 * 10s, 15s, 20s, 40s, 1m, 2m, 4m, 10m, 20m, 30m, 30m, 30m, until reaching 20 retries.
Jack Yu07844fb2021-10-07 01:12:15 -07008305 *
8306 * // TODO: remove KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS
8307 * @hide
8308 */
Jack Yu24e84522021-12-16 11:17:42 -08008309 public static final String KEY_TELEPHONY_DATA_SETUP_RETRY_RULES_STRING_ARRAY =
8310 "telephony_data_setup_retry_rules_string_array";
8311
8312 /**
8313 * Defines the rules for data handover retry.
8314 *
8315 * The syntax of the retry rule:
8316 * 1. Retry when handover fails.
8317 * "retry_interval=[n1|n2|n3|...], [maximum_retries=n]"
8318 *
8319 * For example,
8320 * "retry_interval=1000|3000|5000, maximum_retries=10" means handover retry will happen in 1s,
8321 * 3s, 5s, 5s, 5s....up to 10 times.
8322 *
8323 * 2. Retry when handover fails with certain fail causes.
8324 * "retry_interval=[n1|n2|n3|...], fail_causes=[cause1|cause2|cause3|...], [maximum_retries=n]
8325 *
8326 * For example,
8327 * "retry_interval=1000, maximum_retries=3, fail_causes=5" means handover retry every 1 second
8328 * for up to 3 times when handover fails with the cause 5.
8329 *
8330 * "maximum_retries=0, fail_causes=6|10|67" means handover retry should not happen for those
8331 * causes.
8332 *
8333 * @hide
8334 */
8335 public static final String KEY_TELEPHONY_DATA_HANDOVER_RETRY_RULES_STRING_ARRAY =
8336 "telephony_data_handover_retry_rules_string_array";
Jack Yu07844fb2021-10-07 01:12:15 -07008337
Jack Yu98819652021-10-01 02:50:46 -07008338 /**
Jack Yud4294152022-02-13 01:37:30 -08008339 * Indicates whether delay tearing down IMS data network until voice call ends.
8340 * @hide
8341 */
8342 public static final String KEY_DELAY_IMS_TEAR_DOWN_UNTIL_CALL_END_BOOL =
8343 "delay_ims_tear_down_until_call_end_bool";
8344
8345 /**
Jack Yu1e1ff942019-12-23 15:19:56 -08008346 * The patterns of missed incoming call sms. This is the regular expression used for
8347 * matching the missed incoming call's date, time, and caller id. The pattern should match
8348 * fields for at least month, day, hour, and minute. Year is optional although it is encouraged.
8349 *
8350 * An usable pattern should look like this:
8351 * ^(?<month>0[1-9]|1[012])\/(?<day>0[1-9]|1[0-9]|2[0-9]|3[0-1]) (?<hour>[0-1][0-9]|2[0-3]):
8352 * (?<minute>[0-5][0-9])\s*(?<callerId>[0-9]+)\s*$
8353 *
8354 * @hide
8355 */
8356 public static final String KEY_MISSED_INCOMING_CALL_SMS_PATTERN_STRING_ARRAY =
8357 "missed_incoming_call_sms_pattern_string_array";
8358
Jack Yudb897af2020-06-24 12:43:31 -07008359 /**
8360 * Indicating whether DUN APN should be disabled when the device is roaming. In that case,
8361 * the default APN (i.e. internet) will be used for tethering.
8362 *
Masaho Nishikawa115e0282020-01-30 11:46:22 +09008363 * This config is only available when using Preset APN(not user edited) as Preferred APN.
8364 *
Jack Yudb897af2020-06-24 12:43:31 -07008365 * @hide
8366 */
Masaho Nishikawa115e0282020-01-30 11:46:22 +09008367 public static final String KEY_DISABLE_DUN_APN_WHILE_ROAMING_WITH_PRESET_APN_BOOL =
8368 "disable_dun_apn_while_roaming_with_preset_apn_bool";
8369
8370 /**
8371 * Where there is no preferred APN, specifies the carrier's default preferred APN.
8372 * Specifies the {@link android.provider.Telephony.Carriers.APN} of the default preferred apn.
8373 *
8374 * This config is only available with Preset APN(not user edited).
8375 *
8376 * @hide
8377 */
8378 public static final String KEY_DEFAULT_PREFERRED_APN_NAME_STRING =
8379 "default_preferred_apn_name_string";
Jack Yudb897af2020-06-24 12:43:31 -07008380
Sarah Chindc7260a2020-08-06 17:37:40 -07008381 /**
Shuo Qian13690012020-11-30 22:34:42 -08008382 * Indicates if the carrier supports call composer.
8383 */
8384 public static final String KEY_SUPPORTS_CALL_COMPOSER_BOOL = "supports_call_composer_bool";
8385
8386 /**
8387 * Indicates the carrier server url that serves the call composer picture.
8388 */
8389 public static final String KEY_CALL_COMPOSER_PICTURE_SERVER_URL_STRING =
8390 "call_composer_picture_server_url_string";
8391
8392 /**
Sonalika Paulefa0fa92020-08-25 15:11:02 +05308393 * Determines the default RTT mode.
8394 *
8395 * Upon first boot, when the user has not yet set a value for their preferred RTT mode,
8396 * the value of this config will be sent to the IMS stack. Valid values are the same as for
8397 * {@link Settings.Secure#RTT_CALLING_MODE}.
8398 *
8399 * @hide
8400 */
8401 public static final String KEY_DEFAULT_RTT_MODE_INT =
8402 "default_rtt_mode_int";
8403
8404 /**
Hall Liud20b2a02021-01-22 16:06:50 -08008405 * Indicates whether RTT is supported while roaming.
8406 */
8407 public static final String KEY_RTT_SUPPORTED_WHILE_ROAMING_BOOL =
Hall Liu7a180702021-01-26 10:51:11 -08008408 "rtt_supported_while_roaming_bool";
Hall Liud20b2a02021-01-22 16:06:50 -08008409
8410 /**
Hui Wangb8ea95e2020-10-31 05:09:59 +00008411 * Indicates if auto-configuration server is used for the RCS config
8412 * Reference: GSMA RCC.14
8413 */
8414 public static final String KEY_USE_ACS_FOR_RCS_BOOL = "use_acs_for_rcs_bool";
8415
Jack Yu4f80a3b2021-01-15 10:19:38 -08008416 /**
8417 * Indicates temporarily unmetered mobile data is supported by the carrier.
8418 * @hide
8419 */
8420 public static final String KEY_NETWORK_TEMP_NOT_METERED_SUPPORTED_BOOL =
8421 "network_temp_not_metered_supported_bool";
8422
Jack Yu08439bf2021-02-17 23:37:42 -08008423 /**
Michele Berionne726fa0a2020-11-19 22:46:42 +00008424 * Boolean indicating whether the SIM PIN can be stored and verified
8425 * seamlessly after an unattended reboot.
8426 *
8427 * The device configuration value {@code config_allow_pin_storage_for_unattended_reboot}
8428 * ultimately controls whether this carrier configuration option is used. Where
8429 * {@code config_allow_pin_storage_for_unattended_reboot} is false, the value of the
8430 * {@link #KEY_STORE_SIM_PIN_FOR_UNATTENDED_REBOOT_BOOL} carrier configuration option is
8431 * ignored.
8432 *
8433 * @hide
8434 */
8435 public static final String KEY_STORE_SIM_PIN_FOR_UNATTENDED_REBOOT_BOOL =
8436 "store_sim_pin_for_unattended_reboot_bool";
8437
Jack Yu0bebba72021-02-17 14:08:42 -08008438 /**
Yomna Nasser7202a662022-02-09 23:14:54 +00008439 * Allow whether the user can use the "Allow 2G" toggle in Settings.
8440 *
8441 * If {@code true} then the toggle is disabled (i.e. grayed out).
Yomna Nasser8fa54b72021-01-18 22:00:55 +00008442 *
8443 * Used to trade privacy/security against potentially reduced carrier coverage for some
8444 * carriers.
8445 */
8446 public static final String KEY_HIDE_ENABLE_2G = "hide_enable_2g_bool";
8447
Jack Yu0bebba72021-02-17 14:08:42 -08008448 /**
8449 * Indicates the allowed APN types that can be used for LTE initial attach. The order of APN
8450 * types in the configuration is the order of APN types that will be used for initial attach.
8451 * Empty list indicates that no APN types are allowed for initial attach.
8452 *
8453 * @hide
8454 */
8455 public static final String KEY_ALLOWED_INITIAL_ATTACH_APN_TYPES_STRING_ARRAY =
8456 "allowed_initial_attach_apn_types_string_array";
8457
Etan Cohen65e16152021-03-13 08:31:28 +00008458 /**
8459 * Indicates whether or not the carrier will provision merged carrier Wi-Fi offload networks.
8460 * Such networks are considered part of the core carrier network.
8461 *
8462 * This configuration will be use to gate whether such configurations are allowed to the carrier
8463 * and correspondingly enable UI elements which are required for such configurations.
8464 */
8465 public static final String KEY_CARRIER_PROVISIONS_WIFI_MERGED_NETWORKS_BOOL =
8466 "carrier_provisions_wifi_merged_networks_bool";
8467
Etan Cohen4fd62972021-03-21 23:37:16 +00008468 /**
8469 * Determines whether or not to use (IP) data connectivity as a supplemental condition to
8470 * control the visibility of the no-calling indicator for this carrier in the System UI. Setting
Etan Cohenf6466c12021-04-06 01:21:13 +00008471 * the configuration to true may make sense for carriers that provide OTT calling.
Etan Cohen4fd62972021-03-21 23:37:16 +00008472 *
Etan Cohenf6466c12021-04-06 01:21:13 +00008473 * Config = true: show no-calling indication only if telephony does not have voice registration
8474 * and if no (IP) data connectivity is available.
8475 * Config = false: show no-calling indication only if telephony does not have voice
8476 * registration.
Etan Cohen4fd62972021-03-21 23:37:16 +00008477 */
Etan Cohenf6466c12021-04-06 01:21:13 +00008478 public static final String KEY_USE_IP_FOR_CALLING_INDICATOR_BOOL =
8479 "use_ip_for_calling_indicator_bool";
Etan Cohen4fd62972021-03-21 23:37:16 +00008480
Etan Cohen7573d7e2021-03-21 23:49:18 +00008481 /**
8482 * Determine whether or not to display a call strength indicator for this carrier in the System
8483 * UI. Disabling the indication may be reasonable if the carrier's calling is not integrated
8484 * into the Android telephony stack (e.g. it is OTT).
8485 *
8486 * true: Use telephony APIs to detect the current networking medium of calling and display a
8487 * UI indication based on the current strength (e.g. signal level) of that medium.
8488 * false: Do not display the call strength indicator.
8489 */
8490 public static final String KEY_DISPLAY_CALL_STRENGTH_INDICATOR_BOOL =
8491 "display_call_strength_indicator_bool";
8492
Jack Yu5badb092021-03-29 11:07:55 -07008493 /**
8494 * Determine whether or not to display no data notification when data setup is permanently
8495 * failed.
8496 *
8497 * @hide
8498 */
8499 public static final String KEY_DISPLAY_NO_DATA_NOTIFICATION_ON_PERMANENT_FAILURE_BOOL =
8500 "display_no_data_notification_on_permanent_failure_bool";
8501
Jack Yuc8cf1b02021-04-20 13:29:54 -07008502 /**
Sooraj Sasindran5dbec202021-06-15 14:49:12 -07008503 * Boolean indicating if the VoNR setting is visible in the Call Settings menu.
8504 * If true, the VoNR setting menu will be visible. If false, the menu will be gone.
8505 *
8506 * Disabled by default.
8507 *
8508 * @hide
8509 */
8510 public static final String KEY_VONR_SETTING_VISIBILITY_BOOL = "vonr_setting_visibility_bool";
8511
8512 /**
Gary Jian204ec2a2021-10-13 13:09:54 +08008513 * Flag specifying whether VoNR should be enabled for carrier.
8514 * If true, VoNr will be enabled. If false, hard disabled.
8515 *
8516 * Disabled by default.
8517 *
8518 * @hide
8519 */
8520 public static final String KEY_VONR_ENABLED_BOOL = "vonr_enabled_bool";
8521
8522 /**
Jack Yuc8cf1b02021-04-20 13:29:54 -07008523 * Determine whether unthrottle data retry when tracking area code (TAC/LAC) from cell changes
8524 *
8525 * @hide
8526 */
8527 public static final String KEY_UNTHROTTLE_DATA_RETRY_WHEN_TAC_CHANGES_BOOL =
8528 "unthrottle_data_retry_when_tac_changes_bool";
8529
Jack Yufd33d542021-12-12 13:34:53 -08008530 /**
8531 * IWLAN handover rules that determine whether handover is allowed or disallowed between
8532 * cellular and IWLAN.
8533 *
8534 * The handover rules will be matched in the order. Here are some sample rules.
8535 * <string-array name="iwlan_handover_rules" num="5">
8536 * <!-- Handover from IWLAN to 2G/3G is not allowed -->
8537 * <item value="source=IWLAN, target=GERAN|UTRAN, type=disallowed"/>
8538 * <!-- Handover from 2G/3G to IWLAN is not allowed -->
8539 * <item value="source=GERAN|UTRAN, target:IWLAN, type=disallowed"/>
8540 * <!-- Handover from IWLAN to 3G/4G/5G is not allowed if the device is roaming. -->
8541 * <item value="source=IWLAN, target=UTRAN|EUTRAN|NGRAN, roaming=true, type=disallowed"/>
Ling Ma4fcecfd2022-03-09 18:38:50 -08008542 * <!-- Handover from 4G to IWLAN is not allowed if the device has capability in either IMS
8543 * or EIMS-->
8544 * <item value="source=EUTRAN, target=IWLAN, type=disallowed, capabilities=IMS|EIMS"/>
Jack Yufd33d542021-12-12 13:34:53 -08008545 * <!-- Handover is always allowed in any condition. -->
8546 * <item value="source=GERAN|UTRAN|EUTRAN|NGRAN|IWLAN,
8547 * target=GERAN|UTRAN|EUTRAN|NGRAN|IWLAN, type=allowed"/>
8548 * </string-array>
8549 *
8550 * When handover is not allowed, frameworks will tear down the data network on source transport,
8551 * and then setup a new one on the target transport when Qualified Network Service changes the
8552 * preferred access networks for particular APN types.
8553 *
8554 * @hide
8555 */
8556 public static final String KEY_IWLAN_HANDOVER_POLICY_STRING_ARRAY =
8557 "iwlan_handover_policy_string_array";
8558
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08008559 /** The default value for every variable. */
Jonathan Basseri4f9ad1672015-05-12 10:06:32 -07008560 private final static PersistableBundle sDefaults;
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08008561
8562 static {
Jonathan Basseri4f9ad1672015-05-12 10:06:32 -07008563 sDefaults = new PersistableBundle();
Michele Berionne8ac8bd22018-12-05 11:05:33 -08008564 sDefaults.putString(KEY_CARRIER_CONFIG_VERSION_STRING, "");
Brad Ebingerc8601012016-07-19 14:09:23 -07008565 sDefaults.putBoolean(KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL, true);
Pooja Jaind34698d2017-12-28 14:15:31 +05308566 sDefaults.putBoolean(KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL, false);
Ravi Palurif4b38e72020-02-05 12:35:41 +05308567 sDefaults.putBoolean(KEY_CARRIER_ALLOW_TRANSFER_IMS_CALL_BOOL, false);
Tyler Gunn30889422017-11-28 09:04:31 -08008568 sDefaults.putBoolean(KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL, false);
Hall Liuf31f3852018-07-25 18:48:55 -07008569 sDefaults.putBoolean(KEY_AUTO_RETRY_FAILED_WIFI_EMERGENCY_CALL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008570 sDefaults.putBoolean(KEY_ADDITIONAL_CALL_SETTING_BOOL, true);
8571 sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL, false);
Hall Liue6e6ec42018-08-03 18:25:24 -07008572 sDefaults.putStringArray(KEY_UNLOGGABLE_NUMBERS_STRING_ARRAY, null);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008573 sDefaults.putBoolean(KEY_ALLOW_LOCAL_DTMF_TONES_BOOL, true);
Tyler Gunnacdb6862018-01-29 14:30:52 -08008574 sDefaults.putBoolean(KEY_PLAY_CALL_RECORDING_TONE_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008575 sDefaults.putBoolean(KEY_APN_EXPAND_BOOL, true);
8576 sDefaults.putBoolean(KEY_AUTO_RETRY_ENABLED_BOOL, false);
8577 sDefaults.putBoolean(KEY_CARRIER_SETTINGS_ENABLE_BOOL, false);
8578 sDefaults.putBoolean(KEY_CARRIER_VOLTE_AVAILABLE_BOOL, false);
Junda Liue5c7ca72015-06-24 14:41:14 -07008579 sDefaults.putBoolean(KEY_CARRIER_VT_AVAILABLE_BOOL, false);
gwenline7145b42020-09-18 11:09:20 -04008580 sDefaults.putInt(KEY_CARRIER_USSD_METHOD_INT, USSD_OVER_CS_PREFERRED);
SongFerngWang27b6a582020-04-10 15:07:09 +08008581 sDefaults.putBoolean(KEY_VOLTE_5G_LIMITED_ALERT_DIALOG_BOOL, false);
Tyler Gunn481255d2016-08-16 16:04:48 -07008582 sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL, false);
Hall Liuef800082019-07-29 16:18:30 -07008583 sDefaults.putBoolean(KEY_ALLOW_MERGING_RTT_CALLS_BOOL, false);
Tyler Gunn5ce0d3a2017-12-14 14:06:15 -08008584 sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL, false);
Tyler Gunn86d5c3f2016-08-12 14:14:13 -07008585 sDefaults.putBoolean(KEY_SUPPORT_DOWNGRADE_VT_TO_AUDIO_BOOL, true);
Jordan Liu3ff30d22016-09-01 13:25:13 -07008586 sDefaults.putString(KEY_DEFAULT_VM_NUMBER_STRING, "");
SongFerngWang310f6d02018-03-23 15:07:05 +08008587 sDefaults.putString(KEY_DEFAULT_VM_NUMBER_ROAMING_STRING, "");
Saki Oomori0dd2dfb2018-09-11 15:44:25 +09008588 sDefaults.putString(KEY_DEFAULT_VM_NUMBER_ROAMING_AND_IMS_UNREGISTERED_STRING, "");
Cassie4c6f72c2017-10-10 14:33:38 -07008589 sDefaults.putBoolean(KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL, false);
Tyler Gunn9a961f52017-08-17 15:58:47 -07008590 sDefaults.putBoolean(KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS, true);
8591 sDefaults.putBoolean(KEY_VILTE_DATA_IS_METERED_BOOL, true);
Junda Liue4786492015-06-15 13:15:28 -07008592 sDefaults.putBoolean(KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL, false);
Sooraj Sasindran83ff8ad2020-11-23 23:42:51 -08008593 sDefaults.putBoolean(KEY_CARRIER_CROSS_SIM_IMS_AVAILABLE_BOOL, false);
yawensu5cc57b62021-09-07 13:58:42 +08008594 sDefaults.putBoolean(KEY_ENABLE_CROSS_SIM_CALLING_ON_OPPORTUNISTIC_DATA_BOOL, false);
fionaxudcf5c2b2016-05-12 13:40:05 -07008595 sDefaults.putBoolean(KEY_CARRIER_WFC_SUPPORTS_WIFI_ONLY_BOOL, false);
fionaxuc71e8242016-03-08 11:46:55 -08008596 sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL, false);
8597 sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL, false);
Tyler Gunnc3e6c932016-07-07 10:11:14 -07008598 sDefaults.putBoolean(KEY_CARRIER_PROMOTE_WFC_ON_CALL_FAIL_BOOL, false);
fionaxuc71e8242016-03-08 11:46:55 -08008599 sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT, 2);
Meng Wang2c25e4a2016-09-19 14:18:05 -07008600 sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT, 2);
Jack Yua4f2da32015-07-22 13:36:42 -07008601 sDefaults.putBoolean(KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL, false);
allenwtsuc2524a42020-01-03 18:18:11 +08008602 sDefaults.putBoolean(KEY_CARRIER_RCS_PROVISIONING_REQUIRED_BOOL, true);
Junda Liue5c7ca72015-06-24 14:41:14 -07008603 sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL, false);
Brad Ebingerb3f46322019-01-14 13:46:05 -08008604 sDefaults.putBoolean(KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL, false);
Brad Ebingerbb9446d2019-03-27 09:46:56 -07008605 sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL, false);
Meng Wang05062992017-02-14 21:55:09 -08008606 sDefaults.putBoolean(KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL, false);
Pankaj Kanwar9a7abe62018-03-21 20:20:06 +00008607 sDefaults.putBoolean(KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL, true);
donaldahn3486c1d2022-02-24 05:21:28 +00008608 sDefaults.putBoolean(KEY_CARRIER_VOWIFI_TTY_SUPPORTED_BOOL, true);
Junda Liue5c7ca72015-06-24 14:41:14 -07008609 sDefaults.putBoolean(KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL, true);
Pavel Zhamaitsiakb4faf342015-10-16 16:39:00 -07008610 sDefaults.putBoolean(KEY_CARRIER_IMS_GBA_REQUIRED_BOOL, false);
Tyler Gunnac2aefc2015-07-31 15:34:46 -07008611 sDefaults.putBoolean(KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL, false);
Etan Cohencd811f02015-08-18 11:11:29 -07008612 sDefaults.putBoolean(KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL, true);
Tyler Gunn11dd6452021-10-27 14:24:49 -07008613 sDefaults.putBoolean(KEY_USE_ONLY_DIALED_SIM_ECC_LIST_BOOL, false);
Malcolm Chenec102212018-01-29 15:10:46 -08008614 sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "");
8615 sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "");
Jack Yu4d21a402018-08-27 16:59:05 -07008616 sDefaults.putString(KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_PACKAGE_OVERRIDE_STRING, "");
Jack Yufcbda452018-02-01 14:50:53 -08008617 sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "");
8618 sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "");
Tyler Gunneb5fcb92015-09-04 13:16:37 -07008619 sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING, "");
Tyler Gunn14be4cf2015-09-10 13:33:28 -07008620 sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ESCAPED_CHARS_STRING, "");
Tyler Gunndb3da5c2015-09-21 22:11:30 -07008621 sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING, "");
8622 sDefaults.putInt(KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT, 64);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008623 sDefaults.putBoolean(KEY_DISABLE_CDMA_ACTIVATION_CODE_BOOL, false);
8624 sDefaults.putBoolean(KEY_DTMF_TYPE_ENABLED_BOOL, false);
8625 sDefaults.putBoolean(KEY_ENABLE_DIALER_KEY_VIBRATION_BOOL, true);
8626 sDefaults.putBoolean(KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL, false);
8627 sDefaults.putBoolean(KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL, false);
Mattias Nilssonef874162017-12-11 13:45:40 +01008628 sDefaults.putBoolean(KEY_ONLY_AUTO_SELECT_IN_HOME_NETWORK_BOOL, false);
Qiong Liu3a996222017-12-07 14:13:50 +08008629 sDefaults.putBoolean(KEY_SHOW_SINGLE_OPERATOR_ROW_IN_CHOOSE_NETWORK_SETTING_BOOL, true);
8630 sDefaults.putBoolean(KEY_SHOW_SPN_FOR_HOME_IN_CHOOSE_NETWORK_SETTING_BOOL, false);
Joe LaPenna2b22ae32016-12-07 16:27:24 -08008631 sDefaults.putBoolean(KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL, false);
Junda Liue15cca72015-06-17 09:55:57 -07008632 sDefaults.putBoolean(KEY_HIDE_SIM_LOCK_SETTINGS_BOOL, false);
Jordan Liuc82d1132016-10-03 11:35:33 -07008633
8634 sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONED_BOOL, false);
Wenting Xiongd5853682016-08-12 18:28:37 +08008635 sDefaults.putBoolean(KEY_CALL_BARRING_VISIBILITY_BOOL, false);
Brad Ebinger0819bac2018-08-29 16:08:29 -07008636 sDefaults.putBoolean(KEY_CALL_BARRING_SUPPORTS_PASSWORD_CHANGE_BOOL, true);
8637 sDefaults.putBoolean(KEY_CALL_BARRING_SUPPORTS_DEACTIVATE_ALL_BOOL, true);
Kikkawa Shohei03a14712020-08-07 17:44:40 +09008638 sDefaults.putInt(KEY_CALL_BARRING_DEFAULT_SERVICE_CLASS_INT, SERVICE_CLASS_VOICE);
Brad Ebinger783f66f2021-07-15 16:09:56 -07008639 sDefaults.putBoolean(KEY_SUPPORT_SS_OVER_CDMA_BOOL, false);
SongFerngWang06057162018-06-28 17:28:22 +08008640 sDefaults.putBoolean(KEY_CALL_FORWARDING_VISIBILITY_BOOL, true);
Shu Wang6edfc5a2018-09-13 15:36:30 +02008641 sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_UNREACHABLE_SUPPORTED_BOOL, true);
allenwtsu6206afc2020-05-19 21:37:50 +08008642 sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_UNANSWERED_SUPPORTED_BOOL, true);
8643 sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_BUSY_SUPPORTED_BOOL, true);
SongFerngWang06057162018-06-28 17:28:22 +08008644 sDefaults.putBoolean(KEY_ADDITIONAL_SETTINGS_CALLER_ID_VISIBILITY_BOOL, true);
8645 sDefaults.putBoolean(KEY_ADDITIONAL_SETTINGS_CALL_WAITING_VISIBILITY_BOOL, true);
SongFerngWang08972c52019-11-25 22:44:12 +08008646 sDefaults.putBoolean(KEY_DISABLE_SUPPLEMENTARY_SERVICES_IN_AIRPLANE_MODE_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008647 sDefaults.putBoolean(KEY_IGNORE_SIM_NETWORK_LOCKED_EVENTS_BOOL, false);
Jordan Liube45b8c2016-11-09 13:23:42 -08008648 sDefaults.putBoolean(KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008649 sDefaults.putBoolean(KEY_OPERATOR_SELECTION_EXPAND_BOOL, true);
Yomna Nasserd3db44f2022-03-09 22:04:54 +00008650 sDefaults.putBoolean(KEY_PREFER_2G_BOOL, false);
Sooraj Sasindranb19264b2021-04-12 16:22:52 -07008651 sDefaults.putBoolean(KEY_4G_ONLY_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008652 sDefaults.putBoolean(KEY_SHOW_APN_SETTING_CDMA_BOOL, false);
8653 sDefaults.putBoolean(KEY_SHOW_CDMA_CHOICES_BOOL, false);
Jordan Liu5ac6f5c2016-10-03 12:28:27 -07008654 sDefaults.putBoolean(KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL, false);
Avinash Nalluriceaf7222018-04-21 14:06:06 -07008655 sDefaults.putBoolean(KEY_SUPPORT_EMERGENCY_SMS_OVER_IMS_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008656 sDefaults.putBoolean(KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL, true);
8657 sDefaults.putBoolean(KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL, true);
Omkar Kolangade2e8f8fe2015-12-22 21:07:04 +05308658 sDefaults.putBoolean(KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008659 sDefaults.putBoolean(KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL, true);
8660 sDefaults.putBoolean(KEY_USE_HFA_FOR_PROVISIONING_BOOL, false);
manabu, shimoda1de99d12017-10-20 17:16:06 +09008661 sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_SETTING_BOOL, true);
Jordan Liu4a546382016-09-08 12:45:58 -07008662 sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008663 sDefaults.putBoolean(KEY_USE_OTASP_FOR_PROVISIONING_BOOL, false);
8664 sDefaults.putBoolean(KEY_VOICEMAIL_NOTIFICATION_PERSISTENT_BOOL, false);
Jonathan Basseri3360c262015-06-09 15:16:21 -07008665 sDefaults.putBoolean(KEY_VOICE_PRIVACY_DISABLE_UI_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008666 sDefaults.putBoolean(KEY_WORLD_PHONE_BOOL, false);
Chris Manton1ba0fa02015-09-01 13:56:46 -07008667 sDefaults.putBoolean(KEY_REQUIRE_ENTITLEMENT_CHECKS_BOOL, true);
Meng Wang5b6f5532022-02-01 18:27:26 +00008668 sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_TETHERING_BOOL, true);
Jordan Liua5a8b592016-09-12 10:57:27 -07008669 sDefaults.putBoolean(KEY_RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION_BOOL, false);
Jack Yu3399f362018-08-21 16:57:36 -07008670 sDefaults.putIntArray(KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY, new int[]{});
Jonathan Basseri69822f02015-06-04 13:48:08 -07008671 sDefaults.putInt(KEY_VOLTE_REPLACEMENT_RAT_INT, 0);
Junda Liue4786492015-06-15 13:15:28 -07008672 sDefaults.putString(KEY_DEFAULT_SIM_CALL_MANAGER_STRING, "");
Jonathan Basseri69822f02015-06-04 13:48:08 -07008673 sDefaults.putString(KEY_VVM_DESTINATION_NUMBER_STRING, "");
8674 sDefaults.putInt(KEY_VVM_PORT_NUMBER_INT, 0);
8675 sDefaults.putString(KEY_VVM_TYPE_STRING, "");
Ta-wei Yen3f9306f2016-04-20 14:46:20 -07008676 sDefaults.putBoolean(KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL, false);
Ta-wei Yenb618d0f2017-01-17 13:52:10 -08008677 sDefaults.putString(KEY_VVM_CLIENT_PREFIX_STRING,"//VVM");
8678 sDefaults.putBoolean(KEY_VVM_SSL_ENABLED_BOOL,false);
8679 sDefaults.putStringArray(KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY, null);
8680 sDefaults.putBoolean(KEY_VVM_LEGACY_MODE_ENABLED_BOOL,false);
Ta-wei Yen3f9306f2016-04-20 14:46:20 -07008681 sDefaults.putBoolean(KEY_VVM_PREFETCH_BOOL, true);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008682 sDefaults.putString(KEY_CARRIER_VVM_PACKAGE_NAME_STRING, "");
Ta-wei Yenb618d0f2017-01-17 13:52:10 -08008683 sDefaults.putStringArray(KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY, null);
Meng Wang6b2995a2016-03-14 10:08:41 -07008684 sDefaults.putBoolean(KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL, false);
Jordan Liua59a5eb2017-12-11 16:23:25 -08008685 sDefaults.putBoolean(KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL, true);
Mattias Nilssoneee4e502020-01-24 17:49:49 +01008686 sDefaults.putBoolean(KEY_INFLATE_SIGNAL_STRENGTH_BOOL, false);
Amit Mahajan02008b72015-06-11 14:54:20 -07008687 sDefaults.putBoolean(KEY_CI_ACTION_ON_SYS_UPDATE_BOOL, false);
8688 sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING, "");
8689 sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING, "");
8690 sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING, "");
Jonathan Basseri019523a2015-06-19 11:07:22 -07008691 sDefaults.putBoolean(KEY_CSP_ENABLED_BOOL, false);
Amit Mahajan412e7c82015-10-05 11:05:02 -07008692 sDefaults.putBoolean(KEY_ALLOW_ADDING_APNS_BOOL, true);
Amit Mahajan94222f42017-05-17 15:36:30 -07008693 sDefaults.putStringArray(KEY_READ_ONLY_APN_TYPES_STRING_ARRAY, new String[] {"dun"});
Amit Mahajan71e9ea62016-09-20 10:57:47 -07008694 sDefaults.putStringArray(KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY, null);
SongFerngWangc87140c2019-08-19 22:51:46 +08008695 sDefaults.putStringArray(KEY_APN_SETTINGS_DEFAULT_APN_TYPES_STRING_ARRAY, null);
Bonian Chen94ae34a2020-01-17 05:49:54 +08008696 sDefaults.putAll(Apn.getDefaults());
8697
Amit Mahajan0c081482016-01-12 18:25:33 -08008698 sDefaults.putBoolean(KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL, false);
Jack Yu6af6c342015-09-14 16:18:59 -07008699 sDefaults.putBoolean(KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL, false);
Sarah Chin83469632021-12-06 18:34:24 -08008700 sDefaults.putInt(KEY_DEFAULT_MTU_INT, 1500);
Jack Yuc1f0e872016-09-10 00:41:17 -07008701 sDefaults.putStringArray(KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS, new String[]{
8702 "default:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000,"
8703 + "320000:5000,640000:5000,1280000:5000,1800000:5000",
8704 "mms:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000,"
8705 + "320000:5000,640000:5000,1280000:5000,1800000:5000",
Hui Wang7e82b022021-04-20 16:13:33 -07008706 "ims:max_retries=10, 5000, 5000, 5000",
Jack Yuc1f0e872016-09-10 00:41:17 -07008707 "others:max_retries=3, 5000, 5000, 5000"});
Jack Yu090dd722015-12-18 15:16:24 -08008708 sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_DEFAULT_LONG, 20000);
8709 sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_FASTER_LONG, 3000);
Jack Yu24e84522021-12-16 11:17:42 -08008710 sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_RETRY_AFTER_DISCONNECT_LONG, 3000);
Jack Yu9138a212021-06-10 10:40:12 -07008711 sDefaults.putInt(KEY_CARRIER_DATA_CALL_RETRY_NETWORK_REQUESTED_MAX_COUNT_INT, 3);
Jack Yu360dc212016-04-08 17:11:25 -07008712 sDefaults.putString(KEY_CARRIER_ERI_FILE_NAME_STRING, "eri.xml");
Abhijith Shastryd48935872016-02-04 17:28:03 -08008713 sDefaults.putInt(KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT, 7200);
Jack Yu66a6be32016-03-30 11:14:39 -07008714 sDefaults.putStringArray(KEY_CARRIER_METERED_APN_TYPES_STRINGS,
8715 new String[]{"default", "mms", "dun", "supl"});
fionaxu28ffb602016-04-17 23:56:42 -07008716 sDefaults.putStringArray(KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS,
8717 new String[]{"default", "mms", "dun", "supl"});
Jack Yuac9a7312019-06-28 16:42:37 -07008718 sDefaults.putStringArray(KEY_CARRIER_WWAN_DISALLOWED_APN_TYPES_STRING_ARRAY,
8719 new String[]{""});
8720 sDefaults.putStringArray(KEY_CARRIER_WLAN_DISALLOWED_APN_TYPES_STRING_ARRAY,
8721 new String[]{""});
Jordan Liu2420a0a2016-10-04 11:46:03 -07008722 sDefaults.putIntArray(KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY,
Sarah Chin69f721e2021-12-13 17:52:25 -08008723 new int[] {TelephonyManager.NETWORK_TYPE_CDMA, TelephonyManager.NETWORK_TYPE_1xRTT,
8724 TelephonyManager.NETWORK_TYPE_EVDO_0, TelephonyManager.NETWORK_TYPE_EVDO_A,
8725 TelephonyManager.NETWORK_TYPE_EVDO_B});
Chris Mantonca16a792015-06-16 12:06:08 -07008726 sDefaults.putStringArray(KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY, null);
8727 sDefaults.putStringArray(KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY, null);
Brad Ebinger024aaf22017-01-23 15:17:50 -08008728 sDefaults.putString(KEY_CONFIG_IMS_PACKAGE_OVERRIDE_STRING, null);
Brad Ebinger66978142019-12-05 11:38:15 -08008729 sDefaults.putString(KEY_CONFIG_IMS_MMTEL_PACKAGE_OVERRIDE_STRING, null);
8730 sDefaults.putString(KEY_CONFIG_IMS_RCS_PACKAGE_OVERRIDE_STRING, null);
Chris Mantonca16a792015-06-16 12:06:08 -07008731 sDefaults.putStringArray(KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY, null);
8732 sDefaults.putStringArray(KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY, null);
Jordan Liu02ec2a02016-09-09 11:48:48 -07008733 sDefaults.putStringArray(KEY_DIAL_STRING_REPLACE_STRING_ARRAY, null);
Thomas Stuart5c0227d2022-04-08 14:04:56 -07008734 sDefaults.putStringArray(KEY_INTERNATIONAL_ROAMING_DIAL_STRING_REPLACE_STRING_ARRAY, null);
Chris Manton63f25b62015-06-24 16:47:49 -07008735 sDefaults.putBoolean(KEY_FORCE_HOME_NETWORK_BOOL, false);
Roshan Piusdc364fe2015-09-10 10:28:06 -07008736 sDefaults.putInt(KEY_GSM_DTMF_TONE_DELAY_INT, 0);
Roshan Pius9f81ce72015-08-12 12:01:42 -07008737 sDefaults.putInt(KEY_IMS_DTMF_TONE_DELAY_INT, 0);
Roshan Piusa52c5e22015-08-14 12:58:08 -07008738 sDefaults.putInt(KEY_CDMA_DTMF_TONE_DELAY_INT, 100);
Brad Ebinger110856432017-10-12 13:58:55 -07008739 sDefaults.putBoolean(KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL, false);
Hall Liud18e5b42019-12-11 17:35:33 -08008740 sDefaults.putBoolean(KEY_IGNORE_RTT_MODE_SETTING_BOOL, true);
Jordan Liue1663562016-09-07 12:01:24 -07008741 sDefaults.putInt(KEY_CDMA_3WAYCALL_FLASH_DELAY_INT , 0);
Ravi Paluri80aa2142019-12-02 11:57:37 +05308742 sDefaults.putBoolean(KEY_SUPPORT_ADHOC_CONFERENCE_CALLS_BOOL, false);
Ravi Paluri404babb2020-01-23 19:02:44 +05308743 sDefaults.putBoolean(KEY_SUPPORT_ADD_CONFERENCE_PARTICIPANTS_BOOL, false);
Sungmin Choi8c651ae2015-08-14 15:55:13 -07008744 sDefaults.putBoolean(KEY_SUPPORT_CONFERENCE_CALL_BOOL, true);
Wei Huanga8ad1522016-03-01 15:25:04 +08008745 sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL, true);
Tyler Gunn4eb18912020-04-07 19:01:15 -07008746 sDefaults.putBoolean(KEY_LOCAL_DISCONNECT_EMPTY_IMS_CONFERENCE_BOOL, false);
Wei Huang594039c2016-04-22 14:33:55 +08008747 sDefaults.putBoolean(KEY_SUPPORT_MANAGE_IMS_CONFERENCE_CALL_BOOL, true);
Youming Yed5472f72019-05-21 13:10:48 -07008748 sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL, true);
Tyler Gunn60e5f7c2020-04-06 15:07:48 -07008749 sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_ON_PEER_BOOL, true);
Tyler Gunn0ba79072021-03-02 09:19:55 -08008750 sDefaults.putBoolean(KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_RTP_BOOL, false);
8751 sDefaults.putBoolean(KEY_SUPPORTS_SDP_NEGOTIATION_OF_D2D_RTP_HEADER_EXTENSIONS_BOOL, false);
8752 sDefaults.putBoolean(KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_DTMF_BOOL, false);
Tyler Gunnee61c622016-04-19 16:17:19 -07008753 sDefaults.putBoolean(KEY_SUPPORT_VIDEO_CONFERENCE_CALL_BOOL, false);
Tyler Gunnec5b6e32016-12-01 19:40:30 -08008754 sDefaults.putBoolean(KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL, false);
8755 sDefaults.putInt(KEY_IMS_CONFERENCE_SIZE_LIMIT_INT, 5);
Wei Huang237d7752016-03-01 17:02:40 +08008756 sDefaults.putBoolean(KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL, true);
Sungmin Choi8d2826b2015-08-25 23:30:34 -07008757 sDefaults.putBoolean(KEY_EDITABLE_ENHANCED_4G_LTE_BOOL, true);
yinxu34016ae2017-03-14 15:36:17 -07008758 sDefaults.putBoolean(KEY_HIDE_ENHANCED_4G_LTE_BOOL, false);
manabu, shimoda14723e32017-10-06 14:39:01 +09008759 sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL, true);
Sungmin Choie9d3c112015-08-31 15:32:20 -07008760 sDefaults.putBoolean(KEY_HIDE_IMS_APN_BOOL, false);
Sungmin Choic03a1da2015-09-08 15:34:23 -07008761 sDefaults.putBoolean(KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL, false);
Tyler Gunnf0836192016-03-15 20:33:13 -07008762 sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL, false);
Junda Liu85313282017-03-28 13:58:51 -07008763 sDefaults.putStringArray(KEY_ENABLE_APPS_STRING_ARRAY, null);
Sungmin Choid3b28262015-12-23 14:10:41 +09008764 sDefaults.putBoolean(KEY_EDITABLE_WFC_MODE_BOOL, true);
Pavel Zhamaitsiak7b7c4fc2016-04-12 14:24:07 -07008765 sDefaults.putStringArray(KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY, null);
8766 sDefaults.putInt(KEY_WFC_SPN_FORMAT_IDX_INT, 0);
8767 sDefaults.putInt(KEY_WFC_DATA_SPN_FORMAT_IDX_INT, 0);
Torbjorn Eklunda765a472018-09-24 17:45:23 +02008768 sDefaults.putInt(KEY_WFC_FLIGHT_MODE_SPN_FORMAT_IDX_INT, -1);
Torbjorn Eklund99c11d82018-08-21 16:06:47 +02008769 sDefaults.putBoolean(KEY_WFC_SPN_USE_ROOT_LOCALE, false);
Vineeta Srivastavac7d7ab7f2016-05-14 11:05:28 -07008770 sDefaults.putString(KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING, "");
Sunil Dutt7c5fda82016-04-05 22:08:57 +05308771 sDefaults.putBoolean(KEY_CONFIG_WIFI_DISABLE_IN_ECBM, false);
Sanket Padawe49b20422016-06-01 12:17:23 -07008772 sDefaults.putBoolean(KEY_CARRIER_NAME_OVERRIDE_BOOL, false);
8773 sDefaults.putString(KEY_CARRIER_NAME_STRING, "");
SongFerngWangd1b16442020-06-16 18:39:35 +08008774 sDefaults.putBoolean(KEY_WFC_CARRIER_NAME_OVERRIDE_BY_PNN_BOOL, false);
Sooraj Sasindran83ff8ad2020-11-23 23:42:51 -08008775 sDefaults.putInt(KEY_CROSS_SIM_SPN_FORMAT_INT, 1);
Pengquan Meng057b94f2019-04-17 19:36:58 -07008776 sDefaults.putInt(KEY_SPN_DISPLAY_CONDITION_OVERRIDE_INT, -1);
8777 sDefaults.putStringArray(KEY_SPDI_OVERRIDE_STRING_ARRAY, null);
8778 sDefaults.putStringArray(KEY_PNN_OVERRIDE_STRING_ARRAY, null);
8779 sDefaults.putStringArray(KEY_OPL_OVERRIDE_STRING_ARRAY, null);
8780 sDefaults.putStringArray(KEY_EHPLMN_OVERRIDE_STRING_ARRAY, null);
8781 sDefaults.putBoolean(KEY_ALLOW_ERI_BOOL, false);
8782 sDefaults.putBoolean(KEY_ENABLE_CARRIER_DISPLAY_NAME_RESOLVER_BOOL, false);
chen xu6b736ee2018-12-02 14:14:15 -08008783 sDefaults.putString(KEY_SIM_COUNTRY_ISO_OVERRIDE_STRING, "");
tonyzhucd0a63d2018-10-11 14:31:26 +08008784 sDefaults.putString(KEY_CARRIER_CALL_SCREENING_APP_STRING, "");
sqian4be071a2019-03-18 14:10:53 -07008785 sDefaults.putString(KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING, null);
Amit Mahajan22e89f42018-06-05 16:27:32 -07008786 sDefaults.putBoolean(KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL, false);
8787 sDefaults.putString(KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING, "");
Wileen Chiu5e8e3082016-07-15 10:00:09 -07008788 sDefaults.putBoolean(KEY_SUPPORT_DIRECT_FDN_DIALING_BOOL, false);
rongmei.libcadc902019-10-16 18:41:48 +08008789 sDefaults.putInt(KEY_FDN_NUMBER_LENGTH_LIMIT_INT, 20);
fionaxu7834be22017-06-22 18:14:23 -07008790 sDefaults.putBoolean(KEY_CARRIER_DEFAULT_DATA_ROAMING_ENABLED_BOOL, false);
DongYuchen439f16d2017-02-16 18:22:36 +08008791 sDefaults.putBoolean(KEY_SKIP_CF_FAIL_TO_DISABLE_DIALOG_BOOL, false);
Tyler Gunn212c1572018-09-12 17:50:49 -07008792 sDefaults.putBoolean(KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL, true);
Chris Mantonca16a792015-06-16 12:06:08 -07008793
Jonathan Basserif31ac332015-05-27 01:18:46 -07008794 // MMS defaults
Jonathan Basseri69822f02015-06-04 13:48:08 -07008795 sDefaults.putBoolean(KEY_MMS_ALIAS_ENABLED_BOOL, false);
8796 sDefaults.putBoolean(KEY_MMS_ALLOW_ATTACH_AUDIO_BOOL, true);
8797 sDefaults.putBoolean(KEY_MMS_APPEND_TRANSACTION_ID_BOOL, false);
8798 sDefaults.putBoolean(KEY_MMS_GROUP_MMS_ENABLED_BOOL, true);
8799 sDefaults.putBoolean(KEY_MMS_MMS_DELIVERY_REPORT_ENABLED_BOOL, false);
8800 sDefaults.putBoolean(KEY_MMS_MMS_ENABLED_BOOL, true);
8801 sDefaults.putBoolean(KEY_MMS_MMS_READ_REPORT_ENABLED_BOOL, false);
8802 sDefaults.putBoolean(KEY_MMS_MULTIPART_SMS_ENABLED_BOOL, true);
8803 sDefaults.putBoolean(KEY_MMS_NOTIFY_WAP_MMSC_ENABLED_BOOL, false);
8804 sDefaults.putBoolean(KEY_MMS_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES_BOOL, false);
8805 sDefaults.putBoolean(KEY_MMS_SHOW_CELL_BROADCAST_APP_LINKS_BOOL, true);
8806 sDefaults.putBoolean(KEY_MMS_SMS_DELIVERY_REPORT_ENABLED_BOOL, true);
8807 sDefaults.putBoolean(KEY_MMS_SUPPORT_HTTP_CHARSET_HEADER_BOOL, false);
8808 sDefaults.putBoolean(KEY_MMS_SUPPORT_MMS_CONTENT_DISPOSITION_BOOL, true);
Ye Wen406a41b2016-07-18 14:36:22 -07008809 sDefaults.putBoolean(KEY_MMS_CLOSE_CONNECTION_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008810 sDefaults.putInt(KEY_MMS_ALIAS_MAX_CHARS_INT, 48);
8811 sDefaults.putInt(KEY_MMS_ALIAS_MIN_CHARS_INT, 2);
8812 sDefaults.putInt(KEY_MMS_HTTP_SOCKET_TIMEOUT_INT, 60 * 1000);
8813 sDefaults.putInt(KEY_MMS_MAX_IMAGE_HEIGHT_INT, 480);
8814 sDefaults.putInt(KEY_MMS_MAX_IMAGE_WIDTH_INT, 640);
8815 sDefaults.putInt(KEY_MMS_MAX_MESSAGE_SIZE_INT, 300 * 1024);
8816 sDefaults.putInt(KEY_MMS_MESSAGE_TEXT_MAX_SIZE_INT, -1);
8817 sDefaults.putInt(KEY_MMS_RECIPIENT_LIMIT_INT, Integer.MAX_VALUE);
8818 sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD_INT, -1);
8819 sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT, -1);
8820 sDefaults.putInt(KEY_MMS_SUBJECT_MAX_LENGTH_INT, 40);
8821 sDefaults.putString(KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING, "");
8822 sDefaults.putString(KEY_MMS_HTTP_PARAMS_STRING, "");
8823 sDefaults.putString(KEY_MMS_NAI_SUFFIX_STRING, "");
8824 sDefaults.putString(KEY_MMS_UA_PROF_TAG_NAME_STRING, "x-wap-profile");
8825 sDefaults.putString(KEY_MMS_UA_PROF_URL_STRING, "");
8826 sDefaults.putString(KEY_MMS_USER_AGENT_STRING, "");
Tyler Gunn387ce2f2015-08-28 14:14:11 -07008827 sDefaults.putBoolean(KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL, true);
Brad Ebinger5eeb79d2019-03-15 13:50:34 -07008828 sDefaults.putInt(KEY_EMERGENCY_SMS_MODE_TIMER_MS_INT, 0);
Brad Ebinger62713872019-11-18 18:43:35 -08008829 sDefaults.putBoolean(KEY_ALLOW_HOLD_CALL_DURING_EMERGENCY_BOOL, true);
Tyler Gunn3e122f72016-01-11 19:25:00 -08008830 sDefaults.putBoolean(KEY_USE_RCS_PRESENCE_BOOL, false);
James.cf Linc8a345a2019-09-20 18:04:06 +08008831 sDefaults.putBoolean(KEY_USE_RCS_SIP_OPTIONS_BOOL, false);
Junda Liu276f4d62016-07-14 13:55:03 -07008832 sDefaults.putBoolean(KEY_FORCE_IMEI_BOOL, false);
Jeff Davidsonaf1d3202017-10-25 12:51:43 -07008833 sDefaults.putInt(
8834 KEY_CDMA_ROAMING_MODE_INT, TelephonyManager.CDMA_ROAMING_MODE_RADIO_DEFAULT);
Josh Hou0e9ea952019-12-03 21:00:44 +08008835 sDefaults.putBoolean(KEY_SUPPORT_CDMA_1X_VOICE_CALLS_BOOL, true);
Abhijith Shastry2215c9b2016-08-24 15:17:39 -07008836 sDefaults.putString(KEY_RCS_CONFIG_SERVER_URL_STRING, "");
fionaxub5592dc2016-04-08 13:19:31 -07008837
fionaxu1bf6ec22016-05-23 16:33:16 -07008838 // Carrier Signalling Receivers
Stuart Scott9abc2732016-05-11 15:42:01 -07008839 sDefaults.putString(KEY_CARRIER_SETUP_APP_STRING, "");
fionaxub537d742017-09-06 12:07:14 -07008840 sDefaults.putStringArray(KEY_CARRIER_APP_WAKE_SIGNAL_CONFIG_STRING_ARRAY,
8841 new String[]{
8842 "com.android.carrierdefaultapp/.CarrierDefaultBroadcastReceiver:"
8843 + "com.android.internal.telephony.CARRIER_SIGNAL_RESET"
8844 });
fionaxu41ca9372016-11-17 16:46:30 -08008845 sDefaults.putStringArray(KEY_CARRIER_APP_NO_WAKE_SIGNAL_CONFIG_STRING_ARRAY, null);
Qingxi Li38fbddc2019-03-14 13:26:03 -07008846 sDefaults.putBoolean(KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL, false);
fionaxu41ca9372016-11-17 16:46:30 -08008847
Robert Greenwalt60551b62016-06-09 16:28:40 -07008848
fionaxua21a87b2016-12-13 17:15:11 -08008849 // Default carrier app configurations
8850 sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY,
8851 new String[]{
fionaxud60a9d02017-05-23 14:55:27 -07008852 "9, 4, 1"
8853 //9: CARRIER_ACTION_REGISTER_NETWORK_AVAIL
fionaxua21a87b2016-12-13 17:15:11 -08008854 //4: CARRIER_ACTION_DISABLE_METERED_APNS
8855 //1: CARRIER_ACTION_SHOW_PORTAL_NOTIFICATION
8856 });
fionaxu77f466d2017-04-26 16:05:25 -07008857 sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_RESET, new String[]{
fionaxud60a9d02017-05-23 14:55:27 -07008858 "6, 8"
8859 //6: CARRIER_ACTION_CANCEL_ALL_NOTIFICATIONS
8860 //8: CARRIER_ACTION_DISABLE_DEFAULT_URL_HANDLER
8861 });
fionaxu79d77bb2017-07-19 11:11:54 -07008862 sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_DEFAULT_NETWORK_AVAILABLE, new String[] {
8863 String.valueOf(false) + ": 7", //7: CARRIER_ACTION_ENABLE_DEFAULT_URL_HANDLER
8864 String.valueOf(true) + ": 8" //8: CARRIER_ACTION_DISABLE_DEFAULT_URL_HANDLER
fionaxu77f466d2017-04-26 16:05:25 -07008865 });
fionaxua21a87b2016-12-13 17:15:11 -08008866 sDefaults.putStringArray(KEY_CARRIER_DEFAULT_REDIRECTION_URL_STRING_ARRAY, null);
8867
Ammar Aijazi11b44982017-01-17 17:32:15 -08008868 sDefaults.putInt(KEY_MONTHLY_DATA_CYCLE_DAY_INT, DATA_CYCLE_USE_PLATFORM_DEFAULT);
8869 sDefaults.putLong(KEY_DATA_WARNING_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT);
Jeff Sharkey0a5570d2018-04-10 12:38:29 -06008870 sDefaults.putBoolean(KEY_DATA_WARNING_NOTIFICATION_BOOL, true);
chen xu00511062019-07-02 16:32:07 -07008871 sDefaults.putBoolean(KEY_LIMITED_SIM_FUNCTION_NOTIFICATION_FOR_DSDS_BOOL, false);
Ammar Aijazi11b44982017-01-17 17:32:15 -08008872 sDefaults.putLong(KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT);
Jeff Sharkey0a5570d2018-04-10 12:38:29 -06008873 sDefaults.putBoolean(KEY_DATA_LIMIT_NOTIFICATION_BOOL, true);
8874 sDefaults.putBoolean(KEY_DATA_RAPID_NOTIFICATION_BOOL, true);
Ammar Aijazi11b44982017-01-17 17:32:15 -08008875
Ajay Nambi7965fa42015-05-14 18:48:33 -07008876 // Rat families: {GPRS, EDGE}, {EVDO, EVDO_A, EVDO_B}, {UMTS, HSPA, HSDPA, HSUPA, HSPAP},
8877 // {LTE, LTE_CA}
Robert Greenwalt60551b62016-06-09 16:28:40 -07008878 // Order is important - lowest precidence first
8879 sDefaults.putStringArray(KEY_RATCHET_RAT_FAMILIES,
Ajay Nambi7965fa42015-05-14 18:48:33 -07008880 new String[]{"1,2","7,8,12","3,11,9,10,15","14,19"});
Tyler Gunn7d633d32016-06-24 07:30:10 -07008881 sDefaults.putBoolean(KEY_TREAT_DOWNGRADED_VIDEO_CALLS_AS_VIDEO_CALLS_BOOL, false);
8882 sDefaults.putBoolean(KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL, false);
8883 sDefaults.putBoolean(KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL, true);
Hall Liu10208662016-06-15 17:55:00 -07008884 sDefaults.putBoolean(KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL, true);
Tyler Gunnbe363242020-02-12 13:50:46 -08008885 sDefaults.putBoolean(KEY_ALLOW_HOLD_VIDEO_CALL_BOOL, true);
Hall Liu7c3c28b2016-07-19 11:18:49 -07008886 sDefaults.putBoolean(KEY_WIFI_CALLS_CAN_BE_HD_AUDIO, true);
8887 sDefaults.putBoolean(KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO, true);
Alex Khlivnuikabdd37c2017-11-29 12:18:05 +09008888 sDefaults.putBoolean(KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO, false);
Ta-wei Yen9d20d982017-06-02 11:07:07 -07008889 sDefaults.putBoolean(KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL, true);
Tyler Gunnc96b5e02016-07-07 22:53:57 -07008890
8891 sDefaults.putStringArray(KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY, null);
Meng Wang542e2622016-08-03 10:18:36 -07008892 sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_BOOL, false);
clownshen6400b932018-08-16 16:54:16 +08008893 sDefaults.putInt(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT, 0);
Tyler Gunn0f20d932016-08-09 15:56:43 -07008894 sDefaults.putBoolean(KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL, false);
Jordan Liu1ca2e31d2016-12-01 11:39:30 -08008895 sDefaults.putStringArray(KEY_FILTERED_CNAP_NAMES_STRING_ARRAY, null);
Meng Wang2c25e4a2016-09-19 14:18:05 -07008896 sDefaults.putBoolean(KEY_EDITABLE_WFC_ROAMING_MODE_BOOL, false);
Youming Ye9592a422019-03-20 17:53:44 -07008897 sDefaults.putBoolean(KEY_SHOW_BLOCKING_PAY_PHONE_OPTION_BOOL, false);
Hiroto Taruida081212019-02-14 14:37:09 +09008898 sDefaults.putBoolean(KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL, false);
Sooraj Sasindran6a3d36f2016-10-13 11:36:34 -07008899 sDefaults.putBoolean(KEY_STK_DISABLE_LAUNCH_BROWSER_BOOL, false);
Ecco Park1074c882019-03-21 12:58:09 -07008900 sDefaults.putBoolean(KEY_ALLOW_METERED_NETWORK_FOR_CERT_DOWNLOAD_BOOL, false);
Yoshiaki Naka1c5203a62019-02-21 18:40:03 +09008901 sDefaults.putBoolean(KEY_HIDE_DIGITS_HELPER_TEXT_ON_STK_INPUT_SCREEN_BOOL, true);
pkanwarffd45832016-12-11 17:45:50 -08008902 sDefaults.putInt(KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT, -1);
pkanwar68e3de72017-08-13 12:18:19 -07008903 sDefaults.putInt(KEY_EMERGENCY_NOTIFICATION_DELAY_INT, -1);
Tyler Gunn02212db2017-06-05 11:26:46 -07008904 sDefaults.putBoolean(KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL, true);
Brad Ebinger17acc152016-12-09 13:18:30 -08008905 sDefaults.putBoolean(KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL, true);
Qiong Liu48fe53f2017-10-16 17:04:30 +08008906 sDefaults.putBoolean(KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL,
8907 false);
Tyler Gunn662ae092017-02-16 16:21:14 -08008908 sDefaults.putBoolean(KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL, false);
taiki tsutsumi2ee96822018-07-02 17:15:42 +09008909 sDefaults.putBoolean(KEY_HIDE_PRESET_APN_DETAILS_BOOL, false);
Masaho Nishikawa4c7511c2017-12-18 14:33:38 +09008910 sDefaults.putBoolean(KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL, false);
Brad Ebinger9ab43212016-12-12 14:57:37 -08008911 sDefaults.putStringArray(KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY,
8912 null);
Josh Hou7d4f7792020-05-28 23:32:37 +08008913 sDefaults.putBoolean(KEY_SUPPORT_IMS_CALL_FORWARDING_WHILE_ROAMING_BOOL, true);
Sooraj Sasindran1b7bec52017-03-08 23:43:17 -08008914 sDefaults.putInt(KEY_LTE_EARFCNS_RSRP_BOOST_INT, 0);
8915 sDefaults.putStringArray(KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY, null);
Amit Mahajanae5f04d2021-05-27 13:00:33 -07008916 sDefaults.putIntArray(KEY_NRARFCNS_RSRP_BOOST_INT_ARRAY, null);
8917 sDefaults.putStringArray(KEY_BOOSTED_NRARFCNS_STRING_ARRAY, null);
Wenting Xiongcb35e992017-10-18 15:05:49 +09008918 sDefaults.putBoolean(KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL, false);
Sanket Padawedb688bb2017-03-28 15:26:13 -07008919 sDefaults.putBoolean(KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL, false);
pkanwarbecc8692017-07-04 16:04:44 -07008920 sDefaults.putInt(IMSI_KEY_AVAILABILITY_INT, 0);
pkanwar232573f2017-05-31 13:10:03 -07008921 sDefaults.putString(IMSI_KEY_DOWNLOAD_URL_STRING, null);
Jordan Liu762fe4b2021-01-14 13:00:06 -08008922 sDefaults.putString(IMSI_CARRIER_PUBLIC_KEY_EPDG_STRING, null);
8923 sDefaults.putString(IMSI_CARRIER_PUBLIC_KEY_WLAN_STRING, null);
Naveen Kallaabd28422017-07-11 20:03:58 -07008924 sDefaults.putBoolean(KEY_CONVERT_CDMA_CALLER_ID_MMI_CODES_WHILE_ROAMING_ON_3GPP_BOOL,
8925 false);
Naveen Kalla7e15c582017-07-13 20:43:21 -07008926 sDefaults.putStringArray(KEY_NON_ROAMING_OPERATOR_STRING_ARRAY, null);
fionaxu1c6027c2017-06-01 18:52:17 -07008927 sDefaults.putStringArray(KEY_ROAMING_OPERATOR_STRING_ARRAY, null);
Ping Sune0e3cbd2016-03-02 19:09:27 +08008928 sDefaults.putBoolean(KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL, false);
Hall Liu47ed6202017-11-20 16:25:39 -08008929 sDefaults.putBoolean(KEY_RTT_SUPPORTED_BOOL, false);
Tyler Gunne4d72b42019-02-25 10:42:45 -08008930 sDefaults.putBoolean(KEY_TTY_SUPPORTED_BOOL, true);
Hall Liu3a23d7e2019-07-29 17:30:12 -07008931 sDefaults.putBoolean(KEY_HIDE_TTY_HCO_VCO_WITH_RTT_BOOL, false);
Hall Liud20b2a02021-01-22 16:06:50 -08008932 sDefaults.putBoolean(KEY_RTT_SUPPORTED_WHILE_ROAMING_BOOL, false);
Hall Liuf4eae0f2021-03-15 16:03:38 -07008933 sDefaults.putBoolean(KEY_RTT_UPGRADE_SUPPORTED_FOR_DOWNGRADED_VT_CALL_BOOL, true);
8934 sDefaults.putBoolean(KEY_VT_UPGRADE_SUPPORTED_FOR_DOWNGRADED_RTT_CALL_BOOL, true);
Omata Shou9766b182017-08-22 17:17:55 +09008935 sDefaults.putBoolean(KEY_DISABLE_CHARGE_INDICATION_BOOL, false);
manabu, shimoda6ce31382017-12-25 18:38:47 +09008936 sDefaults.putBoolean(KEY_SUPPORT_NO_REPLY_TIMER_FOR_CFNRY_BOOL, true);
Kazuya Ohshiro990af172017-09-27 16:02:55 +09008937 sDefaults.putStringArray(KEY_FEATURE_ACCESS_CODES_STRING_ARRAY, null);
Kazuya Ohshirob8981ba2017-10-27 16:26:15 +09008938 sDefaults.putBoolean(KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL, false);
Wenting Xiongf21f3cf2016-04-01 15:25:45 +08008939 sDefaults.putBoolean(KEY_SHOW_PRECISE_FAILED_CAUSE_BOOL, false);
Masaho Nishikawa40184352017-11-01 20:33:36 +09008940 sDefaults.putBoolean(KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL, false);
Wenting Xiong63364fe2017-02-07 19:12:27 +08008941 sDefaults.putBoolean(KEY_ALWAYS_SHOW_DATA_RAT_ICON_BOOL, false);
Pengquan Mengcdb6c682018-10-24 15:43:44 -07008942 sDefaults.putBoolean(KEY_SHOW_4G_FOR_LTE_DATA_ICON_BOOL, false);
kimmy.yang2d5fd292021-12-29 16:52:39 +08008943 sDefaults.putBoolean(KEY_SHOW_4GLTE_FOR_LTE_DATA_ICON_BOOL, false);
vagdevi3f2b9a52019-08-09 09:45:14 -07008944 sDefaults.putBoolean(KEY_SHOW_4G_FOR_3G_DATA_ICON_BOOL, false);
SongFerngWang2d178ea2019-03-21 23:14:20 +08008945 sDefaults.putString(KEY_OPERATOR_NAME_FILTER_PATTERN_STRING, "");
8946 sDefaults.putString(KEY_SHOW_CARRIER_DATA_ICON_PATTERN_STRING, "");
Hall Liu1ce5e662018-10-31 18:17:38 -07008947 sDefaults.putBoolean(KEY_HIDE_LTE_PLUS_DATA_ICON_BOOL, true);
Sarah Chinea9d40e2020-08-12 19:38:02 -07008948 sDefaults.putInt(KEY_LTE_PLUS_THRESHOLD_BANDWIDTH_KHZ_INT, 20000);
Jack Yu5e7b8532021-10-19 21:21:28 -07008949 sDefaults.putInt(KEY_NR_ADVANCED_THRESHOLD_BANDWIDTH_KHZ_INT, 0);
SongFerngWangc42f2692021-03-11 13:18:32 +08008950 sDefaults.putIntArray(KEY_CARRIER_NR_AVAILABILITIES_INT_ARRAY,
8951 new int[]{CARRIER_NR_AVAILABILITY_NSA, CARRIER_NR_AVAILABILITY_SA});
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07008952 sDefaults.putBoolean(KEY_LTE_ENABLED_BOOL, true);
8953 sDefaults.putBoolean(KEY_SUPPORT_TDSCDMA_BOOL, false);
8954 sDefaults.putStringArray(KEY_SUPPORT_TDSCDMA_ROAMING_NETWORKS_STRING_ARRAY, null);
8955 sDefaults.putBoolean(KEY_WORLD_MODE_ENABLED_BOOL, false);
Pengquan Meng3d4e67c2018-11-07 14:54:21 -08008956 sDefaults.putString(KEY_CARRIER_SETTINGS_ACTIVITY_COMPONENT_NAME_STRING, "");
Niklas Lindgren7ef2acb2018-10-01 11:09:43 +02008957 sDefaults.putBoolean(KEY_SHOW_OPERATOR_NAME_IN_STATUSBAR_BOOL, false);
yinxu0d56f3c2017-11-29 15:02:05 -08008958 sDefaults.putBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL, false);
pkanwar1e96fae2018-01-03 18:41:18 -08008959 sDefaults.putBoolean(KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL, false);
Jordan Liub5fbb912019-07-23 15:52:08 -07008960 sDefaults.putBoolean(KEY_SHOW_DATA_CONNECTED_ROAMING_NOTIFICATION_BOOL, false);
Kitta Koutarou911f56c2017-12-01 19:19:49 +09008961 sDefaults.putIntArray(KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY,
8962 new int[] {
Kitta Koutarou911f56c2017-12-01 19:19:49 +09008963 -128, /* SIGNAL_STRENGTH_POOR */
8964 -118, /* SIGNAL_STRENGTH_MODERATE */
8965 -108, /* SIGNAL_STRENGTH_GOOD */
8966 -98, /* SIGNAL_STRENGTH_GREAT */
Kitta Koutarou911f56c2017-12-01 19:19:49 +09008967 });
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09008968 sDefaults.putIntArray(KEY_LTE_RSRQ_THRESHOLDS_INT_ARRAY,
8969 new int[] {
Shuo Qian66c51cd2020-05-01 00:38:02 -07008970 -20, /* SIGNAL_STRENGTH_POOR */
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09008971 -17, /* SIGNAL_STRENGTH_MODERATE */
8972 -14, /* SIGNAL_STRENGTH_GOOD */
Shuo Qian66c51cd2020-05-01 00:38:02 -07008973 -11 /* SIGNAL_STRENGTH_GREAT */
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09008974 });
8975 sDefaults.putIntArray(KEY_LTE_RSSNR_THRESHOLDS_INT_ARRAY,
8976 new int[] {
Shuo Qian6775b772020-06-11 10:32:17 -07008977 -3, /* SIGNAL_STRENGTH_POOR */
8978 1, /* SIGNAL_STRENGTH_MODERATE */
8979 5, /* SIGNAL_STRENGTH_GOOD */
8980 13 /* SIGNAL_STRENGTH_GREAT */
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09008981 });
Tomita, Ryounosuke Xd41feee2017-12-13 18:46:12 +09008982 sDefaults.putIntArray(KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY,
8983 new int[] {
8984 -115, /* SIGNAL_STRENGTH_POOR */
8985 -105, /* SIGNAL_STRENGTH_MODERATE */
8986 -95, /* SIGNAL_STRENGTH_GOOD */
8987 -85 /* SIGNAL_STRENGTH_GREAT */
8988 });
Shuo Qian7d7b2f12019-11-23 19:09:36 -08008989 sDefaults.putIntArray(KEY_5G_NR_SSRSRP_THRESHOLDS_INT_ARRAY,
8990 // Boundaries: [-140 dB, -44 dB]
8991 new int[] {
sqian9db66a62020-01-23 15:42:51 -08008992 -110, /* SIGNAL_STRENGTH_POOR */
8993 -90, /* SIGNAL_STRENGTH_MODERATE */
8994 -80, /* SIGNAL_STRENGTH_GOOD */
8995 -65, /* SIGNAL_STRENGTH_GREAT */
Shuo Qian7d7b2f12019-11-23 19:09:36 -08008996 });
8997 sDefaults.putIntArray(KEY_5G_NR_SSRSRQ_THRESHOLDS_INT_ARRAY,
Shuo Qian26e679e2020-07-01 11:48:52 -07008998 // Boundaries: [-43 dB, 20 dB]
Shuo Qian7d7b2f12019-11-23 19:09:36 -08008999 new int[] {
Shuo Qian26e679e2020-07-01 11:48:52 -07009000 -31, /* SIGNAL_STRENGTH_POOR */
9001 -19, /* SIGNAL_STRENGTH_MODERATE */
9002 -7, /* SIGNAL_STRENGTH_GOOD */
9003 6 /* SIGNAL_STRENGTH_GREAT */
Shuo Qian7d7b2f12019-11-23 19:09:36 -08009004 });
9005 sDefaults.putIntArray(KEY_5G_NR_SSSINR_THRESHOLDS_INT_ARRAY,
9006 // Boundaries: [-23 dB, 40 dB]
9007 new int[] {
sqian9db66a62020-01-23 15:42:51 -08009008 -5, /* SIGNAL_STRENGTH_POOR */
9009 5, /* SIGNAL_STRENGTH_MODERATE */
9010 15, /* SIGNAL_STRENGTH_GOOD */
9011 30 /* SIGNAL_STRENGTH_GREAT */
Shuo Qian7d7b2f12019-11-23 19:09:36 -08009012 });
9013 sDefaults.putInt(KEY_PARAMETERS_USE_FOR_5G_NR_SIGNAL_BAR_INT,
9014 CellSignalStrengthNr.USE_SSRSRP);
SongFerngWang68c58a52020-04-13 18:13:04 +08009015 sDefaults.putBoolean(KEY_SIGNAL_STRENGTH_NR_NSA_USE_LTE_AS_PRIMARY_BOOL, true);
Sarah Chin5023ffd2020-02-07 10:33:06 -08009016 sDefaults.putStringArray(KEY_BANDWIDTH_STRING_ARRAY, new String[]{
Sarah Chin83469632021-12-06 18:34:24 -08009017 "GPRS:24,24", "EDGE:70,18", "UMTS:115,115", "CDMA:14,14",
9018 "1xRTT:30,30", "EvDo_0:750,48", "EvDo_A:950,550", "HSDPA:4300,620",
9019 "HSUPA:4300,1800", "HSPA:4300,1800", "EvDo_B:1500,550", "eHRPD:750,48",
9020 "iDEN:14,14", "LTE:30000,15000", "HSPA+:13000,3400", "GSM:24,24",
9021 "TD_SCDMA:115,115", "LTE_CA:30000,15000", "NR_NSA:47000,18000",
9022 "NR_NSA_MMWAVE:145000,60000", "NR_SA:145000,60000", "NR_SA_MMWAVE:145000,60000"});
Sarah Chin83469632021-12-06 18:34:24 -08009023 sDefaults.putBoolean(KEY_BANDWIDTH_NR_NSA_USE_LTE_VALUE_FOR_UPLINK_BOOL, false);
Nathan Harold549c3ba2019-01-03 10:30:31 -08009024 sDefaults.putString(KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING, "rssi");
Mengjun Lengc9356222018-08-28 11:05:34 +08009025 sDefaults.putBoolean(KEY_CONFIG_SHOW_ORIG_DIAL_STRING_FOR_CDMA_BOOL, false);
Kikkawa Shohei638d11e2018-09-21 17:06:07 +09009026 sDefaults.putBoolean(KEY_SHOW_CALL_BLOCKING_DISABLED_NOTIFICATION_ALWAYS_BOOL, false);
SongFerngWang165d2d22018-07-09 21:10:26 +08009027 sDefaults.putBoolean(KEY_CALL_FORWARDING_OVER_UT_WARNING_BOOL, false);
9028 sDefaults.putBoolean(KEY_CALL_BARRING_OVER_UT_WARNING_BOOL, false);
9029 sDefaults.putBoolean(KEY_CALLER_ID_OVER_UT_WARNING_BOOL, false);
9030 sDefaults.putBoolean(KEY_CALL_WAITING_OVER_UT_WARNING_BOOL, false);
Youming Ye568455f2018-10-24 14:54:39 -07009031 sDefaults.putBoolean(KEY_SUPPORT_CLIR_NETWORK_DEFAULT_BOOL, true);
Chuck Liao3bad37e2018-10-30 11:39:56 +08009032 sDefaults.putBoolean(KEY_SUPPORT_EMERGENCY_DIALER_SHORTCUT_BOOL, true);
SongFerngWangc64d9702018-10-24 11:37:13 +08009033 sDefaults.putBoolean(KEY_USE_CALL_FORWARDING_USSD_BOOL, false);
9034 sDefaults.putBoolean(KEY_USE_CALLER_ID_USSD_BOOL, false);
SongFerngWang7718c202021-03-31 22:55:50 +08009035 sDefaults.putBoolean(KEY_USE_CALL_WAITING_USSD_BOOL, false);
SongFerngWangc64d9702018-10-24 11:37:13 +08009036 sDefaults.putInt(KEY_CALL_WAITING_SERVICE_CLASS_INT, 1 /* SERVICE_CLASS_VOICE */);
Pengquan Mengdfb39562018-12-05 16:26:42 -08009037 sDefaults.putString(KEY_5G_ICON_CONFIGURATION_STRING,
SongFerngWang56e1a312020-03-10 13:08:31 +08009038 "connected_mmwave:5G,connected:5G,not_restricted_rrc_idle:5G,"
9039 + "not_restricted_rrc_con:5G");
Sarah Chin46941d62020-04-20 21:11:40 -07009040 sDefaults.putString(KEY_5G_ICON_DISPLAY_GRACE_PERIOD_STRING, "");
9041 sDefaults.putString(KEY_5G_ICON_DISPLAY_SECONDARY_GRACE_PERIOD_STRING, "");
SongFerngWang3a3af2f2020-07-07 18:10:00 +08009042 sDefaults.putBoolean(KEY_NR_TIMERS_RESET_IF_NON_ENDC_AND_RRC_IDLE_BOOL, false);
Sarah Chine0b991e2020-02-04 12:08:45 -08009043 /* Default value is 1 hour. */
9044 sDefaults.putLong(KEY_5G_WATCHDOG_TIME_MS_LONG, 3600000);
SongFerngWangea06cec2021-04-07 23:14:46 +08009045 sDefaults.putIntArray(KEY_ADDITIONAL_NR_ADVANCED_BANDS_INT_ARRAY, new int[0]);
SongFerngWang6c1f38e2021-05-10 22:43:14 +08009046 sDefaults.putInt(KEY_NR_ADVANCED_CAPABLE_PCO_ID_INT, 0);
Jack Yu5e7b8532021-10-19 21:21:28 -07009047 sDefaults.putBoolean(KEY_ENABLE_NR_ADVANCED_WHILE_ROAMING_BOOL, true);
SongFerngWangaf6fd222021-07-03 01:06:09 +08009048 sDefaults.putBoolean(KEY_LTE_ENDC_USING_USER_DATA_FOR_RRC_DETECTION_BOOL, false);
Sarah Chin69f721e2021-12-13 17:52:25 -08009049 sDefaults.putStringArray(KEY_UNMETERED_NETWORK_TYPES_STRING_ARRAY, new String[] {
9050 "NR_NSA", "NR_NSA_MMWAVE", "NR_SA", "NR_SA_MMWAVE"});
9051 sDefaults.putStringArray(KEY_ROAMING_UNMETERED_NETWORK_TYPES_STRING_ARRAY, new String[0]);
Sarah Chine0b991e2020-02-04 12:08:45 -08009052 sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_BOOL, false);
9053 sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_MMWAVE_BOOL, false);
9054 sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_SUB6_BOOL, false);
Sarah Chindc310312020-04-01 10:59:34 -07009055 sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_WHEN_ROAMING_BOOL, false);
Sarah Chin5956f302020-04-09 10:33:28 -07009056 sDefaults.putBoolean(KEY_UNMETERED_NR_SA_BOOL, false);
9057 sDefaults.putBoolean(KEY_UNMETERED_NR_SA_MMWAVE_BOOL, false);
9058 sDefaults.putBoolean(KEY_UNMETERED_NR_SA_SUB6_BOOL, false);
Sukanya Rajkhowa6de48e42018-08-20 16:35:36 +08009059 sDefaults.putBoolean(KEY_ASCII_7_BIT_SUPPORT_FOR_LONG_MESSAGE_BOOL, false);
Nishizawa Nobuhiro4583ccb2020-01-30 18:01:36 +09009060 sDefaults.putBoolean(KEY_SHOW_WIFI_CALLING_ICON_IN_STATUS_BAR_BOOL, false);
Avinash Malipatila27b8d1a2021-10-27 03:30:18 +00009061 sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_OPP_DATA_AUTO_PROVISIONING_BOOL, false);
9062 sDefaults.putString(KEY_SMDP_SERVER_ADDRESS_STRING, "");
9063 sDefaults.putInt(KEY_ESIM_MAX_DOWNLOAD_RETRY_ATTEMPTS_INT, 5);
9064 sDefaults.putInt(KEY_ESIM_DOWNLOAD_RETRY_BACKOFF_TIMER_SEC_INT, 60);
Avinash Malipatilf63c1fd2021-12-07 08:01:03 +00009065 sDefaults.putIntArray(KEY_OPPORTUNISTIC_CARRIER_IDS_INT_ARRAY, new int[] {0});
Avinash Malipatilc179ec32022-02-03 17:37:58 +00009066 sDefaults.putBoolean(KEY_OPPORTUNISTIC_ESIM_DOWNLOAD_VIA_WIFI_ONLY_BOOL, false);
Sooraj Sasindran6633c572019-03-29 23:14:23 +00009067 /* Default value is minimum RSRP level needed for SIGNAL_STRENGTH_GOOD */
9068 sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSRP_INT, -108);
Sooraj Sasindran873252f2018-12-11 10:35:16 -08009069 /* Default value is minimum RSRP level needed for SIGNAL_STRENGTH_MODERATE */
Sooraj Sasindran6633c572019-03-29 23:14:23 +00009070 sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT, -118);
9071 /* Default value is minimum RSSNR level needed for SIGNAL_STRENGTH_GOOD */
Jack Nudelman35d62382022-02-28 14:48:46 -08009072 sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSSNR_INT, 5);
Sooraj Sasindran873252f2018-12-11 10:35:16 -08009073 /* Default value is minimum RSSNR level needed for SIGNAL_STRENGTH_MODERATE */
Jack Nudelman35d62382022-02-28 14:48:46 -08009074 sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT, 1);
Sooraj Sasindran73710f82019-01-09 11:09:22 -08009075 /* Default value is 1024 kbps */
9076 sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_BANDWIDTH_INT, 1024);
9077 /* Default value is 10 seconds */
Sooraj Sasindran5f7ca3a2019-02-20 19:51:06 -08009078 sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_ENTRY_OR_EXIT_HYSTERESIS_TIME_LONG, 10000);
Sooraj Sasindran73710f82019-01-09 11:09:22 -08009079 /* Default value is 10 seconds. */
Sooraj Sasindran5f7ca3a2019-02-20 19:51:06 -08009080 sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG, 10000);
Sooraj Sasindran9f80e4b2019-08-01 13:52:32 -07009081 /* Default value is 3 seconds. */
9082 sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG, 3000);
Meng Wang84b8cd12022-01-22 01:02:27 +00009083 sDefaults.putAll(OpportunisticNetwork.getDefaults());
Sooraj Sasindran75c09602019-09-13 10:40:32 -07009084 sDefaults.putBoolean(KEY_PING_TEST_BEFORE_DATA_SWITCH_BOOL, true);
Sooraj Sasindran8c04a5a2019-11-04 13:07:23 -08009085 sDefaults.putBoolean(KEY_SWITCH_DATA_TO_PRIMARY_IF_PRIMARY_IS_OOS_BOOL, true);
Sooraj Sasindran74891f22019-11-19 10:23:22 -08009086 /* Default value is 60 seconds. */
9087 sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG, 60000);
Sooraj Sasindran8c04a5a2019-11-04 13:07:23 -08009088 /* Default value is 10 seconds. */
9089 sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG, 10000);
Sooraj Sasindran74891f22019-11-19 10:23:22 -08009090 /* Default value is 60 seconds. */
9091 sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_MAX_BACKOFF_TIME_LONG, 60000);
Jack Nudelman0cd98972021-07-01 06:40:52 -07009092 sDefaults.putBoolean(KEY_ENABLE_4G_OPPORTUNISTIC_NETWORK_SCAN_BOOL, true);
Meng Wang7332ded2022-01-18 04:53:10 +00009093 sDefaults.putLong(KEY_TIME_TO_SWITCH_BACK_TO_PRIMARY_IF_OPPORTUNISTIC_OOS_LONG, 60000L);
9094 sDefaults.putLong(
Jack Nudelmanda76b832021-10-07 14:20:55 -07009095 KEY_OPPORTUNISTIC_TIME_TO_SCAN_AFTER_CAPABILITY_SWITCH_TO_PRIMARY_LONG,
Meng Wang7332ded2022-01-18 04:53:10 +00009096 120000L);
Meng Wang33c62212021-12-13 19:04:25 +00009097 sDefaults.putAll(ImsServiceEntitlement.getDefaults());
Meng Wang19b214d2018-11-07 12:14:39 -08009098 sDefaults.putAll(Gps.getDefaults());
chen xueb07e4e2019-02-08 17:40:33 -08009099 sDefaults.putIntArray(KEY_CDMA_ENHANCED_ROAMING_INDICATOR_FOR_HOME_NETWORK_INT_ARRAY,
9100 new int[] {
9101 1 /* Roaming Indicator Off */
9102 });
sqian69f48c52019-02-15 16:19:36 -08009103 sDefaults.putStringArray(KEY_EMERGENCY_NUMBER_PREFIX_STRING_ARRAY, new String[0]);
Shuo Qiand4dd13c2021-05-07 01:48:14 -07009104 sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_CALLER_ID_VERTICAL_SERVICE_CODES_BOOL, false);
mavishsu00111212019-03-06 13:12:23 +08009105 sDefaults.putBoolean(KEY_USE_USIM_BOOL, false);
Hall Liuf30b5ac2019-04-30 07:45:00 -07009106 sDefaults.putBoolean(KEY_SHOW_WFC_LOCATION_PRIVACY_POLICY_BOOL, false);
James.cf Lin8f05cb62019-08-07 15:41:45 +08009107 sDefaults.putBoolean(KEY_AUTO_CANCEL_CS_REJECT_NOTIFICATION, true);
Bonian Chen612e6a92019-03-26 01:49:39 +08009108 sDefaults.putString(KEY_SMART_FORWARDING_CONFIG_COMPONENT_NAME_STRING, "");
Malcolm Chen50ba9632019-02-26 16:49:56 -08009109 sDefaults.putBoolean(KEY_ALWAYS_SHOW_PRIMARY_SIGNAL_BAR_IN_OPPORTUNISTIC_NETWORK_BOOLEAN,
9110 false);
Nathan Harold773b0822019-03-12 15:51:42 -07009111 sDefaults.putString(KEY_SUBSCRIPTION_GROUP_UUID_STRING, "");
9112 sDefaults.putBoolean(KEY_IS_OPPORTUNISTIC_SUBSCRIPTION_BOOL, false);
andychoub80dbce2019-04-09 14:50:31 +08009113 sDefaults.putIntArray(KEY_GSM_RSSI_THRESHOLDS_INT_ARRAY,
9114 new int[] {
9115 -107, /* SIGNAL_STRENGTH_POOR */
9116 -103, /* SIGNAL_STRENGTH_MODERATE */
9117 -97, /* SIGNAL_STRENGTH_GOOD */
9118 -89, /* SIGNAL_STRENGTH_GREAT */
9119 });
andychoudcc0dd22019-05-08 23:24:08 +08009120 sDefaults.putBoolean(KEY_SUPPORT_WPS_OVER_IMS_BOOL, true);
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009121 sDefaults.putAll(Ims.getDefaults());
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08009122 sDefaults.putAll(ImsVoice.getDefaults());
9123 sDefaults.putAll(ImsSms.getDefaults());
9124 sDefaults.putAll(ImsRtt.getDefaults());
9125 sDefaults.putAll(ImsEmergency.getDefaults());
9126 sDefaults.putAll(ImsVt.getDefaults());
9127 sDefaults.putAll(ImsWfc.getDefaults());
9128 sDefaults.putAll(ImsSs.getDefaults());
9129 sDefaults.putAll(Bsf.getDefaults());
Naina Nalluria0cd83e2020-11-03 12:53:27 -08009130 sDefaults.putAll(Iwlan.getDefaults());
Nazanind18cde62020-08-18 14:45:22 -07009131 sDefaults.putStringArray(KEY_CARRIER_CERTIFICATE_STRING_ARRAY, new String[0]);
Nishizawa Nobuhiroe8e1ed62019-12-13 18:09:39 +09009132 sDefaults.putBoolean(KEY_FORMAT_INCOMING_NUMBER_TO_NATIONAL_FOR_JP_BOOL, false);
Saki Oomori63bb8562018-08-22 16:07:07 +09009133 sDefaults.putIntArray(KEY_DISCONNECT_CAUSE_PLAY_BUSYTONE_INT_ARRAY,
9134 new int[] {4 /* BUSY */});
Hideki Ishiide2688e2018-09-27 17:26:21 +09009135 sDefaults.putBoolean(KEY_PREVENT_CLIR_ACTIVATION_AND_DEACTIVATION_CODE_BOOL, false);
Malcolm Chen58f8d0f2019-10-31 15:06:19 -07009136 sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_TIMEOUT_LONG, 2000);
James.cf Lin8da1b072020-02-27 18:37:17 +08009137 sDefaults.putStringArray(KEY_MMI_TWO_DIGIT_NUMBER_PATTERN_STRING_ARRAY, new String[0]);
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09009138 sDefaults.putInt(KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT,
SongFerngWang680c9862020-02-04 21:29:47 +08009139 CellSignalStrengthLte.USE_RSRP);
lesle14a0902019-12-12 17:16:30 +08009140 // Default wifi configurations.
9141 sDefaults.putAll(Wifi.getDefaults());
Hai Shalom0a5b2072019-12-26 16:17:00 -08009142 sDefaults.putBoolean(ENABLE_EAP_METHOD_PREFIX_BOOL, false);
Hall Liuab470f72021-03-10 18:02:47 -08009143 sDefaults.putInt(KEY_GBA_MODE_INT, GBA_ME);
9144 sDefaults.putInt(KEY_GBA_UA_SECURITY_ORGANIZATION_INT,
9145 UaSecurityProtocolIdentifier.ORG_3GPP);
9146 sDefaults.putInt(KEY_GBA_UA_SECURITY_PROTOCOL_INT,
9147 UaSecurityProtocolIdentifier.UA_SECURITY_PROTOCOL_3GPP_TLS_DEFAULT);
9148 sDefaults.putInt(KEY_GBA_UA_TLS_CIPHER_SUITE_INT, TlsParams.TLS_NULL_WITH_NULL_NULL);
9149
Shinsuke Ishioka5ee45892018-08-30 13:33:30 +09009150 sDefaults.putBoolean(KEY_SHOW_FORWARDED_NUMBER_BOOL, false);
Malcolm Chen57b574e2020-02-19 15:21:22 -08009151 sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG, TimeUnit.DAYS.toMillis(1));
Jack Yu1e1ff942019-12-23 15:19:56 -08009152 sDefaults.putStringArray(KEY_MISSED_INCOMING_CALL_SMS_ORIGINATOR_STRING_ARRAY,
9153 new String[0]);
Daniel Brightdcc3c0a2020-03-24 14:53:59 -07009154 sDefaults.putStringArray(KEY_APN_PRIORITY_STRING_ARRAY, new String[] {
Sarah Chind30c8532021-03-31 00:46:42 -07009155 "enterprise:0", "default:1", "mms:2", "supl:2", "dun:2", "hipri:3", "fota:2",
Daniel Brightdcc3c0a2020-03-24 14:53:59 -07009156 "ims:2", "cbs:2", "ia:2", "emergency:2", "mcx:3", "xcap:3"
9157 });
Jack Yucc516a82021-11-20 13:15:59 -08009158
9159 // Do not modify the priority unless you know what you are doing. This will have significant
9160 // impacts on the order of data network setup.
Jack Yu98819652021-10-01 02:50:46 -07009161 sDefaults.putStringArray(
9162 KEY_TELEPHONY_NETWORK_CAPABILITY_PRIORITIES_STRING_ARRAY, new String[] {
9163 "eims:90", "supl:80", "mms:70", "xcap:70", "cbs:50", "mcx:50", "fota:50",
9164 "ims:40", "dun:30", "enterprise:20", "internet:20"
9165 });
Jack Yu07844fb2021-10-07 01:12:15 -07009166 sDefaults.putStringArray(
Jack Yu24e84522021-12-16 11:17:42 -08009167 KEY_TELEPHONY_DATA_SETUP_RETRY_RULES_STRING_ARRAY, new String[] {
Jack Yu07844fb2021-10-07 01:12:15 -07009168 "capabilities=eims, retry_interval=1000, maximum_retries=20",
Ling Maf893a722022-01-28 02:18:26 +00009169 "fail_causes=8|27|28|29|30|32|33|35|50|51|111|-5|-6|65537|65538|-3|2252|"
9170 + "2253|2254, maximum_retries=0", // No retry for those causes
Jack Yu69af7792021-10-17 18:15:32 -07009171 "capabilities=mms|supl|cbs, retry_interval=2000",
Jack Yucc516a82021-11-20 13:15:59 -08009172 "capabilities=internet|enterprise|dun|ims|fota, retry_interval=2500|3000|"
9173 + "5000|10000|15000|20000|40000|60000|120000|240000|"
9174 + "600000|1200000|1800000, maximum_retries=20"
Jack Yu07844fb2021-10-07 01:12:15 -07009175 });
Jack Yu24e84522021-12-16 11:17:42 -08009176 sDefaults.putStringArray(
9177 KEY_TELEPHONY_DATA_HANDOVER_RETRY_RULES_STRING_ARRAY, new String[] {
9178 "retry_interval=1000|2000|4000|8000|16000, maximum_retries=5"
9179 });
Jack Yud4294152022-02-13 01:37:30 -08009180 sDefaults.putBoolean(KEY_DELAY_IMS_TEAR_DOWN_UNTIL_CALL_END_BOOL, false);
Jack Yu1e1ff942019-12-23 15:19:56 -08009181 sDefaults.putStringArray(KEY_MISSED_INCOMING_CALL_SMS_PATTERN_STRING_ARRAY, new String[0]);
Masaho Nishikawa115e0282020-01-30 11:46:22 +09009182 sDefaults.putBoolean(KEY_DISABLE_DUN_APN_WHILE_ROAMING_WITH_PRESET_APN_BOOL, false);
9183 sDefaults.putString(KEY_DEFAULT_PREFERRED_APN_NAME_STRING, "");
Shuo Qian13690012020-11-30 22:34:42 -08009184 sDefaults.putBoolean(KEY_SUPPORTS_CALL_COMPOSER_BOOL, false);
9185 sDefaults.putString(KEY_CALL_COMPOSER_PICTURE_SERVER_URL_STRING, "");
Hui Wangb8ea95e2020-10-31 05:09:59 +00009186 sDefaults.putBoolean(KEY_USE_ACS_FOR_RCS_BOOL, false);
Jack Yuea53b4e2021-01-19 11:09:32 -08009187 sDefaults.putBoolean(KEY_NETWORK_TEMP_NOT_METERED_SUPPORTED_BOOL, true);
Sonalika Paulefa0fa92020-08-25 15:11:02 +05309188 sDefaults.putInt(KEY_DEFAULT_RTT_MODE_INT, 0);
Michele Berionne726fa0a2020-11-19 22:46:42 +00009189 sDefaults.putBoolean(KEY_STORE_SIM_PIN_FOR_UNATTENDED_REBOOT_BOOL, true);
Yomna Nasser8fa54b72021-01-18 22:00:55 +00009190 sDefaults.putBoolean(KEY_HIDE_ENABLE_2G, false);
Jack Yu0bebba72021-02-17 14:08:42 -08009191 sDefaults.putStringArray(KEY_ALLOWED_INITIAL_ATTACH_APN_TYPES_STRING_ARRAY,
Jack Yu2dd6cbb2022-01-28 17:01:58 -08009192 new String[]{"ia", "default"});
Etan Cohen65e16152021-03-13 08:31:28 +00009193 sDefaults.putBoolean(KEY_CARRIER_PROVISIONS_WIFI_MERGED_NETWORKS_BOOL, false);
Etan Cohenf6466c12021-04-06 01:21:13 +00009194 sDefaults.putBoolean(KEY_USE_IP_FOR_CALLING_INDICATOR_BOOL, false);
Etan Cohen7573d7e2021-03-21 23:49:18 +00009195 sDefaults.putBoolean(KEY_DISPLAY_CALL_STRENGTH_INDICATOR_BOOL, true);
Calvin Pan2260d0b2021-03-05 00:21:32 +08009196 sDefaults.putString(KEY_CARRIER_PROVISIONING_APP_STRING, "");
Jack Yu5badb092021-03-29 11:07:55 -07009197 sDefaults.putBoolean(KEY_DISPLAY_NO_DATA_NOTIFICATION_ON_PERMANENT_FAILURE_BOOL, false);
Jack Yuc8cf1b02021-04-20 13:29:54 -07009198 sDefaults.putBoolean(KEY_UNTHROTTLE_DATA_RETRY_WHEN_TAC_CHANGES_BOOL, false);
Gary Jianeaa09eb2021-11-15 19:26:34 +08009199 sDefaults.putBoolean(KEY_VONR_SETTING_VISIBILITY_BOOL, true);
Gary Jian204ec2a2021-10-13 13:09:54 +08009200 sDefaults.putBoolean(KEY_VONR_ENABLED_BOOL, false);
Jack Yufd33d542021-12-12 13:34:53 -08009201 sDefaults.putStringArray(KEY_IWLAN_HANDOVER_POLICY_STRING_ARRAY, new String[]{
9202 "source=GERAN|UTRAN|EUTRAN|NGRAN|IWLAN, "
9203 + "target=GERAN|UTRAN|EUTRAN|NGRAN|IWLAN, type=allowed"});
Nathan Harold8ab07282021-11-04 18:22:24 -07009204 sDefaults.putInt(KEY_CELLULAR_USAGE_SETTING_INT,
9205 SubscriptionManager.USAGE_SETTING_UNKNOWN);
Willy Hua7846ec2021-12-22 02:52:06 +08009206 // Default data stall recovery configurations.
9207 sDefaults.putLongArray(KEY_DATA_STALL_RECOVERY_TIMERS_LONG_ARRAY,
Willy Huc20021e2022-03-18 17:09:17 +08009208 new long[] {180000, 180000, 180000, 180000});
Willy Hua7846ec2021-12-22 02:52:06 +08009209 sDefaults.putBooleanArray(KEY_DATA_STALL_RECOVERY_SHOULD_SKIP_BOOL_ARRAY,
Willy Huc20021e2022-03-18 17:09:17 +08009210 new boolean[] {false, false, true, false, false});
lesle14a0902019-12-12 17:16:30 +08009211 }
9212
9213 /**
9214 * Wi-Fi configs used in WiFi Module.
9215 *
9216 * @hide
9217 */
9218 @SystemApi
9219 public static final class Wifi {
9220 /** Prefix of all Wifi.KEY_* constants. */
9221 public static final String KEY_PREFIX = "wifi.";
9222 /**
lesl565176c2020-02-24 18:53:06 +08009223 * It contains the maximum client count definition that the carrier sets.
9224 * The default is 0, which means that the carrier hasn't set a requirement.
lesle14a0902019-12-12 17:16:30 +08009225 */
9226 public static final String KEY_HOTSPOT_MAX_CLIENT_COUNT =
9227 KEY_PREFIX + "hotspot_maximum_client_count";
9228
xshud10ce032021-01-06 19:39:39 -08009229 /**
9230 * This configuration is intended to be a narrow exception for provisioning
9231 * {@link android.net.wifi.WifiNetworkSuggestion} of widely-known carrier networks that do
9232 * not support using randomized MAC address.
9233 * Carrier provisioned {@link android.net.wifi.WifiNetworkSuggestion} with SSIDs included
9234 * in this list will have MAC randomization disabled.
9235 *
9236 * Note: the SSIDs in the list are expected to be interpreted as is - do not add double
9237 * quotes to the SSIDs.
9238 */
9239 public static final String KEY_SUGGESTION_SSID_LIST_WITH_MAC_RANDOMIZATION_DISABLED =
9240 KEY_PREFIX + "suggestion_ssid_list_with_mac_randomization_disabled";
9241
Quang Luongfb39c5d2021-01-19 11:30:58 -08009242 /**
9243 * Avoid SoftAp in 5GHz if cellular is on unlicensed 5Ghz using License Assisted Access
9244 * (LAA).
9245 */
9246 public static final String KEY_AVOID_5GHZ_SOFTAP_FOR_LAA_BOOL =
9247 KEY_PREFIX + "avoid_5ghz_softap_for_laa_bool";
9248
9249 /**
9250 * Avoid Wifi Direct in 5GHz if cellular is on unlicensed 5Ghz using License Assisted
9251 * Access (LAA).
9252 */
9253 public static final String KEY_AVOID_5GHZ_WIFI_DIRECT_FOR_LAA_BOOL =
9254 KEY_PREFIX + "avoid_5ghz_wifi_direct_for_laa_bool";
9255
9256
lesle14a0902019-12-12 17:16:30 +08009257 private static PersistableBundle getDefaults() {
9258 PersistableBundle defaults = new PersistableBundle();
9259 defaults.putInt(KEY_HOTSPOT_MAX_CLIENT_COUNT, 0);
xshud10ce032021-01-06 19:39:39 -08009260 defaults.putStringArray(KEY_SUGGESTION_SSID_LIST_WITH_MAC_RANDOMIZATION_DISABLED,
9261 new String[0]);
Quang Luongfb39c5d2021-01-19 11:30:58 -08009262 defaults.putBoolean(KEY_AVOID_5GHZ_SOFTAP_FOR_LAA_BOOL, false);
9263 defaults.putBoolean(KEY_AVOID_5GHZ_WIFI_DIRECT_FOR_LAA_BOOL, false);
xshud10ce032021-01-06 19:39:39 -08009264
lesle14a0902019-12-12 17:16:30 +08009265 return defaults;
9266 }
9267
9268 private Wifi() {}
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009269 }
9270
9271 /**
9272 * Gets the configuration values for a particular subscription, which is associated with a
9273 * specific SIM card. If an invalid subId is used, the returned config will contain default
yinxu349b6442018-03-16 10:16:53 -07009274 * values. After using this method to get the configuration bundle,
9275 * {@link #isConfigForIdentifiedCarrier(PersistableBundle)} should be called to confirm whether
9276 * any carrier specific configuration has been applied.
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009277 *
Junda Liufbd740c2015-06-18 16:29:35 -07009278 * <p>Requires Permission:
Rambo Wangd2639b92021-11-02 07:23:49 -07009279 * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}, or the calling app
9280 * has carrier privileges (see {@link TelephonyManager#hasCarrierPrivileges()}).
Junda Liufbd740c2015-06-18 16:29:35 -07009281 *
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009282 * @param subId the subscription ID, normally obtained from {@link SubscriptionManager}.
Jonathan Basseri4f9ad1672015-05-12 10:06:32 -07009283 * @return A {@link PersistableBundle} containing the config for the given subId, or default
9284 * values for an invalid subId.
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009285 */
Rambo Wangd2639b92021-11-02 07:23:49 -07009286 @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges
9287 @RequiresPermission(Manifest.permission.READ_PHONE_STATE)
Jonathan Basserib731c3d2015-05-05 12:00:59 -07009288 @Nullable
Jonathan Basseri4f9ad1672015-05-12 10:06:32 -07009289 public PersistableBundle getConfigForSubId(int subId) {
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009290 try {
Chenjie Luo90bc39d2015-12-03 12:24:12 -08009291 ICarrierConfigLoader loader = getICarrierConfigLoader();
9292 if (loader == null) {
9293 Rlog.w(TAG, "Error getting config for subId " + subId
9294 + " ICarrierConfigLoader is null");
9295 return null;
9296 }
Philip P. Moltmann33692f72019-10-03 11:56:11 -07009297 return loader.getConfigForSubIdWithFeature(subId, mContext.getOpPackageName(),
Philip P. Moltmann8a06c282020-03-05 15:01:29 -08009298 mContext.getAttributionTag());
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009299 } catch (RemoteException ex) {
Chenjie Luo90bc39d2015-12-03 12:24:12 -08009300 Rlog.e(TAG, "Error getting config for subId " + subId + ": "
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009301 + ex.toString());
9302 }
9303 return null;
9304 }
9305
9306 /**
Hall Liue5b1fda2018-10-22 18:17:44 -07009307 * Overrides the carrier config of the provided subscription ID with the provided values.
9308 *
Brad Ebingera298e672019-04-15 17:10:26 -07009309 * Any further queries to carrier config from any process will return the overridden values
9310 * after this method returns. The overrides are effective for the lifetime of the phone process
9311 * until the user passes in {@code null} for {@code overrideValues}. This removes all previous
9312 * overrides and sets the carrier config back to production values.
Hall Liue5b1fda2018-10-22 18:17:44 -07009313 *
9314 * May throw an {@link IllegalArgumentException} if {@code overrideValues} contains invalid
9315 * values for the specified config keys.
9316 *
Brad Ebingercf297462019-04-25 10:59:08 -07009317 * NOTE: This API is meant for testing purposes only.
Brad Ebingera298e672019-04-15 17:10:26 -07009318 *
Hall Liue5b1fda2018-10-22 18:17:44 -07009319 * @param subscriptionId The subscription ID for which the override should be done.
Brad Ebingera298e672019-04-15 17:10:26 -07009320 * @param overrideValues Key-value pairs of the values that are to be overridden. If set to
9321 * {@code null}, this will remove all previous overrides and set the
9322 * carrier configuration back to production values.
Hall Liue5b1fda2018-10-22 18:17:44 -07009323 * @hide
9324 */
9325 @RequiresPermission(Manifest.permission.MODIFY_PHONE_STATE)
9326 @SystemApi
Hall Liue5b1fda2018-10-22 18:17:44 -07009327 public void overrideConfig(int subscriptionId, @Nullable PersistableBundle overrideValues) {
Torbjorn Eklund4af3ae92019-02-13 16:42:16 +01009328 overrideConfig(subscriptionId, overrideValues, false);
9329 }
9330
9331 /**
9332 * Overrides the carrier config of the provided subscription ID with the provided values.
9333 *
9334 * Any further queries to carrier config from any process will return the overridden values
9335 * after this method returns. The overrides are effective until the user passes in {@code null}
9336 * for {@code overrideValues}. This removes all previous overrides and sets the carrier config
9337 * back to production values.
9338 *
9339 * The overrides is stored persistently and will survive a reboot if {@code persistent} is true.
9340 *
9341 * May throw an {@link IllegalArgumentException} if {@code overrideValues} contains invalid
9342 * values for the specified config keys.
9343 *
9344 * NOTE: This API is meant for testing purposes only.
9345 *
9346 * @param subscriptionId The subscription ID for which the override should be done.
9347 * @param overrideValues Key-value pairs of the values that are to be overridden. If set to
9348 * {@code null}, this will remove all previous overrides and set the
9349 * carrier configuration back to production values.
9350 * @param persistent Determines whether the override should be persistent.
9351 * @hide
9352 */
9353 @RequiresPermission(Manifest.permission.MODIFY_PHONE_STATE)
9354 public void overrideConfig(int subscriptionId, @Nullable PersistableBundle overrideValues,
9355 boolean persistent) {
Hall Liue5b1fda2018-10-22 18:17:44 -07009356 try {
9357 ICarrierConfigLoader loader = getICarrierConfigLoader();
9358 if (loader == null) {
9359 Rlog.w(TAG, "Error setting config for subId " + subscriptionId
9360 + " ICarrierConfigLoader is null");
9361 return;
9362 }
Torbjorn Eklund4af3ae92019-02-13 16:42:16 +01009363 loader.overrideConfig(subscriptionId, overrideValues, persistent);
Hall Liue5b1fda2018-10-22 18:17:44 -07009364 } catch (RemoteException ex) {
9365 Rlog.e(TAG, "Error setting config for subId " + subscriptionId + ": "
9366 + ex.toString());
9367 }
9368 }
9369
9370 /**
yinxu349b6442018-03-16 10:16:53 -07009371 * Gets the configuration values for the default subscription. After using this method to get
9372 * the configuration bundle, {@link #isConfigForIdentifiedCarrier(PersistableBundle)} should be
9373 * called to confirm whether any carrier specific configuration has been applied.
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009374 *
Junda Liufbd740c2015-06-18 16:29:35 -07009375 * <p>Requires Permission:
Rambo Wangd2639b92021-11-02 07:23:49 -07009376 * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}, or the calling app
9377 * has carrier privileges (see {@link TelephonyManager#hasCarrierPrivileges()}).
Junda Liufbd740c2015-06-18 16:29:35 -07009378 *
Derek Tan818822a2016-05-25 18:37:05 +00009379 * @see #getConfigForSubId
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009380 */
Rambo Wangd2639b92021-11-02 07:23:49 -07009381 @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges
9382 @RequiresPermission(Manifest.permission.READ_PHONE_STATE)
Jonathan Basserib731c3d2015-05-05 12:00:59 -07009383 @Nullable
Jonathan Basseri4f9ad1672015-05-12 10:06:32 -07009384 public PersistableBundle getConfig() {
Derek Tan818822a2016-05-25 18:37:05 +00009385 return getConfigForSubId(SubscriptionManager.getDefaultSubscriptionId());
Shishir Agrawal3bf26b52016-02-17 15:52:09 -08009386 }
9387
9388 /**
yinxu0d56f3c2017-11-29 15:02:05 -08009389 * Determines whether a configuration {@link PersistableBundle} obtained from
9390 * {@link #getConfig()} or {@link #getConfigForSubId(int)} corresponds to an identified carrier.
Rambo Wangd2639b92021-11-02 07:23:49 -07009391 *
9392 * <p>When an app receives the {@link CarrierConfigManager#ACTION_CARRIER_CONFIG_CHANGED}
yinxu0d56f3c2017-11-29 15:02:05 -08009393 * broadcast which informs it that the carrier configuration has changed, it is possible
9394 * that another reload of the carrier configuration has begun since the intent was sent.
9395 * In this case, the carrier configuration the app fetches (e.g. via {@link #getConfig()})
9396 * may not represent the configuration for the current carrier. It should be noted that it
9397 * does not necessarily mean the configuration belongs to current carrier when this function
9398 * return true because it may belong to another previous identified carrier. Users should
9399 * always call {@link #getConfig()} or {@link #getConfigForSubId(int)} after receiving the
9400 * broadcast {@link #ACTION_CARRIER_CONFIG_CHANGED}.
Rambo Wangd2639b92021-11-02 07:23:49 -07009401 *
9402 * <p>After using {@link #getConfig()} or {@link #getConfigForSubId(int)} an app should always
yinxu0d56f3c2017-11-29 15:02:05 -08009403 * use this method to confirm whether any carrier specific configuration has been applied.
yinxu349b6442018-03-16 10:16:53 -07009404 * Especially when an app misses the broadcast {@link #ACTION_CARRIER_CONFIG_CHANGED} but it
9405 * still needs to get the current configuration, it must use this method to verify whether the
9406 * configuration is default or carrier overridden.
yinxu0d56f3c2017-11-29 15:02:05 -08009407 *
9408 * @param bundle the configuration bundle to be checked.
9409 * @return boolean true if any carrier specific configuration bundle has been applied, false
9410 * otherwise or the bundle is null.
9411 */
9412 public static boolean isConfigForIdentifiedCarrier(PersistableBundle bundle) {
9413 return bundle != null && bundle.getBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL);
9414 }
9415
9416 /**
Shishir Agrawal3bf26b52016-02-17 15:52:09 -08009417 * Calling this method triggers telephony services to fetch the current carrier configuration.
Rambo Wangd2639b92021-11-02 07:23:49 -07009418 *
9419 * <p>Normally this does not need to be called because the platform reloads config on its own.
Shishir Agrawal3bf26b52016-02-17 15:52:09 -08009420 * This should be called by a carrier service app if it wants to update config at an arbitrary
9421 * moment.
Rambo Wangd2639b92021-11-02 07:23:49 -07009422 *
9423 * <p>Requires Permission:
9424 * {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE}, or the calling app
9425 * has carrier privileges (see {@link TelephonyManager#hasCarrierPrivileges()}).
9426 *
9427 * <p>This method returns before the reload has completed, and {@link
9428 * android.service.carrier.CarrierService#onLoadConfig} will be called from an arbitrary thread.
Shishir Agrawal3bf26b52016-02-17 15:52:09 -08009429 */
Rambo Wangd2639b92021-11-02 07:23:49 -07009430 @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges
9431 @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
Shishir Agrawal3bf26b52016-02-17 15:52:09 -08009432 public void notifyConfigChangedForSubId(int subId) {
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009433 try {
Chenjie Luo90bc39d2015-12-03 12:24:12 -08009434 ICarrierConfigLoader loader = getICarrierConfigLoader();
9435 if (loader == null) {
9436 Rlog.w(TAG, "Error reloading config for subId=" + subId
9437 + " ICarrierConfigLoader is null");
9438 return;
9439 }
9440 loader.notifyConfigChangedForSubId(subId);
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009441 } catch (RemoteException ex) {
9442 Rlog.e(TAG, "Error reloading config for subId=" + subId + ": " + ex.toString());
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009443 }
9444 }
9445
9446 /**
Rambo Wangd2639b92021-11-02 07:23:49 -07009447 * Request the carrier config loader to update the config for phoneId.
9448 *
9449 * <p>Depending on simState, the config may be cleared or loaded from config app. This is only
9450 * used by SubscriptionInfoUpdater.
Nancy Chen9e4cd832015-05-22 17:29:43 -07009451 *
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009452 * @hide
9453 */
9454 @SystemApi
Jeff Sharkeyd86b8fe2017-06-02 17:36:26 -06009455 @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009456 public void updateConfigForPhoneId(int phoneId, String simState) {
9457 try {
Chenjie Luo90bc39d2015-12-03 12:24:12 -08009458 ICarrierConfigLoader loader = getICarrierConfigLoader();
9459 if (loader == null) {
9460 Rlog.w(TAG, "Error updating config for phoneId=" + phoneId
9461 + " ICarrierConfigLoader is null");
9462 return;
9463 }
9464 loader.updateConfigForPhoneId(phoneId, simState);
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009465 } catch (RemoteException ex) {
9466 Rlog.e(TAG, "Error updating config for phoneId=" + phoneId + ": " + ex.toString());
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009467 }
9468 }
9469
Shuo Qianec428aa2019-12-19 15:09:43 -08009470 /**
9471 * Gets the package name for a default carrier service.
9472 * @return the package name for a default carrier service; empty string if not available.
9473 *
9474 * @hide
9475 */
9476 @NonNull
9477 @SystemApi
9478 @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
Jeff Sharkey17bebd22017-07-19 21:00:38 -06009479 public String getDefaultCarrierServicePackageName() {
9480 try {
Shuo Qianec428aa2019-12-19 15:09:43 -08009481 ICarrierConfigLoader loader = getICarrierConfigLoader();
9482 if (loader == null) {
9483 Rlog.w(TAG, "getDefaultCarrierServicePackageName ICarrierConfigLoader is null");
9484 return "";
9485 }
9486 return loader.getDefaultCarrierServicePackageName();
9487 } catch (RemoteException ex) {
9488 Rlog.e(TAG, "getDefaultCarrierServicePackageName ICarrierConfigLoader is null"
9489 + ex.toString());
Shuo Qianad46ae12020-02-26 16:13:49 -08009490 ex.rethrowAsRuntimeException();
Jeff Sharkey17bebd22017-07-19 21:00:38 -06009491 }
Shuo Qianec428aa2019-12-19 15:09:43 -08009492 return "";
Jeff Sharkey17bebd22017-07-19 21:00:38 -06009493 }
9494
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009495 /**
Jonathan Basseri98927182015-04-23 23:34:15 -07009496 * Returns a new bundle with the default value for every supported configuration variable.
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009497 *
9498 * @hide
9499 */
Jonathan Basserib731c3d2015-05-05 12:00:59 -07009500 @NonNull
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009501 @SystemApi
Aurimas Liutikas1394a012020-11-12 18:26:09 -08009502 @SuppressLint("RequiresPermission")
Jonathan Basseri4f9ad1672015-05-12 10:06:32 -07009503 public static PersistableBundle getDefaultConfig() {
9504 return new PersistableBundle(sDefaults);
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009505 }
9506
9507 /** @hide */
Chenjie Luo90bc39d2015-12-03 12:24:12 -08009508 @Nullable
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009509 private ICarrierConfigLoader getICarrierConfigLoader() {
Peter Wangd9eebca2019-12-30 16:14:01 -08009510 return ICarrierConfigLoader.Stub.asInterface(
9511 TelephonyFrameworkInitializer
9512 .getTelephonyServiceManager()
9513 .getCarrierConfigServiceRegisterer()
9514 .get());
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009515 }
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009516
9517 /**
9518 * Gets the configuration values for a component using its prefix.
9519 *
9520 * <p>Requires Permission:
Rambo Wangd2639b92021-11-02 07:23:49 -07009521 * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}, or the calling app
9522 * has carrier privileges (see {@link TelephonyManager#hasCarrierPrivileges()}).
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009523 *
9524 * @param prefix prefix of the component.
9525 * @param subId the subscription ID, normally obtained from {@link SubscriptionManager}.
9526 *
9527 * @see #getConfigForSubId
9528 */
Rambo Wangd2639b92021-11-02 07:23:49 -07009529 @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges
9530 @RequiresPermission(Manifest.permission.READ_PHONE_STATE)
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009531 @Nullable
Aurimas Liutikas4d1699d2019-08-28 13:01:05 -07009532 public PersistableBundle getConfigByComponentForSubId(@NonNull String prefix, int subId) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009533 PersistableBundle configs = getConfigForSubId(subId);
9534
9535 if (configs == null) {
9536 return null;
9537 }
9538
9539 PersistableBundle ret = new PersistableBundle();
9540 for (String configKey : configs.keySet()) {
9541 if (configKey.startsWith(prefix)) {
9542 addConfig(configKey, configs.get(configKey), ret);
9543 }
9544 }
9545
9546 return ret;
9547 }
9548
9549 private void addConfig(String key, Object value, PersistableBundle configs) {
9550 if (value instanceof String) {
9551 configs.putString(key, (String) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009552 } else if (value instanceof String[]) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009553 configs.putStringArray(key, (String[]) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009554 } else if (value instanceof Integer) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009555 configs.putInt(key, (Integer) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009556 } else if (value instanceof Long) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009557 configs.putLong(key, (Long) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009558 } else if (value instanceof Double) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009559 configs.putDouble(key, (Double) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009560 } else if (value instanceof Boolean) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009561 configs.putBoolean(key, (Boolean) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009562 } else if (value instanceof int[]) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009563 configs.putIntArray(key, (int[]) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009564 } else if (value instanceof double[]) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009565 configs.putDoubleArray(key, (double[]) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009566 } else if (value instanceof boolean[]) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009567 configs.putBooleanArray(key, (boolean[]) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009568 } else if (value instanceof long[]) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009569 configs.putLongArray(key, (long[]) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009570 } else if (value instanceof PersistableBundle) {
9571 configs.putPersistableBundle(key, (PersistableBundle) value);
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009572 }
9573 }
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009574}