blob: 741721d14ac1e0f861ddd1b974a08cfa7e3fbbfc [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 /**
Ling Maf752c192022-08-05 23:21:12 -0700587 * List of network capabilities which, if requested, will exempt the request from single PDN
588 * connection checks.
589 * @see NetworkCapabilities NET_CAPABILITY_*
590 * @see #KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY
591 *
592 * @hide
593 */
594 public static final String KEY_CAPABILITIES_EXEMPT_FROM_SINGLE_DC_CHECK_INT_ARRAY =
595 "capabilities_exempt_from_single_dc_check_int_array";
596
597 /**
Chris Mantonca16a792015-06-16 12:06:08 -0700598 * Override the platform's notion of a network operator being considered roaming.
599 * Value is string array of MCCMNCs to be considered roaming for 3GPP RATs.
600 */
601 public static final String
602 KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY = "gsm_roaming_networks_string_array";
603
604 /**
605 * Override the platform's notion of a network operator being considered not roaming.
606 * Value is string array of MCCMNCs to be considered not roaming for 3GPP RATs.
607 */
608 public static final String
609 KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY = "gsm_nonroaming_networks_string_array";
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 both IMS MMTEL and RCS feature functionality instead of the device default
614 * ImsService for this subscription.
615 * @deprecated Use {@link #KEY_CONFIG_IMS_MMTEL_PACKAGE_OVERRIDE_STRING} and
616 * {@link #KEY_CONFIG_IMS_RCS_PACKAGE_OVERRIDE_STRING} instead to configure these values
617 * separately. If any of those values are not empty, they will override this value.
Brad Ebinger024aaf22017-01-23 15:17:50 -0800618 */
619 public static final String KEY_CONFIG_IMS_PACKAGE_OVERRIDE_STRING =
620 "config_ims_package_override_string";
621
622 /**
Brad Ebinger66978142019-12-05 11:38:15 -0800623 * The package name containing the ImsService that will be bound to the telephony framework to
624 * support IMS MMTEL feature functionality instead of the device default ImsService for this
625 * subscription.
626 */
627 public static final String KEY_CONFIG_IMS_MMTEL_PACKAGE_OVERRIDE_STRING =
628 "config_ims_mmtel_package_override_string";
629
630 /**
631 * The package name containing the ImsService that will be bound to the telephony framework to
632 * support IMS RCS feature functionality instead of the device default ImsService for this
633 * subscription.
634 */
635 public static final String KEY_CONFIG_IMS_RCS_PACKAGE_OVERRIDE_STRING =
636 "config_ims_rcs_package_override_string";
637
638 /**
Jeff Sharkey17bebd22017-07-19 21:00:38 -0600639 * Override the package that will manage {@link SubscriptionPlan}
640 * information instead of the {@link CarrierService} that defines this
641 * value.
642 *
643 * @see SubscriptionManager#getSubscriptionPlans(int)
644 * @see SubscriptionManager#setSubscriptionPlans(int, java.util.List)
645 */
646 public static final String KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING =
647 "config_plans_package_override_string";
648
649 /**
Chris Mantonca16a792015-06-16 12:06:08 -0700650 * Override the platform's notion of a network operator being considered roaming.
651 * Value is string array of SIDs to be considered roaming for 3GPP2 RATs.
652 */
653 public static final String
654 KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY = "cdma_roaming_networks_string_array";
655
656 /**
657 * Override the platform's notion of a network operator being considered non roaming.
658 * Value is string array of SIDs to be considered not roaming for 3GPP2 RATs.
659 */
660 public static final String
661 KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY = "cdma_nonroaming_networks_string_array";
662
Jonathan Basseri9b56ad82015-04-27 14:14:38 -0700663 /**
Chris Manton63f25b62015-06-24 16:47:49 -0700664 * Override the platform's notion of a network operator being considered non roaming.
665 * If true all networks are considered as home network a.k.a non-roaming. When false,
666 * the 2 pairs of CMDA and GSM roaming/non-roaming arrays are consulted.
667 *
Ricardo Loo Forondaf2a8aea2017-10-26 17:02:31 -0700668 * @see #KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY
669 * @see #KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY
670 * @see #KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY
671 * @see #KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY
Chris Manton63f25b62015-06-24 16:47:49 -0700672 */
673 public static final String
674 KEY_FORCE_HOME_NETWORK_BOOL = "force_home_network_bool";
675
676 /**
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -0800677 * Flag specifying whether VoLTE should be available for carrier, independent of carrier
678 * provisioning. If false: hard disabled. If true: then depends on carrier provisioning,
679 * availability, etc.
680 */
Jonathan Basseri69822f02015-06-04 13:48:08 -0700681 public static final String KEY_CARRIER_VOLTE_AVAILABLE_BOOL = "carrier_volte_available_bool";
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -0800682
Junda Liue4786492015-06-15 13:15:28 -0700683 /**
Junda Liue5c7ca72015-06-24 14:41:14 -0700684 * Flag specifying whether video telephony is available for carrier. If false: hard disabled.
685 * If true: then depends on carrier provisioning, availability, etc.
686 */
687 public static final String KEY_CARRIER_VT_AVAILABLE_BOOL = "carrier_vt_available_bool";
688
689 /**
gwenline7145b42020-09-18 11:09:20 -0400690 * Specify the method of selection for UE sending USSD requests. The default value is
691 * {@link #USSD_OVER_CS_PREFERRED}.
692 * <p> Available options:
693 * <ul>
694 * <li>0: {@link #USSD_OVER_CS_PREFERRED} </li>
695 * <li>1: {@link #USSD_OVER_IMS_PREFERRED} </li>
696 * <li>2: {@link #USSD_OVER_CS_ONLY} </li>
697 * <li>3: {@link #USSD_OVER_IMS_ONLY} </li>
698 * </ul>
699 */
700 public static final String KEY_CARRIER_USSD_METHOD_INT =
701 "carrier_ussd_method_int";
702
703 /**
SongFerngWang27b6a582020-04-10 15:07:09 +0800704 * Flag specifying whether to show an alert dialog for 5G disable when the user disables VoLTE.
705 * By default this value is {@code false}.
706 *
707 * @hide
708 */
709 public static final String KEY_VOLTE_5G_LIMITED_ALERT_DIALOG_BOOL =
710 "volte_5g_limited_alert_dialog_bool";
711
712 /**
Tyler Gunn481255d2016-08-16 16:04:48 -0700713 * Flag specifying whether the carrier wants to notify the user when a VT call has been handed
714 * over from WIFI to LTE.
715 * <p>
716 * The handover notification is sent as a
717 * {@link TelephonyManager#EVENT_HANDOVER_VIDEO_FROM_WIFI_TO_LTE}
718 * {@link android.telecom.Connection} event, which an {@link android.telecom.InCallService}
719 * should use to trigger the display of a user-facing message.
720 * <p>
721 * The Connection event is sent to the InCallService only once, the first time it occurs.
722 * @hide
723 */
724 public static final String KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL =
725 "notify_handover_video_from_wifi_to_lte_bool";
726
727 /**
Hall Liuef800082019-07-29 16:18:30 -0700728 * Flag specifying whether the carrier supports merging a RTT call with a voice call,
729 * downgrading the call in the process.
730 * @hide
731 */
732 public static final String KEY_ALLOW_MERGING_RTT_CALLS_BOOL =
733 "allow_merging_rtt_calls_bool";
734
735 /**
Tyler Gunn5ce0d3a2017-12-14 14:06:15 -0800736 * Flag specifying whether the carrier wants to notify the user when a VT call has been handed
737 * over from LTE to WIFI.
738 * <p>
739 * The handover notification is sent as a
740 * {@link TelephonyManager#EVENT_HANDOVER_VIDEO_FROM_LTE_TO_WIFI}
741 * {@link android.telecom.Connection} event, which an {@link android.telecom.InCallService}
742 * should use to trigger the display of a user-facing message.
743 * @hide
744 */
745 public static final String KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL =
746 "notify_handover_video_from_lte_to_wifi_bool";
747
748 /**
Tyler Gunn86d5c3f2016-08-12 14:14:13 -0700749 * Flag specifying whether the carrier supports downgrading a video call (tx, rx or tx/rx)
750 * directly to an audio call.
751 * @hide
752 */
753 public static final String KEY_SUPPORT_DOWNGRADE_VT_TO_AUDIO_BOOL =
754 "support_downgrade_vt_to_audio_bool";
755
756 /**
Jordan Liu3ff30d22016-09-01 13:25:13 -0700757 * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default
758 * voicemail number.
759 * When empty string, no default voicemail number is specified.
760 */
761 public static final String KEY_DEFAULT_VM_NUMBER_STRING = "default_vm_number_string";
762
Jack Yu2030cd92016-11-17 09:51:29 -0800763 /**
SongFerngWang310f6d02018-03-23 15:07:05 +0800764 * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default
765 * voicemail number for roaming network.
766 * When empty string, no default voicemail number is specified for roaming network.
767 * @hide
768 */
769 public static final String KEY_DEFAULT_VM_NUMBER_ROAMING_STRING =
770 "default_vm_number_roaming_string";
771
772 /**
Saki Oomori0dd2dfb2018-09-11 15:44:25 +0900773 * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default
774 * voicemail number while the device is both roaming and not registered for IMS.
775 * When empty string, no default voicemail number is specified for roaming network and
776 * unregistered state in IMS.
777 */
778 public static final String KEY_DEFAULT_VM_NUMBER_ROAMING_AND_IMS_UNREGISTERED_STRING =
779 "default_vm_number_roaming_and_ims_unregistered_string";
780
781 /**
Cassie4c6f72c2017-10-10 14:33:38 -0700782 * Flag that specifies to use the user's own phone number as the voicemail number when there is
783 * no pre-loaded voicemail number on the SIM card.
784 * <p>
785 * {@link #KEY_DEFAULT_VM_NUMBER_STRING} takes precedence over this flag.
786 * <p>
787 * If false, the system default (*86) will be used instead.
788 */
789 public static final String KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL =
790 "config_telephony_use_own_number_for_voicemail_bool";
791
792 /**
Tyler Gunn9a961f52017-08-17 15:58:47 -0700793 * When {@code true}, changes to the mobile data enabled switch will not cause the VT
794 * registration state to change. That is, turning on or off mobile data will not cause VT to be
795 * enabled or disabled.
796 * When {@code false}, disabling mobile data will cause VT to be de-registered.
Jack Yu2030cd92016-11-17 09:51:29 -0800797 */
798 public static final String KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS =
799 "ignore_data_enabled_changed_for_video_calls";
Jordan Liu3ff30d22016-09-01 13:25:13 -0700800
801 /**
Tyler Gunn9a961f52017-08-17 15:58:47 -0700802 * Flag indicating whether data used for a video call over LTE is metered or not.
803 * <p>
804 * When {@code true}, if the device hits the data limit or data is disabled during a ViLTE call,
805 * the call will be downgraded to audio-only (or paused if
806 * {@link #KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL} is {@code true}).
807 *
808 * @hide
809 */
810 public static final String KEY_VILTE_DATA_IS_METERED_BOOL = "vilte_data_is_metered_bool";
811
812 /**
Junda Liue4786492015-06-15 13:15:28 -0700813 * Flag specifying whether WFC over IMS should be available for carrier: independent of
814 * carrier provisioning. If false: hard disabled. If true: then depends on carrier
815 * provisioning, availability etc.
816 */
817 public static final String KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL = "carrier_wfc_ims_available_bool";
818
fionaxuc71e8242016-03-08 11:46:55 -0800819 /**
Sooraj Sasindran83ff8ad2020-11-23 23:42:51 -0800820 * Flag specifying whether Cross SIM over IMS should be available for carrier.
821 * When {@code false} the carrier does not support cross SIM calling.
822 * When {@code true} the carrier does support cross sim calling, where available
823 */
824 public static final String KEY_CARRIER_CROSS_SIM_IMS_AVAILABLE_BOOL =
825 "carrier_cross_sim_ims_available_bool";
826
827 /**
yawensu5cc57b62021-09-07 13:58:42 +0800828 * Flag specifying whether cross sim calling on opportunistic data is supported for carrier.
829 * When {@code false} the carrier does not support cross sim calling on opportunistic data.
830 * When {@code true} the carrier does support cross sim calling on opportunistic data.
831 */
832 public static final String KEY_ENABLE_CROSS_SIM_CALLING_ON_OPPORTUNISTIC_DATA_BOOL =
833 "enable_cross_sim_calling_on_opportunistic_data_bool";
834
835 /**
Jordan Liu02ec2a02016-09-09 11:48:48 -0700836 * Specifies a map from dialstrings to replacements for roaming network service numbers which
837 * cannot be replaced on the carrier side.
838 * <p>
839 * Individual entries have the format:
840 * [dialstring to replace]:[replacement]
841 */
842 public static final String KEY_DIAL_STRING_REPLACE_STRING_ARRAY =
843 "dial_string_replace_string_array";
844
845 /**
Thomas Stuart5c0227d2022-04-08 14:04:56 -0700846 * Specifies a map from dialstrings to replacements for international roaming network service
847 * numbers which cannot be replaced on the carrier side.
848 * <p>
849 * Individual entries have the format:
850 * [dialstring to replace]:[replacement]
851 * @hide
852 */
853 public static final String KEY_INTERNATIONAL_ROAMING_DIAL_STRING_REPLACE_STRING_ARRAY =
854 "international_roaming_dial_string_replace_string_array";
855
856 /**
Tyler Gunn5bbeea02016-03-30 14:50:30 -0700857 * Flag specifying whether WFC over IMS supports the "wifi only" option. If false, the wifi
858 * calling settings will not include an option for "wifi only". If true, the wifi calling
859 * settings will include an option for "wifi only"
860 * <p>
861 * By default, it is assumed that WFC supports "wifi only".
862 */
863 public static final String KEY_CARRIER_WFC_SUPPORTS_WIFI_ONLY_BOOL =
864 "carrier_wfc_supports_wifi_only_bool";
865
866 /**
Meng Wang71b60392018-08-24 15:40:02 -0700867 * Default mode for WFC over IMS on home network:
868 * <ul>
869 * <li>0: Wi-Fi only
870 * <li>1: prefer mobile network
871 * <li>2: prefer Wi-Fi
872 * </ul>
fionaxuc71e8242016-03-08 11:46:55 -0800873 */
874 public static final String KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT =
875 "carrier_default_wfc_ims_mode_int";
Meng Wang2c25e4a2016-09-19 14:18:05 -0700876
877 /**
Meng Wang71b60392018-08-24 15:40:02 -0700878 * Default mode for WFC over IMS on roaming network.
879 * See {@link #KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT} for meaning of values.
Meng Wang2c25e4a2016-09-19 14:18:05 -0700880 */
881 public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT =
882 "carrier_default_wfc_ims_roaming_mode_int";
883
fionaxuc71e8242016-03-08 11:46:55 -0800884 /**
885 * Default WFC_IMS_enabled: true VoWiFi by default is on
886 * false VoWiFi by default is off
fionaxuc71e8242016-03-08 11:46:55 -0800887 */
888 public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL =
889 "carrier_default_wfc_ims_enabled_bool";
890
891 /**
892 * Default WFC_IMS_roaming_enabled: true VoWiFi roaming by default is on
893 * false VoWiFi roaming by default is off
894 * @hide
895 */
896 public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL =
897 "carrier_default_wfc_ims_roaming_enabled_bool";
898
Tyler Gunnc3e6c932016-07-07 10:11:14 -0700899 /**
900 * Flag indicating whether failed calls due to no service should prompt the user to enable
901 * WIFI calling. When {@code true}, if the user attempts to establish a call when there is no
902 * service available, they are connected to WIFI, and WIFI calling is disabled, a different
903 * call failure message will be used to encourage the user to enable WIFI calling.
904 * @hide
905 */
906 public static final String KEY_CARRIER_PROMOTE_WFC_ON_CALL_FAIL_BOOL =
907 "carrier_promote_wfc_on_call_fail_bool";
908
Brad Ebingerb3f46322019-01-14 13:46:05 -0800909 /**
allenwtsuc2524a42020-01-03 18:18:11 +0800910 * Flag specifying whether provisioning is required for RCS.
911 */
912 public static final String KEY_CARRIER_RCS_PROVISIONING_REQUIRED_BOOL =
913 "carrier_rcs_provisioning_required_bool";
914
915 /**
Brad Ebingerb3f46322019-01-14 13:46:05 -0800916 * Flag specifying whether provisioning is required for VoLTE, Video Telephony, and WiFi
917 * Calling.
Hakjun Choia972ee22022-01-17 09:49:53 +0000918
919 * Combines VoLTE, VT, VoWiFI calling provisioning into one parameter.
920 * @deprecated Use {@link Ims#KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE} instead for
921 * finer-grained control.
Hakjun Choi79a50532022-04-21 06:24:26 +0000922 * changing carrier_volte_provisioning_required_bool requires changes to
923 * mmtel_requires_provisioning_bundle and vice versa
924 * {@link Ims#KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE}
Brad Ebingerb3f46322019-01-14 13:46:05 -0800925 */
Hakjun Choia972ee22022-01-17 09:49:53 +0000926 @Deprecated
Junda Liue5c7ca72015-06-24 14:41:14 -0700927 public static final String KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL
928 = "carrier_volte_provisioning_required_bool";
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -0800929
Meng Wang05062992017-02-14 21:55:09 -0800930 /**
Brad Ebingerb3f46322019-01-14 13:46:05 -0800931 * Flag indicating whether or not the IMS MmTel UT capability requires carrier provisioning
932 * before it can be set as enabled.
933 *
934 * If true, the UT capability will be set to false for the newly loaded subscription
935 * and will require the carrier provisioning app to set the persistent provisioning result.
936 * If false, the platform will not wait for provisioning status updates for the UT capability
937 * and enable the UT over IMS capability for the subscription when the subscription is loaded.
938 *
939 * The default value for this key is {@code false}.
Hakjun Choia972ee22022-01-17 09:49:53 +0000940 *
941 * @deprecated Use {@link Ims#KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE} instead for
942 * determining if UT requires provisioning.
Brad Ebingerb3f46322019-01-14 13:46:05 -0800943 */
Hakjun Choia972ee22022-01-17 09:49:53 +0000944 @Deprecated
Brad Ebingerb3f46322019-01-14 13:46:05 -0800945 public static final String KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL =
946 "carrier_ut_provisioning_required_bool";
947
948 /**
949 * Flag indicating whether or not the carrier supports Supplementary Services over the UT
950 * interface for this subscription.
951 *
952 * If true, the device will use Supplementary Services over UT when provisioned (see
953 * {@link #KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL}). If false, this device will fallback to
954 * circuit switch for supplementary services and will disable this capability for IMS entirely.
955 *
Brad Ebinger31313d62020-07-27 10:19:01 -0700956 * The default value for this key is {@code false}.
Brad Ebingerb3f46322019-01-14 13:46:05 -0800957 */
958 public static final String KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL =
959 "carrier_supports_ss_over_ut_bool";
960
961 /**
Meng Wang05062992017-02-14 21:55:09 -0800962 * Flag specifying if WFC provisioning depends on VoLTE provisioning.
963 *
964 * {@code false}: default value; honor actual WFC provisioning state.
965 * {@code true}: when VoLTE is not provisioned, treat WFC as not provisioned; when VoLTE is
966 * provisioned, honor actual WFC provisioning state.
967 *
968 * As of now, Verizon is the only carrier enforcing this dependency in their
969 * WFC awareness and activation requirements.
Sarah China912e112020-01-09 10:43:30 -0800970 */
Meng Wang05062992017-02-14 21:55:09 -0800971 public static final String KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL
972 = "carrier_volte_override_wfc_provisioning_bool";
973
Jack Yufcbda452018-02-01 14:50:53 -0800974 /**
975 * Override the device's configuration for the cellular data service to use for this SIM card.
976 * @hide
977 */
978 public static final String KEY_CARRIER_DATA_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING
979 = "carrier_data_service_wwan_package_override_string";
980
981 /**
982 * Override the device's configuration for the IWLAN data service to use for this SIM card.
983 * @hide
984 */
985 public static final String KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING
986 = "carrier_data_service_wlan_package_override_string";
987
Yatai Lin6ed1ada2019-04-09 10:24:15 +0800988 /**
989 * Override the device's configuration for the cellular data service class to use
990 * for this SIM card.
991 * @hide
992 */
993 public static final String KEY_CARRIER_DATA_SERVICE_WWAN_CLASS_OVERRIDE_STRING =
994 "carrier_data_service_wwan_class_override_string";
995
996 /**
997 * Override the device's configuration for the IWLAN data service class to use
998 * for this SIM card.
999 * @hide
1000 */
1001 public static final String KEY_CARRIER_DATA_SERVICE_WLAN_CLASS_OVERRIDE_STRING =
1002 "carrier_data_service_wlan_class_override_string";
1003
Jonathan Basseri9b56ad82015-04-27 14:14:38 -07001004 /** Flag specifying whether VoLTE TTY is supported. */
Jonathan Basseri69822f02015-06-04 13:48:08 -07001005 public static final String KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL
1006 = "carrier_volte_tty_supported_bool";
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08001007
donaldahn3486c1d2022-02-24 05:21:28 +00001008 /** Flag specifying whether VoWIFI TTY is supported.
1009 * @hide
1010 */
1011 public static final String KEY_CARRIER_VOWIFI_TTY_SUPPORTED_BOOL =
1012 "carrier_vowifi_tty_supported_bool";
1013
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08001014 /**
Junda Liue5c7ca72015-06-24 14:41:14 -07001015 * Flag specifying whether IMS service can be turned off. If false then the service will not be
1016 * turned-off completely, but individual features can be disabled.
1017 */
1018 public static final String KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL
1019 = "carrier_allow_turnoff_ims_bool";
1020
1021 /**
Pavel Zhamaitsiakb4faf342015-10-16 16:39:00 -07001022 * Flag specifying whether Generic Bootstrapping Architecture capable SIM is required for IMS.
Pavel Zhamaitsiakb4faf342015-10-16 16:39:00 -07001023 */
1024 public static final String KEY_CARRIER_IMS_GBA_REQUIRED_BOOL
1025 = "carrier_ims_gba_required_bool";
1026
1027 /**
Tyler Gunnac2aefc2015-07-31 15:34:46 -07001028 * Flag specifying whether IMS instant lettering is available for the carrier. {@code True} if
1029 * instant lettering is available for the carrier, {@code false} otherwise.
Tyler Gunnac2aefc2015-07-31 15:34:46 -07001030 */
1031 public static final String KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL =
1032 "carrier_instant_lettering_available_bool";
1033
Etan Cohencd811f02015-08-18 11:11:29 -07001034 /*
1035 * Flag specifying whether IMS should be the first phone attempted for E911 even if the
1036 * phone is not in service.
Etan Cohencd811f02015-08-18 11:11:29 -07001037 */
1038 public static final String KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL
1039 = "carrier_use_ims_first_for_emergency_bool";
1040
Tyler Gunnac2aefc2015-07-31 15:34:46 -07001041 /**
Tyler Gunn11dd6452021-10-27 14:24:49 -07001042 * When {@code true}, the determination of whether to place a call as an emergency call will be
1043 * based on the known {@link android.telephony.emergency.EmergencyNumber}s for the SIM on which
1044 * the call is being placed. In a dual SIM scenario, if Sim A has the emergency numbers
1045 * 123, 456 and Sim B has the emergency numbers 789, and the user places a call on SIM A to 789,
1046 * it will not be treated as an emergency call in this case.
1047 * When {@code false}, the determination is based on the emergency numbers from all device SIMs,
1048 * regardless of which SIM the call is being placed on. If Sim A has the emergency numbers
1049 * 123, 456 and Sim B has the emergency numbers 789, and the user places a call on SIM A to 789,
1050 * the call will be dialed as an emergency number, but with an unspecified routing.
1051 * @hide
1052 */
1053 public static final String KEY_USE_ONLY_DIALED_SIM_ECC_LIST_BOOL =
1054 "use_only_dialed_sim_ecc_list_bool";
1055
1056 /**
Tyler Gunneb5fcb92015-09-04 13:16:37 -07001057 * When IMS instant lettering is available for a carrier (see
1058 * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines the list of characters
1059 * which may not be contained in messages. Should be specified as a regular expression suitable
1060 * for use with {@link String#matches(String)}.
Tyler Gunneb5fcb92015-09-04 13:16:37 -07001061 */
1062 public static final String KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING =
1063 "carrier_instant_lettering_invalid_chars_string";
1064
1065 /**
Tyler Gunn14be4cf2015-09-10 13:33:28 -07001066 * When IMS instant lettering is available for a carrier (see
1067 * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines a list of characters which
1068 * must be escaped with a backslash '\' character. Should be specified as a string containing
1069 * the characters to be escaped. For example to escape quote and backslash the string would be
1070 * a quote and a backslash.
Tyler Gunn14be4cf2015-09-10 13:33:28 -07001071 */
1072 public static final String KEY_CARRIER_INSTANT_LETTERING_ESCAPED_CHARS_STRING =
1073 "carrier_instant_lettering_escaped_chars_string";
1074
1075 /**
Tyler Gunndb3da5c2015-09-21 22:11:30 -07001076 * When IMS instant lettering is available for a carrier (see
1077 * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines the character encoding
1078 * which will be used when determining the length of messages. Used in the InCall UI to limit
1079 * the number of characters the user may type. If empty-string, the instant lettering
1080 * message size limit will be enforced on a 1:1 basis. That is, each character will count
1081 * towards the messages size limit as a single bye. If a character encoding is specified, the
1082 * message size limit will be based on the number of bytes in the message per the specified
1083 * encoding.
Tyler Gunndb3da5c2015-09-21 22:11:30 -07001084 */
1085 public static final String KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING =
1086 "carrier_instant_lettering_encoding_string";
1087
1088 /**
1089 * When IMS instant lettering is available for a carrier (see
1090 * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), the length limit for messages. Used
1091 * in the InCall UI to ensure the user cannot enter more characters than allowed by the carrier.
1092 * See also {@link #KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING} for more information on how
1093 * the length of the message is calculated.
Tyler Gunndb3da5c2015-09-21 22:11:30 -07001094 */
1095 public static final String KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT =
1096 "carrier_instant_lettering_length_limit_int";
1097
1098 /**
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08001099 * If Voice Radio Technology is RIL_RADIO_TECHNOLOGY_LTE:14 or RIL_RADIO_TECHNOLOGY_UNKNOWN:0
1100 * this is the value that should be used instead. A configuration value of
1101 * RIL_RADIO_TECHNOLOGY_UNKNOWN:0 means there is no replacement value and that the default
1102 * assumption for phone type (GSM) should be used.
1103 */
Jonathan Basseri69822f02015-06-04 13:48:08 -07001104 public static final String KEY_VOLTE_REPLACEMENT_RAT_INT = "volte_replacement_rat_int";
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08001105
Junda Liue4786492015-06-15 13:15:28 -07001106 /**
1107 * The default sim call manager to use when the default dialer doesn't implement one. A sim call
1108 * manager can control and route outgoing and incoming phone calls, even if they're placed
1109 * using another connection service (PSTN, for example).
1110 */
1111 public static final String KEY_DEFAULT_SIM_CALL_MANAGER_STRING = "default_sim_call_manager_string";
1112
Jack Yua4f2da32015-07-22 13:36:42 -07001113 /**
1114 * The default flag specifying whether ETWS/CMAS test setting is forcibly disabled in
1115 * Settings->More->Emergency broadcasts menu even though developer options is turned on.
Jack Yue4238612020-02-18 17:57:41 -08001116 * @deprecated Use {@code com.android.cellbroadcastreceiver.CellBroadcastReceiver} resource
1117 * {@code show_test_settings} to control whether to show test alert settings or not.
Jack Yua4f2da32015-07-22 13:36:42 -07001118 */
Chen Xu77e638b2019-11-15 14:59:22 -08001119 @Deprecated
Jack Yua4f2da32015-07-22 13:36:42 -07001120 public static final String KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL =
1121 "carrier_force_disable_etws_cmas_test_bool";
1122
Jack Yu6af6c342015-09-14 16:18:59 -07001123 /**
Jack Yubcbe4682020-01-10 17:24:58 -08001124 * The default flag specifying whether "Allow alerts" option will be always shown in
1125 * emergency alerts settings regardless developer options is turned on or not.
1126 *
1127 * @deprecated The allow alerts option is always shown now. No longer need a config for that.
Jack Yu6af6c342015-09-14 16:18:59 -07001128 */
Jack Yubcbe4682020-01-10 17:24:58 -08001129 @Deprecated
Jack Yu6af6c342015-09-14 16:18:59 -07001130 public static final String KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL =
1131 "always_show_emergency_alert_onoff_bool";
1132
Jack Yu090dd722015-12-18 15:16:24 -08001133 /**
Sarah Chin83469632021-12-06 18:34:24 -08001134 * Default mobile network MTU value, in bytes.
1135 * @hide
1136 */
1137 public static final String KEY_DEFAULT_MTU_INT = "default_mtu_int";
1138
1139 /**
Jack Yuc1f0e872016-09-10 00:41:17 -07001140 * The data call retry configuration for different types of APN.
Jack Yu090dd722015-12-18 15:16:24 -08001141 * @hide
1142 */
Jack Yuc1f0e872016-09-10 00:41:17 -07001143 public static final String KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS =
1144 "carrier_data_call_retry_config_strings";
Jack Yu090dd722015-12-18 15:16:24 -08001145
1146 /**
Jack Yu5523dc52017-08-16 14:26:56 -07001147 * Delay in milliseconds between trying APN from the pool
Jack Yu090dd722015-12-18 15:16:24 -08001148 * @hide
1149 */
1150 public static final String KEY_CARRIER_DATA_CALL_APN_DELAY_DEFAULT_LONG =
1151 "carrier_data_call_apn_delay_default_long";
1152
1153 /**
Jack Yu5523dc52017-08-16 14:26:56 -07001154 * Faster delay in milliseconds between trying APN from the pool
Jack Yu090dd722015-12-18 15:16:24 -08001155 * @hide
1156 */
1157 public static final String KEY_CARRIER_DATA_CALL_APN_DELAY_FASTER_LONG =
1158 "carrier_data_call_apn_delay_faster_long";
1159
Jack Yu66a6be32016-03-30 11:14:39 -07001160 /**
Jack Yu5523dc52017-08-16 14:26:56 -07001161 * Delay in milliseconds for retrying APN after disconnect
1162 * @hide
1163 */
1164 public static final String KEY_CARRIER_DATA_CALL_APN_RETRY_AFTER_DISCONNECT_LONG =
1165 "carrier_data_call_apn_retry_after_disconnect_long";
1166
1167 /**
Jack Yu9138a212021-06-10 10:40:12 -07001168 * The maximum times for telephony to retry data setup on the same APN requested by
1169 * network through the data setup response retry timer
1170 * {@link DataCallResponse#getRetryDurationMillis()}. This is to prevent that network keeps
1171 * asking device to retry data setup forever and causes power consumption issue. For infinite
1172 * retring same APN, configure this as 2147483647 (i.e. {@link Integer#MAX_VALUE}).
1173 *
1174 * Note if network does not suggest any retry timer, frameworks uses the retry configuration
1175 * from {@link #KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS}, and the maximum retry times could
1176 * be configured there.
1177 * @hide
1178 */
1179 public static final String KEY_CARRIER_DATA_CALL_RETRY_NETWORK_REQUESTED_MAX_COUNT_INT =
1180 "carrier_data_call_retry_network_requested_max_count_int";
1181
1182 /**
Jack Yu27194752022-10-20 23:24:09 -07001183 * Data call setup permanent failure causes by the carrier.
1184 *
1185 * This API key was added in mistake and is not used anymore by the telephony data
1186 * frameworks.
Jack Yu8a81a212016-06-15 14:26:59 -07001187 */
1188 public static final String KEY_CARRIER_DATA_CALL_PERMANENT_FAILURE_STRINGS =
1189 "carrier_data_call_permanent_failure_strings";
1190
1191 /**
Jack Yu66a6be32016-03-30 11:14:39 -07001192 * Default APN types that are metered by the carrier
1193 * @hide
1194 */
1195 public static final String KEY_CARRIER_METERED_APN_TYPES_STRINGS =
1196 "carrier_metered_apn_types_strings";
fionaxu28ffb602016-04-17 23:56:42 -07001197 /**
Jack Yu7dc56ee2017-05-20 17:06:33 -07001198 * Default APN types that are roaming-metered by the carrier
fionaxu28ffb602016-04-17 23:56:42 -07001199 * @hide
1200 */
1201 public static final String KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS =
1202 "carrier_metered_roaming_apn_types_strings";
Jack Yu7dc56ee2017-05-20 17:06:33 -07001203
1204 /**
Jack Yuac9a7312019-06-28 16:42:37 -07001205 * APN types that are not allowed on cellular
1206 * @hide
1207 */
1208 public static final String KEY_CARRIER_WWAN_DISALLOWED_APN_TYPES_STRING_ARRAY =
1209 "carrier_wwan_disallowed_apn_types_string_array";
1210
1211 /**
1212 * APN types that are not allowed on IWLAN
1213 * @hide
1214 */
1215 public static final String KEY_CARRIER_WLAN_DISALLOWED_APN_TYPES_STRING_ARRAY =
1216 "carrier_wlan_disallowed_apn_types_string_array";
1217 /**
Jack Yu360dc212016-04-08 17:11:25 -07001218 * CDMA carrier ERI (Enhanced Roaming Indicator) file name
1219 * @hide
1220 */
1221 public static final String KEY_CARRIER_ERI_FILE_NAME_STRING =
1222 "carrier_eri_file_name_string";
1223
Nancy Chen5c86e922015-04-09 13:17:20 -07001224 /* The following 3 fields are related to carrier visual voicemail. */
1225
1226 /**
Jonathan Basseri6c1dc312015-06-18 16:05:39 -07001227 * The carrier number mobile outgoing (MO) sms messages are sent to.
Nancy Chen5c86e922015-04-09 13:17:20 -07001228 */
Jonathan Basseri69822f02015-06-04 13:48:08 -07001229 public static final String KEY_VVM_DESTINATION_NUMBER_STRING = "vvm_destination_number_string";
Nancy Chen5c86e922015-04-09 13:17:20 -07001230
1231 /**
Jonathan Basseri6c1dc312015-06-18 16:05:39 -07001232 * The port through which the mobile outgoing (MO) sms messages are sent through.
Nancy Chen5c86e922015-04-09 13:17:20 -07001233 */
Jonathan Basseri69822f02015-06-04 13:48:08 -07001234 public static final String KEY_VVM_PORT_NUMBER_INT = "vvm_port_number_int";
Nancy Chen5c86e922015-04-09 13:17:20 -07001235
1236 /**
Nancy Chencb43f422015-05-27 15:06:58 -07001237 * The type of visual voicemail protocol the carrier adheres to. See {@link TelephonyManager}
1238 * for possible values. For example {@link TelephonyManager#VVM_TYPE_OMTP}.
Nancy Chen5c86e922015-04-09 13:17:20 -07001239 */
Jonathan Basseri69822f02015-06-04 13:48:08 -07001240 public static final String KEY_VVM_TYPE_STRING = "vvm_type_string";
Nancy Chen5c86e922015-04-09 13:17:20 -07001241
Nancy Chen97f5ccd2015-06-04 12:00:25 -07001242 /**
Ta-wei Yen685f53c2015-11-30 18:00:08 -08001243 * Whether cellular data is required to access visual voicemail.
1244 */
Ta-wei Yen153fcd72016-05-17 15:57:20 -07001245 public static final String KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL =
1246 "vvm_cellular_data_required_bool";
Ta-wei Yen685f53c2015-11-30 18:00:08 -08001247
1248 /**
Ta-wei Yenb618d0f2017-01-17 13:52:10 -08001249 * The default OMTP visual voicemail client prefix to use. Defaulted to "//VVM"
1250 */
1251 public static final String KEY_VVM_CLIENT_PREFIX_STRING =
1252 "vvm_client_prefix_string";
1253
1254 /**
1255 * Whether to use SSL to connect to the visual voicemail IMAP server. Defaulted to false.
1256 */
1257 public static final String KEY_VVM_SSL_ENABLED_BOOL = "vvm_ssl_enabled_bool";
1258
1259 /**
1260 * A set of capabilities that should not be used even if it is reported by the visual voicemail
1261 * IMAP CAPABILITY command.
1262 */
1263 public static final String KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY =
1264 "vvm_disabled_capabilities_string_array";
1265
1266 /**
1267 * Whether legacy mode should be used when the visual voicemail client is disabled.
1268 *
1269 * <p>Legacy mode is a mode that on the carrier side visual voicemail is still activated, but on
1270 * the client side all network operations are disabled. SMSs are still monitored so a new
1271 * message SYNC SMS will be translated to show a message waiting indicator, like traditional
1272 * voicemails.
1273 *
1274 * <p>This is for carriers that does not support VVM deactivation so voicemail can continue to
1275 * function without the data cost.
1276 */
1277 public static final String KEY_VVM_LEGACY_MODE_ENABLED_BOOL =
1278 "vvm_legacy_mode_enabled_bool";
1279
1280 /**
Ta-wei Yen76193dc2016-01-25 19:04:36 -08001281 * Whether to prefetch audio data on new voicemail arrival, defaulted to true.
1282 */
Ta-wei Yen153fcd72016-05-17 15:57:20 -07001283 public static final String KEY_VVM_PREFETCH_BOOL = "vvm_prefetch_bool";
Ta-wei Yen76193dc2016-01-25 19:04:36 -08001284
1285 /**
Nancy Chen97f5ccd2015-06-04 12:00:25 -07001286 * The package name of the carrier's visual voicemail app to ensure that dialer visual voicemail
1287 * and carrier visual voicemail are not active at the same time.
Ta-wei Yenb618d0f2017-01-17 13:52:10 -08001288 *
1289 * @deprecated use {@link #KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY}.
Nancy Chen97f5ccd2015-06-04 12:00:25 -07001290 */
Ta-wei Yenb618d0f2017-01-17 13:52:10 -08001291 @Deprecated
Jonathan Basseri69822f02015-06-04 13:48:08 -07001292 public static final String KEY_CARRIER_VVM_PACKAGE_NAME_STRING = "carrier_vvm_package_name_string";
Nancy Chen97f5ccd2015-06-04 12:00:25 -07001293
Amit Mahajan02008b72015-06-11 14:54:20 -07001294 /**
Ta-wei Yenb618d0f2017-01-17 13:52:10 -08001295 * A list of the carrier's visual voicemail app package names to ensure that dialer visual
1296 * voicemail and carrier visual voicemail are not active at the same time.
1297 */
1298 public static final String KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY =
1299 "carrier_vvm_package_name_string_array";
1300
1301 /**
Meng Wang6b2995a2016-03-14 10:08:41 -07001302 * Flag specifying whether ICCID is showed in SIM Status screen, default to false.
1303 */
1304 public static final String KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL = "show_iccid_in_sim_status_bool";
1305
1306 /**
Jordan Liua59a5eb2017-12-11 16:23:25 -08001307 * Flag specifying whether the {@link android.telephony.SignalStrength} is shown in the SIM
1308 * Status screen. The default value is true.
Patrik Bannura9124ec52017-11-24 12:39:50 +01001309 */
Jordan Liua59a5eb2017-12-11 16:23:25 -08001310 public static final String KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL =
1311 "show_signal_strength_in_sim_status_bool";
Patrik Bannura9124ec52017-11-24 12:39:50 +01001312
1313 /**
Mattias Nilssoneee4e502020-01-24 17:49:49 +01001314 * Flag specifying if we should interpret all signal strength as one bar higher
Mattias Nilsson39a60dd2020-01-24 18:33:21 +01001315 * This is a replacement for the former resource config_inflateSignalStrength
Mattias Nilssoneee4e502020-01-24 17:49:49 +01001316 * The default value is false.
1317 * @hide
1318 */
1319 public static final String KEY_INFLATE_SIGNAL_STRENGTH_BOOL =
1320 "inflate_signal_strength_bool";
1321
1322 /**
Amit Mahajan02008b72015-06-11 14:54:20 -07001323 * Flag specifying whether an additional (client initiated) intent needs to be sent on System
1324 * update
Amit Mahajan02008b72015-06-11 14:54:20 -07001325 */
1326 public static final String KEY_CI_ACTION_ON_SYS_UPDATE_BOOL = "ci_action_on_sys_update_bool";
1327
1328 /**
1329 * Intent to be sent for the additional action on System update
Amit Mahajan02008b72015-06-11 14:54:20 -07001330 */
1331 public static final String KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING =
1332 "ci_action_on_sys_update_intent_string";
1333
1334 /**
1335 * Extra to be included in the intent sent for additional action on System update
Amit Mahajan02008b72015-06-11 14:54:20 -07001336 */
1337 public static final String KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING =
1338 "ci_action_on_sys_update_extra_string";
1339
1340 /**
1341 * Value of extra included in intent sent for additional action on System update
Amit Mahajan02008b72015-06-11 14:54:20 -07001342 */
1343 public static final String KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING =
1344 "ci_action_on_sys_update_extra_val_string";
1345
Jonathan Basseri019523a2015-06-19 11:07:22 -07001346 /**
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 Pius9f81ce72015-08-12 12:01:42 -07001350 */
Roshan Piusdc364fe2015-09-10 10:28:06 -07001351 public static final String KEY_GSM_DTMF_TONE_DELAY_INT = "gsm_dtmf_tone_delay_int";
1352
1353 /**
1354 * Specifies the amount of gap to be added in millis between DTMF tones. When a non-zero value
1355 * is specified, the UE shall wait for the specified amount of time before it sends out
1356 * successive DTMF tones on the network.
Roshan Piusdc364fe2015-09-10 10:28:06 -07001357 */
Roshan Pius9f81ce72015-08-12 12:01:42 -07001358 public static final String KEY_IMS_DTMF_TONE_DELAY_INT = "ims_dtmf_tone_delay_int";
1359
1360 /**
Roshan Piusa52c5e22015-08-14 12:58:08 -07001361 * Specifies the amount of gap to be added in millis between postdial DTMF tones. When a
1362 * non-zero value is specified, the UE shall wait for the specified amount of time before it
1363 * sends out successive DTMF tones on the network.
Roshan Piusa52c5e22015-08-14 12:58:08 -07001364 */
1365 public static final String KEY_CDMA_DTMF_TONE_DELAY_INT = "cdma_dtmf_tone_delay_int";
1366
1367 /**
Brad Ebinger110856432017-10-12 13:58:55 -07001368 * Some carriers will send call forwarding responses for voicemail in a format that is not 3gpp
1369 * compliant, which causes issues during parsing. This causes the
1370 * {@link com.android.internal.telephony.CallForwardInfo#number} to contain non-numerical
1371 * characters instead of a number.
1372 *
1373 * If true, we will detect the non-numerical characters and replace them with "Voicemail".
1374 * @hide
1375 */
1376 public static final String KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL =
1377 "call_forwarding_map_non_number_to_voicemail_bool";
1378
1379 /**
Hall Liu788d01b2019-07-23 18:39:15 -07001380 * When {@code true}, the phone will always tell the IMS stack to keep RTT enabled and
1381 * determine on a per-call basis (based on extras from the dialer app) whether a call should be
1382 * an RTT call or not.
1383 *
1384 * When {@code false}, the old behavior is used, where the toggle in accessibility settings is
1385 * used to set the IMS stack's RTT enabled state.
Hall Liu788d01b2019-07-23 18:39:15 -07001386 */
1387 public static final String KEY_IGNORE_RTT_MODE_SETTING_BOOL =
1388 "ignore_rtt_mode_setting_bool";
1389
Ravi Paluri80aa2142019-12-02 11:57:37 +05301390
1391 /**
1392 * Determines whether adhoc conference calls are supported by a carrier. When {@code true},
1393 * adhoc conference calling is supported, {@code false otherwise}.
1394 */
1395 public static final String KEY_SUPPORT_ADHOC_CONFERENCE_CALLS_BOOL =
1396 "support_adhoc_conference_calls_bool";
1397
Hall Liu788d01b2019-07-23 18:39:15 -07001398 /**
Grace Jia8587ee52020-07-10 15:42:32 -07001399 * Determines whether conference participants can be added to existing call to form an adhoc
1400 * conference call (in contrast to merging calls to form a conference). When {@code true},
Ravi Paluri404babb2020-01-23 19:02:44 +05301401 * adding conference participants to existing call is supported, {@code false otherwise}.
1402 */
1403 public static final String KEY_SUPPORT_ADD_CONFERENCE_PARTICIPANTS_BOOL =
1404 "support_add_conference_participants_bool";
1405
1406 /**
Sungmin Choi8c651ae2015-08-14 15:55:13 -07001407 * Determines whether conference calls are supported by a carrier. When {@code true},
1408 * conference calling is supported, {@code false otherwise}.
Sungmin Choi8c651ae2015-08-14 15:55:13 -07001409 */
1410 public static final String KEY_SUPPORT_CONFERENCE_CALL_BOOL = "support_conference_call_bool";
1411
1412 /**
Tyler Gunnec5b6e32016-12-01 19:40:30 -08001413 * Determines whether a maximum size limit for IMS conference calls is enforced on the device.
1414 * When {@code true}, IMS conference calls will be limited to at most
Tyler Gunn64c43a32021-10-12 09:27:19 -07001415 * {@link #KEY_IMS_CONFERENCE_SIZE_LIMIT_INT} participants. When {@code false}, no attempt is
1416 * made to limit the number of participants in a conference (the carrier will raise an error
1417 * when an attempt is made to merge too many participants into a conference).
1418 * <p>
1419 * Note: The maximum size of a conference can ONLY be supported where
1420 * {@link #KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL} is {@code true} since the platform
1421 * needs conference event package data to accurately know the number of participants in the
1422 * conference.
Tyler Gunnec5b6e32016-12-01 19:40:30 -08001423 */
1424 public static final String KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL =
1425 "is_ims_conference_size_enforced_bool";
1426
1427 /**
1428 * Determines the maximum number of participants the carrier supports for a conference call.
1429 * This number is exclusive of the current device. A conference between 3 devices, for example,
1430 * would have a size limit of 2 participants.
1431 * Enforced when {@link #KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL} is {@code true}.
1432 */
1433 public static final String KEY_IMS_CONFERENCE_SIZE_LIMIT_INT = "ims_conference_size_limit_int";
1434
1435 /**
Wei Huang594039c2016-04-22 14:33:55 +08001436 * Determines whether manage IMS conference calls is supported by a carrier. When {@code true},
1437 * manage IMS conference call is supported, {@code false otherwise}.
1438 * @hide
1439 */
1440 public static final String KEY_SUPPORT_MANAGE_IMS_CONFERENCE_CALL_BOOL =
1441 "support_manage_ims_conference_call_bool";
1442
1443 /**
Youming Yed5472f72019-05-21 13:10:48 -07001444 * Determines whether the IMS conference merge process supports and returns its participants
1445 * data. When {@code true}, on merge complete, conference call would have a list of its
1446 * participants returned in XML format, {@code false otherwise}.
Youming Yed5472f72019-05-21 13:10:48 -07001447 */
1448 public static final String KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL =
1449 "support_ims_conference_event_package_bool";
1450
1451 /**
Tyler Gunn60e5f7c2020-04-06 15:07:48 -07001452 * Determines whether processing of conference event package data received on a device other
1453 * than the conference host is supported.
1454 * <p>
1455 * When a device A merges calls B and C into a conference it is considered the conference host
1456 * and B and C are considered the conference peers.
1457 * <p>
1458 * When {@code true}, the conference peer will display the conference state if it receives
1459 * conference event package data from the network. When {@code false}, the conference peer will
1460 * ignore conference event package data received from the network.
1461 * @hide
1462 */
1463 public static final String KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_ON_PEER_BOOL =
1464 "support_ims_conference_event_package_on_peer_bool";
1465
1466 /**
Tyler Gunn0ba79072021-03-02 09:19:55 -08001467 * Indicates whether the carrier supports the use of RFC8285 compliant RTP header extensions for
1468 * the purpose of device to device communication while in a call.
1469 * <p>
1470 * See also {@link #KEY_SUPPORTS_SDP_NEGOTIATION_OF_D2D_RTP_HEADER_EXTENSIONS_BOOL}.
1471 */
1472 public static final String KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_RTP_BOOL =
1473 "supports_device_to_device_communication_using_rtp_bool";
1474
1475 /**
1476 * Indicates whether the carrier supports the negotiations of RFC8285 compliant RTP header
1477 * extensions supported on a call during the Session Description Protocol (SDP). This option
1478 * is only used when {@link #KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_RTP_BOOL} is
1479 * {@code true}.
1480 * <p>
1481 * When {@code true}, the RTP header extensions the platform uses for device to device
1482 * communication will be offered to the remote end during the SDP negotiation process.
1483 * When {@code false}, the RTP header extensions will not be negotiated during the SDP
1484 * negotiation process and the platform will send RTP header extensions without prior
1485 * negotiation if {@link #KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_RTP_BOOL} is
1486 * {@code true}.
1487 */
1488 public static final String KEY_SUPPORTS_SDP_NEGOTIATION_OF_D2D_RTP_HEADER_EXTENSIONS_BOOL =
1489 "supports_sdp_negotiation_of_d2d_rtp_header_extensions_bool";
1490
1491 /**
1492 * Indicates whether the carrier supports the use of DTMF digits A-D for the purpose of device
1493 * to device communication while in a call.
1494 */
1495 public static final String KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_DTMF_BOOL =
1496 "supports_device_to_device_communication_using_dtmf_bool";
1497
1498 /**
Wei Huang237d7752016-03-01 17:02:40 +08001499 * Determines whether High Definition audio property is displayed in the dialer UI.
1500 * If {@code false}, remove the HD audio property from the connection so that HD audio related
1501 * UI is not displayed. If {@code true}, keep HD audio property as it is configured.
Wei Huang237d7752016-03-01 17:02:40 +08001502 */
1503 public static final String KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL =
1504 "display_hd_audio_property_bool";
1505
1506 /**
Wei Huanga8ad1522016-03-01 15:25:04 +08001507 * Determines whether IMS conference calls are supported by a carrier. When {@code true},
1508 * IMS conference calling is supported, {@code false} otherwise.
1509 * @hide
1510 */
1511 public static final String KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL =
1512 "support_ims_conference_call_bool";
1513
1514 /**
Tyler Gunn4eb18912020-04-07 19:01:15 -07001515 * Determines whether the device will locally disconnect an IMS conference when the participant
1516 * count drops to zero. When {@code true}, it is assumed the carrier does NOT disconnect a
1517 * conference when the participant count drops to zero and that the device must do this by
1518 * disconnecting the conference locally. When {@code false}, it is assumed that the carrier
1519 * is responsible for disconnecting the conference when there are no longer any participants
1520 * present.
1521 * <p>
1522 * Note: both {@link #KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL} and
1523 * {@link #KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL} must be true for this configuration to
1524 * have any effect.
1525 * <p>
1526 * Defaults to {@code false}, meaning the carrier network is responsible for disconnecting an
1527 * empty IMS conference.
1528 * @hide
1529 */
1530 public static final String KEY_LOCAL_DISCONNECT_EMPTY_IMS_CONFERENCE_BOOL =
1531 "local_disconnect_empty_ims_conference_bool";
1532
1533 /**
Tyler Gunnee61c622016-04-19 16:17:19 -07001534 * Determines whether video conference calls are supported by a carrier. When {@code true},
1535 * video calls can be merged into conference calls, {@code false} otherwiwse.
1536 * <p>
1537 * Note: even if video conference calls are not supported, audio calls may be merged into a
1538 * conference if {@link #KEY_SUPPORT_CONFERENCE_CALL_BOOL} is {@code true}.
1539 * @hide
1540 */
1541 public static final String KEY_SUPPORT_VIDEO_CONFERENCE_CALL_BOOL =
1542 "support_video_conference_call_bool";
1543
1544 /**
Sungmin Choi8d2826b2015-08-25 23:30:34 -07001545 * Determine whether user can toggle Enhanced 4G LTE Mode in Settings.
Sungmin Choi8d2826b2015-08-25 23:30:34 -07001546 */
1547 public static final String KEY_EDITABLE_ENHANCED_4G_LTE_BOOL = "editable_enhanced_4g_lte_bool";
1548
1549 /**
yinxu34016ae2017-03-14 15:36:17 -07001550 * Determines whether the Enhanced 4G LTE toggle will be shown in the settings. When this
1551 * option is {@code true}, the toggle will be hidden regardless of whether the device and
1552 * carrier supports 4G LTE or not.
1553 */
1554 public static final String KEY_HIDE_ENHANCED_4G_LTE_BOOL = "hide_enhanced_4g_lte_bool";
1555
1556 /**
Brad Ebingerfd880802018-11-08 17:41:54 -08001557 * Sets the default state for the "Enhanced 4G LTE" or "Advanced Calling" mode toggle set by the
1558 * user. When this is {@code true}, this mode by default is on, otherwise if {@code false},
1559 * this mode by default is off.
manabu, shimoda14723e32017-10-06 14:39:01 +09001560 */
1561 public static final String KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL =
1562 "enhanced_4g_lte_on_by_default_bool";
1563
1564 /**
Sungmin Choie9d3c112015-08-31 15:32:20 -07001565 * Determine whether IMS apn can be shown.
Sungmin Choie9d3c112015-08-31 15:32:20 -07001566 */
1567 public static final String KEY_HIDE_IMS_APN_BOOL = "hide_ims_apn_bool";
1568
1569 /**
Sungmin Choic03a1da2015-09-08 15:34:23 -07001570 * Determine whether preferred network type can be shown.
Sungmin Choic03a1da2015-09-08 15:34:23 -07001571 */
1572 public static final String KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL = "hide_preferred_network_type_bool";
1573
1574 /**
Junda Liu85313282017-03-28 13:58:51 -07001575 * String array for package names that need to be enabled for this carrier.
1576 * If user has explicitly disabled some packages in the list, won't re-enable.
1577 * Other carrier specific apps which are not in this list may be disabled for current carrier,
1578 * and only be re-enabled when this config for another carrier includes it.
Meng Wangd5e1af52018-03-23 16:25:03 -07001579 *
1580 * @hide
Junda Liu85313282017-03-28 13:58:51 -07001581 */
1582 public static final String KEY_ENABLE_APPS_STRING_ARRAY = "enable_apps_string_array";
1583
1584 /**
Sarah China912e112020-01-09 10:43:30 -08001585 * Determine whether user can switch Wi-Fi preferred or Cellular preferred
1586 * in calling preference.
Sungmin Choid3b28262015-12-23 14:10:41 +09001587 * Some operators support Wi-Fi Calling only, not VoLTE.
1588 * They don't need "Cellular preferred" option.
Sarah China912e112020-01-09 10:43:30 -08001589 * In this case, set uneditable attribute for preferred preference.
Sungmin Choid3b28262015-12-23 14:10:41 +09001590 */
1591 public static final String KEY_EDITABLE_WFC_MODE_BOOL = "editable_wfc_mode_bool";
1592
Sarah China912e112020-01-09 10:43:30 -08001593 /**
1594 * Flag to indicate if Wi-Fi needs to be disabled in ECBM.
1595 */
1596 public static final String KEY_CONFIG_WIFI_DISABLE_IN_ECBM = "config_wifi_disable_in_ecbm";
Sunil Dutt7c5fda82016-04-05 22:08:57 +05301597
Sungmin Choid3b28262015-12-23 14:10:41 +09001598 /**
Pavel Zhamaitsiak7b7c4fc2016-04-12 14:24:07 -07001599 * List operator-specific error codes and indices of corresponding error strings in
1600 * wfcOperatorErrorAlertMessages and wfcOperatorErrorNotificationMessages.
1601 *
1602 * Example: "REG09|0" specifies error code "REG09" and index "0". This index will be
1603 * used to find alert and notification messages in wfcOperatorErrorAlertMessages and
1604 * wfcOperatorErrorNotificationMessages.
1605 *
1606 * @hide
1607 */
1608 public static final String KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY =
1609 "wfc_operator_error_codes_string_array";
1610
1611 /**
Torbjorn Eklunda765a472018-09-24 17:45:23 +02001612 * Indexes of SPN format strings in wfcSpnFormats.
Torbjorn Eklund57684832018-08-21 16:12:42 +02001613 *
1614 * <p>Available options are:
1615 * <ul>
Torbjorn Eklunda765a472018-09-24 17:45:23 +02001616 * <li> 0: %s</li>
1617 * <li> 1: %s Wi-Fi Calling</li>
1618 * <li> 2: WLAN Call</li>
1619 * <li> 3: %s WLAN Call</li>
1620 * <li> 4: %s Wi-Fi</li>
1621 * <li> 5: WiFi Calling | %s</li>
1622 * <li> 6: %s VoWifi</li>
1623 * <li> 7: Wi-Fi Calling</li>
1624 * <li> 8: Wi-Fi</li>
1625 * <li> 9: WiFi Calling</li>
1626 * <li> 10: VoWifi</li>
Pengquan Meng7f47da02019-05-29 14:56:25 -07001627 * <li> 11: %s WiFi Calling</li>
Pavel Zhamaitsiak7b7c4fc2016-04-12 14:24:07 -07001628 * @hide
1629 */
1630 public static final String KEY_WFC_SPN_FORMAT_IDX_INT = "wfc_spn_format_idx_int";
Torbjorn Eklunda765a472018-09-24 17:45:23 +02001631
1632 /**
1633 * Indexes of data SPN format strings in wfcSpnFormats.
1634 *
1635 * @see KEY_WFC_SPN_FORMAT_IDX_INT for available options.
1636 * @hide
1637 */
Pavel Zhamaitsiak7b7c4fc2016-04-12 14:24:07 -07001638 public static final String KEY_WFC_DATA_SPN_FORMAT_IDX_INT = "wfc_data_spn_format_idx_int";
1639
1640 /**
Torbjorn Eklunda765a472018-09-24 17:45:23 +02001641 * Indexes of SPN format strings in wfcSpnFormats used during flight mode.
1642 *
1643 * Set to -1 to use the value from KEY_WFC_SPN_FORMAT_IDX_INT also in this case.
1644 * @see KEY_WFC_SPN_FORMAT_IDX_INT for other available options.
1645 * @hide
1646 */
1647 public static final String KEY_WFC_FLIGHT_MODE_SPN_FORMAT_IDX_INT =
1648 "wfc_flight_mode_spn_format_idx_int";
1649
1650 /**
Torbjorn Eklund99c11d82018-08-21 16:06:47 +02001651 * Use root locale when reading wfcSpnFormats.
1652 *
1653 * If true, then the root locale will always be used when reading wfcSpnFormats. This means the
1654 * non localized version of wfcSpnFormats will be used.
1655 * @hide
1656 */
1657 public static final String KEY_WFC_SPN_USE_ROOT_LOCALE = "wfc_spn_use_root_locale";
1658
1659 /**
Sarah China912e112020-01-09 10:43:30 -08001660 * The Component Name of the activity that can setup the emergency address for WiFi Calling
Vineeta Srivastavac7d7ab7f2016-05-14 11:05:28 -07001661 * as per carrier requirement.
Vineeta Srivastavac7d7ab7f2016-05-14 11:05:28 -07001662 */
1663 public static final String KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING =
1664 "wfc_emergency_address_carrier_app_string";
1665
1666 /**
Nathan Harold8366bcb2018-02-28 14:57:54 -08001667 * Unconditionally override the carrier name string using #KEY_CARRIER_NAME_STRING.
1668 *
Nathan Harold178020a2018-04-06 11:27:40 -07001669 * If true, then the carrier name string will be #KEY_CARRIER_NAME_STRING, unconditionally.
Nathan Harold8366bcb2018-02-28 14:57:54 -08001670 *
1671 * <p>If false, then the override will be performed conditionally and the
1672 * #KEY_CARRIER_NAME_STRING will have the lowest-precedence; it will only be used in the event
Nathan Harold178020a2018-04-06 11:27:40 -07001673 * that the name string would otherwise be empty, allowing it to serve as a last-resort. If
1674 * used, this value functions in place of the SPN on any/all ICC records for the corresponding
1675 * subscription.
Sanket Padawe49b20422016-06-01 12:17:23 -07001676 */
1677 public static final String KEY_CARRIER_NAME_OVERRIDE_BOOL = "carrier_name_override_bool";
1678
1679 /**
Nathan Haroldbaaa68d2018-01-15 10:48:00 -08001680 * String to identify carrier name in CarrierConfig app. This string overrides SPN if
1681 * #KEY_CARRIER_NAME_OVERRIDE_BOOL is true; otherwise, it will be used if its value is provided
1682 * and SPN is unavailable
Sanket Padawe49b20422016-06-01 12:17:23 -07001683 */
1684 public static final String KEY_CARRIER_NAME_STRING = "carrier_name_string";
1685
chen xu6b736ee2018-12-02 14:14:15 -08001686 /**
SongFerngWangd1b16442020-06-16 18:39:35 +08001687 * To override wifi calling's carrier name string using ef_pnn from sim card when SPN in empty.
1688 *
1689 * @hide
1690 */
1691 public static final String KEY_WFC_CARRIER_NAME_OVERRIDE_BY_PNN_BOOL =
1692 "wfc_carrier_name_override_by_pnn_bool";
1693
1694 /**
Sooraj Sasindran12765912021-03-10 11:02:55 -08001695 * Specifies SPN format of displaying carrier name only.
Sooraj Sasindran83ff8ad2020-11-23 23:42:51 -08001696 *
1697 */
1698 public static final int CROSS_SIM_SPN_FORMAT_CARRIER_NAME_ONLY = 0;
1699
1700 /**
Sooraj Sasindran12765912021-03-10 11:02:55 -08001701 * Specifies SPN format of displaying carrier name along with "Cross-SIM calling".
Sooraj Sasindran83ff8ad2020-11-23 23:42:51 -08001702 */
1703 public static final int CROSS_SIM_SPN_FORMAT_CARRIER_NAME_WITH_BRANDING = 1;
1704
1705 /**
1706 * Indexes of SPN format strings in crossSimSpnFormats.
1707 *
1708 * <p>Available options are:
1709 * <ul>
Sooraj Sasindran12765912021-03-10 11:02:55 -08001710 * <li> {@link #CROSS_SIM_SPN_FORMAT_CARRIER_NAME_ONLY}: %s</li>
1711 * <li> {@link #CROSS_SIM_SPN_FORMAT_CARRIER_NAME_WITH_BRANDING}: %s Cross-SIM Calling</li>
Sooraj Sasindran83ff8ad2020-11-23 23:42:51 -08001712 * </ul>
1713 * %s will be filled with carrier name
1714 */
1715 public static final String KEY_CROSS_SIM_SPN_FORMAT_INT = "cross_sim_spn_format_int";
1716
1717 /**
Pengquan Meng057b94f2019-04-17 19:36:58 -07001718 * Override the SPN Display Condition 2 integer bits (lsb). B2, B1 is the last two bits of the
1719 * spn display condition coding.
1720 *
Pengquan Mengb4a53fd2019-04-23 13:55:02 -07001721 * The default value -1 mean this field is not set.
Pengquan Meng057b94f2019-04-17 19:36:58 -07001722 *
1723 * B1 = 0: display of registered PLMN name not required when registered PLMN is either HPLMN
1724 * or a PLMN in the service provider PLMN list (see EF_SPDI).
1725 * B1 = 1: display of registered PLMN name required when registered PLMN is either HPLMN or a
1726 * PLMN in the service provider PLMN list(see EF_SPDI).
1727 * B2 = 0: display of the service provider name is required when registered PLMN is neither
1728 * HPLMN nor a PLMN in the service provider PLMN list(see EF_SPDI).
1729 * B2 = 1: display of the service provider name is not required when registered PLMN is neither
1730 * HPLMN nor a PLMN in the service provider PLMN list(see EF_SPDI).
1731 *
1732 * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.12 EF_SPN.
1733 * @hide
1734 */
1735 public static final String KEY_SPN_DISPLAY_CONDITION_OVERRIDE_INT =
1736 "spn_display_condition_override_int";
1737
1738 /**
1739 * Override the SPDI - an array of PLMN(MCC + MNC) strings.
1740 *
1741 * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.66 EF_SPDI.
1742 * @hide
1743 */
1744 public static final String KEY_SPDI_OVERRIDE_STRING_ARRAY = "spdi_override_string_array";
1745
1746 /**
1747 * Override the EHPLMNs - an array of PLMN(MCC + MNC) strings.
1748 *
1749 * To allow provision for multiple HPLMN codes, PLMN codes that are present within this list
1750 * shall replace the HPLMN code derived from the IMSI for PLMN selection purposes.
1751 *
1752 * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.84 EF_EHPLMN
1753 * Reference: 3GPP TS 23.122 v15.6.0 Section 1.2 Equivalent HPLMN list
1754 * @hide
1755 */
1756 public static final String KEY_EHPLMN_OVERRIDE_STRING_ARRAY = "ehplmn_override_string_array";
1757
1758 /**
1759 * Override the PNN - a string array of comma-separated alpha long and short names:
Pengquan Mengb4a53fd2019-04-23 13:55:02 -07001760 * "alpha_long1,alpha_short1".
Pengquan Meng057b94f2019-04-17 19:36:58 -07001761 *
1762 * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.58 EF_PNN.
1763 * @hide
1764 */
1765 public static final String KEY_PNN_OVERRIDE_STRING_ARRAY = "pnn_override_string_array";
1766
1767 /**
1768 * A string array of OPL records, each with comma-delimited data fields as follows:
1769 * "plmn1,lactac_start,lactac_end,index".
1770 *
1771 * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.59 EF_OPL.
1772 * @hide
1773 */
1774 public static final String KEY_OPL_OVERRIDE_STRING_ARRAY = "opl_override_opl_string_array";
1775
1776 /**
1777 * Allow ERI rules to select a carrier name display string when using 3gpp2 access technologies.
Pengquan Mengb4a53fd2019-04-23 13:55:02 -07001778 * If this bit is not set, the carrier name display string will be selected from the carrier
1779 * display name resolver which doesn't apply the ERI rules.
Pengquan Meng057b94f2019-04-17 19:36:58 -07001780 *
1781 * @hide
1782 */
1783 public static final String KEY_ALLOW_ERI_BOOL = "allow_cdma_eri_bool";
1784
1785 /**
1786 * If true, use the carrier display name(SPN and PLMN) from the carrier display name resolver.
1787 *
1788 * @hide
1789 */
1790 public static final String KEY_ENABLE_CARRIER_DISPLAY_NAME_RESOLVER_BOOL =
1791 "enable_carrier_display_name_resolver_bool";
1792
1793 /**
chen xu6b736ee2018-12-02 14:14:15 -08001794 * String to override sim country iso.
1795 * Sim country iso is based on sim MCC which is coarse and doesn't work with dual IMSI SIM where
1796 * a SIM can have multiple MCC from different countries.
1797 * Instead, each sim carrier should have a single country code, apply per carrier based iso
1798 * code as an override. The overridden value can be read from
1799 * {@link TelephonyManager#getSimCountryIso()} and {@link SubscriptionInfo#getCountryIso()}
1800 *
1801 * @hide
1802 */
1803 public static final String KEY_SIM_COUNTRY_ISO_OVERRIDE_STRING =
1804 "sim_country_iso_override_string";
1805
1806 /**
1807 * The Component Name of a carrier-provided CallScreeningService implementation. Telecom will
1808 * bind to {@link android.telecom.CallScreeningService} for ALL incoming calls and provide
1809 * the carrier
1810 * CallScreeningService with the opportunity to allow or block calls.
1811 * <p>
1812 * The String includes the package name/the class name.
1813 * Example:
1814 * <item>com.android.carrier/com.android.carrier.callscreeningserviceimpl</item>
1815 * <p>
1816 * Using {@link ComponentName#flattenToString()} to convert a ComponentName object to String.
1817 * Using {@link ComponentName#unflattenFromString(String)} to convert a String object to a
1818 * ComponentName.
1819 */
tonyzhucd0a63d2018-10-11 14:31:26 +08001820 public static final String KEY_CARRIER_CALL_SCREENING_APP_STRING = "call_screening_app";
1821
1822 /**
Amit Mahajan22e89f42018-06-05 16:27:32 -07001823 * Override the registered PLMN name using #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING.
1824 *
1825 * If true, then the registered PLMN name (only for CDMA/CDMA-LTE and only when not roaming)
1826 * will be #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING. If false, or if phone type is not
1827 * CDMA/CDMA-LTE or if roaming, then #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING will be ignored.
1828 * @hide
1829 */
1830 public static final String KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL =
1831 "cdma_home_registered_plmn_name_override_bool";
1832
1833 /**
1834 * String to identify registered PLMN name in CarrierConfig app. This string overrides
1835 * registered PLMN name if #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL is true, phone type
1836 * is CDMA/CDMA-LTE and device is not in roaming state; otherwise, it will be ignored.
1837 * @hide
1838 */
1839 public static final String KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING =
1840 "cdma_home_registered_plmn_name_string";
1841
1842 /**
Jonathan Basseri019523a2015-06-19 11:07:22 -07001843 * If this is true, the SIM card (through Customer Service Profile EF file) will be able to
1844 * prevent manual operator selection. If false, this SIM setting will be ignored and manual
1845 * operator selection will always be available. See CPHS4_2.WW6, CPHS B.4.7.1 for more
1846 * information
1847 */
1848 public static final String KEY_CSP_ENABLED_BOOL = "csp_enabled_bool";
1849
Amit Mahajan412e7c82015-10-05 11:05:02 -07001850 /**
1851 * Allow user to add APNs
Amit Mahajan412e7c82015-10-05 11:05:02 -07001852 */
1853 public static final String KEY_ALLOW_ADDING_APNS_BOOL = "allow_adding_apns_bool";
1854
Amit Mahajan0c081482016-01-12 18:25:33 -08001855 /**
Sarah China912e112020-01-09 10:43:30 -08001856 * APN types that user is not allowed to modify.
Amit Mahajand7bb9072016-09-14 18:12:11 -07001857 */
1858 public static final String KEY_READ_ONLY_APN_TYPES_STRING_ARRAY =
1859 "read_only_apn_types_string_array";
1860
1861 /**
Sarah China912e112020-01-09 10:43:30 -08001862 * APN fields that user is not allowed to modify.
Amit Mahajan71e9ea62016-09-20 10:57:47 -07001863 */
1864 public static final String KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY =
1865 "read_only_apn_fields_string_array";
1866
1867 /**
SongFerngWangc87140c2019-08-19 22:51:46 +08001868 * Default value of APN types field if not specified by user when adding/modifying an APN.
SongFerngWangc87140c2019-08-19 22:51:46 +08001869 */
1870 public static final String KEY_APN_SETTINGS_DEFAULT_APN_TYPES_STRING_ARRAY =
1871 "apn_settings_default_apn_types_string_array";
1872
1873 /**
Bonian Chen94ae34a2020-01-17 05:49:54 +08001874 * Configs used for APN setup.
1875 */
1876 public static final class Apn {
tom hsu251c44a2021-02-20 17:23:31 +08001877 /**
1878 * Prefix of all Apn.KEY_* constants.
1879 *
1880 * @deprecated Since KEY_PREFIX is unnecessary to public, it will modify to private
1881 * next android generation.
1882 */
1883 @Deprecated
1884 public static final String KEY_PREFIX = "apn.";
Bonian Chen94ae34a2020-01-17 05:49:54 +08001885
1886 /** IPv4 internet protocol */
1887 public static final String PROTOCOL_IPV4 = "IP";
1888 /** IPv6 internet protocol */
1889 public static final String PROTOCOL_IPV6 = "IPV6";
1890 /** IPv4 or IPv6 internet protocol */
1891 public static final String PROTOCOL_IPV4V6 = "IPV4V6";
1892
1893 /**
1894 * Default value of APN protocol field if not specified by user when adding/modifying
1895 * an APN.
1896 *
1897 * Available options are: {@link #PROTOCOL_IPV4}, {@link #PROTOCOL_IPV6},
1898 * {@link #PROTOCOL_IPV4V6}
1899 */
1900 public static final String KEY_SETTINGS_DEFAULT_PROTOCOL_STRING =
1901 KEY_PREFIX + "settings_default_protocol_string";
1902
1903 /**
1904 * Default value of APN roaming protocol field if not specified by user when
1905 * adding/modifying an APN.
1906 *
1907 * Available options are: {@link #PROTOCOL_IPV4}, {@link #PROTOCOL_IPV6},
1908 * {@link #PROTOCOL_IPV4V6}
1909 */
1910 public static final String KEY_SETTINGS_DEFAULT_ROAMING_PROTOCOL_STRING =
1911 KEY_PREFIX + "settings_default_roaming_protocol_string";
1912
1913 private Apn() {}
1914
1915 private static PersistableBundle getDefaults() {
1916 PersistableBundle defaults = new PersistableBundle();
1917 defaults.putString(KEY_SETTINGS_DEFAULT_PROTOCOL_STRING, "");
1918 defaults.putString(KEY_SETTINGS_DEFAULT_ROAMING_PROTOCOL_STRING, "");
1919 return defaults;
1920 }
1921 }
1922
1923 /**
Amit Mahajan0c081482016-01-12 18:25:33 -08001924 * Boolean indicating if intent for emergency call state changes should be broadcast
1925 * @hide
1926 */
1927 public static final String KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL =
1928 "broadcast_emergency_call_state_changes_bool";
1929
Jack Yubf0fd722016-05-03 11:53:30 -07001930 /**
Sooraj Sasindran6a3d36f2016-10-13 11:36:34 -07001931 * Indicates whether STK LAUNCH_BROWSER command is disabled.
1932 * If {@code true}, then the browser will not be launched
1933 * on UI for the LAUNCH_BROWSER STK command.
1934 * @hide
1935 */
1936 public static final String KEY_STK_DISABLE_LAUNCH_BROWSER_BOOL =
1937 "stk_disable_launch_browser_bool";
1938
Wenting Xiong63364fe2017-02-07 19:12:27 +08001939 /**
Yoshiaki Naka1c5203a62019-02-21 18:40:03 +09001940 * Boolean indicating if the helper text for STK GET INKEY/INPUT commands with the digit only
1941 * mode is displayed on the input screen.
1942 * The helper text is dispayed regardless of the input mode, if {@code false}.
1943 * @hide
1944 */
1945 public static final String KEY_HIDE_DIGITS_HELPER_TEXT_ON_STK_INPUT_SCREEN_BOOL =
1946 "hide_digits_helper_text_on_stk_input_screen_bool";
1947
1948 /**
Sarah China912e112020-01-09 10:43:30 -08001949 * Boolean indicating if show data RAT icon on status bar even when data is disabled.
Wenting Xiong63364fe2017-02-07 19:12:27 +08001950 */
1951 public static final String KEY_ALWAYS_SHOW_DATA_RAT_ICON_BOOL =
1952 "always_show_data_rat_icon_bool";
Sooraj Sasindran6a3d36f2016-10-13 11:36:34 -07001953
Wenting Xiongf21f3cf2016-04-01 15:25:45 +08001954 /**
Sarah China912e112020-01-09 10:43:30 -08001955 * Boolean indicating if default data account should show LTE or 4G icon.
Niklas Lindgrena02964d2018-09-21 14:01:57 +02001956 */
1957 public static final String KEY_SHOW_4G_FOR_LTE_DATA_ICON_BOOL =
1958 "show_4g_for_lte_data_icon_bool";
1959
1960 /**
kimmy.yang2d5fd292021-12-29 16:52:39 +08001961 * Boolean indicating if default data account should show 4G LTE or 4G icon.
1962 * @hide
1963 */
1964 public static final String KEY_SHOW_4GLTE_FOR_LTE_DATA_ICON_BOOL =
1965 "show_4glte_for_lte_data_icon_bool";
1966
1967 /**
vagdevi3f2b9a52019-08-09 09:45:14 -07001968 * Boolean indicating if default data account should show 4G icon when in 3G.
vagdevi3f2b9a52019-08-09 09:45:14 -07001969 */
1970 public static final String KEY_SHOW_4G_FOR_3G_DATA_ICON_BOOL =
1971 "show_4g_for_3g_data_icon_bool";
1972
1973 /**
Sarah China912e112020-01-09 10:43:30 -08001974 * Boolean indicating if LTE+ icon should be shown if available.
Niklas Lindgrena02964d2018-09-21 14:01:57 +02001975 */
1976 public static final String KEY_HIDE_LTE_PLUS_DATA_ICON_BOOL =
1977 "hide_lte_plus_data_icon_bool";
1978
1979 /**
Sarah Chinea9d40e2020-08-12 19:38:02 -07001980 * The combined channel bandwidth threshold (non-inclusive) in KHz required to display the
1981 * LTE+ data icon. It is 20000 by default, meaning the LTE+ icon will be shown if the device is
1982 * using carrier aggregation and the combined channel bandwidth is strictly greater than 20 MHz.
1983 * @hide
1984 */
1985 public static final String KEY_LTE_PLUS_THRESHOLD_BANDWIDTH_KHZ_INT =
1986 "lte_plus_threshold_bandwidth_khz_int";
1987
1988 /**
Jack Yu5e7b8532021-10-19 21:21:28 -07001989 * The combined channel bandwidth threshold (non-inclusive) in KHz required to display the
1990 * NR advanced (i.e. 5G+) data icon. It is 0 by default, meaning minimum bandwidth check is
1991 * not enabled. Other factors like bands or frequency can also determine whether the NR
1992 * advanced data icon is shown or not.
1993 *
1994 * @see #KEY_ADDITIONAL_NR_ADVANCED_BANDS_INT_ARRAY
1995 * @see #KEY_NR_ADVANCED_CAPABLE_PCO_ID_INT
1996 *
1997 * @hide
1998 */
1999 public static final String KEY_NR_ADVANCED_THRESHOLD_BANDWIDTH_KHZ_INT =
2000 "nr_advanced_threshold_bandwidth_khz_int";
2001
2002 /**
Sarah Chin62b6e992022-11-23 14:47:25 -08002003 * Indicating whether to include LTE cell bandwidths when determining whether the aggregated
2004 * cell bandwidth meets the required threshold for NR advanced.
2005 *
2006 * @see TelephonyDisplayInfo#OVERRIDE_NETWORK_TYPE_NR_ADVANCED
2007 *
2008 * @hide
2009 */
2010 public static final String KEY_INCLUDE_LTE_FOR_NR_ADVANCED_THRESHOLD_BANDWIDTH_BOOL =
2011 "include_lte_for_nr_advanced_threshold_bandwidth_bool";
2012
2013 /**
Niklas Lindgren7ef2acb2018-10-01 11:09:43 +02002014 * Boolean indicating if operator name should be shown in the status bar
2015 * @hide
2016 */
2017 public static final String KEY_SHOW_OPERATOR_NAME_IN_STATUSBAR_BOOL =
2018 "show_operator_name_in_statusbar_bool";
2019
2020 /**
SongFerngWang2d178ea2019-03-21 23:14:20 +08002021 * The string is used to filter redundant string from PLMN Network Name that's supplied by
2022 * specific carrier.
2023 *
2024 * @hide
2025 */
2026 public static final String KEY_OPERATOR_NAME_FILTER_PATTERN_STRING =
2027 "operator_name_filter_pattern_string";
2028
2029 /**
Sarah China912e112020-01-09 10:43:30 -08002030 * The string is used to compare with operator name.
2031 * If it matches the pattern then show specific data icon.
Sarah Chinb800cbd2020-02-19 12:25:36 -08002032 * @hide
SongFerngWang2d178ea2019-03-21 23:14:20 +08002033 */
2034 public static final String KEY_SHOW_CARRIER_DATA_ICON_PATTERN_STRING =
2035 "show_carrier_data_icon_pattern_string";
2036
2037 /**
Wenting Xiongf21f3cf2016-04-01 15:25:45 +08002038 * Boolean to decide whether to show precise call failed cause to user
2039 * @hide
2040 */
2041 public static final String KEY_SHOW_PRECISE_FAILED_CAUSE_BOOL =
2042 "show_precise_failed_cause_bool";
2043
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07002044 /**
SongFerngWangc42f2692021-03-11 13:18:32 +08002045 * A list of carrier nr availability is used to determine whether the carrier enable the
2046 * non-standalone (NSA) mode of 5G NR, standalone (SA) mode of 5G NR
SongFerngWang7d951852020-12-21 16:24:25 +08002047 *
SongFerngWangc42f2692021-03-11 13:18:32 +08002048 * <p> The value of list is
2049 * {@link #CARRIER_NR_AVAILABILITY_NSA}, or {@link #CARRIER_NR_AVAILABILITY_SA}.
SongFerngWang7d951852020-12-21 16:24:25 +08002050 *
SongFerngWangc42f2692021-03-11 13:18:32 +08002051 * <p> For example, if both NSA and SA are used, the list value is {
2052 * {@link #CARRIER_NR_AVAILABILITY_NSA},{@link #CARRIER_NR_AVAILABILITY_SA}}.
2053 * If the carrier doesn't support 5G NR, the value is the empty array.
2054 * If the key is invalid or not configured, the default value {
2055 * {@link #CARRIER_NR_AVAILABILITY_NSA},{@link #CARRIER_NR_AVAILABILITY_SA}} will apply.
Sarah Chin39c87c62020-05-13 23:41:52 -07002056 */
SongFerngWangc42f2692021-03-11 13:18:32 +08002057 public static final String KEY_CARRIER_NR_AVAILABILITIES_INT_ARRAY =
2058 "carrier_nr_availabilities_int_array";
Sarah Chin39c87c62020-05-13 23:41:52 -07002059
2060 /**
Sarah China912e112020-01-09 10:43:30 -08002061 * Boolean to decide whether LTE is enabled.
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07002062 */
2063 public static final String KEY_LTE_ENABLED_BOOL = "lte_enabled_bool";
2064
2065 /**
2066 * Boolean to decide whether TD-SCDMA is supported.
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07002067 */
2068 public static final String KEY_SUPPORT_TDSCDMA_BOOL = "support_tdscdma_bool";
2069
2070 /**
2071 * A list of mcc/mnc that support TD-SCDMA for device when connect to the roaming network.
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07002072 */
2073 public static final String KEY_SUPPORT_TDSCDMA_ROAMING_NETWORKS_STRING_ARRAY =
2074 "support_tdscdma_roaming_networks_string_array";
2075
2076 /**
2077 * Boolean to decide whether world mode is enabled.
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07002078 */
2079 public static final String KEY_WORLD_MODE_ENABLED_BOOL = "world_mode_enabled_bool";
2080
2081 /**
Pengquan Meng3d4e67c2018-11-07 14:54:21 -08002082 * Flatten {@link android.content.ComponentName} of the carrier's settings activity.
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07002083 */
Pengquan Meng3d4e67c2018-11-07 14:54:21 -08002084 public static final String KEY_CARRIER_SETTINGS_ACTIVITY_COMPONENT_NAME_STRING =
2085 "carrier_settings_activity_component_name_string";
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07002086
Hall Liue5b1fda2018-10-22 18:17:44 -07002087 // These variables are used by the MMS service and exposed through another API,
2088 // SmsManager. The variable names and string values are copied from there.
Jonathan Basseri69822f02015-06-04 13:48:08 -07002089 public static final String KEY_MMS_ALIAS_ENABLED_BOOL = "aliasEnabled";
2090 public static final String KEY_MMS_ALLOW_ATTACH_AUDIO_BOOL = "allowAttachAudio";
2091 public static final String KEY_MMS_APPEND_TRANSACTION_ID_BOOL = "enabledTransID";
2092 public static final String KEY_MMS_GROUP_MMS_ENABLED_BOOL = "enableGroupMms";
2093 public static final String KEY_MMS_MMS_DELIVERY_REPORT_ENABLED_BOOL = "enableMMSDeliveryReports";
2094 public static final String KEY_MMS_MMS_ENABLED_BOOL = "enabledMMS";
2095 public static final String KEY_MMS_MMS_READ_REPORT_ENABLED_BOOL = "enableMMSReadReports";
2096 public static final String KEY_MMS_MULTIPART_SMS_ENABLED_BOOL = "enableMultipartSMS";
2097 public static final String KEY_MMS_NOTIFY_WAP_MMSC_ENABLED_BOOL = "enabledNotifyWapMMSC";
2098 public static final String KEY_MMS_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES_BOOL = "sendMultipartSmsAsSeparateMessages";
2099 public static final String KEY_MMS_SHOW_CELL_BROADCAST_APP_LINKS_BOOL = "config_cellBroadcastAppLinks";
2100 public static final String KEY_MMS_SMS_DELIVERY_REPORT_ENABLED_BOOL = "enableSMSDeliveryReports";
2101 public static final String KEY_MMS_SUPPORT_HTTP_CHARSET_HEADER_BOOL = "supportHttpCharsetHeader";
2102 public static final String KEY_MMS_SUPPORT_MMS_CONTENT_DISPOSITION_BOOL = "supportMmsContentDisposition";
2103 public static final String KEY_MMS_ALIAS_MAX_CHARS_INT = "aliasMaxChars";
2104 public static final String KEY_MMS_ALIAS_MIN_CHARS_INT = "aliasMinChars";
2105 public static final String KEY_MMS_HTTP_SOCKET_TIMEOUT_INT = "httpSocketTimeout";
2106 public static final String KEY_MMS_MAX_IMAGE_HEIGHT_INT = "maxImageHeight";
2107 public static final String KEY_MMS_MAX_IMAGE_WIDTH_INT = "maxImageWidth";
2108 public static final String KEY_MMS_MAX_MESSAGE_SIZE_INT = "maxMessageSize";
2109 public static final String KEY_MMS_MESSAGE_TEXT_MAX_SIZE_INT = "maxMessageTextSize";
2110 public static final String KEY_MMS_RECIPIENT_LIMIT_INT = "recipientLimit";
2111 public static final String KEY_MMS_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD_INT = "smsToMmsTextLengthThreshold";
2112 public static final String KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT = "smsToMmsTextThreshold";
2113 public static final String KEY_MMS_SUBJECT_MAX_LENGTH_INT = "maxSubjectLength";
2114 public static final String KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING = "emailGatewayNumber";
2115 public static final String KEY_MMS_HTTP_PARAMS_STRING = "httpParams";
2116 public static final String KEY_MMS_NAI_SUFFIX_STRING = "naiSuffix";
2117 public static final String KEY_MMS_UA_PROF_TAG_NAME_STRING = "uaProfTagName";
2118 public static final String KEY_MMS_UA_PROF_URL_STRING = "uaProfUrl";
2119 public static final String KEY_MMS_USER_AGENT_STRING = "userAgent";
Sarah Chin58c5b002020-01-15 16:40:08 -08002120 /**
2121 * If true, add "Connection: close" header to MMS HTTP requests so the connection
2122 * is immediately closed (disabling keep-alive).
2123 */
Ye Wen406a41b2016-07-18 14:36:22 -07002124 public static final String KEY_MMS_CLOSE_CONNECTION_BOOL = "mmsCloseConnection";
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08002125
Tyler Gunn387ce2f2015-08-28 14:14:11 -07002126 /**
chen xud040f2d2018-11-10 10:54:45 -08002127 * The flatten {@link android.content.ComponentName componentName} of the activity that can
2128 * setup the device and activate with the network per carrier requirements.
2129 *
2130 * e.g, com.google.android.carrierPackageName/.CarrierActivityName
Stuart Scott9abc2732016-05-11 15:42:01 -07002131 * @hide
2132 */
chen xud040f2d2018-11-10 10:54:45 -08002133 @SystemApi
Hall Liue5b1fda2018-10-22 18:17:44 -07002134 public static final String KEY_CARRIER_SETUP_APP_STRING = "carrier_setup_app_string";
Stuart Scott9abc2732016-05-11 15:42:01 -07002135
2136 /**
fionaxua21a87b2016-12-13 17:15:11 -08002137 * Defines carrier-specific actions which act upon
fionaxuabeba602017-02-23 18:06:52 -08002138 * com.android.internal.telephony.CARRIER_SIGNAL_REDIRECTED, used for customization of the
Sarah China912e112020-01-09 10:43:30 -08002139 * default carrier app.
fionaxua21a87b2016-12-13 17:15:11 -08002140 * Format: "CARRIER_ACTION_IDX, ..."
2141 * Where {@code CARRIER_ACTION_IDX} is an integer defined in
Sarah China912e112020-01-09 10:43:30 -08002142 * com.android.carrierdefaultapp.CarrierActionUtils
fionaxua21a87b2016-12-13 17:15:11 -08002143 * Example:
Sarah China912e112020-01-09 10:43:30 -08002144 * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_DISABLE_METERED_APNS
2145 * disables metered APNs
fionaxua21a87b2016-12-13 17:15:11 -08002146 */
Sarah China912e112020-01-09 10:43:30 -08002147 @SuppressLint("IntentName")
fionaxua21a87b2016-12-13 17:15:11 -08002148 public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY =
2149 "carrier_default_actions_on_redirection_string_array";
2150
2151 /**
Sarah China912e112020-01-09 10:43:30 -08002152 * Defines carrier-specific actions which act upon CARRIER_SIGNAL_REQUEST_NETWORK_FAILED
fionaxua21a87b2016-12-13 17:15:11 -08002153 * and configured signal args:
Sarah China912e112020-01-09 10:43:30 -08002154 * android.telephony.TelephonyManager#EXTRA_APN_TYPE,
2155 * android.telephony.TelephonyManager#EXTRA_ERROR_CODE
fionaxua21a87b2016-12-13 17:15:11 -08002156 * used for customization of the default carrier app
2157 * Format:
2158 * {
2159 * "APN_1, ERROR_CODE_1 : CARRIER_ACTION_IDX_1, CARRIER_ACTION_IDX_2...",
2160 * "APN_1, ERROR_CODE_2 : CARRIER_ACTION_IDX_1 "
2161 * }
Hall Liu16359f32020-11-12 12:21:23 -08002162 * Where {@code APN_1} is an integer defined in {@link android.telephony.data.ApnSetting}
2163 * (e.g. {@link android.telephony.data.ApnSetting#TYPE_DEFAULT}
fionaxua21a87b2016-12-13 17:15:11 -08002164 *
Sarah China912e112020-01-09 10:43:30 -08002165 * {@code ERROR_CODE_1} is an integer defined in android.telephony.DataFailCause
fionaxua21a87b2016-12-13 17:15:11 -08002166 * Example:
Sarah China912e112020-01-09 10:43:30 -08002167 * android.telephony.DataFailCause#MISSING_UNKNOWN_APN
fionaxua21a87b2016-12-13 17:15:11 -08002168 *
2169 * {@code CARRIER_ACTION_IDX_1} is an integer defined in
Sarah China912e112020-01-09 10:43:30 -08002170 * com.android.carrierdefaultapp.CarrierActionUtils
fionaxua21a87b2016-12-13 17:15:11 -08002171 * Example:
Sarah China912e112020-01-09 10:43:30 -08002172 * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_DISABLE_METERED_APNS
2173 * disables metered APNs
fionaxua21a87b2016-12-13 17:15:11 -08002174 */
Sarah China912e112020-01-09 10:43:30 -08002175 @SuppressLint("IntentName")
fionaxua21a87b2016-12-13 17:15:11 -08002176 public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_DCFAILURE_STRING_ARRAY =
2177 "carrier_default_actions_on_dcfailure_string_array";
2178
2179 /**
Sarah China912e112020-01-09 10:43:30 -08002180 * Defines carrier-specific actions which act upon CARRIER_SIGNAL_RESET,
2181 * used for customization of the default carrier app.
fionaxu77f466d2017-04-26 16:05:25 -07002182 * Format: "CARRIER_ACTION_IDX, ..."
2183 * Where {@code CARRIER_ACTION_IDX} is an integer defined in
Sarah China912e112020-01-09 10:43:30 -08002184 * com.android.carrierdefaultapp.CarrierActionUtils
fionaxu77f466d2017-04-26 16:05:25 -07002185 * Example:
Sarah China912e112020-01-09 10:43:30 -08002186 * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_CANCEL_ALL_NOTIFICATIONS
2187 * clears all notifications on reset
fionaxu77f466d2017-04-26 16:05:25 -07002188 */
Sarah China912e112020-01-09 10:43:30 -08002189 @SuppressLint("IntentName")
fionaxu77f466d2017-04-26 16:05:25 -07002190 public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_RESET =
2191 "carrier_default_actions_on_reset_string_array";
fionaxud60a9d02017-05-23 14:55:27 -07002192
2193 /**
2194 * Defines carrier-specific actions which act upon
2195 * com.android.internal.telephony.CARRIER_SIGNAL_DEFAULT_NETWORK_AVAILABLE,
Sarah China912e112020-01-09 10:43:30 -08002196 * used for customization of the default carrier app.
fionaxud60a9d02017-05-23 14:55:27 -07002197 * Format:
2198 * {
2199 * "true : CARRIER_ACTION_IDX_1",
2200 * "false: CARRIER_ACTION_IDX_2"
2201 * }
2202 * Where {@code true} is a boolean indicates default network available/unavailable
2203 * Where {@code CARRIER_ACTION_IDX} is an integer defined in
Sarah China912e112020-01-09 10:43:30 -08002204 * com.android.carrierdefaultapp.CarrierActionUtils CarrierActionUtils
fionaxud60a9d02017-05-23 14:55:27 -07002205 * Example:
Sarah China912e112020-01-09 10:43:30 -08002206 * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_ENABLE_DEFAULT_URL_HANDLER
2207 * enables the app as the default URL handler
fionaxud60a9d02017-05-23 14:55:27 -07002208 */
Sarah China912e112020-01-09 10:43:30 -08002209 @SuppressLint("IntentName")
fionaxud60a9d02017-05-23 14:55:27 -07002210 public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_DEFAULT_NETWORK_AVAILABLE =
2211 "carrier_default_actions_on_default_network_available_string_array";
Sarah China912e112020-01-09 10:43:30 -08002212
fionaxu77f466d2017-04-26 16:05:25 -07002213 /**
Sarah China912e112020-01-09 10:43:30 -08002214 * Defines a list of acceptable redirection url for default carrier app.
fionaxua21a87b2016-12-13 17:15:11 -08002215 */
2216 public static final String KEY_CARRIER_DEFAULT_REDIRECTION_URL_STRING_ARRAY =
2217 "carrier_default_redirection_url_string_array";
2218
2219 /**
fionaxu41ca9372016-11-17 16:46:30 -08002220 * Each config includes the componentName of the carrier app, followed by a list of interesting
2221 * signals(declared in the manifest) which could wake up the app.
2222 * @see com.android.internal.telephony.TelephonyIntents
2223 * Example:
2224 * <item>com.google.android.carrierAPK/.CarrierSignalReceiverA:
fionaxuabeba602017-02-23 18:06:52 -08002225 * com.android.internal.telephony.CARRIER_SIGNAL_REDIRECTED,
2226 * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE
fionaxu41ca9372016-11-17 16:46:30 -08002227 * </item>
2228 * <item>com.google.android.carrierAPK/.CarrierSignalReceiverB:
fionaxuabeba602017-02-23 18:06:52 -08002229 * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE
fionaxu41ca9372016-11-17 16:46:30 -08002230 * </item>
2231 * @hide
2232 */
2233 public static final String KEY_CARRIER_APP_WAKE_SIGNAL_CONFIG_STRING_ARRAY =
2234 "carrier_app_wake_signal_config";
2235
2236 /**
2237 * Each config includes the componentName of the carrier app, followed by a list of interesting
2238 * signals for the app during run-time. The list of signals(intents) are targeting on run-time
2239 * broadcast receivers only, aiming to avoid unnecessary wake-ups and should not be declared in
2240 * the app's manifest.
2241 * @see com.android.internal.telephony.TelephonyIntents
2242 * Example:
2243 * <item>com.google.android.carrierAPK/.CarrierSignalReceiverA:
fionaxuabeba602017-02-23 18:06:52 -08002244 * com.android.internal.telephony.CARRIER_SIGNAL_REQUEST_NETWORK_FAILED,
2245 * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE
fionaxu41ca9372016-11-17 16:46:30 -08002246 * </item>
2247 * <item>com.google.android.carrierAPK/.CarrierSignalReceiverB:
fionaxuabeba602017-02-23 18:06:52 -08002248 * com.android.internal.telephony.CARRIER_SIGNAL_REQUEST_NETWORK_FAILED
fionaxu41ca9372016-11-17 16:46:30 -08002249 * </item>
2250 * @hide
2251 */
2252 public static final String KEY_CARRIER_APP_NO_WAKE_SIGNAL_CONFIG_STRING_ARRAY =
2253 "carrier_app_no_wake_signal_config";
2254
2255 /**
Qingxi Li38fbddc2019-03-14 13:26:03 -07002256 * Determines whether the carrier app needed to be involved when users try to finish setting up
2257 * the SIM card to get network service.
Qingxi Li38fbddc2019-03-14 13:26:03 -07002258 */
2259 public static final String KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL =
2260 "carrier_app_required_during_setup_bool";
2261
2262 /**
fionaxu7834be22017-06-22 18:14:23 -07002263 * Default value for {@link Settings.Global#DATA_ROAMING}
2264 * @hide
2265 */
2266 public static final String KEY_CARRIER_DEFAULT_DATA_ROAMING_ENABLED_BOOL =
2267 "carrier_default_data_roaming_enabled_bool";
2268
2269 /**
Tyler Gunn387ce2f2015-08-28 14:14:11 -07002270 * Determines whether the carrier supports making non-emergency phone calls while the phone is
2271 * in emergency callback mode. Default value is {@code true}, meaning that non-emergency calls
2272 * are allowed in emergency callback mode.
Tyler Gunn387ce2f2015-08-28 14:14:11 -07002273 */
2274 public static final String KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL =
Tyler Gunn6ef57c32015-08-31 13:15:27 -07002275 "allow_non_emergency_calls_in_ecm_bool";
Tyler Gunn387ce2f2015-08-28 14:14:11 -07002276
Tyler Gunn1cee4772015-12-04 21:03:30 -08002277 /**
Brad Ebinger5eeb79d2019-03-15 13:50:34 -07002278 * Time that the telephony framework stays in "emergency SMS mode" after an emergency SMS is
2279 * sent to the network. This is used by carriers to configure the time
2280 * {@link TelephonyManager#isInEmergencySmsMode()} will be true after an emergency SMS is sent.
2281 * This is used by GNSS to override user location permissions so that the carrier network can
2282 * get the user's location for emergency services.
2283 *
2284 * The default is 0, which means that this feature is disabled. The maximum value for this timer
2285 * is 300000 mS (5 minutes).
2286 *
2287 * @hide
2288 */
2289 public static final String KEY_EMERGENCY_SMS_MODE_TIMER_MS_INT =
2290 "emergency_sms_mode_timer_ms_int";
2291
2292 /**
Tyler Gunnabfdaea2015-05-28 15:09:10 -07002293 * Flag indicating whether to allow carrier video calls to emergency numbers.
2294 * When {@code true}, video calls to emergency numbers will be allowed. When {@code false},
2295 * video calls to emergency numbers will be initiated as audio-only calls instead.
Tyler Gunnabfdaea2015-05-28 15:09:10 -07002296 */
Tyler Gunnf0836192016-03-15 20:33:13 -07002297 public static final String KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL =
2298 "allow_emergency_video_calls_bool";
Tyler Gunn3e122f72016-01-11 19:25:00 -08002299
2300 /**
Brad Ebinger62713872019-11-18 18:43:35 -08002301 * Flag indicating whether or not an ongoing call will be held when an outgoing emergency call
2302 * is placed. If true, ongoing calls will be put on hold when an emergency call is placed. If
2303 * false, placing an emergency call will trigger the disconnect of all ongoing calls before
2304 * the emergency call is placed.
2305 */
2306 public static final String KEY_ALLOW_HOLD_CALL_DURING_EMERGENCY_BOOL =
2307 "allow_hold_call_during_emergency_bool";
2308
2309 /**
Brad Ebinger4612ab72020-11-30 23:37:03 +00002310 * Flag indicating whether or not the carrier supports the periodic exchange of phone numbers
2311 * in the user's address book with the carrier's presence server in order to retrieve the RCS
2312 * capabilities for each contact used in the RCS User Capability Exchange (UCE) procedure. See
2313 * RCC.71, section 3 for more information.
2314 * <p>
2315 * The flag {@link Ims#KEY_ENABLE_PRESENCE_PUBLISH_BOOL} must also be enabled if this flag is
2316 * enabled, as sending a periodic SIP PUBLISH with this device's RCS capabilities is a
2317 * requirement for capability exchange to begin.
2318 * <p>
2319 * When presence is supported, the device should use the
Tyler Gunn3e122f72016-01-11 19:25:00 -08002320 * {@link android.provider.ContactsContract.Data#CARRIER_PRESENCE} bit mask and set the
2321 * {@link android.provider.ContactsContract.Data#CARRIER_PRESENCE_VT_CAPABLE} bit to indicate
2322 * whether each contact supports video calling. The UI is made aware that presence is enabled
2323 * via {@link android.telecom.PhoneAccount#CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE}
2324 * and can choose to hide or show the video calling icon based on whether a contact supports
2325 * video.
allenwtsue6ddc2f2020-12-02 14:54:22 +08002326 *
2327 * @deprecated No longer used in framework code, however it may still be used by applications
2328 * that have not updated their code. This config should still be set to {@code true} if
2329 * {@link Ims#KEY_RCS_BULK_CAPABILITY_EXCHANGE_BOOL} is set to {@code true} and
2330 * {@link Ims#KEY_ENABLE_PRESENCE_CAPABILITY_EXCHANGE_BOOL} is set to {@code true}.
Tyler Gunn3e122f72016-01-11 19:25:00 -08002331 */
allenwtsue6ddc2f2020-12-02 14:54:22 +08002332 @Deprecated
Tyler Gunn3e122f72016-01-11 19:25:00 -08002333 public static final String KEY_USE_RCS_PRESENCE_BOOL = "use_rcs_presence_bool";
2334
Abhijith Shastryd48935872016-02-04 17:28:03 -08002335 /**
James.cf Linc8a345a2019-09-20 18:04:06 +08002336 * Flag indicating whether the carrier supports RCS SIP OPTIONS indication for
2337 * User Capability Exchange (UCE).
2338 */
2339 public static final String KEY_USE_RCS_SIP_OPTIONS_BOOL = "use_rcs_sip_options_bool";
2340
2341 /**
Abhijith Shastryd48935872016-02-04 17:28:03 -08002342 * The duration in seconds that platform call and message blocking is disabled after the user
Tyler Gunn48c570b2018-03-09 02:33:22 +00002343 * contacts emergency services. Platform considers values for below cases:
2344 * 1) 0 <= VALUE <= 604800(one week): the value will be used as the duration directly.
2345 * 2) VALUE > 604800(one week): will use the default value as duration instead.
2346 * 3) VALUE < 0: block will be disabled forever until user re-eanble block manually,
2347 * the suggested value to disable forever is -1.
2348 * See {@code android.provider.BlockedNumberContract#notifyEmergencyContact(Context)}
2349 * See {@code android.provider.BlockedNumberContract#isBlocked(Context, String)}.
Abhijith Shastryd48935872016-02-04 17:28:03 -08002350 */
2351 public static final String KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT =
2352 "duration_blocking_disabled_after_emergency_int";
2353
qingxi247e7f42016-06-03 15:24:33 -07002354 /**
Tyler Gunn48c570b2018-03-09 02:33:22 +00002355 * Determines whether to enable enhanced call blocking feature on the device.
Sarah China912e112020-01-09 10:43:30 -08002356 * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_UNREGISTERED
2357 * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_PRIVATE
2358 * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_PAYPHONE
2359 * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_UNKNOWN
Grace Jiacc16b042021-08-09 09:06:11 -07002360 * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_UNAVAILABLE
Tyler Gunn48c570b2018-03-09 02:33:22 +00002361 *
2362 * <p>
2363 * 1. For Single SIM(SS) device, it can be customized in both carrier_config_mccmnc.xml
2364 * and vendor.xml.
2365 * <p>
2366 * 2. For Dual SIM(DS) device, it should be customized in vendor.xml, since call blocking
2367 * function is used regardless of SIM.
2368 * <p>
2369 * If {@code true} enable enhanced call blocking feature on the device, {@code false} otherwise.
Tyler Gunn48c570b2018-03-09 02:33:22 +00002370 */
2371 public static final String KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL =
2372 "support_enhanced_call_blocking_bool";
2373
2374 /**
Jordan Liue1663562016-09-07 12:01:24 -07002375 * For carriers which require an empty flash to be sent before sending the normal 3-way calling
2376 * flash, the duration in milliseconds of the empty flash to send. When {@code 0}, no empty
2377 * flash is sent.
2378 */
2379 public static final String KEY_CDMA_3WAYCALL_FLASH_DELAY_INT = "cdma_3waycall_flash_delay_int";
2380
Jordan Liue1663562016-09-07 12:01:24 -07002381 /**
Jeff Davidsonaf1d3202017-10-25 12:51:43 -07002382 * The CDMA roaming mode (aka CDMA system select).
2383 *
2384 * <p>The value should be one of the CDMA_ROAMING_MODE_ constants in {@link TelephonyManager}.
2385 * Values other than {@link TelephonyManager#CDMA_ROAMING_MODE_RADIO_DEFAULT} (which is the
2386 * default) will take precedence over user selection.
2387 *
2388 * @see TelephonyManager#CDMA_ROAMING_MODE_RADIO_DEFAULT
2389 * @see TelephonyManager#CDMA_ROAMING_MODE_HOME
2390 * @see TelephonyManager#CDMA_ROAMING_MODE_AFFILIATED
2391 * @see TelephonyManager#CDMA_ROAMING_MODE_ANY
qingxi247e7f42016-06-03 15:24:33 -07002392 */
2393 public static final String KEY_CDMA_ROAMING_MODE_INT = "cdma_roaming_mode_int";
Jeff Davidsonaf1d3202017-10-25 12:51:43 -07002394
Josh Hou0e9ea952019-12-03 21:00:44 +08002395 /**
2396 * Determines whether 1X voice calls is supported for some CDMA carriers.
2397 * Default value is true.
2398 * @hide
2399 */
2400 @SystemApi
2401 public static final String KEY_SUPPORT_CDMA_1X_VOICE_CALLS_BOOL =
2402 "support_cdma_1x_voice_calls_bool";
Jeff Davidsonaf1d3202017-10-25 12:51:43 -07002403
Wileen Chiu5e8e3082016-07-15 10:00:09 -07002404 /**
2405 * Boolean indicating if support is provided for directly dialing FDN number from FDN list.
2406 * If false, this feature is not supported.
2407 * @hide
2408 */
2409 public static final String KEY_SUPPORT_DIRECT_FDN_DIALING_BOOL =
2410 "support_direct_fdn_dialing_bool";
qingxi247e7f42016-06-03 15:24:33 -07002411
Robert Greenwalt60551b62016-06-09 16:28:40 -07002412 /**
rongmei.libcadc902019-10-16 18:41:48 +08002413 * Int indicating the max number length for FDN
2414 * @hide
2415 */
2416 public static final String KEY_FDN_NUMBER_LENGTH_LIMIT_INT =
2417 "fdn_number_length_limit_int";
2418
2419 /**
Junda Liu276f4d62016-07-14 13:55:03 -07002420 * Report IMEI as device id even if it's a CDMA/LTE phone.
2421 *
2422 * @hide
2423 */
2424 public static final String KEY_FORCE_IMEI_BOOL = "force_imei_bool";
2425
2426 /**
Robert Greenwalt60551b62016-06-09 16:28:40 -07002427 * The families of Radio Access Technologies that will get clustered and ratcheted,
2428 * ie, we will report transitions up within the family, but not down until we change
2429 * cells. This prevents flapping between base technologies and higher techs that are
2430 * granted on demand within the cell.
2431 * @hide
2432 */
2433 public static final String KEY_RATCHET_RAT_FAMILIES =
2434 "ratchet_rat_families";
2435
Tyler Gunn4b6614e2016-06-22 10:35:13 -07002436 /**
2437 * Flag indicating whether some telephony logic will treat a call which was formerly a video
2438 * call as if it is still a video call. When {@code true}:
2439 * <p>
2440 * Logic which will automatically drop a video call which takes place over WIFI when a
2441 * voice call is answered (see {@link #KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL}.
2442 * <p>
2443 * Logic which determines whether the user can use TTY calling.
2444 */
2445 public static final String KEY_TREAT_DOWNGRADED_VIDEO_CALLS_AS_VIDEO_CALLS_BOOL =
2446 "treat_downgraded_video_calls_as_video_calls_bool";
2447
2448 /**
2449 * When {@code true}, if the user is in an ongoing video call over WIFI and answers an incoming
2450 * audio call, the video call will be disconnected before the audio call is answered. This is
2451 * in contrast to the usual expected behavior where a foreground video call would be put into
2452 * the background and held when an incoming audio call is answered.
2453 */
2454 public static final String KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL =
2455 "drop_video_call_when_answering_audio_call_bool";
2456
Tyler Gunn7d633d32016-06-24 07:30:10 -07002457 /**
2458 * Flag indicating whether the carrier supports merging wifi calls when VoWIFI is disabled.
2459 * This can happen in the case of a carrier which allows offloading video calls to WIFI
2460 * separately of whether voice over wifi is enabled. In such a scenario when two video calls
2461 * are downgraded to voice, they remain over wifi. However, if VoWIFI is disabled, these calls
2462 * cannot be merged.
2463 */
2464 public static final String KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL =
2465 "allow_merge_wifi_calls_when_vowifi_off_bool";
2466
Hall Liu10208662016-06-15 17:55:00 -07002467 /**
Brad Ebingerc8601012016-07-19 14:09:23 -07002468 * Flag indicating whether the carrier supports the Hold command while in an IMS call.
Tyler Gunnd81c4262016-08-03 10:53:52 -07002469 * <p>
2470 * The device configuration value {@code config_device_respects_hold_carrier_config} ultimately
2471 * controls whether this carrier configuration option is used. Where
2472 * {@code config_device_respects_hold_carrier_config} is false, the value of the
2473 * {@link #KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL} carrier configuration option is ignored.
Brad Ebingerc8601012016-07-19 14:09:23 -07002474 * @hide
2475 */
2476 public static final String KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL = "allow_hold_in_ims_call";
2477
Pooja Jaind34698d2017-12-28 14:15:31 +05302478 /**
2479 * Flag indicating whether the carrier supports call deflection for an incoming IMS call.
Pooja Jaind34698d2017-12-28 14:15:31 +05302480 */
2481 public static final String KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL =
2482 "carrier_allow_deflect_ims_call_bool";
Tyler Gunn30889422017-11-28 09:04:31 -08002483
2484 /**
Ravi Palurif4b38e72020-02-05 12:35:41 +05302485 * Flag indicating whether the carrier supports explicit call transfer for an IMS call.
2486 * @hide
2487 */
2488 public static final String KEY_CARRIER_ALLOW_TRANSFER_IMS_CALL_BOOL =
2489 "carrier_allow_transfer_ims_call_bool";
2490
2491 /**
Tyler Gunn30889422017-11-28 09:04:31 -08002492 * Flag indicating whether the carrier always wants to play an "on-hold" tone when a call has
2493 * been remotely held.
2494 * <p>
2495 * When {@code true}, if the IMS stack indicates that the call session has been held, a signal
2496 * will be sent from Telephony to play an audible "on-hold" tone played to the user.
2497 * When {@code false}, a hold tone will only be played if the audio session becomes inactive.
2498 * @hide
2499 */
2500 public static final String KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL =
2501 "always_play_remote_hold_tone_bool";
2502
Brad Ebingerc8601012016-07-19 14:09:23 -07002503 /**
Hall Liuf31f3852018-07-25 18:48:55 -07002504 * When true, the Telephony stack will automatically turn off airplane mode and retry a wifi
2505 * emergency call over the cell network if the initial attempt at dialing was met with a SIP 308
2506 * error.
2507 * @hide
2508 */
2509 public static final String KEY_AUTO_RETRY_FAILED_WIFI_EMERGENCY_CALL =
2510 "auto_retry_failed_wifi_emergency_call";
2511
2512 /**
Hall Liu41027002016-07-06 16:32:43 -07002513 * When true, indicates that adding a call is disabled when there is an ongoing video call
2514 * or when there is an ongoing call on wifi which was downgraded from video and VoWifi is
2515 * turned off.
Hall Liu10208662016-06-15 17:55:00 -07002516 */
2517 public static final String KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL =
2518 "allow_add_call_during_video_call";
2519
Tyler Gunnc96b5e02016-07-07 22:53:57 -07002520 /**
Tyler Gunnbe363242020-02-12 13:50:46 -08002521 * When {@code true}, indicates that video calls can be put on hold in order to swap to another
2522 * call (e.g. a new outgoing call).
2523 * When {@code false}, indicates that video calls will be disconnected when swapping to another
2524 * call.
2525 * <p>
2526 * This is {@code true} by default.
Ravi Paluri0fe55412019-12-10 16:53:14 +05302527 */
Tyler Gunnbe363242020-02-12 13:50:46 -08002528 public static final String KEY_ALLOW_HOLD_VIDEO_CALL_BOOL =
2529 "allow_hold_video_call_bool";
Ravi Paluri0fe55412019-12-10 16:53:14 +05302530
2531 /**
Hall Liu7c3c28b2016-07-19 11:18:49 -07002532 * When true, indicates that the HD audio icon in the in-call screen should not be shown for
2533 * VoWifi calls.
2534 * @hide
2535 */
2536 public static final String KEY_WIFI_CALLS_CAN_BE_HD_AUDIO = "wifi_calls_can_be_hd_audio";
2537
2538 /**
2539 * When true, indicates that the HD audio icon in the in-call screen should not be shown for
2540 * video calls.
2541 * @hide
2542 */
2543 public static final String KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO = "video_calls_can_be_hd_audio";
2544
2545 /**
Alex Khlivnuikabdd37c2017-11-29 12:18:05 +09002546 * When true, indicates that the HD audio icon in the in-call screen should be shown for
2547 * GSM/CDMA calls.
2548 * @hide
2549 */
2550 public static final String KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO =
2551 "gsm_cdma_calls_can_be_hd_audio";
2552
2553 /**
Ta-wei Yen9d20d982017-06-02 11:07:07 -07002554 * Whether system apps are allowed to use fallback if carrier video call is not available.
2555 * Defaults to {@code true}.
Ta-wei Yen9d20d982017-06-02 11:07:07 -07002556 */
2557 public static final String KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL =
2558 "allow_video_calling_fallback_bool";
2559
2560 /**
Brad Ebingerf8c3cd82018-01-22 13:51:52 -08002561 * Defines operator-specific {@link ImsReasonInfo} mappings.
Tyler Gunnc96b5e02016-07-07 22:53:57 -07002562 *
2563 * Format: "ORIGINAL_CODE|MESSAGE|NEW_CODE"
2564 * Where {@code ORIGINAL_CODE} corresponds to a {@link ImsReasonInfo#getCode()} code,
2565 * {@code MESSAGE} corresponds to an expected {@link ImsReasonInfo#getExtraMessage()} string,
2566 * and {@code NEW_CODE} is the new {@code ImsReasonInfo#CODE_*} which this combination of
2567 * original code and message shall be remapped to.
2568 *
Tyler Gunne0714692017-01-30 09:52:55 -08002569 * Note: If {@code *} is specified for the original code, any ImsReasonInfo with the matching
2570 * {@code MESSAGE} will be remapped to {@code NEW_CODE}.
Ian Chang71704ae2022-01-12 16:35:28 +08002571 * If {@code *} is specified for the message, any ImsReasonInfo with the matching
2572 * {@code ORIGINAL_CODE} will be remapped to {@code NEW_CODE}.
2573 * The wildcard for {@code ORIGINAL_CODE} takes precedence to the wildcard for {@code MESSAGE}.
2574 * A mapping with both wildcards has no effect.
Tyler Gunne0714692017-01-30 09:52:55 -08002575 *
Tyler Gunnc96b5e02016-07-07 22:53:57 -07002576 * Example: "501|call completion elsewhere|1014"
2577 * When the {@link ImsReasonInfo#getCode()} is {@link ImsReasonInfo#CODE_USER_TERMINATED} and
2578 * the {@link ImsReasonInfo#getExtraMessage()} is {@code "call completion elsewhere"},
2579 * {@link ImsReasonInfo#CODE_ANSWERED_ELSEWHERE} shall be used as the {@link ImsReasonInfo}
2580 * code instead.
2581 * @hide
2582 */
2583 public static final String KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY =
2584 "ims_reasoninfo_mapping_string_array";
2585
Meng Wang542e2622016-08-03 10:18:36 -07002586 /**
2587 * When {@code false}, use default title for Enhanced 4G LTE Mode settings.
2588 * When {@code true}, use the variant.
2589 * @hide
clownshen6400b932018-08-16 16:54:16 +08002590 * @deprecated use {@link #KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT}.
Meng Wang542e2622016-08-03 10:18:36 -07002591 */
clownshen6400b932018-08-16 16:54:16 +08002592 @Deprecated
Meng Wang542e2622016-08-03 10:18:36 -07002593 public static final String KEY_ENHANCED_4G_LTE_TITLE_VARIANT_BOOL =
2594 "enhanced_4g_lte_title_variant_bool";
2595
Tyler Gunn0f20d932016-08-09 15:56:43 -07002596 /**
Sarah China912e112020-01-09 10:43:30 -08002597 * The index indicates the carrier specified title string of Enhanced 4G LTE Mode settings.
clownshen6400b932018-08-16 16:54:16 +08002598 * Default value is 0, which indicates the default title string.
clownshen6400b932018-08-16 16:54:16 +08002599 */
2600 public static final String KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT =
2601 "enhanced_4g_lte_title_variant_int";
2602
2603 /**
Tyler Gunn0f20d932016-08-09 15:56:43 -07002604 * Indicates whether the carrier wants to notify the user when handover of an LTE video call to
2605 * WIFI fails.
2606 * <p>
2607 * When {@code true}, if a video call starts on LTE and the modem reports a failure to handover
2608 * the call to WIFI or if no handover success is reported within 60 seconds of call initiation,
2609 * the {@link android.telephony.TelephonyManager#EVENT_HANDOVER_TO_WIFI_FAILED} event is raised
2610 * on the connection.
2611 * @hide
2612 */
2613 public static final String KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL =
2614 "notify_vt_handover_to_wifi_failure_bool";
2615
Brad Ebinger9b63ad1a2016-08-15 11:28:26 -07002616 /**
2617 * A upper case list of CNAP names that are unhelpful to the user for distinguising calls and
2618 * should be filtered out of the CNAP information. This includes CNAP names such as "WIRELESS
2619 * CALLER" or "UNKNOWN NAME". By default, if there are no filtered names for this carrier, null
2620 * is returned.
2621 * @hide
2622 */
Jordan Liu1ca2e31d2016-12-01 11:39:30 -08002623 public static final String KEY_FILTERED_CNAP_NAMES_STRING_ARRAY = "filtered_cnap_names_string_array";
Brad Ebinger9b63ad1a2016-08-15 11:28:26 -07002624
Abhijith Shastry2215c9b2016-08-24 15:17:39 -07002625 /**
2626 * The RCS configuration server URL. This URL is used to initiate RCS provisioning.
2627 */
2628 public static final String KEY_RCS_CONFIG_SERVER_URL_STRING = "rcs_config_server_url_string";
2629
Meng Wang587a5f9c72016-09-28 21:06:55 -07002630 /**
Meng Wang2c25e4a2016-09-19 14:18:05 -07002631 * Determine whether user can change Wi-Fi Calling preference in roaming.
Hiroto Taruida081212019-02-14 14:37:09 +09002632 * {@code false} - roaming preference cannot be changed by user independently. If
2633 * {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is false,
2634 * {@link #KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT} is used as the default
2635 * value. If {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is
2636 * true, roaming preference is the same as home preference and
2637 * {@link #KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT} is used as the default value.
2638 * {@code true} - roaming preference can be changed by user independently if
2639 * {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is false. If
2640 * {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is true, this
2641 * configuration is ignored and roaming preference cannot be changed.
Meng Wang2c25e4a2016-09-19 14:18:05 -07002642 */
2643 public static final String KEY_EDITABLE_WFC_ROAMING_MODE_BOOL =
2644 "editable_wfc_roaming_mode_bool";
2645
Amit Mahajan22e89f42018-06-05 16:27:32 -07002646 /**
Sarah China912e112020-01-09 10:43:30 -08002647 * Flag specifying whether to show blocking pay phone option in blocked numbers screen.
2648 * Only show the option if payphone call presentation is present in the carrier's region.
Youming Ye9592a422019-03-20 17:53:44 -07002649 */
2650 public static final java.lang.String KEY_SHOW_BLOCKING_PAY_PHONE_OPTION_BOOL =
2651 "show_blocking_pay_phone_option_bool";
2652
2653 /**
Sooraj Sasindran83ff8ad2020-11-23 23:42:51 -08002654 * Flag specifying whether the carrier will use the
2655 * WFC home network mode in roaming network.
Hiroto Taruida081212019-02-14 14:37:09 +09002656 * {@code false} - roaming preference can be selected separately from the home preference.
2657 * {@code true} - roaming preference is the same as home preference and
2658 * {@link #KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT} is used as the default value.
Hiroto Taruida081212019-02-14 14:37:09 +09002659 */
2660 public static final String KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL =
2661 "use_wfc_home_network_mode_in_roaming_network_bool";
2662
2663 /**
Ecco Park1074c882019-03-21 12:58:09 -07002664 * Flag specifying whether the carrier is allowed to use metered network to download a
2665 * certificate of Carrier-WiFi.
2666 * {@code false} - default value.
2667 *
2668 * @hide
2669 */
2670 public static final String KEY_ALLOW_METERED_NETWORK_FOR_CERT_DOWNLOAD_BOOL =
2671 "allow_metered_network_for_cert_download_bool";
2672
2673 /**
pkanwarffd45832016-12-11 17:45:50 -08002674 * Time delay (in ms) after which we show the notification to switch the preferred
2675 * network.
2676 * @hide
2677 */
2678 public static final String KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT =
2679 "network_notification_delay_int";
2680
Brad Ebinger17acc152016-12-09 13:18:30 -08002681 /**
pkanwar68e3de72017-08-13 12:18:19 -07002682 * Time delay (in ms) after which we show the notification for emergency calls,
2683 * while the device is registered over WFC. Default value is -1, which indicates
2684 * that this notification is not pertinent for a particular carrier. We've added a delay
2685 * to prevent false positives.
pkanwar68e3de72017-08-13 12:18:19 -07002686 */
2687 public static final String KEY_EMERGENCY_NOTIFICATION_DELAY_INT =
2688 "emergency_notification_delay_int";
2689
2690 /**
Tyler Gunn02212db2017-06-05 11:26:46 -07002691 * When {@code true}, the carrier allows the user of the
2692 * {@link TelephonyManager#sendUssdRequest(String, TelephonyManager.UssdResponseCallback,
2693 * Handler)} API to perform USSD requests. {@code True} by default.
2694 * @hide
2695 */
2696 public static final String KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL =
2697 "allow_ussd_requests_via_telephony_manager_bool";
2698
2699 /**
Brad Ebinger17acc152016-12-09 13:18:30 -08002700 * Indicates whether the carrier supports 3gpp call forwarding MMI codes while roaming. If
2701 * false, the user will be notified that call forwarding is not available when the MMI code
2702 * fails.
2703 */
2704 public static final String KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL =
2705 "support_3gpp_call_forwarding_while_roaming_bool";
2706
Junda Liuf1adc1d2016-12-16 16:45:10 -08002707 /**
Qiong Liu48fe53f2017-10-16 17:04:30 +08002708 * Boolean indicating whether to display voicemail number as default call forwarding number in
2709 * call forwarding settings.
2710 * If true, display vm number when cf number is null.
2711 * If false, display the cf number from network.
2712 * By default this value is false.
2713 * @hide
2714 */
2715 public static final String KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL =
2716 "display_voicemail_number_as_default_call_forwarding_number";
2717
2718 /**
Tyler Gunn662ae092017-02-16 16:21:14 -08002719 * When {@code true}, the user will be notified when they attempt to place an international call
2720 * when the call is placed using wifi calling.
2721 * @hide
2722 */
2723 public static final String KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL =
2724 "notify_international_call_on_wfc_bool";
2725
2726 /**
taiki tsutsumi2ee96822018-07-02 17:15:42 +09002727 * Flag to hide Preset APN details. If true, user cannot enter ApnEditor view of Preset APN,
2728 * and cannot view details of the APN. If false, user can enter ApnEditor view of Preset APN.
2729 * Default value is false.
2730 */
2731 public static final String KEY_HIDE_PRESET_APN_DETAILS_BOOL = "hide_preset_apn_details_bool";
2732
2733 /**
Masaho Nishikawa4c7511c2017-12-18 14:33:38 +09002734 * Flag specifying whether to show an alert dialog for video call charges.
2735 * By default this value is {@code false}.
Masaho Nishikawa4c7511c2017-12-18 14:33:38 +09002736 */
2737 public static final String KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL =
2738 "show_video_call_charges_alert_dialog_bool";
2739
2740 /**
Brad Ebinger9ab43212016-12-12 14:57:37 -08002741 * An array containing custom call forwarding number prefixes that will be blocked while the
2742 * device is reporting that it is roaming. By default, there are no custom call
2743 * forwarding prefixes and none of these numbers will be filtered. If one or more entries are
2744 * present, the system will not complete the call and display an error message.
2745 *
2746 * To display a message to the user when call forwarding fails for 3gpp MMI codes while roaming,
2747 * use the {@link #KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL} option instead.
2748 */
2749 public static final String KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY =
2750 "call_forwarding_blocks_while_roaming_string_array";
2751
Ammar Aijazi11b44982017-01-17 17:32:15 -08002752 /**
Josh Hou7d4f7792020-05-28 23:32:37 +08002753 * Call forwarding number prefixes defined by {@link
2754 * #KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY} which will be allowed while the
2755 * device is reporting that it is roaming and IMS is registered over LTE or Wi-Fi.
2756 * By default this value is {@code true}.
2757 * @hide
2758 */
2759 public static final String KEY_SUPPORT_IMS_CALL_FORWARDING_WHILE_ROAMING_BOOL =
2760 "support_ims_call_forwarding_while_roaming_bool";
2761
2762 /**
Ammar Aijazi11b44982017-01-17 17:32:15 -08002763 * The day of the month (1-31) on which the data cycle rolls over.
2764 * <p>
Jeff Sharkey17bebd22017-07-19 21:00:38 -06002765 * If the current month does not have this day, the cycle will roll over at
2766 * the start of the next month.
Ammar Aijazi11b44982017-01-17 17:32:15 -08002767 * <p>
Jeff Sharkey17bebd22017-07-19 21:00:38 -06002768 * This setting may be still overridden by explicit user choice. By default,
Shuo Qian3d182902019-12-16 11:14:08 -08002769 * {@link #DATA_CYCLE_USE_PLATFORM_DEFAULT} will be used.
Ammar Aijazi11b44982017-01-17 17:32:15 -08002770 */
2771 public static final String KEY_MONTHLY_DATA_CYCLE_DAY_INT =
2772 "monthly_data_cycle_day_int";
2773
2774 /**
2775 * When {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, {@link #KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG},
2776 * or {@link #KEY_DATA_WARNING_THRESHOLD_BYTES_LONG} are set to this value, the platform default
2777 * value will be used for that key.
Ammar Aijazi11b44982017-01-17 17:32:15 -08002778 */
2779 public static final int DATA_CYCLE_USE_PLATFORM_DEFAULT = -1;
2780
2781 /**
2782 * Flag indicating that a data cycle threshold should be disabled.
2783 * <p>
2784 * If {@link #KEY_DATA_WARNING_THRESHOLD_BYTES_LONG} is set to this value, the platform's
2785 * default data warning, if one exists, will be disabled. A user selected data warning will not
2786 * be overridden.
2787 * <p>
2788 * If {@link #KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG} is set to this value, the platform's
2789 * default data limit, if one exists, will be disabled. A user selected data limit will not be
2790 * overridden.
2791 */
2792 public static final int DATA_CYCLE_THRESHOLD_DISABLED = -2;
2793
2794 /**
2795 * Controls the data usage warning.
2796 * <p>
2797 * If the user uses more than this amount of data in their billing cycle, as defined by
2798 * {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, the user will be alerted about the usage.
2799 * If the value is set to {@link #DATA_CYCLE_THRESHOLD_DISABLED}, the data usage warning will
2800 * be disabled.
2801 * <p>
Shuo Qian3d182902019-12-16 11:14:08 -08002802 * This setting may be overridden by explicit user choice. By default,
2803 * {@link #DATA_CYCLE_USE_PLATFORM_DEFAULT} will be used.
Ammar Aijazi11b44982017-01-17 17:32:15 -08002804 */
2805 public static final String KEY_DATA_WARNING_THRESHOLD_BYTES_LONG =
2806 "data_warning_threshold_bytes_long";
2807
2808 /**
Jeff Sharkey0a5570d2018-04-10 12:38:29 -06002809 * Controls if the device should automatically notify the user as they reach
2810 * their cellular data warning. When set to {@code false} the carrier is
Shuo Qian3d182902019-12-16 11:14:08 -08002811 * expected to have implemented their own notification mechanism. {@code true} by default.
Jeff Sharkey0a5570d2018-04-10 12:38:29 -06002812 */
2813 public static final String KEY_DATA_WARNING_NOTIFICATION_BOOL =
2814 "data_warning_notification_bool";
2815
2816 /**
chen xu00511062019-07-02 16:32:07 -07002817 * Controls if the device should automatically warn the user that sim voice & data function
2818 * might be limited due to dual sim scenario. When set to {@true} display the notification,
2819 * {@code false} otherwise.
2820 * @hide
2821 */
2822 public static final String KEY_LIMITED_SIM_FUNCTION_NOTIFICATION_FOR_DSDS_BOOL =
2823 "limited_sim_function_notification_for_dsds_bool";
2824
2825 /**
Ammar Aijazi11b44982017-01-17 17:32:15 -08002826 * Controls the cellular data limit.
2827 * <p>
2828 * If the user uses more than this amount of data in their billing cycle, as defined by
2829 * {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, cellular data will be turned off by the user's
2830 * phone. If the value is set to {@link #DATA_CYCLE_THRESHOLD_DISABLED}, the data limit will be
2831 * disabled.
2832 * <p>
Shuo Qian3d182902019-12-16 11:14:08 -08002833 * This setting may be overridden by explicit user choice. By default,
2834 * {@link #DATA_CYCLE_USE_PLATFORM_DEFAULT} will be used.
Ammar Aijazi11b44982017-01-17 17:32:15 -08002835 */
2836 public static final String KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG =
2837 "data_limit_threshold_bytes_long";
2838
Sooraj Sasindran1b7bec52017-03-08 23:43:17 -08002839 /**
Jeff Sharkey0a5570d2018-04-10 12:38:29 -06002840 * Controls if the device should automatically notify the user as they reach
2841 * their cellular data limit. When set to {@code false} the carrier is
Shuo Qian3d182902019-12-16 11:14:08 -08002842 * expected to have implemented their own notification mechanism. {@code true} by default.
Jeff Sharkey0a5570d2018-04-10 12:38:29 -06002843 */
2844 public static final String KEY_DATA_LIMIT_NOTIFICATION_BOOL =
2845 "data_limit_notification_bool";
2846
2847 /**
2848 * Controls if the device should automatically notify the user when rapid
2849 * cellular data usage is observed. When set to {@code false} the carrier is
Shuo Qian3d182902019-12-16 11:14:08 -08002850 * expected to have implemented their own notification mechanism. {@code true} by default.
Jeff Sharkey0a5570d2018-04-10 12:38:29 -06002851 */
2852 public static final String KEY_DATA_RAPID_NOTIFICATION_BOOL =
2853 "data_rapid_notification_bool";
2854
2855 /**
Sooraj Sasindran1b7bec52017-03-08 23:43:17 -08002856 * Offset to be reduced from rsrp threshold while calculating signal strength level.
2857 * @hide
2858 */
2859 public static final String KEY_LTE_EARFCNS_RSRP_BOOST_INT = "lte_earfcns_rsrp_boost_int";
2860
2861 /**
2862 * List of EARFCN (E-UTRA Absolute Radio Frequency Channel Number,
Amit Mahajanae5f04d2021-05-27 13:00:33 -07002863 * Reference: 3GPP TS 36.104 5.4.3) inclusive ranges on which lte_earfcns_rsrp_boost_int
2864 * will be applied. Format of the String array is expected to be {"earfcn1_start-earfcn1_end",
Sooraj Sasindran1b7bec52017-03-08 23:43:17 -08002865 * "earfcn2_start-earfcn2_end" ... }
2866 * @hide
2867 */
2868 public static final String KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY =
2869 "boosted_lte_earfcns_string_array";
2870
Sanket Padawedb688bb2017-03-28 15:26:13 -07002871 /**
Amit Mahajanae5f04d2021-05-27 13:00:33 -07002872 * Offset to be reduced from rsrp threshold while calculating signal strength level.
2873 * @hide
2874 */
2875 public static final String KEY_NRARFCNS_RSRP_BOOST_INT_ARRAY = "nrarfcns_rsrp_boost_int_array";
2876
2877 /**
2878 * List of NR ARFCN (5G Absolute Radio Frequency Channel Number,
2879 * Reference: 3GPP TS 36.108) inclusive ranges on which corresponding
2880 * nrarfcns_rsrp_boost_int_array will be applied. The size of this array and
2881 * nrarfcns_rsrp_boost_int_array must be the same.
2882 * Format of the String array is expected to be {"nrarfcn1_start-nrarfcn1_end",
2883 * "nrarfcn2_start-nrarfcn2_end" ... }
2884 * @hide
2885 */
2886 public static final String KEY_BOOSTED_NRARFCNS_STRING_ARRAY =
2887 "boosted_nrarfcns_string_array";
2888
2889 /**
Wenting Xiongcb35e992017-10-18 15:05:49 +09002890 * Determine whether to use only RSRP for the number of LTE signal bars.
2891 * @hide
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09002892 *
2893 * @deprecated use {@link #KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT}.
Wenting Xiongcb35e992017-10-18 15:05:49 +09002894 */
Nathan Haroldf23153f2018-11-19 18:09:40 -08002895 // FIXME: this key and related keys must not be exposed without a consistent philosophy for
2896 // all RATs.
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09002897 @Deprecated
Wenting Xiongcb35e992017-10-18 15:05:49 +09002898 public static final String KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL =
2899 "use_only_rsrp_for_lte_signal_bar_bool";
2900
2901 /**
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09002902 * Bit-field integer to determine whether to use Reference Signal Received Power (RSRP),
2903 * Reference Signal Received Quality (RSRQ), or/and Reference Signal Signal to Noise Ratio
2904 * (RSSNR) for the number of LTE signal bars and signal criteria reporting enabling.
2905 *
2906 * <p> If a measure is not set, signal criteria reporting from modem will not be triggered and
2907 * not be used for calculating signal level. If multiple measures are set bit, the parameter
2908 * whose value is smallest is used to indicate the signal level.
Shuo Qiandc861202020-03-03 19:51:13 -08002909 * <UL>
2910 * <LI>RSRP = 1 << 0</LI>
2911 * <LI>RSRQ = 1 << 1</LI>
2912 * <LI>RSSNR = 1 << 2</LI>
2913 * </UL>
2914 * <p> The value of this key must be bitwise OR of {@link CellSignalStrengthLte#USE_RSRP},
2915 * {@link CellSignalStrengthLte#USE_RSRQ}, {@link CellSignalStrengthLte#USE_RSSNR}.
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09002916 *
Shuo Qiandc861202020-03-03 19:51:13 -08002917 * <p> For example, if both RSRP and RSRQ are used, the value of key is 3 (1 << 0 | 1 << 1).
2918 * If the key is invalid or not configured, a default value (RSRP = 1 << 0) will apply.
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09002919 *
2920 * @hide
2921 */
2922 public static final String KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT =
2923 "parameters_used_for_lte_signal_bar_int";
2924
2925 /**
Shuo Qian8c1e8732019-10-24 11:12:50 -07002926 * List of 4 customized 5G SS reference signal received power (SSRSRP) thresholds.
Shuo Qiandc861202020-03-03 19:51:13 -08002927 * <p>
Shuo Qian8c1e8732019-10-24 11:12:50 -07002928 * Reference: 3GPP TS 38.215
Shuo Qiandc861202020-03-03 19:51:13 -08002929 * <p>
Shuo Qian8c1e8732019-10-24 11:12:50 -07002930 * 4 threshold integers must be within the boundaries [-140 dB, -44 dB], and the levels are:
Shuo Qiandc861202020-03-03 19:51:13 -08002931 * <UL>
Yang Caoaf14d7c2021-12-17 10:26:32 +08002932 * <LI>"NONE: [-140, threshold1)"</LI>
2933 * <LI>"POOR: [threshold1, threshold2)"</LI>
2934 * <LI>"MODERATE: [threshold2, threshold3)"</LI>
2935 * <LI>"GOOD: [threshold3, threshold4)"</LI>
2936 * <LI>"EXCELLENT: [threshold4, -44]"</LI>
Shuo Qiandc861202020-03-03 19:51:13 -08002937 * </UL>
2938 * <p>
Shuo Qian8c1e8732019-10-24 11:12:50 -07002939 * This key is considered invalid if the format is violated. If the key is invalid or
2940 * not configured, a default value set will apply.
2941 */
2942 public static final String KEY_5G_NR_SSRSRP_THRESHOLDS_INT_ARRAY =
2943 "5g_nr_ssrsrp_thresholds_int_array";
2944
2945 /**
2946 * List of 4 customized 5G SS reference signal received quality (SSRSRQ) thresholds.
Shuo Qiandc861202020-03-03 19:51:13 -08002947 * <p>
Shuo Qian26e679e2020-07-01 11:48:52 -07002948 * Reference: 3GPP TS 38.215; 3GPP TS 38.133 section 10
Shuo Qiandc861202020-03-03 19:51:13 -08002949 * <p>
Shuo Qian26e679e2020-07-01 11:48:52 -07002950 * 4 threshold integers must be within the boundaries [-43 dB, 20 dB], and the levels are:
Shuo Qiandc861202020-03-03 19:51:13 -08002951 * <UL>
Yang Caoaf14d7c2021-12-17 10:26:32 +08002952 * <LI>"NONE: [-43, threshold1)"</LI>
2953 * <LI>"POOR: [threshold1, threshold2)"</LI>
2954 * <LI>"MODERATE: [threshold2, threshold3)"</LI>
2955 * <LI>"GOOD: [threshold3, threshold4)"</LI>
2956 * <LI>"EXCELLENT: [threshold4, 20]"</LI>
Shuo Qiandc861202020-03-03 19:51:13 -08002957 * </UL>
2958 * <p>
Shuo Qian8c1e8732019-10-24 11:12:50 -07002959 * This key is considered invalid if the format is violated. If the key is invalid or
2960 * not configured, a default value set will apply.
2961 */
2962 public static final String KEY_5G_NR_SSRSRQ_THRESHOLDS_INT_ARRAY =
2963 "5g_nr_ssrsrq_thresholds_int_array";
2964
2965 /**
2966 * List of 4 customized 5G SS signal-to-noise and interference ratio (SSSINR) thresholds.
Shuo Qiandc861202020-03-03 19:51:13 -08002967 * <p>
Shuo Qian8c1e8732019-10-24 11:12:50 -07002968 * Reference: 3GPP TS 38.215,
2969 * 3GPP TS 38.133 10.1.16.1
Shuo Qiandc861202020-03-03 19:51:13 -08002970 * <p>
Shuo Qian8c1e8732019-10-24 11:12:50 -07002971 * 4 threshold integers must be within the boundaries [-23 dB, 40 dB], and the levels are:
Shuo Qiandc861202020-03-03 19:51:13 -08002972 * <UL>
Yang Caoaf14d7c2021-12-17 10:26:32 +08002973 * <LI>"NONE: [-23, threshold1)"</LI>
2974 * <LI>"POOR: [threshold1, threshold2)"</LI>
2975 * <LI>"MODERATE: [threshold2, threshold3)"</LI>
2976 * <LI>"GOOD: [threshold3, threshold4)"</LI>
2977 * <LI>"EXCELLENT: [threshold4, 40]"</LI>
Shuo Qiandc861202020-03-03 19:51:13 -08002978 * </UL>
2979 * <p>
Shuo Qian8c1e8732019-10-24 11:12:50 -07002980 * This key is considered invalid if the format is violated. If the key is invalid or
2981 * not configured, a default value set will apply.
2982 */
2983 public static final String KEY_5G_NR_SSSINR_THRESHOLDS_INT_ARRAY =
2984 "5g_nr_sssinr_thresholds_int_array";
2985
2986 /**
2987 * Bit-field integer to determine whether to use SS reference signal received power (SSRSRP),
2988 * SS reference signal received quality (SSRSRQ), or/and SS signal-to-noise and interference
Shuo Qian7d7b2f12019-11-23 19:09:36 -08002989 * ratio (SSSINR) for the number of 5G NR signal bars and signal criteria reporting enabling.
2990 *
2991 * <p> If a measure is not set, signal criteria reporting from modem will not be triggered and
2992 * not be used for calculating signal level. If multiple measures are set bit, the parameter
2993 * whose value is smallest is used to indicate the signal level.
Shuo Qiandc861202020-03-03 19:51:13 -08002994 * <UL>
2995 * <LI>SSRSRP = 1 << 0</LI>
2996 * <LI>SSRSRQ = 1 << 1</LI>
2997 * <LI>SSSINR = 1 << 2</LI>
2998 * </UL>
Shuo Qian7d7b2f12019-11-23 19:09:36 -08002999 * The value of this key must be bitwise OR of {@link CellSignalStrengthNr#USE_SSRSRP},
3000 * {@link CellSignalStrengthNr#USE_SSRSRQ}, {@link CellSignalStrengthNr#USE_SSSINR}.
3001 *
Shuo Qiandc861202020-03-03 19:51:13 -08003002 * <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 -08003003 * If the key is invalid or not configured, a default value (SSRSRP = 1 << 0) will apply.
3004 *
Shuo Qiandc861202020-03-03 19:51:13 -08003005 * <p> Reference: 3GPP TS 38.215,
3006 * 3GPP TS 38.133 10.1.16.1
Shuo Qian7d7b2f12019-11-23 19:09:36 -08003007 *
3008 * @hide
Shuo Qian8c1e8732019-10-24 11:12:50 -07003009 */
3010 public static final String KEY_PARAMETERS_USE_FOR_5G_NR_SIGNAL_BAR_INT =
3011 "parameters_use_for_5g_nr_signal_bar_int";
3012
3013 /**
SongFerngWang68c58a52020-04-13 18:13:04 +08003014 * There are two signal strengths, NR and LTE signal strength, during NR (non-standalone).
3015 * Boolean indicating whether to use LTE signal strength as primary during NR (non-standalone).
3016 * By default this value is true.
3017 *
3018 * @hide
3019 */
3020 public static final String KEY_SIGNAL_STRENGTH_NR_NSA_USE_LTE_AS_PRIMARY_BOOL =
3021 "signal_strength_nr_nsa_use_lte_as_primary_bool";
3022
3023 /**
Sarah Chin5023ffd2020-02-07 10:33:06 -08003024 * String array of default bandwidth values per network type.
Sarah Chin83469632021-12-06 18:34:24 -08003025 * The entries should be of form: "network_name:downlink,uplink", with values in Kbps.
3026 * For NR (5G), the following network names should be used:
3027 * - NR_NSA: NR NSA, sub-6 frequencies
3028 * - NR_NSA_MMWAVE: NR NSA, mmwave frequencies
3029 * - NR_SA: NR SA, sub-6 frequencies
3030 * - NR_SA_MMWAVE: NR SA, mmwave frequencies
Sarah Chin5023ffd2020-02-07 10:33:06 -08003031 * @hide
3032 */
3033 public static final String KEY_BANDWIDTH_STRING_ARRAY = "bandwidth_string_array";
3034
3035 /**
3036 * 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 -08003037 * uplink bandwidth. Downlink bandwidth will still use the NR value as the default.
Sarah Chin5023ffd2020-02-07 10:33:06 -08003038 * @hide
3039 */
Sarah Chin83469632021-12-06 18:34:24 -08003040 public static final String KEY_BANDWIDTH_NR_NSA_USE_LTE_VALUE_FOR_UPLINK_BOOL =
3041 "bandwidth_nr_nsa_use_lte_value_for_uplink_bool";
Sarah Chin5023ffd2020-02-07 10:33:06 -08003042
3043 /**
Sanket Padawedb688bb2017-03-28 15:26:13 -07003044 * Key identifying if voice call barring notification is required to be shown to the user.
3045 * @hide
3046 */
Mathew Inwood8e742f92020-10-27 11:47:29 +00003047 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
Sanket Padawedb688bb2017-03-28 15:26:13 -07003048 public static final String KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL =
3049 "disable_voice_barring_notification_bool";
3050
pkanwar232573f2017-05-31 13:10:03 -07003051 /**
fionaxu1c6027c2017-06-01 18:52:17 -07003052 * List of operators considered non-roaming which won't show roaming icon.
3053 * <p>
3054 * Can use mcc or mcc+mnc as item. For example, 302 or 21407.
3055 * If operators, 21404 and 21407, make roaming agreements, users of 21404 should not see
3056 * the roaming icon as using 21407 network.
3057 * @hide
3058 */
3059 public static final String KEY_NON_ROAMING_OPERATOR_STRING_ARRAY =
3060 "non_roaming_operator_string_array";
3061
3062 /**
3063 * List of operators considered roaming with the roaming icon.
3064 * <p>
3065 * Can use mcc or mcc+mnc as item. For example, 302 or 21407.
3066 * If operators, 21404 and 21407, make roaming agreements, users of 21404 should see
3067 * the roaming icon as using 21407 network.
3068 * <p>
3069 * A match on this supersedes a match on {@link #KEY_NON_ROAMING_OPERATOR_STRING_ARRAY}.
3070 * @hide
3071 */
3072 public static final String KEY_ROAMING_OPERATOR_STRING_ARRAY =
3073 "roaming_operator_string_array";
3074
pkanwar766f4612017-05-31 13:10:03 -07003075 /**
3076 * URL from which the proto containing the public key of the Carrier used for
3077 * IMSI encryption will be downloaded.
3078 * @hide
3079 */
3080 public static final String IMSI_KEY_DOWNLOAD_URL_STRING = "imsi_key_download_url_string";
3081
3082 /**
Jordan Liu762fe4b2021-01-14 13:00:06 -08003083 * String representation of a carrier's public key used for IMSI encryption for ePDG. If this
3084 * is provided, the device will use it as a fallback when no key exists on device, but the key
3085 * download will still initiate.
3086 * Example string:
3087 * "-----BEGIN CERTIFICATE-----\nabcde12345abcde12345abcde12345abcde1234
3088 * 5abcde12345abcde12345\nabcde12345abcde12345abcde12345abcde12345a\n-----END CERTIFICATE-----"
3089 * @hide
3090 */
3091 public static final String IMSI_CARRIER_PUBLIC_KEY_EPDG_STRING =
3092 "imsi_carrier_public_key_epdg_string";
3093
3094 /**
3095 * String representation of a carrier's public key used for IMSI encryption for WLAN. If this
3096 * is provided, the device will use it as a fallback when no key exists on device, but the key
3097 * download will still initiate.
3098 * Example string:
3099 * "-----BEGIN CERTIFICATE-----\nabcde12345abcde12345abcde12345abcde1234
3100 * 5abcde12345abcde12345\nabcde12345abcde12345abcde12345abcde12345a\n-----END CERTIFICATE-----"
3101 * @hide
3102 */
3103 public static final String IMSI_CARRIER_PUBLIC_KEY_WLAN_STRING =
3104 "imsi_carrier_public_key_wlan_string";
3105
3106 /**
pkanwarbecc8692017-07-04 16:04:44 -07003107 * Identifies if the key is available for WLAN or EPDG or both. The value is a bitmask.
3108 * 0 indicates that neither EPDG or WLAN is enabled.
Sarah China912e112020-01-09 10:43:30 -08003109 * 1 indicates that key type TelephonyManager#KEY_TYPE_EPDG is enabled.
3110 * 2 indicates that key type TelephonyManager#KEY_TYPE_WLAN is enabled.
pkanwarbecc8692017-07-04 16:04:44 -07003111 * 3 indicates that both are enabled.
pkanwar766f4612017-05-31 13:10:03 -07003112 */
pkanwarbecc8692017-07-04 16:04:44 -07003113 public static final String IMSI_KEY_AVAILABILITY_INT = "imsi_key_availability_int";
3114
Naveen Kallaabd28422017-07-11 20:03:58 -07003115 /**
3116 * Key identifying if the CDMA Caller ID presentation and suppression MMI codes
3117 * should be converted to 3GPP CLIR codes when a multimode (CDMA+UMTS+LTE) device is roaming
3118 * on a 3GPP network. Specifically *67<number> will be converted to #31#<number> and
3119 * *82<number> will be converted to *31#<number> before dialing a call when this key is
3120 * set TRUE and device is roaming on a 3GPP network.
3121 * @hide
3122 */
3123 public static final String KEY_CONVERT_CDMA_CALLER_ID_MMI_CODES_WHILE_ROAMING_ON_3GPP_BOOL =
3124 "convert_cdma_caller_id_mmi_codes_while_roaming_on_3gpp_bool";
3125
Ping Sune0e3cbd2016-03-02 19:09:27 +08003126 /**
3127 * Flag specifying whether IMS registration state menu is shown in Status Info setting,
3128 * default to false.
Ping Sune0e3cbd2016-03-02 19:09:27 +08003129 */
3130 public static final String KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL =
3131 "show_ims_registration_status_bool";
3132
Omata Shou9766b182017-08-22 17:17:55 +09003133 /**
Hall Liu47ed6202017-11-20 16:25:39 -08003134 * Flag indicating whether the carrier supports RTT over IMS.
3135 */
3136 public static final String KEY_RTT_SUPPORTED_BOOL = "rtt_supported_bool";
3137
3138 /**
Tyler Gunne4d72b42019-02-25 10:42:45 -08003139 * Boolean flag indicating whether the carrier supports TTY.
3140 * <p>
3141 * Note that {@link #KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL} controls availability of TTY over
3142 * VoLTE; if {@link #KEY_TTY_SUPPORTED_BOOL} is disabled, then
3143 * {@link #KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL} is also implicitly disabled.
3144 * <p>
3145 * {@link TelecomManager#isTtySupported()} should be used to determine if a device supports TTY,
3146 * and this carrier config key should be used to see if the current carrier supports it.
3147 */
3148 public static final String KEY_TTY_SUPPORTED_BOOL = "tty_supported_bool";
3149
3150 /**
Hall Liu86fec032018-10-09 16:33:45 -07003151 * Indicates if the carrier supports auto-upgrading a call to RTT when receiving a call from a
3152 * RTT-supported device.
Hall Liu86fec032018-10-09 16:33:45 -07003153 */
3154 public static final String KEY_RTT_AUTO_UPGRADE_BOOL = "rtt_auto_upgrade_bool";
3155
3156 /**
3157 * Indicates if the carrier supports RTT during a video call.
Hall Liu86fec032018-10-09 16:33:45 -07003158 */
3159 public static final String KEY_RTT_SUPPORTED_FOR_VT_BOOL = "rtt_supported_for_vt_bool";
3160
3161 /**
Hall Liuf4eae0f2021-03-15 16:03:38 -07003162 * Indicates if the carrier supports upgrading a call that was previously an RTT call to VT.
3163 */
3164 public static final String KEY_VT_UPGRADE_SUPPORTED_FOR_DOWNGRADED_RTT_CALL_BOOL =
3165 "vt_upgrade_supported_for_downgraded_rtt_call";
3166
3167 /**
3168 * Indicates if the carrier supports upgrading a call that was previously a VT call to RTT.
3169 */
3170 public static final String KEY_RTT_UPGRADE_SUPPORTED_FOR_DOWNGRADED_VT_CALL_BOOL =
3171 "rtt_upgrade_supported_for_downgraded_vt_call";
3172
3173 /**
Hall Liu86fec032018-10-09 16:33:45 -07003174 * Indicates if the carrier supports upgrading a voice call to an RTT call during the call.
Hall Liu86fec032018-10-09 16:33:45 -07003175 */
3176 public static final String KEY_RTT_UPGRADE_SUPPORTED_BOOL = "rtt_upgrade_supported_bool";
3177
3178 /**
3179 * Indicates if the carrier supports downgrading a RTT call to a voice call during the call.
Hall Liu86fec032018-10-09 16:33:45 -07003180 */
3181 public static final String KEY_RTT_DOWNGRADE_SUPPORTED_BOOL = "rtt_downgrade_supported_bool";
3182
3183 /**
Hall Liu3a23d7e2019-07-29 17:30:12 -07003184 * Indicates if the TTY HCO and VCO options should be hidden in the accessibility menu
3185 * if the device is capable of RTT.
Hall Liu3a23d7e2019-07-29 17:30:12 -07003186 */
3187 public static final String KEY_HIDE_TTY_HCO_VCO_WITH_RTT_BOOL = "hide_tty_hco_vco_with_rtt";
3188
3189 /**
Omata Shou9766b182017-08-22 17:17:55 +09003190 * The flag to disable the popup dialog which warns the user of data charges.
Omata Shou9766b182017-08-22 17:17:55 +09003191 */
3192 public static final String KEY_DISABLE_CHARGE_INDICATION_BOOL =
3193 "disable_charge_indication_bool";
3194
DongYuchen439f16d2017-02-16 18:22:36 +08003195 /**
3196 * Boolean indicating whether to skip the call forwarding (CF) fail-to-disable dialog.
3197 * The logic used to determine whether we succeeded in disabling is carrier specific,
3198 * so the dialog may not always be accurate.
3199 * {@code false} - show CF fail-to-disable dialog.
3200 * {@code true} - skip showing CF fail-to-disable dialog.
3201 *
3202 * @hide
3203 */
3204 public static final String KEY_SKIP_CF_FAIL_TO_DISABLE_DIALOG_BOOL =
3205 "skip_cf_fail_to_disable_dialog_bool";
3206
Kazuya Ohshiro990af172017-09-27 16:02:55 +09003207 /**
manabu, shimoda6ce31382017-12-25 18:38:47 +09003208 * Flag specifying whether operator supports including no reply condition timer option on
3209 * CFNRy (3GPP TS 24.082 3: Call Forwarding on No Reply) in the call forwarding settings UI.
3210 * {@code true} - include no reply condition timer option on CFNRy
3211 * {@code false} - don't include no reply condition timer option on CFNRy
3212 *
3213 * @hide
3214 */
3215 public static final String KEY_SUPPORT_NO_REPLY_TIMER_FOR_CFNRY_BOOL =
3216 "support_no_reply_timer_for_cfnry_bool";
3217
3218 /**
Kazuya Ohshiro990af172017-09-27 16:02:55 +09003219 * List of the FAC (feature access codes) to dial as a normal call.
3220 * @hide
3221 */
3222 public static final String KEY_FEATURE_ACCESS_CODES_STRING_ARRAY =
3223 "feature_access_codes_string_array";
3224
Kazuya Ohshirob8981ba2017-10-27 16:26:15 +09003225 /**
3226 * Determines if the carrier wants to identify high definition calls in the call log.
3227 * @hide
3228 */
3229 public static final String KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL =
3230 "identify_high_definition_calls_in_call_log_bool";
3231
Masaho Nishikawa40184352017-11-01 20:33:36 +09003232 /**
3233 * Flag specifying whether to use the {@link ServiceState} roaming status, which can be
3234 * affected by other carrier configs (e.g.
3235 * {@link #KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY}), when setting the SPN display.
3236 * <p>
3237 * If {@code true}, the SPN display uses {@link ServiceState#getRoaming}.
3238 * If {@code false} the SPN display checks if the current MCC/MNC is different from the
3239 * SIM card's MCC/MNC.
3240 *
3241 * @see KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY
3242 * @see KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY
3243 * @see KEY_NON_ROAMING_OPERATOR_STRING_ARRAY
3244 * @see KEY_ROAMING_OPERATOR_STRING_ARRAY
3245 * @see KEY_FORCE_HOME_NETWORK_BOOL
3246 *
3247 * @hide
3248 */
3249 public static final String KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL =
3250 "spn_display_rule_use_roaming_from_service_state_bool";
3251
yinxu0d56f3c2017-11-29 15:02:05 -08003252 /**
3253 * Determines whether any carrier has been identified and its specific config has been applied,
3254 * default to false.
yinxu0d56f3c2017-11-29 15:02:05 -08003255 */
3256 public static final String KEY_CARRIER_CONFIG_APPLIED_BOOL = "carrier_config_applied_bool";
3257
pkanwar1e96fae2018-01-03 18:41:18 -08003258 /**
3259 * Determines whether we should show a warning asking the user to check with their carrier
Sarah China912e112020-01-09 10:43:30 -08003260 * on pricing when the user enabled data roaming,
pkanwar1e96fae2018-01-03 18:41:18 -08003261 * default to false.
pkanwar1e96fae2018-01-03 18:41:18 -08003262 */
3263 public static final String KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL =
3264 "check_pricing_with_carrier_data_roaming_bool";
3265
Jordan Liub5fbb912019-07-23 15:52:08 -07003266 /**
3267 * Determines whether we should show a notification when the phone established a data
3268 * connection in roaming network, to warn users about possible roaming charges.
3269 * @hide
3270 */
3271 public static final String KEY_SHOW_DATA_CONNECTED_ROAMING_NOTIFICATION_BOOL =
3272 "show_data_connected_roaming_notification";
3273
Kitta Koutarou911f56c2017-12-01 19:19:49 +09003274 /**
Jordan Liu407b4792018-02-26 15:50:21 -08003275 * A list of 4 LTE RSRP thresholds above which a signal level is considered POOR,
3276 * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.
3277 *
3278 * Note that the min and max thresholds are fixed at -140 and -44, as explained in
3279 * TS 136.133 9.1.4 - RSRP Measurement Report Mapping.
3280 * <p>
3281 * See SignalStrength#MAX_LTE_RSRP and SignalStrength#MIN_LTE_RSRP. Any signal level outside
3282 * these boundaries is considered invalid.
Kitta Koutarou911f56c2017-12-01 19:19:49 +09003283 * @hide
3284 */
3285 public static final String KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY =
3286 "lte_rsrp_thresholds_int_array";
3287
Malcolm Chenec102212018-01-29 15:10:46 -08003288 /**
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09003289 * A list of 4 customized LTE Reference Signal Received Quality (RSRQ) thresholds.
3290 *
3291 * Reference: TS 136.133 v12.6.0 section 9.1.7 - RSRQ Measurement Report Mapping.
3292 *
3293 * 4 threshold integers must be within the boundaries [-34 dB, 3 dB], and the levels are:
3294 * "NONE: [-34, threshold1)"
3295 * "POOR: [threshold1, threshold2)"
3296 * "MODERATE: [threshold2, threshold3)"
3297 * "GOOD: [threshold3, threshold4)"
3298 * "EXCELLENT: [threshold4, 3]"
3299 *
3300 * This key is considered invalid if the format is violated. If the key is invalid or
3301 * not configured, a default value set will apply.
3302 */
3303 public static final String KEY_LTE_RSRQ_THRESHOLDS_INT_ARRAY =
3304 "lte_rsrq_thresholds_int_array";
3305
3306 /**
3307 * A list of 4 customized LTE Reference Signal Signal to Noise Ratio (RSSNR) thresholds.
3308 *
Shuo Qian6775b772020-06-11 10:32:17 -07003309 * 4 threshold integers must be within the boundaries [-20 dB, 30 dB], and the levels are:
3310 * "NONE: [-20, threshold1)"
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09003311 * "POOR: [threshold1, threshold2)"
3312 * "MODERATE: [threshold2, threshold3)"
3313 * "GOOD: [threshold3, threshold4)"
Shuo Qian6775b772020-06-11 10:32:17 -07003314 * "EXCELLENT: [threshold4, 30]"
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09003315 *
3316 * This key is considered invalid if the format is violated. If the key is invalid or
3317 * not configured, a default value set will apply.
3318 */
3319 public static final String KEY_LTE_RSSNR_THRESHOLDS_INT_ARRAY =
3320 "lte_rssnr_thresholds_int_array";
3321
3322 /**
Malcolm Chenec102212018-01-29 15:10:46 -08003323 * Decides when clients try to bind to iwlan network service, which package name will
3324 * the binding intent go to.
3325 * @hide
3326 */
Jack Yu4d21a402018-08-27 16:59:05 -07003327 public static final String KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING =
3328 "carrier_network_service_wlan_package_override_string";
Malcolm Chenec102212018-01-29 15:10:46 -08003329
3330 /**
Yatai Lin6ed1ada2019-04-09 10:24:15 +08003331 * Decides when clients try to bind to iwlan network service, which class name will
3332 * the binding intent go to.
3333 * @hide
3334 */
3335 public static final String KEY_CARRIER_NETWORK_SERVICE_WLAN_CLASS_OVERRIDE_STRING =
3336 "carrier_network_service_wlan_class_override_string";
3337
3338 /**
Malcolm Chenec102212018-01-29 15:10:46 -08003339 * Decides when clients try to bind to wwan (cellular) network service, which package name will
3340 * the binding intent go to.
3341 * @hide
3342 */
Jack Yu4d21a402018-08-27 16:59:05 -07003343 public static final String KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING =
3344 "carrier_network_service_wwan_package_override_string";
Malcolm Chenec102212018-01-29 15:10:46 -08003345
Tomita, Ryounosuke Xd41feee2017-12-13 18:46:12 +09003346 /**
Yatai Lin6ed1ada2019-04-09 10:24:15 +08003347 * Decides when clients try to bind to wwan (cellular) network service, which class name will
3348 * the binding intent go to.
3349 * @hide
3350 */
3351 public static final String KEY_CARRIER_NETWORK_SERVICE_WWAN_CLASS_OVERRIDE_STRING =
3352 "carrier_network_service_wwan_class_override_string";
3353
3354 /**
Jack Yu4d21a402018-08-27 16:59:05 -07003355 * The package name of qualified networks service that telephony binds to.
3356 *
3357 * @hide
3358 */
3359 public static final String KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_PACKAGE_OVERRIDE_STRING =
3360 "carrier_qualified_networks_service_package_override_string";
Yatai Lin6ed1ada2019-04-09 10:24:15 +08003361
3362 /**
3363 * The class name of qualified networks service that telephony binds to.
3364 *
3365 * @hide
3366 */
3367 public static final String KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_CLASS_OVERRIDE_STRING =
3368 "carrier_qualified_networks_service_class_override_string";
Jack Yu4d21a402018-08-27 16:59:05 -07003369 /**
Tomita, Ryounosuke Xd41feee2017-12-13 18:46:12 +09003370 * A list of 4 LTE RSCP thresholds above which a signal level is considered POOR,
3371 * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.
3372 *
3373 * Note that the min and max thresholds are fixed at -120 and -24, as set in 3GPP TS 27.007
3374 * section 8.69.
3375 * <p>
3376 * See SignalStrength#MAX_WCDMA_RSCP and SignalStrength#MIN_WDCMA_RSCP. Any signal level outside
3377 * these boundaries is considered invalid.
3378 * @hide
3379 */
3380 public static final String KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY =
3381 "wcdma_rscp_thresholds_int_array";
3382
3383 /**
3384 * The default measurement to use for signal strength reporting. If this is not specified, the
3385 * RSSI is used.
3386 * <p>
3387 * e.g.) To use RSCP by default, set the value to "rscp". The signal strength level will
3388 * then be determined by #KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY
3389 * <p>
Nathan Harold549c3ba2019-01-03 10:30:31 -08003390 * Currently this supports the value "rscp" and "rssi".
Tomita, Ryounosuke Xd41feee2017-12-13 18:46:12 +09003391 * @hide
3392 */
Nathan Haroldf23153f2018-11-19 18:09:40 -08003393 // FIXME: this key and related keys must not be exposed without a consistent philosophy for
3394 // all RATs.
Tomita, Ryounosuke Xd41feee2017-12-13 18:46:12 +09003395 public static final String KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING =
3396 "wcdma_default_signal_strength_measurement_string";
3397
Malcolm Chenb56234f2018-04-16 15:20:38 -07003398 /**
3399 * When a partial sms / mms message stay in raw table for too long without being completed,
3400 * we expire them and delete them from the raw table. This carrier config defines the
3401 * expiration time.
3402 * @hide
3403 */
3404 public static final String KEY_UNDELIVERED_SMS_MESSAGE_EXPIRATION_TIME =
3405 "undelivered_sms_message_expiration_time";
3406
sqianea8970c2018-06-06 22:54:04 -07003407 /**
sqian4be071a2019-03-18 14:10:53 -07003408 * Specifies a carrier-defined {@link android.telecom.CallRedirectionService} which Telecom
3409 * will bind to for outgoing calls. An empty string indicates that no carrier-defined
3410 * {@link android.telecom.CallRedirectionService} is specified.
sqianea8970c2018-06-06 22:54:04 -07003411 */
3412 public static final String KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING =
3413 "call_redirection_service_component_name_string";
Sarah China912e112020-01-09 10:43:30 -08003414
Mengjun Lengc9356222018-08-28 11:05:34 +08003415 /**
3416 * Support for the original string display of CDMA MO call.
3417 * By default, it is disabled.
3418 * @hide
3419 */
3420 public static final String KEY_CONFIG_SHOW_ORIG_DIAL_STRING_FOR_CDMA_BOOL =
3421 "config_show_orig_dial_string_for_cdma";
sqianea8970c2018-06-06 22:54:04 -07003422
Kikkawa Shohei638d11e2018-09-21 17:06:07 +09003423 /**
3424 * Flag specifying whether to show notification(call blocking disabled) when Enhanced Call
3425 * Blocking(KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL) is enabled and making emergency call.
3426 * When true, notification is shown always.
3427 * When false, notification is shown only when any setting of "Enhanced Blocked number" is
3428 * enabled.
3429 */
3430 public static final String KEY_SHOW_CALL_BLOCKING_DISABLED_NOTIFICATION_ALWAYS_BOOL =
3431 "show_call_blocking_disabled_notification_always_bool";
3432
SongFerngWang165d2d22018-07-09 21:10:26 +08003433 /**
3434 * Some carriers only support SS over UT via INTERNET PDN.
3435 * When mobile data is OFF or data roaming OFF during roaming,
3436 * UI should block the call forwarding operation and notify the user
3437 * that the function only works if data is available.
3438 * @hide
3439 */
3440 public static final String KEY_CALL_FORWARDING_OVER_UT_WARNING_BOOL =
3441 "call_forwarding_over_ut_warning_bool";
3442
3443 /**
3444 * Some carriers only support SS over UT via INTERNET PDN.
3445 * When mobile data is OFF or data roaming OFF during roaming,
3446 * UI should block the call barring operation and notify the user
3447 * that the function only works if data is available.
3448 * @hide
3449 */
3450 public static final String KEY_CALL_BARRING_OVER_UT_WARNING_BOOL =
3451 "call_barring_over_ut_warning_bool";
3452
3453 /**
3454 * Some carriers only support SS over UT via INTERNET PDN.
3455 * When mobile data is OFF or data roaming OFF during roaming,
3456 * UI should block the caller id operation and notify the user
3457 * that the function only works if data is available.
3458 * @hide
3459 */
3460 public static final String KEY_CALLER_ID_OVER_UT_WARNING_BOOL =
3461 "caller_id_over_ut_warning_bool";
3462
3463 /**
3464 * Some carriers only support SS over UT via INTERNET PDN.
3465 * When mobile data is OFF or data roaming OFF during roaming,
3466 * UI should block the call waiting operation and notify the user
3467 * that the function only works if data is available.
3468 * @hide
3469 */
3470 public static final String KEY_CALL_WAITING_OVER_UT_WARNING_BOOL =
3471 "call_waiting_over_ut_warning_bool";
3472
Youming Ye568455f2018-10-24 14:54:39 -07003473 /**
3474 * Flag indicating whether to support "Network default" option in Caller ID settings for Calling
3475 * Line Identification Restriction (CLIR).
3476 */
3477 public static final String KEY_SUPPORT_CLIR_NETWORK_DEFAULT_BOOL =
3478 "support_clir_network_default_bool";
3479
Chuck Liao3bad37e2018-10-30 11:39:56 +08003480 /**
3481 * Determines whether the carrier want to support emergency dialer shortcut.
3482 * @hide
3483 */
3484 public static final String KEY_SUPPORT_EMERGENCY_DIALER_SHORTCUT_BOOL =
3485 "support_emergency_dialer_shortcut_bool";
3486
SongFerngWangc64d9702018-10-24 11:37:13 +08003487 /**
3488 * Call forwarding uses USSD command without SS command.
3489 * When {@code true}, the call forwarding query/set by ussd command and UI only display Call
3490 * Forwarding when unanswered.
3491 * When {@code false}, don't use USSD to query/set call forwarding.
3492 * @hide
3493 */
3494 public static final String KEY_USE_CALL_FORWARDING_USSD_BOOL = "use_call_forwarding_ussd_bool";
3495
3496 /**
3497 * This flag specifies whether to support for the caller id set command by ussd.
3498 * When {@code true}, device shall sync caller id ussd result to ss command.
3499 * When {@code false}, caller id don't support ussd command.
3500 * @hide
3501 */
3502 public static final String KEY_USE_CALLER_ID_USSD_BOOL = "use_caller_id_ussd_bool";
3503
3504 /**
SongFerngWang7718c202021-03-31 22:55:50 +08003505 * Call waiting uses USSD command without SS command.
3506 * When {@code true}, the call waiting query/set by ussd command.
3507 * When {@code false}, doesn't use USSD to query/set call waiting.
3508 * @hide
3509 */
3510 public static final String KEY_USE_CALL_WAITING_USSD_BOOL = "use_call_waiting_ussd_bool";
3511
3512 /**
SongFerngWangc64d9702018-10-24 11:37:13 +08003513 * Specifies the service class for call waiting service.
3514 * Default value is
3515 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_VOICE}.
3516 * <p>
3517 * See 27.007 +CCFC or +CLCK.
3518 * The value set as below:
3519 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_NONE}
3520 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_VOICE}
3521 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_DATA}
3522 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_FAX}
3523 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_SMS}
3524 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_DATA_SYNC}
3525 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_DATA_ASYNC}
3526 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_PACKET}
3527 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_PAD}
3528 * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_MAX}
3529 * @hide
3530 */
3531 public static final String KEY_CALL_WAITING_SERVICE_CLASS_INT =
3532 "call_waiting_service_class_int";
3533
Pengquan Mengdfb39562018-12-05 16:26:42 -08003534 /**
Sarah China912e112020-01-09 10:43:30 -08003535 * This configuration allows the system UI to display different 5G icons for different 5G
3536 * scenarios.
Pengquan Mengdfb39562018-12-05 16:26:42 -08003537 *
SongFerngWang52dada72019-08-14 16:59:29 +08003538 * There are five 5G scenarios:
Pengquan Mengdfb39562018-12-05 16:26:42 -08003539 * 1. connected_mmwave: device currently connected to 5G cell as the secondary cell and using
3540 * millimeter wave.
3541 * 2. connected: device currently connected to 5G cell as the secondary cell but not using
3542 * millimeter wave.
SongFerngWang52dada72019-08-14 16:59:29 +08003543 * 3. not_restricted_rrc_idle: device camped on a network that has 5G capability(not necessary
3544 * to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3545 * currently in IDLE state.
3546 * 4. not_restricted_rrc_con: device camped on a network that has 5G capability(not necessary
3547 * to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3548 * currently in CONNECTED state.
3549 * 5. restricted: device camped on a network that has 5G capability(not necessary to connect a
Pengquan Mengdfb39562018-12-05 16:26:42 -08003550 * 5G cell as a secondary cell) but the use of 5G is restricted.
3551 *
3552 * The configured string contains multiple key-value pairs separated by comma. For each pair,
Sarah China912e112020-01-09 10:43:30 -08003553 * 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 -08003554 * 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 +08003555 * specific 5G scenario. If the scenario is "None", config can skip this key and value.
Pengquan Mengdfb39562018-12-05 16:26:42 -08003556 *
SongFerngWangb532af62019-08-20 22:32:16 +08003557 * Icon name options: "5G_Plus", "5G".
3558 *
SongFerngWang52dada72019-08-14 16:59:29 +08003559 * Here is an example:
Sarah China912e112020-01-09 10:43:30 -08003560 * UE wants to display 5G_Plus icon for scenario#1, and 5G icon for scenario#2; otherwise not
SongFerngWang52dada72019-08-14 16:59:29 +08003561 * define.
SongFerngWangb532af62019-08-20 22:32:16 +08003562 * The configuration is: "connected_mmwave:5G_Plus,connected:5G"
Sarah Chinb800cbd2020-02-19 12:25:36 -08003563 * @hide
Pengquan Mengdfb39562018-12-05 16:26:42 -08003564 */
Sarah Chinb800cbd2020-02-19 12:25:36 -08003565 public static final String KEY_5G_ICON_CONFIGURATION_STRING = "5g_icon_configuration_string";
Pengquan Mengdfb39562018-12-05 16:26:42 -08003566
Sooraj Sasindran873252f2018-12-11 10:35:16 -08003567 /**
Sarah Chin46941d62020-04-20 21:11:40 -07003568 * This configuration allows the system UI to determine how long to continue to display 5G icons
3569 * when the device switches between different 5G scenarios.
Pengquan Meng0ac07b22019-06-26 16:56:45 -07003570 *
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003571 * There are seven 5G scenarios:
Sarah Chin46941d62020-04-20 21:11:40 -07003572 * 1. connected_mmwave: device currently connected to 5G cell as the secondary cell and using
3573 * millimeter wave.
3574 * 2. connected: device currently connected to 5G cell as the secondary cell but not using
3575 * millimeter wave.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003576 * 3. not_restricted_rrc_idle: device camped on a network that has 5G capability (not necessary
Sarah Chin46941d62020-04-20 21:11:40 -07003577 * to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3578 * currently in IDLE state.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003579 * 4. not_restricted_rrc_con: device camped on a network that has 5G capability (not necessary
Sarah Chin46941d62020-04-20 21:11:40 -07003580 * to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3581 * currently in CONNECTED state.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003582 * 5. restricted: device camped on a network that has 5G capability (not necessary to connect a
Sarah Chin46941d62020-04-20 21:11:40 -07003583 * 5G cell as a secondary cell) but the use of 5G is restricted.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003584 * 6. legacy: device is not camped on a network that has 5G capability
3585 * 7. any: any of the above scenarios
Pengquan Meng0ac07b22019-06-26 16:56:45 -07003586 *
Sarah Chin46941d62020-04-20 21:11:40 -07003587 * The configured string contains various timer rules separated by a semicolon.
3588 * Each rule will have three items: prior 5G scenario, current 5G scenario, and grace period
3589 * in seconds before changing the icon. When the 5G state changes from the prior to the current
3590 * 5G scenario, the system UI will continue to show the icon for the prior 5G scenario (defined
3591 * in {@link #KEY_5G_ICON_CONFIGURATION_STRING}) for the amount of time specified by the grace
3592 * period. If the prior 5G scenario is reestablished, the timer will reset and start again if
3593 * the UE changes 5G scenarios again. Defined states (5G scenarios #1-5) take precedence over
3594 * 'any' (5G scenario #6), and unspecified transitions have a default grace period of 0.
3595 * The order of rules in the configuration determines the priority (the first applicable timer
3596 * rule will be used).
3597 *
3598 * Here is an example: "connected_mmwave,connected,30;connected_mmwave,any,10;connected,any,10"
3599 * This configuration defines 3 timers:
3600 * 1. When UE goes from 'connected_mmwave' to 'connected', system UI will continue to display
3601 * the 5G icon for 'connected_mmwave' for 30 seconds.
3602 * 2. When UE goes from 'connected_mmwave' to any other state (except for connected, since
3603 * rule 1 would be used instead), system UI will continue to display the 5G icon for
3604 * 'connected_mmwave' for 10 seconds.
3605 * 3. When UE goes from 'connected' to any other state, system UI will continue to display the
3606 * 5G icon for 'connected' for 10 seconds.
3607 *
Sarah Chinb800cbd2020-02-19 12:25:36 -08003608 * @hide
Pengquan Meng0ac07b22019-06-26 16:56:45 -07003609 */
Sarah Chin46941d62020-04-20 21:11:40 -07003610 public static final String KEY_5G_ICON_DISPLAY_GRACE_PERIOD_STRING =
3611 "5g_icon_display_grace_period_string";
3612
3613 /**
3614 * This configuration extends {@link #KEY_5G_ICON_DISPLAY_GRACE_PERIOD_STRING} to allow the
3615 * system UI to continue displaying 5G icons after the initial timer expires.
3616 *
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003617 * There are seven 5G scenarios:
Sarah Chin46941d62020-04-20 21:11:40 -07003618 * 1. connected_mmwave: device currently connected to 5G cell as the secondary cell and using
3619 * millimeter wave.
3620 * 2. connected: device currently connected to 5G cell as the secondary cell but not using
3621 * millimeter wave.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003622 * 3. not_restricted_rrc_idle: device camped on a network that has 5G capability (not necessary
Sarah Chin46941d62020-04-20 21:11:40 -07003623 * to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3624 * currently in IDLE state.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003625 * 4. not_restricted_rrc_con: device camped on a network that has 5G capability (not necessary
Sarah Chin46941d62020-04-20 21:11:40 -07003626 * to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3627 * currently in CONNECTED state.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003628 * 5. restricted: device camped on a network that has 5G capability (not necessary to connect a
Sarah Chin46941d62020-04-20 21:11:40 -07003629 * 5G cell as a secondary cell) but the use of 5G is restricted.
Sarah Chin4ab6a9e2020-04-29 11:23:02 -07003630 * 6. legacy: device is not camped on a network that has 5G capability
3631 * 7. any: any of the above scenarios
Sarah Chin46941d62020-04-20 21:11:40 -07003632 *
3633 * The configured string contains various timer rules separated by a semicolon.
3634 * Each rule will have three items: primary 5G scenario, secondary 5G scenario, and
3635 * grace period in seconds before changing the icon. When the timer for the primary 5G timer
3636 * expires, the system UI will continue to show the icon for the primary 5G scenario (defined
3637 * in {@link #KEY_5G_ICON_CONFIGURATION_STRING}) for the amount of time specified by the grace
3638 * period. If the primary 5G scenario is reestablished, the timers will reset and the system UI
3639 * will continue to display the icon for the primary 5G scenario without interruption. If the
3640 * secondary 5G scenario is lost, the timer will reset and the icon will reflect the true state.
3641 * Defined states (5G scenarios #1-5) take precedence over 'any' (5G scenario #6), and
3642 * unspecified transitions have a default grace period of 0. The order of rules in the
3643 * configuration determines the priority (the first applicable timer rule will be used).
3644 *
3645 * Here is an example: "connected,not_restricted_rrc_idle,30"
3646 * This configuration defines a secondary timer that extends the primary 'connected' timer.
3647 * When the primary 'connected' timer expires while the UE is in the 'not_restricted_rrc_idle'
3648 * 5G state, system UI will continue to display the 5G icon for 'connected' for 30 seconds.
3649 * If the 5G state returns to 'connected', the timer will be reset without change to the icon,
3650 * and if the 5G state changes to neither 'connected' not 'not_restricted_rrc_idle', the icon
3651 * will change to reflect the true state.
3652 *
3653 * @hide
3654 */
3655 public static final String KEY_5G_ICON_DISPLAY_SECONDARY_GRACE_PERIOD_STRING =
3656 "5g_icon_display_secondary_grace_period_string";
Pengquan Meng0ac07b22019-06-26 16:56:45 -07003657
3658 /**
SongFerngWang3a3af2f2020-07-07 18:10:00 +08003659 * Whether device reset all of NR timers when device camped on a network that haven't 5G
3660 * capability and RRC currently in IDLE state.
3661 *
3662 * The default value is false;
3663 *
3664 * @hide
3665 */
3666 public static final String KEY_NR_TIMERS_RESET_IF_NON_ENDC_AND_RRC_IDLE_BOOL =
3667 "nr_timers_reset_if_non_endc_and_rrc_idle_bool";
3668
3669 /**
SongFerngWangea06cec2021-04-07 23:14:46 +08003670 * A list of additional NR advanced band would map to
3671 * {@link TelephonyDisplayInfo#OVERRIDE_NETWORK_TYPE_NR_ADVANCED} when the device is on that
3672 * band.
3673 *
3674 * @hide
3675 */
3676 public static final String KEY_ADDITIONAL_NR_ADVANCED_BANDS_INT_ARRAY =
3677 "additional_nr_advanced_bands_int_array";
3678
3679 /**
SongFerngWang6c1f38e2021-05-10 22:43:14 +08003680 * This configuration allows the framework to control the NR advanced capable by protocol
3681 * configuration options(PCO).
3682 *
3683 * If this config is 0, then the nr advanced capable is enabled.
3684 * If this config is not 0 and PCO container with this config's address is 1, then the nr
3685 * advanced capable is enabled.
3686 * If this config is not 0 and PCO container with this config's address is 0, then the nr
3687 * advanced capable is disabled.
3688 *
3689 * @hide
3690 */
3691 public static final String KEY_NR_ADVANCED_CAPABLE_PCO_ID_INT =
3692 "nr_advanced_capable_pco_id_int";
3693
3694 /**
Jack Yu5e7b8532021-10-19 21:21:28 -07003695 * Enabled NR advanced (i.e. 5G+) icon while roaming. The default value is {@code true}, meaming
3696 * the same NR advanced logic used for home network will be used for roaming network as well.
3697 * Set this to {@code false} will disable NR advanced icon while the device is roaming,
3698 * regardless meeting NR advanced criteria or not.
3699 *
3700 * @hide
3701 */
3702 public static final String KEY_ENABLE_NR_ADVANCED_WHILE_ROAMING_BOOL =
3703 "enable_nr_advanced_for_roaming_bool";
3704
3705 /**
SongFerngWang7ac38072021-07-22 23:20:32 +08003706 * This configuration allows the framework to use user data communication to detect Idle state,
SongFerngWangaf6fd222021-07-03 01:06:09 +08003707 * and this is used on the 5G icon.
3708 *
3709 * There is a new way for for RRC state detection at Android 12. If
3710 * {@link android.telephony.TelephonyManager#isRadioInterfaceCapabilitySupported}(
3711 * {@link TelephonyManager#CAPABILITY_PHYSICAL_CHANNEL_CONFIG_1_6_SUPPORTED}) returns true,
3712 * then framework can use PHYSICAL_CHANNEL_CONFIG for RRC state detection. Based on this
3713 * condition, some carriers want to use the legacy behavior that way is using user data
SongFerngWang7ac38072021-07-22 23:20:32 +08003714 * communication to detect the Idle state. Therefore, this configuration allows the framework
3715 * to use user data communication to detect Idle state.
SongFerngWangaf6fd222021-07-03 01:06:09 +08003716 *
SongFerngWang7ac38072021-07-22 23:20:32 +08003717 * There are 3 situations reflects the carrier define Idle state.
3718 * 1. using PHYSICAL_CHANNEL_CONFIG to detect RRC Idle
3719 * 2. using all of data connections to detect RRC Idle.
3720 * 3. using data communication(consider internet data connection only) to detect data Idle.
3721 *
3722 * How to setup for above 3 cases?
3723 * For below part, we call the condition#1 is device support
SongFerngWangaf6fd222021-07-03 01:06:09 +08003724 * {@link android.telephony.TelephonyManager#isRadioInterfaceCapabilitySupported}(
SongFerngWang7ac38072021-07-22 23:20:32 +08003725 * {@link TelephonyManager#CAPABILITY_PHYSICAL_CHANNEL_CONFIG_1_6_SUPPORTED}).
3726 * The condition#2 is carrier enable the KEY_LTE_ENDC_USING_USER_DATA_FOR_RRC_DETECTION_BOOL.
SongFerngWangaf6fd222021-07-03 01:06:09 +08003727 *
SongFerngWang7ac38072021-07-22 23:20:32 +08003728 * For case#1, the condition#1 is true and the condition#2 is false.
3729 * For case#2, the condition#1 is false and the condition#2 is false.
3730 * For case#3, the condition#2 is true.
SongFerngWangaf6fd222021-07-03 01:06:09 +08003731 * @hide
3732 */
3733 public static final String KEY_LTE_ENDC_USING_USER_DATA_FOR_RRC_DETECTION_BOOL =
3734 "lte_endc_using_user_data_for_rrc_detection_bool";
3735
3736 /**
Sarah Chine0b991e2020-02-04 12:08:45 -08003737 * Controls time in milliseconds until DcTracker reevaluates 5G connection state.
Sarah Chinb800cbd2020-02-19 12:25:36 -08003738 * @hide
Sarah Chine0b991e2020-02-04 12:08:45 -08003739 */
Sarah Chine2642ad2020-03-19 21:13:02 -07003740 public static final String KEY_5G_WATCHDOG_TIME_MS_LONG = "5g_watchdog_time_ms_long";
Sarah Chine0b991e2020-02-04 12:08:45 -08003741
3742 /**
Sarah Chin69f721e2021-12-13 17:52:25 -08003743 * Which network types are unmetered. A string array that can contain network type names from
3744 * {@link TelephonyManager#getNetworkTypeName(int)} in addition to the following NR keys:
Sarah Chin83469632021-12-06 18:34:24 -08003745 * NR_NSA - NR NSA is unmetered for sub-6 frequencies
3746 * NR_NSA_MMWAVE - NR NSA is unmetered for mmwave frequencies
3747 * NR_SA - NR SA is unmetered for sub-6 frequencies
3748 * NR_SA_MMWAVE - NR SA is unmetered for mmwave frequencies
Sarah Chin69f721e2021-12-13 17:52:25 -08003749 *
3750 * Note that this config only applies if an unmetered SubscriptionPlan is set via
3751 * {@link SubscriptionManager#setSubscriptionPlans(int, List)} or an unmetered override is set
3752 * via {@link SubscriptionManager#setSubscriptionOverrideUnmetered(int, boolean, int[], long)}
3753 * or {@link SubscriptionManager#setSubscriptionOverrideUnmetered(int, boolean, long)}.
3754 * If neither SubscriptionPlans nor an override are set, then no network types can be unmetered
3755 * regardless of the value of this config.
Sarah Chin83469632021-12-06 18:34:24 -08003756 * TODO: remove other unmetered keys and replace with this
3757 * @hide
3758 */
3759 public static final String KEY_UNMETERED_NETWORK_TYPES_STRING_ARRAY =
3760 "unmetered_network_types_string_array";
3761
3762 /**
Sarah Chin69f721e2021-12-13 17:52:25 -08003763 * Which network types are unmetered when roaming. A string array that can contain network type
3764 * names from {@link TelephonyManager#getNetworkTypeName(int)} in addition to the following
3765 * NR keys:
3766 * NR_NSA - NR NSA is unmetered when roaming for sub-6 frequencies
3767 * NR_NSA_MMWAVE - NR NSA is unmetered when roaming for mmwave frequencies
3768 * NR_SA - NR SA is unmetered when roaming for sub-6 frequencies
3769 * NR_SA_MMWAVE - NR SA is unmetered when roaming for mmwave frequencies
3770 *
3771 * Note that this config only applies if an unmetered SubscriptionPlan is set via
3772 * {@link SubscriptionManager#setSubscriptionPlans(int, List)} or an unmetered override is set
3773 * via {@link SubscriptionManager#setSubscriptionOverrideUnmetered(int, boolean, int[], long)}
3774 * or {@link SubscriptionManager#setSubscriptionOverrideUnmetered(int, boolean, long)}.
3775 * If neither SubscriptionPlans nor an override are set, then no network types can be unmetered
3776 * when roaming regardless of the value of this config.
3777 * TODO: remove KEY_UNMETERED_NR_NSA_WHEN_ROAMING_BOOL and replace with this
3778 * @hide
3779 */
3780 public static final String KEY_ROAMING_UNMETERED_NETWORK_TYPES_STRING_ARRAY =
3781 "roaming_unmetered_network_types_string_array";
3782
3783 /**
Sarah Chine0b991e2020-02-04 12:08:45 -08003784 * Whether NR (non-standalone) should be unmetered for all frequencies.
3785 * If either {@link #KEY_UNMETERED_NR_NSA_MMWAVE_BOOL} or
3786 * {@link #KEY_UNMETERED_NR_NSA_SUB6_BOOL} are true, then this value will be ignored.
3787 * @hide
3788 */
3789 public static final String KEY_UNMETERED_NR_NSA_BOOL = "unmetered_nr_nsa_bool";
3790
3791 /**
3792 * Whether NR (non-standalone) frequencies above 6GHz (millimeter wave) should be unmetered.
3793 * If this is true, then the value for {@link #KEY_UNMETERED_NR_NSA_BOOL} will be ignored.
3794 * @hide
3795 */
3796 public static final String KEY_UNMETERED_NR_NSA_MMWAVE_BOOL = "unmetered_nr_nsa_mmwave_bool";
3797
3798 /**
3799 * Whether NR (non-standalone) frequencies below 6GHz (sub6) should be unmetered.
3800 * If this is true, then the value for {@link #KEY_UNMETERED_NR_NSA_BOOL} will be ignored.
3801 * @hide
3802 */
3803 public static final String KEY_UNMETERED_NR_NSA_SUB6_BOOL = "unmetered_nr_nsa_sub6_bool";
3804
3805 /**
Sarah Chindc310312020-04-01 10:59:34 -07003806 * Whether NR (non-standalone) should be unmetered when the device is roaming.
3807 * If false, then the values for {@link #KEY_UNMETERED_NR_NSA_BOOL},
3808 * {@link #KEY_UNMETERED_NR_NSA_MMWAVE_BOOL}, {@link #KEY_UNMETERED_NR_NSA_SUB6_BOOL},
3809 * and unmetered {@link SubscriptionPlan} will be ignored.
3810 * @hide
3811 */
3812 public static final String KEY_UNMETERED_NR_NSA_WHEN_ROAMING_BOOL =
3813 "unmetered_nr_nsa_when_roaming_bool";
3814
3815 /**
Sarah Chin5956f302020-04-09 10:33:28 -07003816 * Whether NR (standalone) should be unmetered for all frequencies.
3817 * If either {@link #KEY_UNMETERED_NR_SA_MMWAVE_BOOL} or
3818 * {@link #KEY_UNMETERED_NR_SA_SUB6_BOOL} are true, then this value will be ignored.
3819 * @hide
3820 */
3821 public static final String KEY_UNMETERED_NR_SA_BOOL = "unmetered_nr_sa_bool";
3822
3823 /**
3824 * Whether NR (standalone) frequencies above 6GHz (millimeter wave) should be unmetered.
3825 * If this is true, then the value for {@link #KEY_UNMETERED_NR_SA_BOOL} will be ignored.
3826 * @hide
3827 */
3828 public static final String KEY_UNMETERED_NR_SA_MMWAVE_BOOL = "unmetered_nr_sa_mmwave_bool";
3829
3830 /**
3831 * Whether NR (standalone) frequencies below 6GHz (sub6) should be unmetered.
3832 * If this is true, then the value for {@link #KEY_UNMETERED_NR_SA_BOOL} will be ignored.
3833 * @hide
3834 */
3835 public static final String KEY_UNMETERED_NR_SA_SUB6_BOOL = "unmetered_nr_sa_sub6_bool";
3836
3837 /**
Sukanya Rajkhowa6de48e42018-08-20 16:35:36 +08003838 * Support ASCII 7-BIT encoding for long SMS. This carrier config is used to enable
3839 * this feature.
3840 * @hide
3841 */
3842 public static final String KEY_ASCII_7_BIT_SUPPORT_FOR_LONG_MESSAGE_BOOL =
3843 "ascii_7_bit_support_for_long_message_bool";
3844
3845 /**
Nishizawa Nobuhiro4583ccb2020-01-30 18:01:36 +09003846 * Controls whether to show wifi calling icon in statusbar when wifi calling is available.
3847 * @hide
3848 */
3849 public static final String KEY_SHOW_WIFI_CALLING_ICON_IN_STATUS_BAR_BOOL =
3850 "show_wifi_calling_icon_in_status_bar_bool";
3851
3852 /**
Avinash Malipatila27b8d1a2021-10-27 03:30:18 +00003853 * Configuration to indicate that the carrier supports opportunistic data
3854 * auto provisioning. Based on this flag, the device downloads and activates
3855 * corresponding opportunistic profile.
3856 */
3857 public static final String KEY_CARRIER_SUPPORTS_OPP_DATA_AUTO_PROVISIONING_BOOL =
3858 "carrier_supports_opp_data_auto_provisioning_bool";
3859
3860 /**
3861 * SMDP+ server address for downloading opportunistic eSIM profile.
3862 * FQDN (Fully Qualified Domain Name) of the SM-DP+ (e.g., smdp.gsma.com) restricted to the
Avinash Malipatilc179ec32022-02-03 17:37:58 +00003863 * Alphanumeric mode character set defined in table 5 of ISO/IEC 18004 excluding '$'.
Avinash Malipatila27b8d1a2021-10-27 03:30:18 +00003864 */
3865 public static final String KEY_SMDP_SERVER_ADDRESS_STRING =
3866 "smdp_server_address_string";
3867
3868 /**
3869 * This timer value is used in the eSIM Exponential Backoff download retry algorithm.
3870 * Value should be in seconds.
3871 * <OL>
3872 * <LI>When the first download failure occurs, retry download after BACKOFF_TIMER_VALUE
3873 * seconds.</LI>
3874 *
3875 * <LI>If download fails again then, retry after either BACKOFF_TIMER_VALUE,
3876 * 2xBACKOFF_TIMER_VALUE, or 3xBACKOFF_TIMER_VALUE seconds.</LI>
3877 *
3878 * <LI>In general after the cth failed attempt, retry after k * BACKOFF_TIMER_VALUE
3879 * seconds, where k is a random integer between 1 and 2^c − 1. Max c value is
3880 * {@link #KEY_ESIM_MAX_DOWNLOAD_RETRY_ATTEMPTS_INT}</LI>
3881 * </OL>
3882 */
3883 public static final String KEY_ESIM_DOWNLOAD_RETRY_BACKOFF_TIMER_SEC_INT =
3884 "esim_download_retry_backoff_timer_sec_int";
3885
3886 /**
3887 * If eSIM profile download fails then, the number of retry attempts by UE
3888 * will be based on this configuration. If download still fails even after the
3889 * MAX attempts configured by this item then the retry is postponed until next
3890 * device bootup.
3891 */
3892 public static final String KEY_ESIM_MAX_DOWNLOAD_RETRY_ATTEMPTS_INT =
3893 "esim_max_download_retry_attempts_int";
3894
3895 /**
Avinash Malipatilf63c1fd2021-12-07 08:01:03 +00003896 * List of opportunistic carrier-ids associated with CBRS Primary SIM. When CBRS pSIM is
3897 * inserted, opportunistic eSIM is download and this configuration is used for grouping pSIM
3898 * and opportunistic eSIM. Also when a new CBRS pSIM is inserted, old opportunistic eSIMs are
3899 * deleted using the carrier-ids in this configuration.
3900 *
3901 * @hide
3902 */
3903 public static final String KEY_OPPORTUNISTIC_CARRIER_IDS_INT_ARRAY =
3904 "opportunistic_carrier_ids_int_array";
3905
3906 /**
Avinash Malipatilc179ec32022-02-03 17:37:58 +00003907 * Boolean configuration to control auto provisioning eSIM download in
3908 * OpportunisticNetworkService using only WiFi or both WiFi/Data.
3909 * True will download esim only via WiFi.
3910 * False will use both WiFi and Data connection.
3911 *
3912 * @hide
3913 */
3914 public static final String KEY_OPPORTUNISTIC_ESIM_DOWNLOAD_VIA_WIFI_ONLY_BOOL =
3915 "opportunistic_esim_download_via_wifi_only_bool";
3916
Jack Nudelman35d62382022-02-28 14:48:46 -08003917/**
3918 * Controls RSRP threshold, in dBm, at which OpportunisticNetworkService will decide whether
Sooraj Sasindran873252f2018-12-11 10:35:16 -08003919 * the opportunistic network is good enough for internet data.
Jack Nudelman35d62382022-02-28 14:48:46 -08003920 *
3921 * <p>The value of {@link CellSignalStrengthLte#getRsrp()} will be compared with this
3922 * threshold.
Sooraj Sasindran873252f2018-12-11 10:35:16 -08003923 */
3924 public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSRP_INT =
3925 "opportunistic_network_entry_threshold_rsrp_int";
3926
3927 /**
Jack Nudelman35d62382022-02-28 14:48:46 -08003928 * Controls RSSNR threshold, in dB, at which OpportunisticNetworkService will
3929 * decide whether the opportunistic network is good enough for internet data.
3930 *
3931 * <p>The value of {@link CellSignalStrengthLte#getRssnr()} will be compared with this
3932 * threshold.
Sooraj Sasindran873252f2018-12-11 10:35:16 -08003933 */
3934 public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSSNR_INT =
3935 "opportunistic_network_entry_threshold_rssnr_int";
3936
3937 /**
Jack Nudelman35d62382022-02-28 14:48:46 -08003938 * Controls RSRP threshold, in dBm, below which OpportunisticNetworkService will decide whether
Sooraj Sasindran873252f2018-12-11 10:35:16 -08003939 * the opportunistic network available is not good enough for internet data.
Jack Nudelman35d62382022-02-28 14:48:46 -08003940 *
3941 * <p>The value of {@link CellSignalStrengthLte#getRsrp()} will be compared with this
3942 * threshold.
Sooraj Sasindran873252f2018-12-11 10:35:16 -08003943 */
3944 public static final String KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT =
3945 "opportunistic_network_exit_threshold_rsrp_int";
3946
3947 /**
Jack Nudelman35d62382022-02-28 14:48:46 -08003948 * Controls RSSNR threshold, in dB, below which OpportunisticNetworkService will
3949 * decide whether the opportunistic network available is not good enough for internet data.
3950 *
3951 * <p>The value of {@link CellSignalStrengthLte#getRssnr()} will be compared with this
3952 * threshold.
Sooraj Sasindran873252f2018-12-11 10:35:16 -08003953 */
3954 public static final String KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT =
3955 "opportunistic_network_exit_threshold_rssnr_int";
3956
Meng Wang19b214d2018-11-07 12:14:39 -08003957 /**
Sooraj Sasindran73710f82019-01-09 11:09:22 -08003958 * Controls bandwidth threshold in Kbps at which OpportunisticNetworkService will decide whether
3959 * the opportunistic network is good enough for internet data.
3960 */
3961 public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_BANDWIDTH_INT =
3962 "opportunistic_network_entry_threshold_bandwidth_int";
3963
3964 /**
3965 * Controls hysteresis time in milli seconds for which OpportunisticNetworkService
3966 * will wait before attaching to a network.
3967 */
3968 public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_OR_EXIT_HYSTERESIS_TIME_LONG =
3969 "opportunistic_network_entry_or_exit_hysteresis_time_long";
3970
3971 /**
3972 * Controls hysteresis time in milli seconds for which OpportunisticNetworkService
Sooraj Sasindran9f80e4b2019-08-01 13:52:32 -07003973 * will wait before switching data to an opportunistic network.
Sooraj Sasindran73710f82019-01-09 11:09:22 -08003974 */
3975 public static final String KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG =
3976 "opportunistic_network_data_switch_hysteresis_time_long";
3977
3978 /**
Sooraj Sasindran9f80e4b2019-08-01 13:52:32 -07003979 * Controls hysteresis time in milli seconds for which OpportunisticNetworkService
3980 * will wait before switching data from opportunistic network to primary network.
Sooraj Sasindran9f80e4b2019-08-01 13:52:32 -07003981 */
3982 public static final String KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG =
3983 "opportunistic_network_data_switch_exit_hysteresis_time_long";
3984
3985 /**
Sooraj Sasindran75c09602019-09-13 10:40:32 -07003986 * Controls whether to do ping test before switching data to opportunistic network.
3987 * This carrier config is used to disable this feature.
Sooraj Sasindran75c09602019-09-13 10:40:32 -07003988 */
3989 public static final String KEY_PING_TEST_BEFORE_DATA_SWITCH_BOOL =
3990 "ping_test_before_data_switch_bool";
3991
3992 /**
Sooraj Sasindran8c04a5a2019-11-04 13:07:23 -08003993 * Controls whether to switch data to primary from opportunistic subscription
3994 * if primary is out of service. This control only affects system or 1st party app
3995 * initiated data switch, but will not override data switch initiated by privileged carrier apps
3996 * This carrier config is used to disable this feature.
Sooraj Sasindran8c04a5a2019-11-04 13:07:23 -08003997 */
3998 public static final String KEY_SWITCH_DATA_TO_PRIMARY_IF_PRIMARY_IS_OOS_BOOL =
3999 "switch_data_to_primary_if_primary_is_oos_bool";
4000
4001 /**
Sooraj Sasindran74891f22019-11-19 10:23:22 -08004002 * Controls the ping pong determination of opportunistic network.
4003 * If opportunistic network is determined as out of service or below
4004 * #KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT or
4005 * #KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT within
4006 * #KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG of switching to opportunistic network,
4007 * it will be determined as ping pong situation by system app or 1st party app.
Sooraj Sasindran74891f22019-11-19 10:23:22 -08004008 */
4009 public static final String KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG =
4010 "opportunistic_network_ping_pong_time_long";
4011 /**
Sooraj Sasindran8c04a5a2019-11-04 13:07:23 -08004012 * Controls back off time in milli seconds for switching back to
4013 * opportunistic subscription. This time will be added to
4014 * {@link CarrierConfigManager#KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG} to
Sooraj Sasindran74891f22019-11-19 10:23:22 -08004015 * determine hysteresis time if there is ping pong situation
Sooraj Sasindran8c04a5a2019-11-04 13:07:23 -08004016 * (determined by system app or 1st party app) between primary and opportunistic
Sooraj Sasindran74891f22019-11-19 10:23:22 -08004017 * subscription. Ping ping situation is defined in
4018 * #KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG.
4019 * If ping pong situation continuous #KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG
4020 * will be added to previously determined hysteresis time.
Sooraj Sasindran8c04a5a2019-11-04 13:07:23 -08004021 */
4022 public static final String KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG =
4023 "opportunistic_network_backoff_time_long";
Sarah Chin92860a702019-08-19 18:08:21 -07004024
4025 /**
Sooraj Sasindran74891f22019-11-19 10:23:22 -08004026 * Controls the max back off time in milli seconds for switching back to
4027 * opportunistic subscription.
4028 * This time will be the max hysteresis that can be determined irrespective of there is
4029 * continuous ping pong situation or not as described in
4030 * #KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG and
4031 * #KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG.
Sooraj Sasindran74891f22019-11-19 10:23:22 -08004032 */
4033 public static final String KEY_OPPORTUNISTIC_NETWORK_MAX_BACKOFF_TIME_LONG =
4034 "opportunistic_network_max_backoff_time_long";
4035
Meng Wang84b8cd12022-01-22 01:02:27 +00004036 /** @hide */
4037 public static class OpportunisticNetwork {
4038 /**
4039 * Prefix of all {@code OpportunisticNetwork.KEY_*} constants.
4040 *
4041 * @hide
4042 */
4043 public static final String PREFIX = "opportunistic.";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004044
Meng Wang84b8cd12022-01-22 01:02:27 +00004045 /**
4046 * Controls SS-RSRP threshold in dBm at which 5G opportunistic network will be considered
4047 * good enough for internet data. Note other factors may be considered for the final
4048 * decision.
4049 *
Jack Nudelman35d62382022-02-28 14:48:46 -08004050 * <p>The value of {@link CellSignalStrengthNr#getSsRsrp()} will be compared with this
Meng Wang84b8cd12022-01-22 01:02:27 +00004051 * threshold.
4052 *
4053 * @hide
4054 */
4055 public static final String KEY_ENTRY_THRESHOLD_SS_RSRP_INT =
4056 PREFIX + "entry_threshold_ss_rsrp_int";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004057
Meng Wang84b8cd12022-01-22 01:02:27 +00004058 /**
4059 * Similar to {@link #KEY_ENTRY_THRESHOLD_SS_RSRP_INT} but supports different
4060 * thresholds for different 5G bands. For bands not specified here, the threshold
4061 * will be {@link #KEY_ENTRY_THRESHOLD_SS_RSRP_INT}.
4062 *
4063 * <p>For each key-value in the bundle: the key is the band number in string, which
4064 * shall be a decimal integer as defined in {@code NgranBands.BAND_*} constants;
4065 * the value is the threshold in int.
4066 *
4067 * @hide
4068 */
4069 public static final String KEY_ENTRY_THRESHOLD_SS_RSRP_INT_BUNDLE =
4070 PREFIX + "entry_threshold_ss_rsrp_int_bundle";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004071
Meng Wang84b8cd12022-01-22 01:02:27 +00004072 /**
4073 * Controls SS-RSRQ threshold in dB at which 5G opportunistic network will be considered
4074 * good enough for internet data. Note other factors may be considered for the final
4075 * decision.
4076 *
Jack Nudelman35d62382022-02-28 14:48:46 -08004077 * <p>The value of {@link CellSignalStrengthNr#getSsRsrq()} will be compared with this
Meng Wang84b8cd12022-01-22 01:02:27 +00004078 * threshold.
4079 *
4080 * @hide
4081 */
4082 public static final String KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE =
4083 PREFIX + "entry_threshold_ss_rsrq_double";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004084
Meng Wang84b8cd12022-01-22 01:02:27 +00004085 /**
4086 * Similar to {@link #KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE} but supports different
4087 * thresholds for different 5G bands. For bands not specified here, the threshold
4088 * will be {@link #KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE}.
4089 *
4090 * <p>For each key-value in the bundle: the key is the band number in string, which
4091 * shall be a decimal integer as defined in {@code NgranBands.BAND_*} constants;
4092 * the value is the threshold in double.
4093 *
4094 * @hide
4095 */
4096 public static final String KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE_BUNDLE =
4097 PREFIX + "entry_threshold_ss_rsrq_double_bundle";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004098
Meng Wang84b8cd12022-01-22 01:02:27 +00004099 /**
4100 * Controls SS-RSRP threshold in dBm below which 5G opportunistic network available will not
4101 * be considered good enough for internet data. Note other factors may be considered
4102 * for the final decision.
4103 *
Jack Nudelman35d62382022-02-28 14:48:46 -08004104 * <p>The value of {@link CellSignalStrengthNr#getSsRsrp()} will be compared with this
4105 * threshold.
4106 *
Meng Wang84b8cd12022-01-22 01:02:27 +00004107 * @hide
4108 */
4109 public static final String KEY_EXIT_THRESHOLD_SS_RSRP_INT =
4110 PREFIX + "exit_threshold_ss_rsrp_int";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004111
Meng Wang84b8cd12022-01-22 01:02:27 +00004112 /**
4113 * Similar to {@link #KEY_EXIT_THRESHOLD_SS_RSRP_INT} but supports different
4114 * thresholds for different 5G bands. For bands not specified here, the threshold
4115 * will be {@link #KEY_EXIT_THRESHOLD_SS_RSRP_INT}.
4116 *
4117 * <p>The syntax of its value is similar to
4118 * {@link #KEY_ENTRY_THRESHOLD_SS_RSRP_INT_BUNDLE}.
4119 *
4120 * @hide
4121 */
4122 public static final String KEY_EXIT_THRESHOLD_SS_RSRP_INT_BUNDLE =
4123 PREFIX + "exit_threshold_ss_rsrp_int_bundle";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004124
Meng Wang84b8cd12022-01-22 01:02:27 +00004125 /**
4126 * Controls SS-RSRQ threshold in dB below which 5G opportunistic network available will not
4127 * be considered good enough for internet data. Note other factors may be considered
4128 * for the final decision.
4129 *
Jack Nudelman35d62382022-02-28 14:48:46 -08004130 * <p>The value of {@link CellSignalStrengthNr#getSsRsrq()} will be compared with this
4131 * threshold.
4132 *
Meng Wang84b8cd12022-01-22 01:02:27 +00004133 * @hide
4134 */
4135 public static final String KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE =
4136 PREFIX + "exit_threshold_ss_rsrq_double";
Jack Nudelman0cd98972021-07-01 06:40:52 -07004137
Meng Wang84b8cd12022-01-22 01:02:27 +00004138 /**
4139 * Similar to {@link #KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE} but supports different
4140 * thresholds for different 5G bands. For bands not specified here, the threshold
4141 * will be {@link #KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE}.
4142 *
4143 * <p>The syntax of its value is similar to
4144 * {@link #KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE_BUNDLE}.
4145 *
4146 * @hide
4147 */
4148 public static final String KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE_BUNDLE =
4149 PREFIX + "exit_threshold_ss_rsrq_double_bundle";
4150
4151 /**
4152 * Controls hysteresis time in milliseconds for which will be waited before switching
4153 * data to a 5G opportunistic network.
4154 *
4155 * @hide
4156 */
4157 public static final String KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG =
4158 PREFIX + "5g_data_switch_hysteresis_time_long";
4159
4160 /**
4161 * Similar to {@link #KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG} but supports
4162 * different values for different 5G bands. For bands not specified here, the threshold
4163 * will be {@link #KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG}.
4164 *
4165 * <p>For each key-value in the bundle: the key is the band number in string, which
4166 * shall be a decimal integer as defined in {@code NgranBands.BAND_*} constants;
4167 * the value is the time in long.
4168 *
4169 * @hide
4170 */
4171 public static final String KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG_BUNDLE =
4172 PREFIX + "5g_data_switch_hysteresis_time_long_bundle";
4173
4174 /**
4175 * Controls hysteresis time in milliseconds for which will be waited before switching from
4176 * 5G opportunistic network to primary network.
4177 *
4178 * @hide
4179 */
4180 public static final String KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG =
4181 PREFIX + "5g_data_switch_exit_hysteresis_time_long";
4182
4183 /**
4184 * Similar to {@link #KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG} but supports
4185 * different values for different 5G bands. For bands not specified here, the threshold
4186 * will be {@link #KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG}.
4187 *
4188 * <p>The syntax is similar to
4189 * {@link KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG_BUNDLE}.
4190 *
4191 * @hide
4192 */
4193 public static final String KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG_BUNDLE =
4194 PREFIX + "5g_data_switch_exit_hysteresis_time_long_bundle";
4195
4196 /**
4197 * Controls back off time in milliseconds for switching back to
4198 * 5G opportunistic subscription. This time will be added to
4199 * {@link #KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG} to
4200 * determine hysteresis time if there is ping pong situation
4201 * (determined by system app or 1st party app) between primary and 5G opportunistic
4202 * subscription. Ping ping situation is defined in
4203 * {@link #KEY_5G_PING_PONG_TIME_LONG}.
4204 * If ping pong situation continuous {@link #KEY_5G_NETWORK_BACKOFF_TIME_LONG}
4205 * will be added to previously determined hysteresis time.
4206 *
4207 * @hide
4208 */
4209 public static final String KEY_5G_BACKOFF_TIME_LONG =
4210 PREFIX + "5g_backoff_time_long";
4211
4212 /**
4213 * Controls the max back off time in milliseconds for switching back to
4214 * 5G opportunistic subscription.
4215 * This time will be the max hysteresis that can be determined irrespective of there is
4216 * continuous ping pong situation or not as described in
4217 * {@link #KEY_5G_PING_PONG_TIME_LONG} and
4218 * {@link #KEY_5G_BACKOFF_TIME_LONG}.
4219 *
4220 * @hide
4221 */
4222 public static final String KEY_5G_MAX_BACKOFF_TIME_LONG =
4223 PREFIX + "5g_max_backoff_time_long";
4224
4225 /**
4226 * Controls the ping pong determination of 5G opportunistic network.
4227 * If opportunistic network is determined as out of service or below
4228 * {@link #KEY_EXIT_THRESHOLD_SS_RSRP_INT} or
4229 * {@link #KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE} within
4230 * {@link #KEY_5G_PING_PONG_TIME_LONG} of switching to opportunistic network,
4231 * it will be determined as ping pong situation by system app or 1st party app.
4232 *
4233 * @hide
4234 */
4235 public static final String KEY_5G_PING_PONG_TIME_LONG =
4236 PREFIX + "5g_ping_pong_time_long";
4237
4238 private static PersistableBundle getDefaults() {
4239 PersistableBundle defaults = new PersistableBundle();
4240 // Default value is -111 dBm for all bands.
4241 sDefaults.putInt(KEY_ENTRY_THRESHOLD_SS_RSRP_INT, -111);
4242 sDefaults.putPersistableBundle(KEY_ENTRY_THRESHOLD_SS_RSRP_INT_BUNDLE,
4243 PersistableBundle.EMPTY);
4244 // Default value is -18.5 dB for all bands.
4245 sDefaults.putDouble(KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE, -18.5);
4246 sDefaults.putPersistableBundle(
4247 KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE_BUNDLE,
4248 PersistableBundle.EMPTY);
4249 // Default value is -120 dBm for all bands.
4250 sDefaults.putInt(KEY_EXIT_THRESHOLD_SS_RSRP_INT, -120);
4251 sDefaults.putPersistableBundle(KEY_EXIT_THRESHOLD_SS_RSRP_INT_BUNDLE,
4252 PersistableBundle.EMPTY);
4253 // Default value is -18.5 dB for all bands.
4254 sDefaults.putDouble(KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE, -18.5);
4255 sDefaults.putPersistableBundle(
4256 KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE_BUNDLE,
4257 PersistableBundle.EMPTY);
4258 // Default value is 2 seconds for all bands.
4259 defaults.putLong(KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG, 2000);
4260 defaults.putPersistableBundle(
4261 KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG_BUNDLE,
4262 PersistableBundle.EMPTY);
4263 // Default value is 2 seconds for all bands.
4264 defaults.putLong(KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG, 2000);
4265 defaults.putPersistableBundle(
4266 KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG_BUNDLE,
4267 PersistableBundle.EMPTY);
4268 // Default value is 10 seconds.
4269 sDefaults.putLong(KEY_5G_BACKOFF_TIME_LONG, 10000);
4270 // Default value is 60 seconds.
4271 sDefaults.putLong(KEY_5G_MAX_BACKOFF_TIME_LONG, 60000);
4272 // Default value is 60 seconds.
4273 sDefaults.putLong(KEY_5G_PING_PONG_TIME_LONG, 60000);
4274 return defaults;
4275 }
4276 }
4277
Jack Nudelman0cd98972021-07-01 06:40:52 -07004278 /**
4279 * Controls whether 4G opportunistic networks should be scanned for possible data switch.
4280 *
4281 * @hide
4282 */
4283 public static final String KEY_ENABLE_4G_OPPORTUNISTIC_NETWORK_SCAN_BOOL =
4284 "enabled_4g_opportunistic_network_scan_bool";
4285
Jack Nudelmanda76b832021-10-07 14:20:55 -07004286 /**
4287 * Only relevant when the device supports opportunistic networks but does not support
4288 * simultaneuous 5G+5G. Controls how long, in milliseconds, to wait before opportunistic network
4289 * goes out of service before switching the 5G capability back to primary stack. The idea of
4290 * waiting a few seconds is to minimize the calling of the expensive capability switching
4291 * operation in the case where CBRS goes back into service shortly after going out of it.
4292 *
4293 * @hide
4294 */
4295 public static final String KEY_TIME_TO_SWITCH_BACK_TO_PRIMARY_IF_OPPORTUNISTIC_OOS_LONG =
4296 "time_to_switch_back_to_primary_if_opportunistic_oos_long";
4297
4298 /**
4299 * Only relevant when the device supports opportunistic networks but does not support
4300 * simultaneuous 5G+5G. Controls how long, in milliseconds, after 5G capability has switched back
4301 * to primary stack due to opportunistic network being OOS. The idea is to minimizing the
4302 * 'ping-ponging' effect where device is constantly witching capability back and forth between
4303 * primary and opportunistic stack.
4304 *
4305 * @hide
4306 */
4307 public static final String KEY_OPPORTUNISTIC_TIME_TO_SCAN_AFTER_CAPABILITY_SWITCH_TO_PRIMARY_LONG
4308 = "opportunistic_time_to_scan_after_capability_switch_to_primary_long";
4309
Jack Nudelman0cd98972021-07-01 06:40:52 -07004310 /**
sqian69f48c52019-02-15 16:19:36 -08004311 * Indicates zero or more emergency number prefix(es), because some carrier requires
4312 * if users dial an emergency number address with a specific prefix, the combination of the
4313 * prefix and the address is also a valid emergency number to dial. For example, an emergency
4314 * number prefix is 318, and the emergency number is 911. Both 318911 and 911 can be dialed by
4315 * users for emergency call. An empty array of string indicates that current carrier does not
4316 * have this requirement.
4317 */
4318 public static final String KEY_EMERGENCY_NUMBER_PREFIX_STRING_ARRAY =
4319 "emergency_number_prefix_string_array";
4320
4321 /**
Shuo Qiand4dd13c2021-05-07 01:48:14 -07004322 * Indicates whether carrier treats "*67" or "*82" as a temporary mode CLIR.
4323 * @hide
4324 */
4325 public static final String KEY_CARRIER_SUPPORTS_CALLER_ID_VERTICAL_SERVICE_CODES_BOOL =
4326 "carrier_supports_caller_id_vertical_service_codes_bool";
4327
4328 /**
Bonian Chen612e6a92019-03-26 01:49:39 +08004329 * Smart forwarding config. Smart forwarding is a feature to configure call forwarding to a
4330 * different SIM in the device when one SIM is not reachable. The config here specifies a smart
4331 * forwarding component that will launch UI for changing the configuration. An empty string
4332 * indicates that no smart forwarding component is specified.
4333 *
4334 * Currently, only one non-empty configuration of smart forwarding component within system will
4335 * be used when multiple SIMs are inserted.
4336 *
4337 * Empty string by default.
4338 *
4339 * @hide
4340 */
4341 public static final String KEY_SMART_FORWARDING_CONFIG_COMPONENT_NAME_STRING =
4342 "smart_forwarding_config_component_name_string";
4343
4344 /**
Malcolm Chen50ba9632019-02-26 16:49:56 -08004345 * Indicates when a carrier has a primary subscription and an opportunistic subscription active,
4346 * and when Internet data is switched to opportunistic network, whether to still show
4347 * signal bar of primary network. By default it will be false, meaning whenever data
4348 * is going over opportunistic network, signal bar will reflect signal strength and rat
4349 * icon of that network.
Malcolm Chen50ba9632019-02-26 16:49:56 -08004350 */
4351 public static final String KEY_ALWAYS_SHOW_PRIMARY_SIGNAL_BAR_IN_OPPORTUNISTIC_NETWORK_BOOLEAN =
4352 "always_show_primary_signal_bar_in_opportunistic_network_boolean";
4353
4354 /**
Malcolm Chen58f8d0f2019-10-31 15:06:19 -07004355 * Upon data switching between subscriptions within a carrier group, if switch depends on
4356 * validation result, this value defines customized value of how long we wait for validation
4357 * success before we fail and revoke the switch.
4358 * Time out is in milliseconds.
Malcolm Chen58f8d0f2019-10-31 15:06:19 -07004359 */
4360 public static final String KEY_DATA_SWITCH_VALIDATION_TIMEOUT_LONG =
4361 "data_switch_validation_timeout_long";
4362
4363 /**
Hai Shalom0a5b2072019-12-26 16:17:00 -08004364 * Specifies whether the system should prefix the EAP method to the anonymous identity.
4365 * The following prefix will be added if this key is set to TRUE:
4366 * EAP-AKA: "0"
4367 * EAP-SIM: "1"
4368 * EAP-AKA_PRIME: "6"
Hai Shalom0a5b2072019-12-26 16:17:00 -08004369 */
4370 public static final String ENABLE_EAP_METHOD_PREFIX_BOOL = "enable_eap_method_prefix_bool";
4371
Hall Liuab470f72021-03-10 18:02:47 -08004372 /**
4373 * Indicates that GBA_ME should be used for GBA authentication, as defined in 3GPP TS 33.220.
4374 * @hide
4375 */
4376 @SystemApi
4377 public static final int GBA_ME = 1;
4378
4379 /**
4380 * Indicates that GBA_U should be used for GBA authentication, as defined in 3GPP TS 33.220.
4381 * @hide
4382 */
4383 @SystemApi
4384 public static final int GBA_U = 2;
4385
4386 /**
4387 * Indicates that GBA_Digest should be used for GBA authentication, as defined
4388 * in 3GPP TS 33.220.
4389 * @hide
4390 */
4391 @SystemApi
4392 public static final int GBA_DIGEST = 3;
4393
4394 /**
4395 * An integer representing the GBA mode to use for requesting credentials
4396 * via {@link TelephonyManager#bootstrapAuthenticationRequest}.
4397 *
4398 * One of {@link #GBA_ME}, {@link #GBA_U}, or {@link #GBA_DIGEST}.
4399 * @hide
4400 */
4401 @SystemApi
4402 public static final String KEY_GBA_MODE_INT = "gba_mode_int";
4403
4404 /**
4405 * An integer representing the organization code to be used when building the
4406 * {@link UaSecurityProtocolIdentifier} used when requesting GBA authentication.
4407 *
4408 * See the {@code ORG_} constants in {@link UaSecurityProtocolIdentifier}.
4409 * @hide
4410 */
4411 @SystemApi
4412 public static final String KEY_GBA_UA_SECURITY_ORGANIZATION_INT =
4413 "gba_ua_security_organization_int";
4414
4415 /**
4416 * An integer representing the security protocol to be used when building the
4417 * {@link UaSecurityProtocolIdentifier} used when requesting GBA authentication.
4418 *
4419 * See the {@code UA_SECURITY_PROTOCOL_} constants in {@link UaSecurityProtocolIdentifier}.
4420 * @hide
4421 */
4422 @SystemApi
4423 public static final String KEY_GBA_UA_SECURITY_PROTOCOL_INT =
4424 "gba_ua_security_protocol_int";
4425
4426 /**
4427 * An integer representing the cipher suite to be used when building the
4428 * {@link UaSecurityProtocolIdentifier} used when requesting GBA authentication.
4429 *
4430 * See the {@code TLS_} constants in {@link android.telephony.gba.TlsParams}.
4431 * @hide
4432 */
4433 @SystemApi
4434 public static final String KEY_GBA_UA_TLS_CIPHER_SUITE_INT =
4435 "gba_ua_tls_cipher_suite_int";
danielwbhuange600a8e2021-01-08 14:49:18 +08004436
4437 /**
Willy Hua7846ec2021-12-22 02:52:06 +08004438 * The data stall recovery timers array in milliseconds, each element is the delay before
4439 * performining next recovery action.
4440 *
Willy Huc20021e2022-03-18 17:09:17 +08004441 * The default value of timers array are: [180000ms, 180000ms, 180000ms, 180000ms] (3 minutes)
Willy Hua7846ec2021-12-22 02:52:06 +08004442 * Array[0]: It's the timer between RECOVERY_ACTION GET_DATA_CALL_LIST and CLEANUP, if data
4443 * stall symptom still occurred, it will perform next recovery action after 180000ms.
Willy Huc20021e2022-03-18 17:09:17 +08004444 * Array[1]: It's the timer between RECOVERY_ACTION CLEANUP and RE-REGISTER, if data stall
Willy Hua7846ec2021-12-22 02:52:06 +08004445 * symptom still occurred, it will perform next recovery action after 180000ms.
Willy Huc20021e2022-03-18 17:09:17 +08004446 * Array[2]: It's the timer between RECOVERY_ACTION RE-REGISTER and RADIO_RESTART, if data stall
4447 * symptom still occurred, it will perform next recovery action after 180000ms.
4448 * Array[3]: It's the timer between RECOVERY_ACTION RADIO_RESTART and RESET_MODEM, if data stall
Willy Hua7846ec2021-12-22 02:52:06 +08004449 * symptom still occurred, it will perform next recovery action after 180000ms.
4450 *
4451 * See the {@code RECOVERY_ACTION_*} constants in
4452 * {@link com.android.internal.telephony.data.DataStallRecoveryManager}
4453 * @hide
4454 */
4455 public static final String KEY_DATA_STALL_RECOVERY_TIMERS_LONG_ARRAY =
4456 "data_stall_recovery_timers_long_array";
4457
4458 /**
4459 * The data stall recovery action boolean array, we use this array to determine if the
4460 * data stall recovery action needs to be skipped.
4461 *
4462 * For example, if the carrier use the same APN for both of IA and default type,
4463 * the data call will not disconnect in modem side (so the RECOVERY_ACTION_CLEANUP
4464 * did not effect). In this case, we can config the boolean variable of action
4465 * RECOVERY_ACTION_CLEANUP to true, then it can be ignored to speed up the recovery
4466 * action procedure.
4467 *
Willy Huc20021e2022-03-18 17:09:17 +08004468 * The default value of boolean array are: [false, false, true, false, false]
Willy Hua7846ec2021-12-22 02:52:06 +08004469 * Array[0]: When performing the recovery action, we can use this boolean value to determine
4470 * if we need to perform RECOVERY_ACTION_GET_DATA_CALL_LIST.
4471 * Array[1]: If data stall symptom still occurred, we can use this boolean value to determine
4472 * if we need to perform RECOVERY_ACTION_CLEANUP. For example, if the carrier use the same APN
4473 * for both of IA and default type, the data call will not disconnect in modem side
4474 * (so the RECOVERY_ACTION_CLEANUP did not effect). In this case, we can config the boolean
4475 * variable of action RECOVERY_ACTION_CLEANUP to true, then it can be ignored to speed up the
4476 * recovery action procedure.
4477 * Array[2]: If data stall symptom still occurred, we can use this boolean value to determine
Willy Huc20021e2022-03-18 17:09:17 +08004478 * if we need to perform RE-REGISTER.
Willy Hua7846ec2021-12-22 02:52:06 +08004479 * Array[3]: If data stall symptom still occurred, we can use this boolean value to determine
Willy Huc20021e2022-03-18 17:09:17 +08004480 * if we need to perform RECOVERY_ACTION_RADIO_RESTART.
4481 * Array[4]: If data stall symptom still occurred, we can use this boolean value to determine
Willy Hua7846ec2021-12-22 02:52:06 +08004482 * if we need to perform RECOVERY_ACTION_MODEM_RESET.
4483 *
4484 * See the {@code RECOVERY_ACTION_*} constants in
4485 * {@link com.android.internal.telephony.data.DataStallRecoveryManager}
4486 * @hide
4487 */
4488 public static final String KEY_DATA_STALL_RECOVERY_SHOULD_SKIP_BOOL_ARRAY =
4489 "data_stall_recovery_should_skip_bool_array";
4490
4491 /**
danielwbhuange600a8e2021-01-08 14:49:18 +08004492 * Configs used by ImsServiceEntitlement.
4493 */
4494 public static final class ImsServiceEntitlement {
4495 private ImsServiceEntitlement() {}
4496
4497 /** Prefix of all ImsServiceEntitlement.KEY_* constants. */
4498 public static final String KEY_PREFIX = "imsserviceentitlement.";
4499
danielwbhuang8744fc02021-03-02 18:30:05 +08004500 /**
4501 * The address of the entitlement configuration server.
4502 *
4503 * Reference: GSMA TS.43-v5, section 2.1 Default Entitlement Configuration Server.
4504 */
danielwbhuang0b9aeb42021-02-23 15:22:42 +08004505 public static final String KEY_ENTITLEMENT_SERVER_URL_STRING =
4506 KEY_PREFIX + "entitlement_server_url_string";
danielwbhuange600a8e2021-01-08 14:49:18 +08004507
danielwbhuang8744fc02021-03-02 18:30:05 +08004508 /**
4509 * For some carriers, end-users may be presented with a web portal of the carrier before
4510 * being allowed to use the VoWiFi service.
4511 * To support this feature, the app hosts a {@link android.webkit.WebView} in the foreground
4512 * VoWiFi entitlement configuration flow to show the web portal.
4513 *
4514 * {@code true} - show the VoWiFi portal in a webview.
4515 *
4516 * Note: this is effective only if the {@link #KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING}
4517 * is set to this app.
4518 *
4519 * Reference: GSMA TS.43-v5, section 3, VoWiFi entitlement configuration.
4520 */
4521 public static final String KEY_SHOW_VOWIFI_WEBVIEW_BOOL =
4522 KEY_PREFIX + "show_vowifi_webview_bool";
4523
4524 /**
4525 * For some carriers, the network is not provisioned by default to support
4526 * IMS (VoLTE/VoWiFi/SMSoIP) service for all end users. Some type of network-side
4527 * provisioning must then take place before offering the IMS service to the end-user.
4528 *
4529 * {@code true} - need this ImsServiceEntitlement app to do IMS (VoLTE/VoWiFi/SMSoIP)
4530 * provisioning in the background before offering the IMS service to the end-user.
4531 *
4532 * Note: this is effective only if the carrier needs IMS provisioning, i.e.
4533 * {@link #KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL} is set to true.
4534 *
4535 * Reference: GSMA TS.43-v5, section 3 - 5, VoWiFi/VoLTE/SMSoIP entitlement configuration.
4536 */
4537 public static final String KEY_IMS_PROVISIONING_BOOL = KEY_PREFIX + "ims_provisioning_bool";
4538
4539 /**
4540 * The FCM sender ID for the carrier.
4541 * Used to trigger a carrier network requested entitlement configuration
4542 * via Firebase Cloud Messaging (FCM). Do not set if the carrier doesn't use FCM for network
4543 * requested entitlement configuration.
4544 *
4545 * Reference: GSMA TS.43-v5, section 2.4, Network Requested Entitlement Configuration.
4546 *
4547 * @see <a href="https://firebase.google.com/docs/cloud-messaging/concept-options#senderid">
4548 * About FCM messages - Credentials</a>
4549 */
4550 public static final String KEY_FCM_SENDER_ID_STRING = KEY_PREFIX + "fcm_sender_id_string";
4551
danielwbhuange600a8e2021-01-08 14:49:18 +08004552 private static PersistableBundle getDefaults() {
4553 PersistableBundle defaults = new PersistableBundle();
danielwbhuang0b9aeb42021-02-23 15:22:42 +08004554 defaults.putString(KEY_ENTITLEMENT_SERVER_URL_STRING, "");
danielwbhuang8744fc02021-03-02 18:30:05 +08004555 defaults.putString(KEY_FCM_SENDER_ID_STRING, "");
4556 defaults.putBoolean(KEY_SHOW_VOWIFI_WEBVIEW_BOOL, false);
4557 defaults.putBoolean(KEY_IMS_PROVISIONING_BOOL, false);
danielwbhuange600a8e2021-01-08 14:49:18 +08004558 return defaults;
4559 }
4560 }
4561
Hai Shalom0a5b2072019-12-26 16:17:00 -08004562 /**
Shuo Qian6fe660e2019-12-17 13:07:33 -08004563 * GPS configs. See the GNSS HAL documentation for more details.
Meng Wang19b214d2018-11-07 12:14:39 -08004564 */
4565 public static final class Gps {
Shuo Qian6fe660e2019-12-17 13:07:33 -08004566 private Gps() {}
4567
Meng Wang19b214d2018-11-07 12:14:39 -08004568 /** Prefix of all Gps.KEY_* constants. */
4569 public static final String KEY_PREFIX = "gps.";
4570
4571 /**
Brad Ebingerc9654c12019-05-30 16:31:57 -07004572 * Location information during (and after) an emergency call is only provided over control
4573 * plane signaling from the network.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004574 * @hide
Brad Ebingerc9654c12019-05-30 16:31:57 -07004575 */
4576 public static final int SUPL_EMERGENCY_MODE_TYPE_CP_ONLY = 0;
4577
4578 /**
4579 * Location information during (and after) an emergency call is provided over the data
4580 * plane and serviced by the framework GNSS service, but if it fails, the carrier also
4581 * supports control plane backup signaling.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004582 * @hide
Brad Ebingerc9654c12019-05-30 16:31:57 -07004583 */
4584 public static final int SUPL_EMERGENCY_MODE_TYPE_CP_FALLBACK = 1;
4585
4586 /**
4587 * Location information during (and after) an emergency call is provided over the data plane
4588 * and serviced by the framework GNSS service only. There is no backup signalling over the
4589 * control plane if it fails.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004590 * @hide
Brad Ebingerc9654c12019-05-30 16:31:57 -07004591 */
4592 public static final int SUPL_EMERGENCY_MODE_TYPE_DP_ONLY = 2;
4593
4594
4595 /**
Meng Wang19b214d2018-11-07 12:14:39 -08004596 * Determine whether current lpp_mode used for E-911 needs to be kept persistently.
4597 * {@code false} - not keeping the lpp_mode means using default configuration of gps.conf
4598 * when sim is not presented.
4599 * {@code true} - current lpp_profile of carrier will be kepted persistently
4600 * even after sim is removed. This is default.
4601 */
4602 public static final String KEY_PERSIST_LPP_MODE_BOOL = KEY_PREFIX + "persist_lpp_mode_bool";
4603
4604 /**
4605 * SUPL server host for SET Initiated & non-ES Network-Initiated SUPL requests.
4606 * Default to supl.google.com
Shuo Qian6fe660e2019-12-17 13:07:33 -08004607 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004608 */
4609 public static final String KEY_SUPL_HOST_STRING = KEY_PREFIX + "supl_host";
4610
Shuo Qian6fe660e2019-12-17 13:07:33 -08004611 /**
4612 * SUPL server port. Default to 7275.
4613 * @hide
4614 */
Meng Wang19b214d2018-11-07 12:14:39 -08004615 public static final String KEY_SUPL_PORT_STRING = KEY_PREFIX + "supl_port";
4616
4617 /**
4618 * The SUPL version requested by Carrier. This is a bit mask
4619 * with bits 0:7 representing a service indicator field, bits 8:15
4620 * representing the minor version and bits 16:23 representing the
4621 * major version. Default to 0x20000.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004622 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004623 */
4624 public static final String KEY_SUPL_VER_STRING = KEY_PREFIX + "supl_ver";
4625
4626 /**
4627 * SUPL_MODE configuration bit mask
4628 * 1 - Mobile Station Based. This is default.
4629 * 2 - Mobile Station Assisted.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004630 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004631 */
4632 public static final String KEY_SUPL_MODE_STRING = KEY_PREFIX + "supl_mode";
4633
4634 /**
4635 * Whether to limit responses to SUPL ES mode requests only during user emergency sessions
4636 * (e.g. E911), and SUPL non-ES requests to only outside of non user emergency sessions.
4637 * 0 - no.
4638 * 1 - yes. This is default.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004639 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004640 */
Meng Wang19b214d2018-11-07 12:14:39 -08004641 public static final String KEY_SUPL_ES_STRING = KEY_PREFIX + "supl_es";
4642
4643 /**
4644 * LTE Positioning Profile settings bit mask.
4645 * 0 - Radio Resource Location Protocol in user plane and control plane. This is default.
4646 * 1 - Enable LTE Positioning Protocol in user plane.
4647 * 2 - Enable LTE Positioning Protocol in control plane.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004648 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004649 */
4650 public static final String KEY_LPP_PROFILE_STRING = KEY_PREFIX + "lpp_profile";
4651
4652 /**
4653 * Determine whether to use emergency PDN for emergency SUPL.
4654 * 0 - no.
4655 * 1 - yes. This is default.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004656 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004657 */
4658 public static final String KEY_USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL_STRING =
4659 KEY_PREFIX + "use_emergency_pdn_for_emergency_supl";
4660
4661 /**
4662 * A_GLONASS_POS_PROTOCOL_SELECT bit mask.
4663 * 0 - Don't use A-GLONASS. This is default.
4664 * 1 - Use A-GLONASS in Radio Resource Control(RRC) control-plane.
4665 * 2 - Use A-GLONASS in Radio Resource Location user-plane.
4666 * 4 - Use A-GLONASS in LTE Positioning Protocol User plane.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004667 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004668 */
4669 public static final String KEY_A_GLONASS_POS_PROTOCOL_SELECT_STRING =
4670 KEY_PREFIX + "a_glonass_pos_protocol_select";
4671
4672 /**
4673 * GPS_LOCK configuration bit mask to specify GPS device behavior toward other services,
4674 * when Location Settings are off.
4675 * "0" - No lock.
4676 * "1" - Lock Mobile Originated GPS functionalities.
4677 * "2" - Lock Network initiated GPS functionalities.
4678 * "3" - Lock both. This is default.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004679 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004680 */
4681 public static final String KEY_GPS_LOCK_STRING = KEY_PREFIX + "gps_lock";
4682
4683 /**
Anil Admal0177f902019-01-17 14:23:37 -08004684 * Control Plane / SUPL NI emergency extension time in seconds. Default to "0".
Shuo Qian6fe660e2019-12-17 13:07:33 -08004685 * @hide
Meng Wang19b214d2018-11-07 12:14:39 -08004686 */
Anil Admalbefd4832019-05-09 19:58:13 -07004687 public static final String KEY_ES_EXTENSION_SEC_STRING = KEY_PREFIX + "es_extension_sec";
Meng Wang19b214d2018-11-07 12:14:39 -08004688
Anil Admal0177f902019-01-17 14:23:37 -08004689 /**
4690 * Space separated list of Android package names of proxy applications representing
4691 * the non-framework entities requesting location directly from GNSS without involving
4692 * the framework, as managed by IGnssVisibilityControl.hal. For example,
4693 * "com.example.mdt com.example.ims".
Shuo Qian6fe660e2019-12-17 13:07:33 -08004694 * @hide
Anil Admal0177f902019-01-17 14:23:37 -08004695 */
Anil Admalbefd4832019-05-09 19:58:13 -07004696 public static final String KEY_NFW_PROXY_APPS_STRING = KEY_PREFIX + "nfw_proxy_apps";
4697
Brad Ebingerc9654c12019-05-30 16:31:57 -07004698 /**
4699 * Determines whether or not SUPL ES mode supports a control-plane mechanism to get a user's
4700 * location in the event that data plane SUPL fails or is otherwise unavailable.
4701 * <p>
4702 * An integer value determines the support type of this carrier. If this carrier only
4703 * supports data plane SUPL ES, then the value will be
4704 * {@link #SUPL_EMERGENCY_MODE_TYPE_DP_ONLY}. If the carrier supports control plane fallback
4705 * for emergency SUPL, the value will be {@link #SUPL_EMERGENCY_MODE_TYPE_CP_FALLBACK}.
4706 * If the carrier does not support data plane SUPL using the framework, the value will be
4707 * {@link #SUPL_EMERGENCY_MODE_TYPE_CP_ONLY}.
4708 * <p>
4709 * The default value for this configuration is {@link #SUPL_EMERGENCY_MODE_TYPE_CP_ONLY}.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004710 * @hide
Brad Ebingerc9654c12019-05-30 16:31:57 -07004711 */
4712 public static final String KEY_ES_SUPL_CONTROL_PLANE_SUPPORT_INT = KEY_PREFIX
4713 + "es_supl_control_plane_support_int";
4714
Brad Ebinger82dc2792019-12-09 16:09:57 -08004715 /**
4716 * A list of roaming PLMNs where SUPL ES mode does not support a control-plane mechanism to
4717 * get a user's location in the event that data plane SUPL fails or is otherwise
4718 * unavailable.
4719 * <p>
4720 * A string array of PLMNs that do not support a control-plane mechanism for getting a
4721 * user's location for SUPL ES.
Shuo Qian6fe660e2019-12-17 13:07:33 -08004722 * @hide
Brad Ebinger82dc2792019-12-09 16:09:57 -08004723 */
4724 public static final String KEY_ES_SUPL_DATA_PLANE_ONLY_ROAMING_PLMN_STRING_ARRAY =
4725 KEY_PREFIX + "es_supl_data_plane_only_roaming_plmn_string_array";
4726
Meng Wang19b214d2018-11-07 12:14:39 -08004727 private static PersistableBundle getDefaults() {
4728 PersistableBundle defaults = new PersistableBundle();
4729 defaults.putBoolean(KEY_PERSIST_LPP_MODE_BOOL, true);
4730 defaults.putString(KEY_SUPL_HOST_STRING, "supl.google.com");
4731 defaults.putString(KEY_SUPL_PORT_STRING, "7275");
4732 defaults.putString(KEY_SUPL_VER_STRING, "0x20000");
4733 defaults.putString(KEY_SUPL_MODE_STRING, "1");
4734 defaults.putString(KEY_SUPL_ES_STRING, "1");
joethhuang851befb2019-07-25 16:33:09 +08004735 defaults.putString(KEY_LPP_PROFILE_STRING, "2");
Meng Wang19b214d2018-11-07 12:14:39 -08004736 defaults.putString(KEY_USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL_STRING, "1");
4737 defaults.putString(KEY_A_GLONASS_POS_PROTOCOL_SELECT_STRING, "0");
4738 defaults.putString(KEY_GPS_LOCK_STRING, "3");
Anil Admalbefd4832019-05-09 19:58:13 -07004739 defaults.putString(KEY_ES_EXTENSION_SEC_STRING, "0");
4740 defaults.putString(KEY_NFW_PROXY_APPS_STRING, "");
Brad Ebingerc9654c12019-05-30 16:31:57 -07004741 defaults.putInt(KEY_ES_SUPL_CONTROL_PLANE_SUPPORT_INT,
4742 SUPL_EMERGENCY_MODE_TYPE_CP_ONLY);
Brad Ebinger82dc2792019-12-09 16:09:57 -08004743 defaults.putStringArray(KEY_ES_SUPL_DATA_PLANE_ONLY_ROAMING_PLMN_STRING_ARRAY, null);
Meng Wang19b214d2018-11-07 12:14:39 -08004744 return defaults;
4745 }
4746 }
4747
chen xueb07e4e2019-02-08 17:40:33 -08004748 /**
4749 * An int array containing CDMA enhanced roaming indicator values for Home (non-roaming) network.
4750 * The default values come from 3GPP2 C.R1001 table 8.1-1.
4751 * Enhanced Roaming Indicator Number Assignments
4752 *
4753 * @hide
4754 */
4755 public static final String KEY_CDMA_ENHANCED_ROAMING_INDICATOR_FOR_HOME_NETWORK_INT_ARRAY =
4756 "cdma_enhanced_roaming_indicator_for_home_network_int_array";
4757
mavishsu00111212019-03-06 13:12:23 +08004758 /**
Minoru Sakuma7f3a9d02017-10-25 15:52:31 +09004759 * Determines whether wifi calling location privacy policy is shown.
Minoru Sakuma7f3a9d02017-10-25 15:52:31 +09004760 */
4761 public static final String KEY_SHOW_WFC_LOCATION_PRIVACY_POLICY_BOOL =
4762 "show_wfc_location_privacy_policy_bool";
4763
4764 /**
mavishsu00111212019-03-06 13:12:23 +08004765 * Indicates use 3GPP application to replace 3GPP2 application even if it's a CDMA/CDMA-LTE
4766 * phone, becasue some carriers's CSIM application is present but not supported.
4767 * @hide
4768 */
4769 public static final String KEY_USE_USIM_BOOL = "use_usim_bool";
4770
Seongho Kim93f78f52018-11-13 15:08:34 +09004771 /**
4772 * Determines whether the carrier wants to cancel the cs reject notification automatically
4773 * when the voice registration state changes.
4774 * If true, the notification will be automatically removed
4775 * when the voice registration state changes.
4776 * If false, the notification will persist until the user dismisses it,
4777 * the SIM is removed, or the device is rebooted.
4778 * @hide
4779 */
4780 public static final String KEY_AUTO_CANCEL_CS_REJECT_NOTIFICATION =
4781 "carrier_auto_cancel_cs_notification";
4782
Nathan Harold773b0822019-03-12 15:51:42 -07004783 /**
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08004784 * Passing this value as {@link #KEY_SUBSCRIPTION_GROUP_UUID_STRING} will remove the
Nathan Harold773b0822019-03-12 15:51:42 -07004785 * subscription from a group instead of adding it to a group.
4786 *
Hunter Knepshield731616582020-05-21 17:17:04 -07004787 * <p>This value will work all the way back to {@link android.os.Build.VERSION_CODES#Q}.
Nathan Harold773b0822019-03-12 15:51:42 -07004788 */
4789 public static final String REMOVE_GROUP_UUID_STRING = "00000000-0000-0000-0000-000000000000";
4790
4791 /**
4792 * The UUID of a Group of related subscriptions in which to place the current subscription.
4793 *
4794 * A grouped subscription will behave for billing purposes and other UI purposes as though it
4795 * is a transparent extension of other subscriptions in the group.
4796 *
4797 * <p>If set to {@link #REMOVE_GROUP_UUID_STRING}, then the subscription will be removed from
4798 * its current group.
4799 *
Hunter Knepshield731616582020-05-21 17:17:04 -07004800 * <p>This key will work all the way back to {@link android.os.Build.VERSION_CODES#Q}.
Nathan Harold773b0822019-03-12 15:51:42 -07004801 */
4802 public static final String KEY_SUBSCRIPTION_GROUP_UUID_STRING =
Nathan Haroldbbb89682019-04-11 16:33:26 -07004803 "subscription_group_uuid_string";
Nathan Harold773b0822019-03-12 15:51:42 -07004804
4805 /**
Nathan Harold8ab07282021-11-04 18:22:24 -07004806 * Controls the cellular usage setting.
4807 *
4808 * The usage setting indicates whether a device will remain attached to a network based on
4809 * the primary use case for the service. A device will detach and search for a more-preferred
4810 * network if the primary use case (voice or data) is not satisfied. Depending on the type
4811 * of device, it may operate in a voice or data-centric mode by default.
4812 *
Nathan Harolddff34b32021-12-15 16:38:25 -08004813 * <p>Sets the usage setting in accordance with 3gpp 24.301 sec 4.3 and 3gpp 24.501 sec 4.3.
4814 * Also refer to "UE's usage setting" as defined in 3gpp 24.301 section 3.1 and 3gpp 23.221
4815 * Annex A.
4816 *
Nathan Harold8ab07282021-11-04 18:22:24 -07004817 * Either omit this key or pass a value of
4818 * {@link SubscriptionManager#USAGE_SETTING_UNKNOWN unknown} to preserve the current setting.
4819 *
Nathan Haroldb36dcb02022-03-25 13:51:55 -07004820 * <p>Devices that support configuration of the cellular usage setting, including devices
4821 * with HAL capability to set the cellular usage setting, must honor this setting accordingly.
4822 *
Nathan Harold8ab07282021-11-04 18:22:24 -07004823 * {@link SubscriptionManager#USAGE_SETTING_DEFAULT default},
4824 * {@link SubscriptionManager#USAGE_SETTING_VOICE_CENTRIC voice-centric},
4825 * or {@link SubscriptionManager#USAGE_SETTING_DATA_CENTRIC data-centric}.
4826 * {@see SubscriptionInfo#getUsageSetting}
Nathan Haroldb36dcb02022-03-25 13:51:55 -07004827 *
Nathan Harold8ab07282021-11-04 18:22:24 -07004828 */
4829 public static final String KEY_CELLULAR_USAGE_SETTING_INT =
4830 "cellular_usage_setting_int";
4831
4832 /**
Malcolm Chen46e16492020-02-04 19:01:25 -08004833 * Data switch validation minimal gap time, in milliseconds.
4834 *
4835 * Which means, if the same subscription on the same network (based on MCC+MNC+TAC+subId)
4836 * was recently validated (within this time gap), and Telephony receives a request to switch to
4837 * it again, Telephony will skip the validation part and switch to it as soon as connection
4838 * is setup, as if it's already validated.
4839 *
4840 * If the network was validated within the gap but the latest validation result is false, the
4841 * validation will not be skipped.
4842 *
4843 * If not set or set to 0, validation will never be skipped.
4844 * The max acceptable value of this config is 24 hours.
4845 *
4846 * @hide
4847 */
4848 public static final String KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG =
Malcolm Chen9859e172020-02-27 17:11:43 -08004849 "data_switch_validation_min_gap_long";
Malcolm Chen46e16492020-02-04 19:01:25 -08004850
4851 /**
Hunter Knepshield731616582020-05-21 17:17:04 -07004852 * A boolean property indicating whether this subscription should be managed as an opportunistic
4853 * subscription.
4854 *
4855 * If true, then this subscription will be selected based on available coverage and will not be
4856 * available for a user in settings menus for selecting macro network providers. If unset,
4857 * defaults to “false”.
4858 *
4859 * <p>This key will work all the way back to {@link android.os.Build.VERSION_CODES#Q}.
4860 */
Nathan Harold773b0822019-03-12 15:51:42 -07004861 public static final String KEY_IS_OPPORTUNISTIC_SUBSCRIPTION_BOOL =
Nathan Haroldbbb89682019-04-11 16:33:26 -07004862 "is_opportunistic_subscription_bool";
Nathan Harold773b0822019-03-12 15:51:42 -07004863
andychoub80dbce2019-04-09 14:50:31 +08004864 /**
Calvin Pan2260d0b2021-03-05 00:21:32 +08004865 * The flatten string {@link android.content.ComponentName componentName} of carrier
4866 * provisioning app receiver.
4867 *
4868 * <p>
4869 * The RadioInfo activity(*#*#INFO#*#*) will broadcast an intent to this receiver when the
4870 * "Carrier Provisioning Info" or "Trigger Carrier Provisioning" button clicked.
4871 *
4872 * <p>
4873 * e.g, com.google.android.carrierPackageName/.CarrierReceiverName
4874 *
4875 * @hide
4876 */
4877 public static final String KEY_CARRIER_PROVISIONING_APP_STRING =
4878 "carrier_provisioning_app_string";
4879
4880 /**
Dheeraj Shetty054700a2019-05-23 18:22:05 -07004881 * Configs used by the IMS stack.
4882 */
4883 public static final class Ims {
4884 /** Prefix of all Ims.KEY_* constants. */
4885 public static final String KEY_PREFIX = "ims.";
4886
Jimmy Chen7e47f392019-12-03 09:49:10 +08004887 /**
4888 * Delay in milliseconds to turn off wifi when IMS is registered over wifi.
4889 */
Jimmy Chen8c3cfcd2020-02-26 09:34:46 +08004890 public static final String KEY_WIFI_OFF_DEFERRING_TIME_MILLIS_INT =
4891 KEY_PREFIX + "wifi_off_deferring_time_millis_int";
Dheeraj Shetty054700a2019-05-23 18:22:05 -07004892
Brad Ebinger119076ae2020-09-23 17:00:10 -07004893 /**
4894 * A boolean flag specifying whether or not this carrier requires one IMS registration for
4895 * all IMS services (MMTEL and RCS).
4896 * <p>
4897 * If set to {@code true}, the IMS Service must use one IMS registration for all IMS
4898 * services. If set to {@code false}, IMS services may use separate IMS registrations for
4899 * MMTEL and RCS.
4900 * <p>
4901 * The default value for this configuration is {@code false}.
4902 * @see android.telephony.ims.SipDelegateManager
4903 */
4904 public static final String KEY_IMS_SINGLE_REGISTRATION_REQUIRED_BOOL =
4905 KEY_PREFIX + "ims_single_registration_required_bool";
4906
Brad Ebinger4612ab72020-11-30 23:37:03 +00004907 /**
4908 * A boolean flag specifying whether or not this carrier supports the device notifying the
4909 * network of its RCS capabilities using the SIP PUBLISH procedure defined for User
4910 * Capability Exchange (UCE). See RCC.71, section 3 for more information.
4911 * <p>
4912 * If this key's value is set to false, the procedure for RCS contact capability exchange
4913 * via SIP SUBSCRIBE/NOTIFY will also be disabled internally, and
allenwtsue6ddc2f2020-12-02 14:54:22 +08004914 * {@link Ims#KEY_ENABLE_PRESENCE_PUBLISH_BOOL} must also be set to false to ensure
4915 * apps do not improperly think that capability exchange via SIP PUBLISH is enabled.
Brad Ebinger4612ab72020-11-30 23:37:03 +00004916 * <p> The default value for this key is {@code false}.
4917 */
4918 public static final String KEY_ENABLE_PRESENCE_PUBLISH_BOOL =
4919 KEY_PREFIX + "enable_presence_publish_bool";
4920
allenwtsue6ddc2f2020-12-02 14:54:22 +08004921 /**
Brad Ebinger1a17e242021-02-21 21:48:50 -08004922 * Each string in this array contains a mapping between the service-id and version portion
4923 * of the service-description element and the associated IMS feature tag(s) that are
4924 * associated with each element (see RCC.07 Table 7).
4925 * <p>
4926 * Each string contains 3 parts, which define the mapping between service-description and
4927 * feature tag(s) that must be present in the IMS REGISTER for the RCS service to be
4928 * published as part of the RCS PUBLISH procedure:
4929 * [service-id]|[version]|[desc]|[feature_tag];[feature_tag];...
4930 * <ul>
4931 * <li>[service-id]: the service-id element associated with the RCS capability.</li>
4932 * <li>[version]: The version element associated with that service-id</li>
4933 * <li>[desc]: The optional desecription element associated with that service-id</li>
4934 * <li>[feature_tag];[feature_tag]: The list of all feature tags associated with this
4935 * capability that MUST ALL be present in the IMS registration for this this
4936 * capability to be published to the network.</li>
4937 * </ul>
4938 * <p>
4939 * Features managed by the framework will be considered capable when the ImsService reports
4940 * that those services are capable via the
4941 * {@link MmTelFeature#notifyCapabilitiesStatusChanged(MmTelFeature.MmTelCapabilities)} or
4942 * {@link RcsFeature#notifyCapabilitiesStatusChanged(RcsFeature.RcsImsCapabilities)} APIs.
4943 * For RCS services not managed by the framework, the capability of these services are
4944 * determined by looking at the feature tags associated with the IMS registration using the
4945 * {@link ImsRegistrationAttributes} API and mapping them to the service-description map.
4946 * <p>
4947 * The framework contains a default value of this key, which is based off of RCC.07
4948 * specification. Capabilities based of carrier extensions may be added to this list on a
4949 * carrier-by-carrier basis as required in order to support additional services in the
4950 * PUBLISH. If this list contains a service-id and version that overlaps with the default,
4951 * it will override the framework default.
4952 * @hide
4953 */
Brad Ebinger1a17e242021-02-21 21:48:50 -08004954 public static final String KEY_PUBLISH_SERVICE_DESC_FEATURE_TAG_MAP_OVERRIDE_STRING_ARRAY =
4955 KEY_PREFIX + "publish_service_desc_feature_tag_map_override_string_array";
4956
4957 /**
allenwtsue6ddc2f2020-12-02 14:54:22 +08004958 * Flag indicating whether or not this carrier supports the exchange of phone numbers with
4959 * the carrier's RCS presence server in order to retrieve the RCS capabilities of requested
4960 * contacts used in the RCS User Capability Exchange (UCE) procedure. See RCC.71, section 3
4961 * for more information.
4962 * <p>
4963 * When presence is supported, the device uses the SIP SUBSCRIBE/NOTIFY procedure internally
4964 * to retrieve the requested RCS capabilities. See
4965 * {@link android.telephony.ims.RcsUceAdapter} for more information on how RCS capabilities
4966 * can be retrieved from the carrier's network.
4967 */
4968 public static final String KEY_ENABLE_PRESENCE_CAPABILITY_EXCHANGE_BOOL =
4969 KEY_PREFIX + "enable_presence_capability_exchange_bool";
4970
4971
4972 /**
4973 * Flag indicating whether or not the carrier expects the RCS UCE service to periodically
4974 * refresh the RCS capabilities cache of the user's contacts as well as request the
4975 * capabilities of call contacts when the SIM card is first inserted or when a new contact
4976 * is added, removed, or modified. This corresponds to the RCC.07 A.19
4977 * "DISABLE INITIAL ADDRESS BOOK SCAN" parameter.
4978 * <p>
4979 * If this flag is disabled, the capabilities cache will not be refreshed internally at all
4980 * and will only be updated if the cached capabilities are stale when an application
4981 * requests them.
Brad Ebinger722cacf2021-05-14 01:53:56 +00004982 *
4983 * @see RcsUceAdapter#isUceSettingEnabled() more information about this feature and how
4984 * it is enabled by the user.
allenwtsue6ddc2f2020-12-02 14:54:22 +08004985 */
4986 public static final String KEY_RCS_BULK_CAPABILITY_EXCHANGE_BOOL =
4987 KEY_PREFIX + "rcs_bulk_capability_exchange_bool";
4988
4989 /**
4990 * Flag indicating whether or not the carrier supports capability exchange with a list of
4991 * contacts. When {@code true}, the device will batch together multiple requests and
4992 * construct a RLMI document in the SIP SUBSCRIBE request (see RFC 4662). If {@code false},
4993 * the request will be split up into one SIP SUBSCRIBE request per contact.
4994 */
4995 public static final String KEY_ENABLE_PRESENCE_GROUP_SUBSCRIBE_BOOL =
4996 KEY_PREFIX + "enable_presence_group_subscribe_bool";
4997
calvinpan39884872021-01-27 21:09:51 +08004998 /**
Hyunhob32f2e72022-01-26 06:26:40 +00004999 * Flag indicating whether or not to use SIP URI when send a presence subscribe.
5000 * When {@code true}, the device sets the To and Contact header to be SIP URI using
5001 * the TelephonyManager#getIsimDomain" API.
5002 * If {@code false}, the device uses a TEL URI.
5003 */
5004 public static final String KEY_USE_SIP_URI_FOR_PRESENCE_SUBSCRIBE_BOOL =
5005 KEY_PREFIX + "use_sip_uri_for_presence_subscribe_bool";
5006
5007 /**
Hyunhod91518e2022-05-04 22:45:01 +00005008 * Flag indicating whether or not to use TEL URI when setting the entity uri field and
5009 * contact element of each tuple.
Brad Ebinger6c486202022-05-06 11:26:12 -07005010 *
Hyunhod91518e2022-05-04 22:45:01 +00005011 * When {@code true}, the device sets the entity uri field and contact element to be
Brad Ebinger6c486202022-05-06 11:26:12 -07005012 * TEL URI. This is done by first searching for the first TEL URI provided in
5013 * p-associated-uri header. If there are no TEL URIs in the p-associated-uri header, we will
5014 * convert the first SIP URI provided in the header to a TEL URI. If there are no URIs in
5015 * the p-associated-uri header, we will then fall back to using the SIM card to generate the
Hyunhod91518e2022-05-04 22:45:01 +00005016 * TEL URI.
Brad Ebinger6c486202022-05-06 11:26:12 -07005017 * If {@code false}, the first URI provided in the p-associated-uri header is used,
5018 * independent of the URI scheme. If there are no URIs available from p-associated-uri
5019 * header, we will try to generate a SIP URI or TEL URI from the information provided by the
5020 * SIM card, depending on the information available.
Hyunhod91518e2022-05-04 22:45:01 +00005021 * @hide
5022 */
5023 public static final String KEY_USE_TEL_URI_FOR_PIDF_XML_BOOL =
5024 KEY_PREFIX + "use_tel_uri_for_pidf_xml";
5025
5026 /**
calvinpan39884872021-01-27 21:09:51 +08005027 * An integer key associated with the period of time in seconds the non-rcs capability
5028 * information of each contact is cached on the device.
5029 * <p>
5030 * The rcs capability cache expiration sec is managed by
5031 * {@code android.telephony.ims.ProvisioningManager} but non-rcs capability is managed by
5032 * {@link CarrierConfigManager} since non-rcs capability will be provided via ACS or carrier
5033 * config.
5034 * <p>
5035 * The default value is 2592000 secs (30 days), see RCC.07 Annex A.1.9.
5036 */
5037 public static final String KEY_NON_RCS_CAPABILITIES_CACHE_EXPIRATION_SEC_INT =
5038 KEY_PREFIX + "non_rcs_capabilities_cache_expiration_sec_int";
5039
Hui Wang840afdd2021-03-05 20:13:22 -08005040 /**
5041 * Specifies the RCS feature tag allowed for the carrier.
5042 *
5043 * <p>The values refer to RCC.07 2.4.4.
5044 */
5045 public static final String KEY_RCS_FEATURE_TAG_ALLOWED_STRING_ARRAY =
5046 KEY_PREFIX + "rcs_feature_tag_allowed_string_array";
5047
James.cf Lincf451202021-04-29 15:41:17 +08005048 /**
5049 * Flag indicating whether or not carrier forbids device send the RCS request when the
5050 * device receive the network response with the SIP code 489 BAD EVENT.
5051 * <p>
5052 * The default value for this key is {@code false}.
5053 * @hide
5054 */
5055 public static final String KEY_RCS_REQUEST_FORBIDDEN_BY_SIP_489_BOOL =
5056 KEY_PREFIX + "rcs_request_forbidden_by_sip_489_bool";
5057
5058 /**
5059 * Indicates the interval that SUBSCRIBE requests from applications will be retried at when
5060 * the carrier network has responded to a previous request with a forbidden error.
5061 * <p>
5062 * The default value for this key is 20 minutes.
5063 * @hide
5064 */
5065 public static final String KEY_RCS_REQUEST_RETRY_INTERVAL_MILLIS_LONG =
5066 KEY_PREFIX + "rcs_request_retry_interval_millis_long";
5067
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08005068 /** SIP timer T1 as per 3GPP TS 24.229 Table 7.7.1 */
5069 public static final String KEY_SIP_TIMER_T1_MILLIS_INT =
5070 KEY_PREFIX + "sip_timer_t1_millis_int";
5071
5072 /** SIP timer T2 as per 3GPP TS 24.229 Table 7.7.1 */
5073 public static final String KEY_SIP_TIMER_T2_MILLIS_INT =
5074 KEY_PREFIX + "sip_timer_t2_millis_int";
5075
5076 /** SIP timer T4 as per 3GPP TS 24.229 Table 7.7.1 */
5077 public static final String KEY_SIP_TIMER_T4_MILLIS_INT =
5078 KEY_PREFIX + "sip_timer_t4_millis_int";
5079
5080 /** SIP timer B as per 3GPP TS 24.229 Table 7.7.1 */
5081 public static final String KEY_SIP_TIMER_B_MILLIS_INT =
5082 KEY_PREFIX + "sip_timer_b_millis_int";
5083
5084 /** SIP timer C as per 3GPP TS 24.229 Table 7.7.1 */
5085 public static final String KEY_SIP_TIMER_C_MILLIS_INT =
5086 KEY_PREFIX + "sip_timer_c_millis_int";
5087
5088 /** SIP timer D as per 3GPP TS 24.229 Table 7.7.1 */
5089 public static final String KEY_SIP_TIMER_D_MILLIS_INT =
5090 KEY_PREFIX + "sip_timer_d_millis_int";
5091
5092 /** SIP timer F as per 3GPP TS 24.229 Table 7.7.1 */
5093 public static final String KEY_SIP_TIMER_F_MILLIS_INT =
5094 KEY_PREFIX + "sip_timer_f_millis_int";
5095
5096 /** SIP timer H as per 3GPP TS 24.229 Table 7.7.1 */
5097 public static final String KEY_SIP_TIMER_H_MILLIS_INT =
5098 KEY_PREFIX + "sip_timer_h_millis_int";
5099
5100 /** SIP timer J as per 3GPP TS 24.229 Table 7.7.1 */
5101 public static final String KEY_SIP_TIMER_J_MILLIS_INT =
5102 KEY_PREFIX + "sip_timer_j_millis_int";
5103
5104 /** Specifies the SIP Server default port. */
5105 public static final String KEY_SIP_SERVER_PORT_NUMBER_INT =
5106 KEY_PREFIX + "sip_server_port_number_int";
5107
5108 /**
5109 * Specify the “phone-context” parameter as defined in
5110 * section 7.2A.10 in 3GPP TS 24.229.
5111 */
5112 public static final String KEY_PHONE_CONTEXT_DOMAIN_NAME_STRING =
5113 KEY_PREFIX + "phone_context_domain_name_string";
5114
5115 /** @hide */
5116 @IntDef({REQUEST_URI_FORMAT_TEL, REQUEST_URI_FORMAT_SIP})
5117
5118 public @interface RequestUriFormatType {}
5119
5120 /**
5121 * Request URI is of type TEL URI.
5122 */
5123 public static final int REQUEST_URI_FORMAT_TEL = 0;
5124
5125 /**
5126 * Request URI is of type SIP URI.
5127 */
5128 public static final int REQUEST_URI_FORMAT_SIP = 1;
5129
5130 /**
5131 * Specify whether the request URI is SIP URI
5132 * {@link #REQUEST_URI_FORMAT_SIP} or
5133 * TEL URI {@link #REQUEST_URI_FORMAT_TEL}.
5134 */
5135 public static final String KEY_REQUEST_URI_TYPE_INT =
5136 KEY_PREFIX + "request_uri_type_int";
5137
5138 /**
5139 * Flag indicating whether Globally Routable User agent (GRUU)
5140 * in supported HEADER is included or not.
5141 *
5142 * <p> Reference: RFC 5627.
5143 */
5144 public static final String KEY_GRUU_ENABLED_BOOL =
5145 KEY_PREFIX + "gruu_enabled_bool";
5146
5147 /**
5148 * Flag indicating whether to keep/release IMS PDN in case of
5149 * moving to non VOPS area.
5150 *
5151 * <p>if {@code True}, keep IMS PDN in case of moving to non VOPS area.
5152 * if {@code false}, otherwise.
5153 */
5154 public static final String KEY_KEEP_PDN_UP_IN_NO_VOPS_BOOL =
5155 KEY_PREFIX + "keep_pdn_up_in_no_vops_bool";
5156
5157 /** @hide */
5158 @IntDef({
5159 PREFERRED_TRANSPORT_UDP,
5160 PREFERRED_TRANSPORT_TCP,
5161 PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP,
5162 PREFERRED_TRANSPORT_TLS
5163 })
5164
5165 public @interface PreferredTransportType {}
5166
5167 /** Preferred Transport is always UDP. */
5168 public static final int PREFERRED_TRANSPORT_UDP = 0;
5169
5170 /** Preferred Transport is always TCP. */
5171 public static final int PREFERRED_TRANSPORT_TCP = 1;
5172
5173 /**
5174 * Preferred Transport is both UDP and TCP and selected based
5175 * on MTU size specified in {@link #KEY_IPV4_SIP_MTU_SIZE_CELLULAR_INT}
5176 * and {@link #KEY_IPV6_SIP_MTU_SIZE_CELLULAR_INT}.
5177 *
5178 * <p>Default transport is UDP. If message size is larger
5179 * than MTU, then TCP shall be used.
5180 */
5181 public static final int PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP = 2;
5182
5183 /** Preferred Transport is TLS. */
5184 public static final int PREFERRED_TRANSPORT_TLS = 3;
5185
5186 /**
5187 * Specify the preferred transport protocol for SIP messages.
5188 *
5189 * <p>Possible values are,
5190 * {@link #PREFERRED_TRANSPORT_UDP},
5191 * {@link #PREFERRED_TRANSPORT_TCP},
5192 * {@link #PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP}
5193 */
5194 public static final String KEY_SIP_PREFERRED_TRANSPORT_INT =
5195 KEY_PREFIX + "sip_preferred_transport_int";
5196
5197 /**
5198 * Specify the maximum IPV4 MTU size of SIP message on Cellular.
5199 *
5200 * <p>If {@link #KEY_SIP_PREFERRED_TRANSPORT_INT} is
5201 * {@link #PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP} and SIP message MTU size
5202 * is more than this value, then SIP transport will be TCP, else the
5203 * SIP transport is UDP.
5204 */
5205 public static final String KEY_IPV4_SIP_MTU_SIZE_CELLULAR_INT =
5206 KEY_PREFIX + "ipv4_sip_mtu_size_cellular_int";
5207
5208 /**
5209 * Specify the maximum IPV6 MTU size of SIP message on Cellular.
5210 *
5211 * <p>If {@link #KEY_SIP_PREFERRED_TRANSPORT_INT} is
5212 * {@link #PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP} and SIP message MTU size
5213 * is more than this value, then SIP transport will be TCP, else the
5214 * SIP transport is UDP.
5215 */
5216 public static final String KEY_IPV6_SIP_MTU_SIZE_CELLULAR_INT =
5217 KEY_PREFIX + "ipv6_sip_mtu_size_cellular_int";
5218
5219 /**
5220 * This config determines whether IMS PDN needs to be enabled
5221 * when VOPS support is not available in both home and roaming scenarios.
5222 *
5223 * <p>This is applicable before IMS PDN is up, to decide whether
5224 * IMS PDN needs to be enabled based on VOPS support in home/roaming.
5225 *
5226 * <p>Possible values are,
5227 * {@link #NETWORK_TYPE_HOME},
5228 * {@link #NETWORK_TYPE_ROAMING}
5229 * An empty array indicates IMS PDN depends on VOPS on both home
5230 * and roaming scenarios.
5231 */
5232 public static final String KEY_IMS_PDN_ENABLED_IN_NO_VOPS_SUPPORT_INT_ARRAY =
5233 KEY_PREFIX + "ims_pdn_enabled_in_no_vops_support_int_array";
5234
5235 /**
5236 * Flag indicating whether IPSec enabled for SIP messages.
5237 *
5238 * <p> Reference: 3GPP TS 33.203 and RFC 3329.
5239 */
5240 public static final String KEY_SIP_OVER_IPSEC_ENABLED_BOOL =
5241 KEY_PREFIX + "sip_over_ipsec_enabled_bool";
5242
5243 /** @hide */
5244 @IntDef({IPSEC_AUTHENTICATION_ALGORITHM_HMAC_MD5, IPSEC_AUTHENTICATION_ALGORITHM_HMAC_SHA1})
5245
5246 public @interface IpsecAuthenticationAlgorithmType {}
5247
5248 /** IPSec Authentication algorithm is HMAC-MD5. see Annex H of TS 33.203 */
5249 public static final int IPSEC_AUTHENTICATION_ALGORITHM_HMAC_MD5 = 0;
5250
5251 /** IPSec Authentication algorithm is HMAC-SHA1. see Annex H of TS 33.203 */
5252 public static final int IPSEC_AUTHENTICATION_ALGORITHM_HMAC_SHA1 = 1;
5253
5254 /**
5255 * List of supported IPSEC Authentication algorithms.
5256 *
5257 * <p>Possible values are,
5258 * {@link #IPSEC_AUTHENTICATION_ALGORITHM_HMAC_MD5},
5259 * {@link #IPSEC_AUTHENTICATION_ALGORITHM_HMAC_SHA1}
5260 */
5261 public static final String KEY_IPSEC_AUTHENTICATION_ALGORITHMS_INT_ARRAY =
5262 KEY_PREFIX + "ipsec_authentication_algorithms_int_array";
5263
5264 /** @hide */
5265 @IntDef({
5266 IPSEC_ENCRYPTION_ALGORITHM_NULL,
5267 IPSEC_ENCRYPTION_ALGORITHM_DES_EDE3_CBC,
5268 IPSEC_ENCRYPTION_ALGORITHM_AES_CBC
5269 })
5270
5271 public @interface IpsecEncryptionAlgorithmType {}
5272
5273 /** IPSec Encryption algorithm is NULL. see Annex H of TS 33.203 */
5274 public static final int IPSEC_ENCRYPTION_ALGORITHM_NULL = 0;
5275
5276 /** IPSec Encryption algorithm is DES_EDE3_CBC. see Annex H of TS 33.203 */
5277 public static final int IPSEC_ENCRYPTION_ALGORITHM_DES_EDE3_CBC = 1;
5278
5279 /** IPSec Encryption algorithm is AES_CBC. see Annex H of TS 33.203 */
5280 public static final int IPSEC_ENCRYPTION_ALGORITHM_AES_CBC = 2;
5281
5282 /**
5283 * List of supported IPSEC encryption algorithms.
5284 *
5285 * <p>Possible values are,
5286 * {@link #IPSEC_ENCRYPTION_ALGORITHM_NULL},
5287 * {@link #IPSEC_ENCRYPTION_ALGORITHM_DES_EDE3_CBC},
5288 * {@link #IPSEC_ENCRYPTION_ALGORITHM_AES_CBC}
5289 */
5290 public static final String KEY_IPSEC_ENCRYPTION_ALGORITHMS_INT_ARRAY =
5291 KEY_PREFIX + "ipsec_encryption_algorithms_int_array";
5292
5293 /**
5294 * Expiry timer for IMS Registration in seconds.
5295 * <p>Reference: RFC 3261 Section 20.19.
5296 */
5297 public static final String KEY_REGISTRATION_EXPIRY_TIMER_SEC_INT =
5298 KEY_PREFIX + "registration_expiry_timer_sec_int";
5299
5300 /** Registration Retry Base-time as per RFC 5626 Section 4.5. */
5301 public static final String KEY_REGISTRATION_RETRY_BASE_TIMER_MILLIS_INT =
5302 KEY_PREFIX + "registration_retry_base_timer_millis_int";
5303
5304 /** Registration Retry max-time as per RFC 5626 Section 4.5. */
5305 public static final String KEY_REGISTRATION_RETRY_MAX_TIMER_MILLIS_INT =
5306 KEY_PREFIX + "registration_retry_max_timer_millis_int";
5307
5308 /**
5309 * Flag indicating whether subscription to registration event package
5310 * is supported or not.
5311 */
5312 public static final String KEY_REGISTRATION_EVENT_PACKAGE_SUPPORTED_BOOL =
5313 KEY_PREFIX + "registration_event_package_supported_bool";
5314
5315 /**
5316 * Expiry timer for SUBSCRIBE in seconds.
5317 * <p>Reference: RFC 3261 Section 20.19.
5318 */
5319 public static final String KEY_REGISTRATION_SUBSCRIBE_EXPIRY_TIMER_SEC_INT =
5320 KEY_PREFIX + "registration_subscribe_expiry_timer_sec_int";
5321
5322 /** @hide */
5323 @IntDef({
5324 GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_WIFI,
5325 GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI,
5326 GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_CELLULAR,
5327 GEOLOCATION_PIDF_FOR_EMERGENCY_ON_CELLULAR
5328 })
5329
5330 public @interface GeolocationPidfAllowedType {}
5331
5332 /**
5333 * Indicates geolocation PIDF XML needs to be included for
5334 * normal/non-emergency call scenario on WiFi
5335 *
5336 * <p>Geolocation for normal/non-emergency call should only include
5337 * country code.
5338 */
5339 public static final int GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_WIFI = 1;
5340
5341 /**
5342 * Indicates geolocation PIDF XML needs to be included for emergency
5343 * call scenario on WiFi
5344 */
5345 public static final int GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI = 2;
5346
5347 /**
5348 * Indicates geolocation PIDF XML needs to be included for normal/non-emergency
5349 * call scenario on Cellular
5350 *
5351 * <p>Geolocation for normal/non-emergency call should only include
5352 * country code.
5353 */
5354 public static final int GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_CELLULAR = 3;
5355
5356 /**
5357 * Indicates geolocation PIDF XML needs to be included for emergency
5358 * call scenario on Cellular
5359 */
5360 public static final int GEOLOCATION_PIDF_FOR_EMERGENCY_ON_CELLULAR = 4;
5361
5362 /**
5363 * List of cases where geolocation PIDF XML needs to be included in the
5364 * SIP REGISTER over WiFi and Cellular.
5365 *
5366 * <p>Possible values are,
5367 * {@link #GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_WIFI},
5368 * {@link #GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI},
5369 * {@link #GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_CELLULAR},
5370 * {@link #GEOLOCATION_PIDF_FOR_EMERGENCY_ON_CELLULAR}
5371 *
5372 * <p>An empty array indicates geolocation PIDF XML should not be included in
5373 * the SIP REGISTER over WiFi and Cellular.
5374 */
5375 public static final String KEY_GEOLOCATION_PIDF_IN_SIP_REGISTER_SUPPORT_INT_ARRAY =
5376 KEY_PREFIX + "geolocation_pidf_in_sip_register_support_int_array";
5377
5378 /**
5379 * List of cases where geolocation PIDF XML needs to be included in the
5380 * SIP INVITE over WiFi and Cellular.
5381 *
5382 * <p>Possible values are,
5383 * {@link #GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_WIFI},
5384 * {@link #GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI},
5385 * {@link #GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_CELLULAR},
5386 * {@link #GEOLOCATION_PIDF_FOR_EMERGENCY_ON_CELLULAR}
5387 *
5388 * <p>An empty array indicates geolocation PIDF XML should not be included
5389 * in the SIP INVITE over WiFi and Cellular.
5390 */
5391 public static final String KEY_GEOLOCATION_PIDF_IN_SIP_INVITE_SUPPORT_INT_ARRAY =
5392 KEY_PREFIX + "geolocation_pidf_in_sip_invite_support_int_array";
5393
5394 /**
5395 * Specifies the IMS User Agent in template format.
5396 *
5397 * <p>Example: #MANUFACTURER#_#MODEL#_Android#AV#_#BUILD#".
5398 * IMS Stack should internally substitute the tokens with the
5399 * values from the respective android properties.
5400 *
5401 * <p>List of allowed tokens and the corresponding android properties are,
5402 * <UL>
5403 * <LI>MANUFACTURER : ro.product.manufacturer</LI>
5404 * <LI>MODEL : ro.product.model</LI>
5405 * <LI>AV : ro.build.version.release"</LI>
5406 * <LI>BUILD : ro.build.id</LI>
5407 * </UL>
5408 * <p> Vendor IMS Stack should strip any whitespace characters present
5409 * in the android properties values before replacing the token.
5410 *
5411 * <p> An empty string is invalid as per IR92 section 2.6. This key is
5412 * considered invalid if the format is violated. If the key is invalid or
5413 * not configured, IMS stack should use internal default values.
5414 */
5415 public static final String KEY_IMS_USER_AGENT_STRING =
5416 KEY_PREFIX + "ims_user_agent_string";
5417
5418 /** @hide */
5419 @IntDef({
5420 NETWORK_TYPE_HOME,
5421 NETWORK_TYPE_ROAMING
5422 })
5423
5424 public @interface NetworkType {}
5425
5426 /** Indicates HOME Network. */
5427 public static final int NETWORK_TYPE_HOME = 0;
5428
5429 /** Indicates Roaming Network. */
5430 public static final int NETWORK_TYPE_ROAMING = 1;
5431
5432 /** @hide */
5433 @IntDef({
5434 RTCP_INACTIVITY_ON_HOLD,
5435 RTCP_INACTIVITY_ON_CONNECTED,
5436 RTP_INACTIVITY_ON_CONNECTED,
5437 E911_RTCP_INACTIVITY_ON_CONNECTED,
5438 E911_RTP_INACTIVITY_ON_CONNECTED
5439 })
5440
5441 public @interface MediaInactivityReason {}
5442
5443 /** RTCP inactivity occurred when call is on HOLD. */
5444 public static final int RTCP_INACTIVITY_ON_HOLD = 0;
5445
5446 /** RTCP inactivity occurred when call is connected. */
5447 public static final int RTCP_INACTIVITY_ON_CONNECTED = 1;
5448
5449 /** RTP inactivity occurred when call is connected. */
5450 public static final int RTP_INACTIVITY_ON_CONNECTED = 2;
5451
5452 /** E911 RTCP inactivity occurred when call is connected. */
5453 public static final int E911_RTCP_INACTIVITY_ON_CONNECTED = 3;
5454
5455 /** E911 RTP inactivity occurred when call is connected. */
5456 public static final int E911_RTP_INACTIVITY_ON_CONNECTED = 4;
5457
Hakjun Choia9008582021-11-26 03:12:52 +00005458 /**
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08005459 * List of different RAT technologies on which IMS
5460 * is supported.
5461 *
5462 * <p>Possible values are,
5463 * {@link AccessNetworkConstants.AccessNetworkType#NGRAN}
5464 * {@link AccessNetworkConstants.AccessNetworkType#EUTRAN}
5465 * {@link AccessNetworkConstants.AccessNetworkType#IWLAN}
5466 * {@link AccessNetworkConstants.AccessNetworkType#UTRAN}
5467 * {@link AccessNetworkConstants.AccessNetworkType#GERAN}
5468 */
5469 public static final String KEY_SUPPORTED_RATS_INT_ARRAY =
5470 KEY_PREFIX + "supported_rats_int_array";
5471
5472 /**
Hakjun Choia972ee22022-01-17 09:49:53 +00005473 * A bundle which specifies the MMTEL capability and registration technology
5474 * that requires provisioning. If a tuple is not present, the
Hakjun Choia9008582021-11-26 03:12:52 +00005475 * framework will not require that the tuple requires provisioning before
5476 * enabling the capability.
Hakjun Choia972ee22022-01-17 09:49:53 +00005477 * <p> Possible keys in this bundle are
5478 * <ul>
5479 * <li>{@link #KEY_CAPABILITY_TYPE_VOICE_INT_ARRAY}</li>
5480 * <li>{@link #KEY_CAPABILITY_TYPE_VIDEO_INT_ARRAY}</li>
5481 * <li>{@link #KEY_CAPABILITY_TYPE_UT_INT_ARRAY}</li>
5482 * <li>{@link #KEY_CAPABILITY_TYPE_SMS_INT_ARRAY}</li>
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005483 * <li>{@link #KEY_CAPABILITY_TYPE_CALL_COMPOSER_INT_ARRAY}</li>
Hakjun Choia972ee22022-01-17 09:49:53 +00005484 * </ul>
5485 * <p> The values are defined in
Hakjun Choia9008582021-11-26 03:12:52 +00005486 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech}
Hakjun Choi79a50532022-04-21 06:24:26 +00005487 *
5488 * changing mmtel_requires_provisioning_bundle requires changes to
5489 * carrier_volte_provisioning_required_bool and vice versa
5490 * {@link Ims#KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL}
Hakjun Choia9008582021-11-26 03:12:52 +00005491 */
Hakjun Choia972ee22022-01-17 09:49:53 +00005492 public static final String KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE =
5493 KEY_PREFIX + "mmtel_requires_provisioning_bundle";
Hakjun Choia9008582021-11-26 03:12:52 +00005494
5495 /**
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005496 * List of different RAT technologies on which Provisioning for Voice calling (IR.92)
5497 * is supported.
Hakjun Choia972ee22022-01-17 09:49:53 +00005498 * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_VOICE
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005499 * <p>Possible values are,
5500 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5501 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5502 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5503 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
Hakjun Choia972ee22022-01-17 09:49:53 +00005504 */
5505 public static final String KEY_CAPABILITY_TYPE_VOICE_INT_ARRAY =
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005506 KEY_PREFIX + "capability_type_voice_int_array";
Hakjun Choia972ee22022-01-17 09:49:53 +00005507
5508 /**
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005509 * List of different RAT technologies on which Provisioning for Video Telephony (IR.94)
5510 * is supported.
Hakjun Choia972ee22022-01-17 09:49:53 +00005511 * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_VIDEO
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005512 * <p>Possible values are,
5513 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5514 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5515 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5516 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
Hakjun Choia972ee22022-01-17 09:49:53 +00005517 */
5518 public static final String KEY_CAPABILITY_TYPE_VIDEO_INT_ARRAY =
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005519 KEY_PREFIX + "capability_type_video_int_array";
Hakjun Choia972ee22022-01-17 09:49:53 +00005520
5521 /**
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005522 * List of different RAT technologies on which Provisioning for XCAP over Ut for
5523 * supplementary services. (IR.92) is supported.
Hakjun Choia972ee22022-01-17 09:49:53 +00005524 * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_UT
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005525 * <p>Possible values are,
5526 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5527 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5528 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5529 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
Hakjun Choia972ee22022-01-17 09:49:53 +00005530 */
5531 public static final String KEY_CAPABILITY_TYPE_UT_INT_ARRAY =
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005532 KEY_PREFIX + "capability_type_ut_int_array";
Hakjun Choia972ee22022-01-17 09:49:53 +00005533
5534 /**
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005535 * List of different RAT technologies on which Provisioning for SMS (IR.92) is supported.
Hakjun Choia972ee22022-01-17 09:49:53 +00005536 * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_SMS
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005537 * <p>Possible values are,
5538 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5539 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5540 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5541 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
Hakjun Choia972ee22022-01-17 09:49:53 +00005542 */
5543 public static final String KEY_CAPABILITY_TYPE_SMS_INT_ARRAY =
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005544 KEY_PREFIX + "capability_type_sms_int_array";
Hakjun Choia972ee22022-01-17 09:49:53 +00005545
5546 /**
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005547 * List of different RAT technologies on which Provisioning for Call Composer
5548 * (section 2.4 of RCC.20) is supported.
Hakjun Choia972ee22022-01-17 09:49:53 +00005549 * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_CALL_COMPOSER
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005550 * <p>Possible values are,
5551 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5552 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5553 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5554 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
Hakjun Choia972ee22022-01-17 09:49:53 +00005555 */
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005556 public static final String KEY_CAPABILITY_TYPE_CALL_COMPOSER_INT_ARRAY =
5557 KEY_PREFIX + "capability_type_call_composer_int_array";
Hakjun Choia972ee22022-01-17 09:49:53 +00005558
5559 /**
5560 * A bundle which specifies the RCS capability and registration technology
5561 * that requires provisioning. If a tuple is not present, the
Hakjun Choia9008582021-11-26 03:12:52 +00005562 * framework will not require that the tuple requires provisioning before
5563 * enabling the capability.
Hakjun Choia972ee22022-01-17 09:49:53 +00005564 * <p> Possible keys in this bundle are
5565 * <ul>
5566 * <li>{@link #KEY_CAPABILITY_TYPE_OPTIONS_UCE_INT_ARRAY}</li>
5567 * <li>{@link #KEY_CAPABILITY_TYPE_PRESENCE_UCE_INT_ARRAY}</li>
5568 * </ul>
5569 * <p> The values are defined in
Hakjun Choia9008582021-11-26 03:12:52 +00005570 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech}
Hakjun Choia9008582021-11-26 03:12:52 +00005571 */
Hakjun Choia972ee22022-01-17 09:49:53 +00005572 public static final String KEY_RCS_REQUIRES_PROVISIONING_BUNDLE =
5573 KEY_PREFIX + "rcs_requires_provisioning_bundle";
5574
5575 /**
5576 * This carrier supports User Capability Exchange using SIP OPTIONS as defined by the
5577 * framework. If set, the RcsFeature should support capability exchange using SIP OPTIONS.
5578 * If not set, this RcsFeature should not service capability requests.
5579 * @see RcsFeature.RcsImsCapabilities#CAPABILITY_TYPE_OPTIONS_UCE
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005580 * <p>Possible values are,
5581 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5582 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5583 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5584 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
Hakjun Choia972ee22022-01-17 09:49:53 +00005585 */
5586 public static final String KEY_CAPABILITY_TYPE_OPTIONS_UCE_INT_ARRAY =
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005587 KEY_PREFIX + "capability_type_options_uce_int_array";
Hakjun Choia972ee22022-01-17 09:49:53 +00005588
5589 /**
5590 * This carrier supports User Capability Exchange using a presence server as defined by the
5591 * framework. If set, the RcsFeature should support capability exchange using a presence
5592 * server. If not set, this RcsFeature should not publish capabilities or service capability
5593 * requests using presence.
5594 * @see RcsFeature.RcsImsCapabilities#CAPABILITY_TYPE_PRESENCE_UCE
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005595 * <p>Possible values are,
5596 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5597 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5598 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5599 * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
Hakjun Choia972ee22022-01-17 09:49:53 +00005600 */
5601 public static final String KEY_CAPABILITY_TYPE_PRESENCE_UCE_INT_ARRAY =
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005602 KEY_PREFIX + "capability_type_presence_uce_int_array";
Hakjun Choia9008582021-11-26 03:12:52 +00005603
Dheeraj Shetty054700a2019-05-23 18:22:05 -07005604 private Ims() {}
5605
5606 private static PersistableBundle getDefaults() {
5607 PersistableBundle defaults = new PersistableBundle();
radhika1599ce02020-03-03 11:47:14 -08005608 defaults.putInt(KEY_WIFI_OFF_DEFERRING_TIME_MILLIS_INT, 4000);
Brad Ebinger119076ae2020-09-23 17:00:10 -07005609 defaults.putBoolean(KEY_IMS_SINGLE_REGISTRATION_REQUIRED_BOOL, false);
Brad Ebinger4612ab72020-11-30 23:37:03 +00005610 defaults.putBoolean(KEY_ENABLE_PRESENCE_PUBLISH_BOOL, false);
Brad Ebinger1a17e242021-02-21 21:48:50 -08005611 defaults.putStringArray(KEY_PUBLISH_SERVICE_DESC_FEATURE_TAG_MAP_OVERRIDE_STRING_ARRAY,
5612 new String[] {});
allenwtsue6ddc2f2020-12-02 14:54:22 +08005613 defaults.putBoolean(KEY_ENABLE_PRESENCE_CAPABILITY_EXCHANGE_BOOL, false);
5614 defaults.putBoolean(KEY_RCS_BULK_CAPABILITY_EXCHANGE_BOOL, false);
James.cf Lin5b001192021-06-30 02:03:15 +08005615 defaults.putBoolean(KEY_ENABLE_PRESENCE_GROUP_SUBSCRIBE_BOOL, false);
Hyunhob32f2e72022-01-26 06:26:40 +00005616 defaults.putBoolean(KEY_USE_SIP_URI_FOR_PRESENCE_SUBSCRIBE_BOOL, false);
calvinpan39884872021-01-27 21:09:51 +08005617 defaults.putInt(KEY_NON_RCS_CAPABILITIES_CACHE_EXPIRATION_SEC_INT, 30 * 24 * 60 * 60);
James.cf Lincf451202021-04-29 15:41:17 +08005618 defaults.putBoolean(KEY_RCS_REQUEST_FORBIDDEN_BY_SIP_489_BOOL, false);
5619 defaults.putLong(KEY_RCS_REQUEST_RETRY_INTERVAL_MILLIS_LONG, 20 * 60 * 1000);
Hui Wang840afdd2021-03-05 20:13:22 -08005620 defaults.putStringArray(KEY_RCS_FEATURE_TAG_ALLOWED_STRING_ARRAY, new String[]{
5621 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.msg\"",
5622 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.largemsg\"",
5623 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.deferred\"",
5624 "+g.gsma.rcs.cpm.pager-large",
5625 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.session\"",
allenwtsu09708832021-06-01 16:42:27 +08005626 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.filetransfer\"",
Hui Wang840afdd2021-03-05 20:13:22 -08005627 "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.fthttp\"",
5628 "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.ftsms\"",
5629 "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.gsma.callcomposer\"",
5630 "+g.gsma.callcomposer",
5631 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.gsma.callunanswered\"",
5632 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.gsma.sharedmap\"",
5633 "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.gsma.sharedsketch\"",
5634 "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.geopush\"",
5635 "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.geosms\"",
5636 "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.chatbot\"",
5637 "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.chatbot.sa\"",
5638 "+g.gsma.rcs.botversion=\"#=1,#=2\"",
5639 "+g.gsma.rcs.cpimext"});
Hakjun Choia972ee22022-01-17 09:49:53 +00005640
5641 /**
5642 * @see #KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE
5643 */
Hakjun Choia972ee22022-01-17 09:49:53 +00005644 defaults.putPersistableBundle(
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005645 KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE, new PersistableBundle());
Hakjun Choia972ee22022-01-17 09:49:53 +00005646 /**
5647 * @see #KEY_RCS_REQUIRES_PROVISIONING_BUNDLE
5648 */
Hakjun Choia972ee22022-01-17 09:49:53 +00005649 defaults.putPersistableBundle(
Hakjun Choi5f886ed42022-01-26 06:12:25 +00005650 KEY_RCS_REQUIRES_PROVISIONING_BUNDLE, new PersistableBundle());
Hui Wang840afdd2021-03-05 20:13:22 -08005651
Sateshk Kumar Chinnappan9b1b1df2022-02-14 09:16:32 -08005652 defaults.putBoolean(KEY_GRUU_ENABLED_BOOL, false);
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08005653 defaults.putBoolean(KEY_SIP_OVER_IPSEC_ENABLED_BOOL, true);
5654 defaults.putBoolean(KEY_KEEP_PDN_UP_IN_NO_VOPS_BOOL, false);
5655 defaults.putBoolean(KEY_REGISTRATION_EVENT_PACKAGE_SUPPORTED_BOOL, true);
5656
5657 defaults.putInt(KEY_SIP_TIMER_T1_MILLIS_INT, 2000);
5658 defaults.putInt(KEY_SIP_TIMER_T2_MILLIS_INT, 16000);
5659 defaults.putInt(KEY_SIP_TIMER_T4_MILLIS_INT, 17000);
5660 defaults.putInt(KEY_SIP_TIMER_B_MILLIS_INT, 128000);
5661 defaults.putInt(KEY_SIP_TIMER_C_MILLIS_INT, 210000);
5662 defaults.putInt(KEY_SIP_TIMER_D_MILLIS_INT, 130000);
5663 defaults.putInt(KEY_SIP_TIMER_F_MILLIS_INT, 128000);
5664 defaults.putInt(KEY_SIP_TIMER_H_MILLIS_INT, 128000);
5665 defaults.putInt(KEY_SIP_TIMER_J_MILLIS_INT, 128000);
5666 defaults.putInt(KEY_SIP_SERVER_PORT_NUMBER_INT, 5060);
Sateshk Kumar Chinnappan9b1b1df2022-02-14 09:16:32 -08005667 defaults.putInt(KEY_REQUEST_URI_TYPE_INT, REQUEST_URI_FORMAT_TEL);
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08005668 defaults.putInt(KEY_SIP_PREFERRED_TRANSPORT_INT, PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP);
5669 defaults.putInt(KEY_IPV4_SIP_MTU_SIZE_CELLULAR_INT, 1500);
5670 defaults.putInt(KEY_IPV6_SIP_MTU_SIZE_CELLULAR_INT, 1500);
5671 defaults.putInt(KEY_REGISTRATION_EXPIRY_TIMER_SEC_INT, 600000);
5672 defaults.putInt(KEY_REGISTRATION_RETRY_BASE_TIMER_MILLIS_INT, 30000);
5673 defaults.putInt(KEY_REGISTRATION_RETRY_MAX_TIMER_MILLIS_INT, 1800000);
5674 defaults.putInt(KEY_REGISTRATION_SUBSCRIBE_EXPIRY_TIMER_SEC_INT, 600000);
5675
5676 defaults.putIntArray(
5677 KEY_IPSEC_AUTHENTICATION_ALGORITHMS_INT_ARRAY,
5678 new int[] {
5679 IPSEC_AUTHENTICATION_ALGORITHM_HMAC_MD5,
5680 IPSEC_AUTHENTICATION_ALGORITHM_HMAC_SHA1
5681 });
5682 defaults.putIntArray(
5683 KEY_IPSEC_ENCRYPTION_ALGORITHMS_INT_ARRAY,
5684 new int[] {
5685 IPSEC_ENCRYPTION_ALGORITHM_NULL,
5686 IPSEC_ENCRYPTION_ALGORITHM_DES_EDE3_CBC,
5687 IPSEC_ENCRYPTION_ALGORITHM_AES_CBC
5688 });
5689 defaults.putIntArray(
5690 KEY_IMS_PDN_ENABLED_IN_NO_VOPS_SUPPORT_INT_ARRAY,
5691 new int[] {
5692 });
5693 defaults.putIntArray(
5694 KEY_GEOLOCATION_PIDF_IN_SIP_REGISTER_SUPPORT_INT_ARRAY,
5695 new int[] {
5696 GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI
5697 });
5698 defaults.putIntArray(
5699 KEY_GEOLOCATION_PIDF_IN_SIP_INVITE_SUPPORT_INT_ARRAY,
5700 new int[] {
5701 GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI
5702 });
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08005703 defaults.putIntArray(
5704 KEY_SUPPORTED_RATS_INT_ARRAY,
5705 new int[] {
5706 AccessNetworkType.NGRAN,
5707 AccessNetworkType.EUTRAN,
5708 AccessNetworkType.IWLAN
5709 });
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08005710
5711 defaults.putString(KEY_PHONE_CONTEXT_DOMAIN_NAME_STRING, "");
5712 defaults.putString(KEY_IMS_USER_AGENT_STRING,
5713 "#MANUFACTURER#_#MODEL#_Android#AV#_#BUILD#");
5714
5715 return defaults;
5716 }
5717 }
5718
5719 /**
5720 * IMS Voice configs. This groups the configs required for IMS Voice - VoNR/VoLTE
5721 *
5722 * <p>Reference: IR.92
5723 */
5724 public static final class ImsVoice {
5725 private ImsVoice() {}
5726
5727 /** Prefix of all imsvoice.KEY_* constants. */
5728 public static final String KEY_PREFIX = "imsvoice.";
5729
5730 /**
5731 * Flag specifying whether VoLTE should be available when on
5732 * roaming network.
5733 *
5734 * <p>If {@code false}: hard disabled.
5735 * If {@code true}: then depends on availability, etc.
5736 */
5737 public static final String KEY_CARRIER_VOLTE_ROAMING_AVAILABLE_BOOL =
5738 KEY_PREFIX + "carrier_volte_roaming_available_bool";
5739
5740 /**
5741 * Flag specifying whether to send vertical caller id service codes
5742 * (*67 and *82) in the dialed string in the SIP:INVITE.
5743 *
5744 * <p>If {@code true}, vertical caller id service codes *67 and *82
5745 * will be sent in the dialed string in the SIP:INVITE.
5746 * If {@code false}, *67 and *82 will be removed.
5747 */
5748 public static final String KEY_INCLUDE_CALLER_ID_SERVICE_CODES_IN_SIP_INVITE_BOOL =
5749 KEY_PREFIX + "include_caller_id_service_codes_in_sip_invite_bool";
5750
5751 /**
5752 * Flag indicating whether Multi-end point setting is enabled or not.
5753 */
5754 public static final String KEY_MULTIENDPOINT_SUPPORTED_BOOL =
5755 KEY_PREFIX + "multiendpoint_supported_bool";
5756
5757 /**
5758 * Flag indicating whether Supported header field with the option tag
5759 * 'timer' is enabled or not.
5760 *
5761 * <p>If {@code true}, session timer support is available.{@code false} otherwise.
5762 *
5763 * Reference: RFC 4028 Section 3
5764 */
5765 public static final String KEY_SESSION_TIMER_SUPPORTED_BOOL =
5766 KEY_PREFIX + "session_timer_supported_bool";
5767
5768 /**
5769 * Session-expires header field expressed in seconds as per
5770 * RFC 4028 Section 3.
5771 *
5772 * <p>This establishes the upper bound for the session refresh interval.
5773 */
5774 public static final String KEY_SESSION_EXPIRES_TIMER_SEC_INT =
5775 KEY_PREFIX + "session_expires_timer_sec_int";
5776
5777 /**
5778 * Indicates the minimum value for the session interval in seconds.
5779 * Represented as min-SE header field as per RFC 4028 Section 3.
5780 *
5781 * <p>This establishes the lower bound for the session refresh interval.
5782 */
5783 public static final String KEY_MINIMUM_SESSION_EXPIRES_TIMER_SEC_INT =
5784 KEY_PREFIX + "minimum_session_expires_timer_sec_int";
5785
5786 /** @hide */
5787 @IntDef({
5788 SESSION_REFRESHER_TYPE_UNKNOWN,
5789 SESSION_REFRESHER_TYPE_UAC,
5790 SESSION_REFRESHER_TYPE_UAS
5791 })
5792
5793 public @interface SessionRefresherType {}
5794
5795 /**
5796 * Session Refresher entity is unknown. This means UE does not include the
5797 * "refresher" parameter in the Session-Expires header field of
5798 * the SIP INVITE request.
5799 */
5800 public static final int SESSION_REFRESHER_TYPE_UNKNOWN = 0;
5801
5802 /**
5803 * Session Refresher entity is User Agent Client (UAC).
5804 *
5805 * <p>Type of "refresher" parameter in the Session-Expires header field
5806 * of the SIP INVITE request is UAC.
5807 */
5808 public static final int SESSION_REFRESHER_TYPE_UAC = 1;
5809
5810 /**
5811 * Session Refresher entity is User Agent Server (UAS).
5812 *
5813 * <p>Type of "refresher" parameter in the Session-Expires header field
5814 * of the SIP INVITE request is UAS.
5815 */
5816 public static final int SESSION_REFRESHER_TYPE_UAS = 2;
5817
5818 /**
5819 * Session Refresher entity as per RFC 4028 and IR.92 Section 2.2.8.
5820 *
5821 * <p>This determines,
5822 * a) whether to include the "refresher" parameter
5823 * b) Type of refresher" parameter
5824 * in the Session-Expires header field of the SIP INVITE request.
5825 *
5826 * <p>Possible values are,
5827 * {@link #SESSION_REFRESHER_TYPE_UNKNOWN},
5828 * {@link #SESSION_REFRESHER_TYPE_UAC},
5829 * {@link #SESSION_REFRESHER_TYPE_UAS}
5830 */
5831 public static final String KEY_SESSION_REFRESHER_TYPE_INT =
5832 KEY_PREFIX + "session_refresher_type_int";
5833
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08005834
5835 /** @hide */
5836 @IntDef({
5837 SESSION_PRIVACY_TYPE_HEADER,
5838 SESSION_PRIVACY_TYPE_NONE,
5839 SESSION_PRIVACY_TYPE_ID
5840 })
5841
5842 public @interface SessionPrivacyType {}
5843
5844 /**
5845 * Session privacy type is HEADER as per RFC 3323 Section 4.2.
5846 */
5847 public static final int SESSION_PRIVACY_TYPE_HEADER = 0;
5848
5849 /**
5850 * Session privacy type is NONE as per RFC 3323 Section 4.2.
5851 */
5852 public static final int SESSION_PRIVACY_TYPE_NONE = 1;
5853
5854 /**
5855 * Session privacy type is ID as per RFC 3325 Section 9.3.
5856 */
5857 public static final int SESSION_PRIVACY_TYPE_ID = 2;
5858
5859 /**
5860 * Specify the session privacy type.
5861 *
5862 * <p>Reference: RFC 3323 Section 4.2, RFC 3325 Section 9.3.
5863 *
5864 * <p>Possible values are,
5865 * {@link #SESSION_PRIVACY_TYPE_HEADER},
5866 * {@link #SESSION_PRIVACY_TYPE_NONE},
5867 * {@link #SESSION_PRIVACY_TYPE_ID}
5868 */
5869 public static final String KEY_SESSION_PRIVACY_TYPE_INT =
5870 KEY_PREFIX + "session_privacy_type_int";
5871
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08005872 /**
5873 * Flag indicating whether PRACK must be enabled for all 18x messages.
5874 *
5875 * <p>If {@code false}, only 18x responses with SDP are sent reliably.
5876 * If {@code true}, SIP 18x responses (other than SIP 183 response)
5877 * are sent reliably.
5878 */
5879 public static final String KEY_PRACK_SUPPORTED_FOR_18X_BOOL =
5880 KEY_PREFIX + "prack_supported_for_18x_bool";
5881
5882 /** @hide */
5883 @IntDef({
5884 CONFERENCE_SUBSCRIBE_TYPE_IN_DIALOG,
5885 CONFERENCE_SUBSCRIBE_TYPE_OUT_OF_DIALOG
5886 })
5887
5888 public @interface ConferenceSubscribeType {}
5889
5890 /**
5891 * The SIP SUBSCRIBE to conference state events is sent in the
5892 * SIP INVITE dialog between the UE and the conference server.
5893 *
5894 * <p>Reference: IR.92 Section 2.3.3.
5895 */
5896 public static final int CONFERENCE_SUBSCRIBE_TYPE_IN_DIALOG = 0;
5897
5898 /**
5899 * The SIP SUBSCRIBE to conference state events is sent out of
5900 * the SIP INVITE dialog between the UE and the conference server.
5901 *
5902 * <p>Reference: IR.92 Section 2.3.3.
5903 */
5904 public static final int CONFERENCE_SUBSCRIBE_TYPE_OUT_OF_DIALOG = 1;
5905
5906 /**
5907 * This is used to specify whether the SIP SUBSCRIBE to conference state events,
5908 * is sent in or out of the SIP INVITE dialog between the UE and the
5909 * conference server.
5910 *
5911 * <p>Reference: IR.92 Section 2.3.3.
5912 *
5913 * <p>Possible values are,
5914 * {@link #CONFERENCE_SUBSCRIBE_TYPE_IN_DIALOG},
5915 * {@link #CONFERENCE_SUBSCRIBE_TYPE_OUT_OF_DIALOG}
5916 *
5917 * An empty array indicates SUBSCRIBE to conference event package
5918 * is not required.
5919 */
5920 public static final String KEY_CONFERENCE_SUBSCRIBE_TYPE_INT =
5921 KEY_PREFIX + "conference_subscribe_type_int";
5922
5923 /**
5924 * Flag specifying whether QoS preconditions are supported during call setup.
5925 *
5926 * <p>If {@code true}: QoS Preconditions are supported during call setup and
5927 * 'precondition' tag is included in the SIP INVITE header and precondition
5928 * parameters are sent in SDP as required.
5929 * <p>If {@code false}: QoS Preconditions are not supported during call setup.
5930 *
5931 * <p>Reference: 3GPP TS 24.229
5932 */
5933 public static final String KEY_VOICE_QOS_PRECONDITION_SUPPORTED_BOOL =
5934 KEY_PREFIX + "voice_qos_precondition_supported_bool";
5935
5936 /**
5937 * Flag specifying whether voice is allowed on default bearer.
5938 *
5939 * <p>If {@code true}: voice packets can be sent on default bearer. {@code false} otherwise.
5940 */
5941 public static final String KEY_VOICE_ON_DEFAULT_BEARER_SUPPORTED_BOOL =
5942 KEY_PREFIX + "voice_on_default_bearer_supported_bool";
5943
5944 /**
5945 * Specifies the dedicated bearer wait time during call establishment.
5946 *
5947 * <p>If dedicated bearer is not established within this time and if
5948 * {@link #KEY_VOICE_ON_DEFAULT_BEARER_SUPPORTED_BOOL} is false, then call setup would fail.
5949 * <p>If dedicated bearer is not established within this time and if
5950 * {@link #KEY_VOICE_ON_DEFAULT_BEARER_SUPPORTED_BOOL} is true, then the media is allowed
5951 * on default bearer.
5952 */
5953 public static final String KEY_DEDICATED_BEARER_WAIT_TIMER_MILLIS_INT =
5954 KEY_PREFIX + "dedicated_bearer_wait_timer_millis_int";
5955
5956 /** @hide */
5957 @IntDef({
5958 BASIC_SRVCC_SUPPORT,
5959 ALERTING_SRVCC_SUPPORT,
5960 PREALERTING_SRVCC_SUPPORT,
5961 MIDCALL_SRVCC_SUPPORT
5962 })
5963
5964 public @interface SrvccType {}
5965
5966 /**
5967 * Indicates support for basic SRVCC, typically 1 active call
5968 * as detailed in IR.92 Section A.3.
5969 */
5970 public static final int BASIC_SRVCC_SUPPORT = 0;
5971
5972 /**
5973 * SRVCC access transfer for calls in alerting phase as per 3GPP 24.237
5974 * and IR.64 Section 4.4.
5975 * Media feature tag used: g.3gpp.srvcc-alerting.
5976 */
5977 public static final int ALERTING_SRVCC_SUPPORT = 1;
5978
5979 /**
5980 * SRVCC access transfer for calls in pre-alerting phase as per 3GPP 24.237.
5981 * Media feature tag used: g.3gpp.ps2cs-srvcc-orig-pre-alerting.
5982 */
5983 public static final int PREALERTING_SRVCC_SUPPORT = 2;
5984
5985 /**
5986 * SRVCC access transfer for calls in mid-call phase as per 3GPP 24.237.
5987 * and IR.64 Section 4.4.
5988 * <p>This means UE supports the MSC server assisted mid-call feature.
5989 * Media feature tag used: g.3gpp.mid-call.
5990 */
5991 public static final int MIDCALL_SRVCC_SUPPORT = 3;
5992
5993 /**
5994 * List of different SRVCC types supported as defined in 3GPP 24.237.
5995 *
5996 * <p> Possible values are,
5997 * {@link #BASIC_SRVCC_SUPPORT},
5998 * {@link #ALERTING_SRVCC_SUPPORT},
5999 * {@link #PREALERTING_SRVCC_SUPPORT},
6000 * {@link #MIDCALL_SRVCC_SUPPORT}
6001 *
6002 * <p> Reference: IR.64, 3GPP 24.237, 3GPP 23.216
6003 */
6004 public static final String KEY_SRVCC_TYPE_INT_ARRAY =
6005 KEY_PREFIX + "srvcc_type_int_array";
6006
6007 /**
6008 * Specifies the ringing timer for Mobile terminated calls.
6009 *
6010 * <p>Ringing timer starts when the device sends SIP 180 Ringing in
6011 * response to a received SIP INVITE. If Ringing timer expires,
6012 * the device sends SIP 486 response.
6013 */
6014 public static final String KEY_RINGING_TIMER_MILLIS_INT =
6015 KEY_PREFIX + "ringing_timer_millis_int";
6016
6017 /**
6018 * Specifies the ringback timer for Mobile originated calls.
6019 *
6020 * <p>Ringback timer starts when the device receives SIP 180 Ringing
6021 * in response to its SIP INVITE. If Ringback timer expires,
6022 * the device sends SIP CANCEL.
6023 */
6024 public static final String KEY_RINGBACK_TIMER_MILLIS_INT =
6025 KEY_PREFIX + "ringback_timer_millis_int";
6026
6027 /**
6028 * Specifies the timeout value for RTP inactivity for audio media.
6029 * <p>On timer expiry, call will end.
6030 * See {@link #KEY_AUDIO_INACTIVITY_CALL_END_REASONS_INT_ARRAY} for more
6031 * details.
6032 * <p> Value of 0 means this timer is not enabled.
6033 */
6034 public static final String KEY_AUDIO_RTP_INACTIVITY_TIMER_MILLIS_INT =
6035 KEY_PREFIX + "audio_rtp_inactivity_timer_millis_int";
6036
6037 /**
6038 * Specifies the timeout value for RTCP inactivity for audio media.
6039 * <p>On timer expiry, call will end.
6040 * See {@link #KEY_AUDIO_INACTIVITY_CALL_END_REASONS_INT_ARRAY} for more
6041 * details.
6042 * <p> Value of 0 means this timer is not enabled.
6043 */
6044 public static final String KEY_AUDIO_RTCP_INACTIVITY_TIMER_MILLIS_INT =
6045 KEY_PREFIX + "audio_rtcp_inactivity_timer_millis_int";
6046
6047 /**
6048 * Used to specify the conference factory URI.
6049 *
6050 * <p>If this is empty, then conference URI is generated from MCC/MNC as
6051 * specified in clause 13.10 of 3GPP 23.003.
6052 */
6053 public static final String KEY_CONFERENCE_FACTORY_URI_STRING =
6054 KEY_PREFIX + "conference_factory_uri_string";
6055
6056 /** @hide */
6057 @IntDef({
6058 SESSION_REFRESH_METHOD_INVITE,
6059 SESSION_REFRESH_METHOD_UPDATE_PREFERRED
6060 })
6061
6062 public @interface SessionRefreshMethod {}
6063
6064 /**
6065 * SIP INVITE is used for Session Refresh
6066 */
6067 public static final int SESSION_REFRESH_METHOD_INVITE = 0;
6068
6069 /**
6070 * Both SIP INVITE and UPDATE are used for session refresh.
6071 *
6072 * <p>SIP UPDATE will be used if UPDATE is in 'Allow' header.
6073 * If UPDATE is not in 'Allow' header, then INVITE will be used.
6074 */
6075 public static final int SESSION_REFRESH_METHOD_UPDATE_PREFERRED = 1;
6076
6077 /**
6078 * This is used to specify the method used for session refresh.
6079 *
6080 * <p>Possible values are,
6081 * {@link #SESSION_REFRESH_METHOD_INVITE},
6082 * {@link #SESSION_REFRESH_METHOD_UPDATE_PREFERRED}
6083 */
6084 public static final String KEY_SESSION_REFRESH_METHOD_INT =
6085 KEY_PREFIX + "session_refresh_method_int";
6086
6087 /**
6088 * Flag specifying whether the 'From' header field is used for determination of
6089 * the originating party identity in Originating Identification Presentation(OIP)
6090 * service.
6091 *
6092 * <p>If {@code true}: Indicates that the 'From' header field is used for
6093 * determination of the originating party identity in OIP.
6094 * {@code false} otherwise.
6095 */
6096 public static final String KEY_OIP_SOURCE_FROM_HEADER_BOOL =
6097 KEY_PREFIX + "oip_source_from_header_bool";
6098
6099 /**
6100 * Specifies the timer value for INVITE to the first 1xx response
6101 * (including 100 trying). If no response is received at timer expiry,
6102 * call is redialed over CS.
6103 *
6104 * <p> Reference: 24.173 Table L.1
6105 */
6106 public static final String KEY_MO_CALL_REQUEST_TIMEOUT_MILLIS_INT =
6107 KEY_PREFIX + "mo_call_request_timeout_millis_int";
6108
6109 /**
6110 * List of various reasons of media inactivity for which
6111 * voice/emergency call will end.
6112 *
6113 * <p>Possible values are,
6114 * {@link Ims#RTCP_INACTIVITY_ON_HOLD},
6115 * {@link Ims#RTCP_INACTIVITY_ON_CONNECTED},
6116 * {@link Ims#RTP_INACTIVITY_ON_CONNECTED}
6117 * {@link Ims#E911_RTCP_INACTIVITY_ON_CONNECTED},
6118 * {@link Ims#E911_RTP_INACTIVITY_ON_CONNECTED}
6119 */
6120 public static final String KEY_AUDIO_INACTIVITY_CALL_END_REASONS_INT_ARRAY =
6121 KEY_PREFIX + "audio_inactivity_call_end_reasons_int_array";
6122
6123 /**
6124 * Specifies the AS (Application Specific) SDP modifier for audio media.
6125 *
6126 * <p>This value is expressed in kilobits per second.
6127 * Reference: RFC 3556 Section 2.
6128 */
6129 public static final String KEY_AUDIO_AS_BANDWIDTH_KBPS_INT =
6130 KEY_PREFIX + "audio_as_bandwidth_kbps_int";
6131
6132 /**
6133 * Specifies the RS SDP modifier for audio media. This indicates the RTCP
6134 * bandwidth allocated to active data senders for audio media.
6135 *
6136 * <p>This value is expressed in bits per second.
6137 * Reference: RFC 3556 Section 2.
6138 */
6139 public static final String KEY_AUDIO_RS_BANDWIDTH_BPS_INT =
6140 KEY_PREFIX + "audio_rs_bandwidth_bps_int";
6141
6142 /**
6143 * Specifies the RR SDP modifier for audio media. This indicates the RTCP
6144 * bandwidth allocated to receivers for audio media.
6145 *
6146 * <p>This value is expressed in bits per second.
6147 * Reference: RFC 3556 Section 2.
6148 */
6149 public static final String KEY_AUDIO_RR_BANDWIDTH_BPS_INT =
6150 KEY_PREFIX + "audio_rr_bandwidth_bps_int";
6151
6152 /**
6153 * Specifies the Audio Codec capability. This contains a list of payload types
6154 * representing different audio codec instances.
6155 *
6156 * <p> The priority of the codecs is EVS, AMRWB, AMRNB, DTMF WB, DTMF NB
6157 * from highest to lowest. In each individual codec, the priority is determined
6158 * by the order of the payload types from highest to lowest.
6159 *
6160 * <p>Possible keys in this bundle are,
6161 * <UL>
6162 * <LI>{@link #KEY_EVS_PAYLOAD_TYPE_INT_ARRAY}</LI>
6163 * <LI>{@link #KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY}</LI>
6164 * <LI>{@link #KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY}</LI>
6165 * <LI>{@link #KEY_DTMFWB_PAYLOAD_TYPE_INT_ARRAY}</LI>
6166 * <LI>{@link #KEY_DTMFNB_PAYLOAD_TYPE_INT_ARRAY}</LI>
6167 * </UL>
6168 * <p>To specify payload descriptions for each of the audio payload types, see
6169 * <UL>
6170 * <LI>{@link #KEY_EVS_PAYLOAD_DESCRIPTION_BUNDLE}</LI>
6171 * <LI>{@link #KEY_AMRNB_PAYLOAD_DESCRIPTION_BUNDLE}</LI>
6172 * <LI>{@link #KEY_AMRWB_PAYLOAD_DESCRIPTION_BUNDLE}</LI>
6173 * </UL>
6174 */
6175 public static final String KEY_AUDIO_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE =
6176 KEY_PREFIX + "audio_codec_capability_payload_types_bundle";
6177
6178 /**
6179 * A list of integers representing the different payload types
6180 * in EVS codec in priority order from highest to lowest.
6181 * <p>Payload type is an integer in dynamic payload type range 96-127
6182 * as per RFC RFC 3551 Section 6.
6183 */
6184 public static final String KEY_EVS_PAYLOAD_TYPE_INT_ARRAY =
6185 KEY_PREFIX + "evs_payload_type_int_array";
6186
6187 /**
6188 * A list of integers representing the different payload types
6189 * in AMR-WB codec in priority order from highest to lowest.
6190 * <p>Payload type is an integer in dynamic payload type range 96-127
6191 * as per RFC RFC 3551 Section 6.
6192 */
6193 public static final String KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY =
6194 KEY_PREFIX + "amrwb_payload_type_int_array";
6195
6196 /**
6197 * A list of integers representing the different payload types
6198 * in AMR-NB codec in priority order from highest to lowest.
6199 * <p>Payload type is an integer in dynamic payload type range 96-127
6200 * as per RFC RFC 3551 Section 6.
6201 */
6202 public static final String KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY =
6203 KEY_PREFIX + "amrnb_payload_type_int_array";
6204
6205 /**
6206 * A list of integers representing the different payload types
6207 * in DTMF WB codec in priority order from highest to lowest.
6208 * <p>Payload type is an integer in dynamic payload type range 96-127
6209 * as per RFC RFC 3551 Section 6.
6210 */
6211 public static final String KEY_DTMFWB_PAYLOAD_TYPE_INT_ARRAY =
6212 KEY_PREFIX + "dtmfwb_payload_type_int_array";
6213
6214 /**
6215 * A list of integers representing the different payload types
6216 * in DTMF NB codec in priority order from highest to lowest.
6217 * <p>Payload type is an integer in dynamic payload type range 96-127
6218 * as per RFC RFC 3551 Section 6.
6219 */
6220 public static final String KEY_DTMFNB_PAYLOAD_TYPE_INT_ARRAY =
6221 KEY_PREFIX + "dtmfnb_payload_type_int_array";
6222
6223 /** @hide */
6224 @IntDef({
6225 BANDWIDTH_EFFICIENT,
6226 OCTET_ALIGNED
6227 })
6228
6229 public @interface AmrPayloadFormat {}
6230
6231 /** AMR NB/WB Payload format is bandwidth-efficient. */
6232 public static final int BANDWIDTH_EFFICIENT = 0;
6233
6234 /** AMR NB/WB Payload format is octet-aligned. */
6235 public static final int OCTET_ALIGNED = 1;
6236
6237 /**
6238 * Specifies the payload format of the AMR-NB/AMR-WB codec.
6239 *
6240 * <p>Possible values are,
6241 * {@link #BANDWIDTH_EFFICIENT},
6242 * {@link #OCTET_ALIGNED}
6243
6244 * <p>If value is not specified, payload format is
6245 * {@link #BANDWIDTH_EFFICIENT}.
6246 *
6247 * <p>Reference: RFC 4867 Section 8.1.
6248 */
6249 public static final String KEY_AMR_CODEC_ATTRIBUTE_PAYLOAD_FORMAT_INT =
6250 KEY_PREFIX + "amr_codec_attribute_payload_format_int";
6251
6252 /**
6253 * Restricts the active mode set to a subset of all modes in the codec.
6254 *
6255 * <p>This attribute is optional. If value is set, then session mode
6256 * set is restricted to the modes specified in this list. If this value
6257 * is not specified, then all available modes in the codec are allowed.
6258 * This attribute is applicable for AMR-WB, AMR-NB,
6259 * and EVS codec (operating in AMR-WB IO Mode).
6260 *
6261 * <p>Possible values are subset of,
6262 * [0,1,2,3,4,5,6,7,8] - AMRWB with the modes representing nine speech codec modes
6263 * with bit rates of 6.6, 8.85, 12.65, 14.25, 15.85, 18.25, 19.85, 23.05, 23.85 kbps.
6264 * [0,1,2,3,4,5,6,7] - AMRNB with the modes representing eight speech codec modes
6265 * with bit rates of 4.75, 5.15, 5.90, 6.70, 7.40, 7.95, 10.2, 12.2 kbps.
6266 *
6267 * <p>If value is not specified, then it means device supports all
6268 * modes in the codec but not included in SDP.
6269 *
6270 * <p>Reference: RFC 4867 Section 8.1, 3GPP 26.445 A.3.1
6271 */
6272 public static final String KEY_AMR_CODEC_ATTRIBUTE_MODESET_INT_ARRAY =
6273 KEY_PREFIX + "amr_codec_attribute_modeset_int_array";
6274
6275 /**
6276 * Specifies the codec attributes of different payload types in
6277 * the AMR NarrowBand (AMR-NB) codec.
6278 *
6279 * <p> The keys in this bundle are payload types specified
6280 * in {@link #KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY}.
6281 *
6282 * <p>Codec attributes allowed as part of AMR-NB codec bundle are,
6283 * <UL>
6284 * <LI>{@link #KEY_AMR_CODEC_ATTRIBUTE_PAYLOAD_FORMAT_INT}</LI>
6285 * <LI>{@link #KEY_AMR_CODEC_ATTRIBUTE_MODESET_INT_ARRAY}</LI>
6286 * </UL>
6287 *
6288 * <p> If this bundle is not configured and AMRNB payload type is added
6289 * in {@link #KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY}, then default
6290 * values as in the individual codec attribute to be used
6291 * for that payload type.
6292 */
6293 public static final String KEY_AMRNB_PAYLOAD_DESCRIPTION_BUNDLE =
6294 KEY_PREFIX + "amrnb_payload_description_bundle";
6295
6296 /**
6297 * Specifies the codec attributes of different payload types in
6298 * the AMR WideBand (AMR-WB) codec.
6299 *
6300 * <p> The keys in this bundle are payload types specified
6301 * in {@link #KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY}.
6302 *
6303 * <p>Codec attributes allowed as part of AMR-NB codec bundle are,
6304 * <UL>
6305 * <LI>{@link #KEY_AMR_CODEC_ATTRIBUTE_PAYLOAD_FORMAT_INT}</LI>
6306 * <LI>{@link #KEY_AMR_CODEC_ATTRIBUTE_MODESET_INT_ARRAY}</LI>
6307 * </UL>
6308 *
6309 * <p> If this bundle is not configured and AMRWB payload type is added
6310 * in {@link #KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY}, then default
6311 * values as in the individual codec attribute to be used
6312 * for that payload type.
6313 */
6314 public static final String KEY_AMRWB_PAYLOAD_DESCRIPTION_BUNDLE =
6315 KEY_PREFIX + "amrwb_payload_description_bundle";
6316
6317 /** @hide */
6318 @IntDef({
6319 EVS_OPERATIONAL_MODE_PRIMARY,
6320 EVS_OPERATIONAL_MODE_AMRWB_IO
6321 })
6322
6323 public @interface EvsOperationalMode {}
6324
6325 /** Indicates the EVS primary mode. 3GPP 26.445 Section 3.1 */
6326 public static final int EVS_OPERATIONAL_MODE_PRIMARY = 0;
6327
6328 /** Indicates the EVS AMR-WB IO mode. 3GPP 26.445 Section 3.1 */
6329 public static final int EVS_OPERATIONAL_MODE_AMRWB_IO = 1;
6330
6331 /**
6332 * Specifies if the EVS mode used is EVS primary mode
6333 * or EVS AMR-WB IO mode.
6334 *
6335 * <p>Possible values are,
6336 * {@link #EVS_OPERATIONAL_MODE_PRIMARY},
6337 * {@link #EVS_OPERATIONAL_MODE_AMRWB_IO}
6338 *
6339 * <p>If this is not present, then {@link #EVS_OPERATIONAL_MODE_PRIMARY} is used.
6340 * <p>Reference: 3GPP 26.445 Section 3.1.
6341 */
6342 public static final String KEY_EVS_CODEC_ATTRIBUTE_MODE_SWITCH_INT =
6343 KEY_PREFIX + "evs_codec_attribute_mode_switch_int";
6344
6345 /** @hide */
6346 @IntDef({
6347 EVS_ENCODED_BW_TYPE_NB,
6348 EVS_ENCODED_BW_TYPE_WB,
6349 EVS_ENCODED_BW_TYPE_SWB,
6350 EVS_ENCODED_BW_TYPE_FB,
6351 EVS_ENCODED_BW_TYPE_NB_WB,
6352 EVS_ENCODED_BW_TYPE_NB_WB_SWB,
6353 EVS_ENCODED_BW_TYPE_NB_WB_SWB_FB,
6354 EVS_ENCODED_BW_TYPE_WB_SWB,
6355 EVS_ENCODED_BW_TYPE_WB_SWB_FB
6356 })
6357
6358 public @interface EvsEncodedBwType {}
6359
6360 /**
6361 * EVS encoded Bandwidth is Narrow Band (NB).
6362 * Reference: 3GPP 26.441 Table 1.
6363 */
6364 public static final int EVS_ENCODED_BW_TYPE_NB = 0;
6365
6366 /**
6367 * EVS encoded Bandwidth is Wide Band (WB).
6368 * Reference: 3GPP 26.441 Table 1.
6369 */
6370 public static final int EVS_ENCODED_BW_TYPE_WB = 1;
6371
6372 /**
6373 * EVS encoded Bandwidth is Super WideBand (SWB).
6374 * Reference: 3GPP 26.441 Table 1.
6375 */
6376 public static final int EVS_ENCODED_BW_TYPE_SWB = 2;
6377
6378 /**
6379 * EVS encoded Bandwidth is Full Band (FB).
6380 * Reference: 3GPP 26.441 Table 1.
6381 */
6382 public static final int EVS_ENCODED_BW_TYPE_FB = 3;
6383
6384 /**
6385 * EVS encoded Bandwidth is in the range NB,WB.
6386 * Reference: 3GPP 26.441 Table 1.
6387 */
6388 public static final int EVS_ENCODED_BW_TYPE_NB_WB = 4;
6389
6390 /**
6391 * EVS encoded Bandwidth is in the range NB,WB,SWB.
6392 * Reference: 3GPP 26.441 Table 1.
6393 */
6394 public static final int EVS_ENCODED_BW_TYPE_NB_WB_SWB = 5;
6395
6396 /**
6397 * EVS encoded Bandwidth is in the range NB,WB,SWB,FB.
6398 * Reference: 3GPP 26.441 Table 1.
6399 */
6400 public static final int EVS_ENCODED_BW_TYPE_NB_WB_SWB_FB = 6;
6401
6402 /**
6403 * EVS encoded Bandwidth is in the range WB,SWB.
6404 * Reference: 3GPP 26.441 Table 1.
6405 */
6406 public static final int EVS_ENCODED_BW_TYPE_WB_SWB = 7;
6407
6408 /**
6409 * EVS encoded Bandwidth is in the range WB,SWB,FB.
6410 * Reference: 3GPP 26.441 Table 1.
6411 */
6412 public static final int EVS_ENCODED_BW_TYPE_WB_SWB_FB = 8;
6413
6414 /**
6415 * Specifies the EVS codec encoding bandwidth options.
6416 *
6417 * Possible values are,
6418 * {@link #EVS_ENCODED_BW_TYPE_NB},
6419 * {@link #EVS_ENCODED_BW_TYPE_WB},
6420 * {@link #EVS_ENCODED_BW_TYPE_SWB},
6421 * {@link #EVS_ENCODED_BW_TYPE_FB},
6422 * {@link #EVS_ENCODED_BW_TYPE_NB_WB},
6423 * {@link #EVS_ENCODED_BW_TYPE_NB_WB_SWB},
6424 * {@link #EVS_ENCODED_BW_TYPE_NB_WB_SWB_FB},
6425 * {@link #EVS_ENCODED_BW_TYPE_WB_SWB},
6426 * {@link #EVS_ENCODED_BW_TYPE_WB_SWB_FB}
6427 *
6428 * If this key is not specified, then the behavior is same as
6429 * value {@link #EVS_ENCODED_BW_TYPE_NB_WB_SWB}
6430 *
6431 * <p>Reference: 3GPP 26.441 Table 1.
6432 */
6433 public static final String KEY_EVS_CODEC_ATTRIBUTE_BANDWIDTH_INT =
6434 KEY_PREFIX + "evs_codec_attribute_bandwidth_int";
6435
6436 /** @hide */
6437 @IntDef({
6438 EVS_PRIMARY_MODE_BITRATE_5_9_KBPS,
6439 EVS_PRIMARY_MODE_BITRATE_7_2_KBPS,
6440 EVS_PRIMARY_MODE_BITRATE_8_0_KBPS,
6441 EVS_PRIMARY_MODE_BITRATE_9_6_KBPS,
6442 EVS_PRIMARY_MODE_BITRATE_13_2_KBPS,
6443 EVS_PRIMARY_MODE_BITRATE_16_4_KBPS,
6444 EVS_PRIMARY_MODE_BITRATE_24_4_KBPS,
6445 EVS_PRIMARY_MODE_BITRATE_32_0_KBPS,
6446 EVS_PRIMARY_MODE_BITRATE_48_0_KBPS,
6447 EVS_PRIMARY_MODE_BITRATE_64_0_KBPS,
6448 EVS_PRIMARY_MODE_BITRATE_96_0_KBPS,
6449 EVS_PRIMARY_MODE_BITRATE_128_0_KBPS
6450 })
6451
6452 public @interface EvsPrimaryModeBitRate {}
6453
6454 /** EVS primary mode with bitrate 5.9 kbps */
6455 public static final int EVS_PRIMARY_MODE_BITRATE_5_9_KBPS = 0;
6456
6457 /** EVS primary mode with bitrate 7.2 kbps */
6458 public static final int EVS_PRIMARY_MODE_BITRATE_7_2_KBPS = 1;
6459
6460 /** EVS primary mode with bitrate 8.0 kbps */
6461 public static final int EVS_PRIMARY_MODE_BITRATE_8_0_KBPS = 2;
6462
6463 /** EVS primary mode with bitrate 9.6 kbps */
6464 public static final int EVS_PRIMARY_MODE_BITRATE_9_6_KBPS = 3;
6465
6466 /** EVS primary mode with bitrate 13.2 kbps */
6467 public static final int EVS_PRIMARY_MODE_BITRATE_13_2_KBPS = 4;
6468
6469 /** EVS primary mode with bitrate 16.4 kbps */
6470 public static final int EVS_PRIMARY_MODE_BITRATE_16_4_KBPS = 5;
6471
6472 /** EVS primary mode with bitrate 24.4 kbps */
6473 public static final int EVS_PRIMARY_MODE_BITRATE_24_4_KBPS = 6;
6474
6475 /** EVS primary mode with bitrate 32.0 kbps */
6476 public static final int EVS_PRIMARY_MODE_BITRATE_32_0_KBPS = 7;
6477
6478 /** EVS primary mode with bitrate 48.0 kbps */
6479 public static final int EVS_PRIMARY_MODE_BITRATE_48_0_KBPS = 8;
6480
6481 /** EVS primary mode with bitrate 64.0 kbps */
6482 public static final int EVS_PRIMARY_MODE_BITRATE_64_0_KBPS = 9;
6483
6484 /** EVS primary mode with bitrate 96.0 kbps */
6485 public static final int EVS_PRIMARY_MODE_BITRATE_96_0_KBPS = 10;
6486
6487 /** EVS primary mode with bitrate 128.0 kbps */
6488 public static final int EVS_PRIMARY_MODE_BITRATE_128_0_KBPS = 11;
6489
6490 /**
6491 * Specifies the range of source codec bit-rate for EVS Primary mode
6492 * in the session. This is expressed in kilobits per second and
6493 * applicable for both the send and the receive directions.
6494 *
6495 * <p>The range is specified as integer aray of size 2,
6496 * represented as [low, high], where low <= high
6497 *
6498 * <p>Possible values for low and high are,
6499 * {@link #EVS_PRIMARY_MODE_BITRATE_5_9_KBPS},
6500 * {@link #EVS_PRIMARY_MODE_BITRATE_7_2_KBPS},
6501 * {@link #EVS_PRIMARY_MODE_BITRATE_8_0_KBPS},
6502 * {@link #EVS_PRIMARY_MODE_BITRATE_9_6_KBPS},
6503 * {@link #EVS_PRIMARY_MODE_BITRATE_13_2_KBPS},
6504 * {@link #EVS_PRIMARY_MODE_BITRATE_16_4_KBPS},
6505 * {@link #EVS_PRIMARY_MODE_BITRATE_24_4_KBPS},
6506 * {@link #EVS_PRIMARY_MODE_BITRATE_32_0_KBPS},
6507 * {@link #EVS_PRIMARY_MODE_BITRATE_48_0_KBPS},
6508 * {@link #EVS_PRIMARY_MODE_BITRATE_64_0_KBPS},
6509 * {@link #EVS_PRIMARY_MODE_BITRATE_96_0_KBPS},
6510 * {@link #EVS_PRIMARY_MODE_BITRATE_128_0_KBPS}
6511 *
6512 * If this key is not specified, then the behavior is same as
6513 * value {@link #EVS_PRIMARY_MODE_BITRATE_24_4_KBPS}
6514 *
6515 * <p>Reference: 3GPP 26.445 Section A.3.1
6516 */
6517 public static final String KEY_EVS_CODEC_ATTRIBUTE_BITRATE_INT_ARRAY =
6518 KEY_PREFIX + "evs_codec_attribute_bitrate_int_array";
6519
6520 /**
6521 * Specifies the Channel aware mode (ch-aw-recv) for the receive direction.
6522 * This is applicable for EVS codec.
6523 *
6524 * <p>Permissible values are -1, 0, 2, 3, 5, and 7.
6525 * If this key is not specified, then the behavior is same as value 0
6526 * (channel aware mode disabled).
6527 * <p> If this key is configured, then device is expected to send
6528 * this parameter in the SDP offer.
6529 *
6530 * <p>Reference: 3GPP TS 26.445 section 4.4.5, 3GPP 26.445 Section A.3.1
6531 */
6532 public static final String KEY_EVS_CODEC_ATTRIBUTE_CH_AW_RECV_INT =
6533 KEY_PREFIX + "evs_codec_attribute_ch_aw_recv_int";
6534
6535 /**
6536 * Specifies whether to limit the session to header-full format.
6537 * This applies to both directions in the session. This attribute
6538 * is applicable for EVS codec.
6539 *
6540 * <p>Permissible values are 0, 1
6541 * If hf-only is 1, only Header-Full format is used and hf-only is
6542 * included in the SDP.
6543 * <p>If hf-only is 0, both Compact and Header-Full formats are used
6544 * and hf-only is included in the SDP.
6545 * <p>If this key is not present, then both Compact
6546 * and Header-Full formats are used and hf-only is not included in
6547 * the SDP.
6548 * <p> If this key is configured, then device is expected to send
6549 * this parameter in the SDP offer if operator required it.
6550 *
6551 * <p>Reference: 3GPP 26.445 Section A.3.1.
6552 */
6553 public static final String KEY_EVS_CODEC_ATTRIBUTE_HF_ONLY_INT =
6554 KEY_PREFIX + "evs_codec_attribute_hf_only_int";
6555
6556 /**
6557 * Specifies whether DTX (Discontinuous transmission) is enabled
6558 * or not. This applies to both directions in the session.
6559 * This attribute is applicable for EVS codec and can be used
6560 * in both EVS Primary mode and EVS AMR-WB IO mode.
6561 *
6562 * <p>If {@code true}: Indicates DTX is enabled.
6563 * If {@code false}: Indicates DTX is disabled.
6564 *
6565 * <p>If this is not present, then default value of {@code true}
6566 * will apply.
6567 * <p>Reference: 3GPP TS 26.445 Section A.3.1.
6568 */
6569 public static final String KEY_EVS_CODEC_ATTRIBUTE_DTX_BOOL =
6570 KEY_PREFIX + "evs_codec_attribute_dtx_bool";
6571
6572 /**
6573 * This is used if further restriction is required on DTX in the
6574 * receive direction. This attribute is applicable for EVS codec
6575 * and can be used in both EVS Primary mode and EVS AMR-WB IO mode.
6576 *
6577 * <p> If this value is true or not present, then DTX setting is
6578 * dependent on {@link #KEY_EVS_CODEC_ATTRIBUTE_DTX_BOOL}.
6579 *
6580 * <p> If this is not present, then default value of {@code true}
6581 * will apply.
6582 *
6583 * <p>Reference: 3GPP TS 26.445 Section A.3.1.
6584 */
6585 public static final String KEY_EVS_CODEC_ATTRIBUTE_DTX_RECV_BOOL =
6586 KEY_PREFIX + "evs_codec_attribute_dtx_recv_bool";
6587
6588 /**
6589 * Specifies the number of audio channels.
6590 * If this is not present, then default value of 1 will apply.
6591 *
6592 * <p>Reference: RFC 3551
6593 */
6594 public static final String KEY_EVS_CODEC_ATTRIBUTE_CHANNELS_INT =
6595 KEY_PREFIX + "evs_codec_attribute_channels_int";
6596
6597 /**
6598 * Indicates whether the Codec Mode Request (CMR) is supported
6599 * for the session.
6600 * This attribute is applicable for EVS codec in Primary Mode only.
6601 *
6602 * <p>Possible values are -1, 0, 1. If this key is not present,
6603 * then behavior as per value 0 is applicable.
6604 *
6605 * <p>Reference: 3GPP 26.445 Section A.3.1, 3GPP 26.114 Table 6.2a
6606 */
6607 public static final String KEY_EVS_CODEC_ATTRIBUTE_CMR_INT =
6608 KEY_PREFIX + "codec_attribute_cmr_int";
6609
6610 /**
6611 * Specifies the number of frame-blocks. This indicates the frame-block period
6612 * at which codec mode changes are allowed for the sender. This attribute is
6613 * applicable for EVS codec in AMR-WB IO mode and AMR-WB.
6614 *
6615 * <p>Possible values are 1, 2.
6616 * If the key is not present, behavior as per value 1 is applicable and this
6617 * parameter is not included in SDP.
6618 *
6619 * <p>Reference: RFC 4867 Section 8.1.
6620 */
6621 public static final String KEY_CODEC_ATTRIBUTE_MODE_CHANGE_PERIOD_INT =
6622 KEY_PREFIX + "codec_attribute_mode_change_period_int";
6623
6624 /**
6625 * Specifies if the client is capable to transmit with a restricted mode
6626 * change period. This attribute is applicable for EVS codec in
6627 * AMR-WB IO mode and AMR-WB.
6628 *
6629 * <p>Possible values are 1, 2. If this key is not present,
6630 * then behavior as per value 1 is applicable and this
6631 * parameter is not included in SDP.
6632 *
6633 * <p>Reference: RFC 4867 Section 8.1.
6634 */
6635 public static final String KEY_CODEC_ATTRIBUTE_MODE_CHANGE_CAPABILITY_INT =
6636 KEY_PREFIX + "codec_attribute_mode_change_capability_int";
6637
6638 /**
6639 * Specifies the allowed mode changes for the sender in the active mode set.
6640 * This attribute is applicable for EVS codec in AMR-WB IO mode
6641 * and AMR-WB.
6642 *
6643 * <p>Possible values are 0, 1. If value is 1, then the sender should only
6644 * perform mode changes to the neighboring modes in the active codec mode set.
6645 * If value is 0, then mode changes between any two modes
6646 * in the active codec mode set is allowed.
6647 * If the key is not present, behavior as per value 0 is applicable and this
6648 * parameter is not included in SDP.
6649 *
6650 * <p>Reference: RFC 4867 Section 8.1.
6651 */
6652 public static final String KEY_CODEC_ATTRIBUTE_MODE_CHANGE_NEIGHBOR_INT =
6653 KEY_PREFIX + "codec_attribute_mode_change_neighbor_int";
6654
6655 /**
6656 * Specifies the codec attributes of different payload types in
6657 * the EVS codec.
6658 *
6659 * <p> The keys in this bundle are payload types specified
6660 * in {@link #KEY_EVS_PAYLOAD_TYPE_INT_ARRAY}.
6661 *
6662 * <p>Codec attributes allowed as part of EVS codec are,
6663 * <UL>
6664 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_BANDWIDTH_INT}</LI>
6665 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_BITRATE_INT_ARRAY}</LI>
6666 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_CH_AW_RECV_INT}</LI>
6667 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_HF_ONLY_INT}</LI>
6668 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_DTX_BOOL}</LI>
6669 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_DTX_RECV_BOOL}</LI>
6670 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_MODE_SWITCH_INT}</LI>
6671 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_CMR_INT}</LI>
6672 * <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_CHANNELS_INT}</LI>
6673 * <LI>{@link #KEY_CODEC_ATTRIBUTE_MODE_CHANGE_PERIOD_INT}</LI>
6674 * <LI>{@link #KEY_CODEC_ATTRIBUTE_MODE_CHANGE_CAPABILITY_INT}</LI>
6675 * <LI>{@link #KEY_CODEC_ATTRIBUTE_MODE_CHANGE_NEIGHBOR_INT}</LI>
6676 * </UL>
6677 */
6678 public static final String KEY_EVS_PAYLOAD_DESCRIPTION_BUNDLE =
6679 KEY_PREFIX + "evs_payload_description_bundle";
6680
6681 private static PersistableBundle getDefaults() {
6682 PersistableBundle defaults = new PersistableBundle();
6683 defaults.putBoolean(KEY_CARRIER_VOLTE_ROAMING_AVAILABLE_BOOL, true);
6684 defaults.putBoolean(KEY_INCLUDE_CALLER_ID_SERVICE_CODES_IN_SIP_INVITE_BOOL, false);
6685 defaults.putBoolean(KEY_MULTIENDPOINT_SUPPORTED_BOOL, false);
6686 defaults.putBoolean(KEY_SESSION_TIMER_SUPPORTED_BOOL, true);
6687 defaults.putBoolean(KEY_OIP_SOURCE_FROM_HEADER_BOOL, false);
Sateshk Kumar Chinnappan9b1b1df2022-02-14 09:16:32 -08006688 defaults.putBoolean(KEY_PRACK_SUPPORTED_FOR_18X_BOOL, false);
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08006689 defaults.putBoolean(KEY_VOICE_QOS_PRECONDITION_SUPPORTED_BOOL, true);
6690 defaults.putBoolean(KEY_VOICE_ON_DEFAULT_BEARER_SUPPORTED_BOOL, false);
6691
Sateshk Kumar Chinnappan9b1b1df2022-02-14 09:16:32 -08006692 defaults.putInt(KEY_SESSION_REFRESHER_TYPE_INT, SESSION_REFRESHER_TYPE_UAC);
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08006693 defaults.putInt(KEY_SESSION_PRIVACY_TYPE_INT, SESSION_PRIVACY_TYPE_HEADER);
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08006694 defaults.putInt(KEY_SESSION_REFRESH_METHOD_INT,
6695 SESSION_REFRESH_METHOD_UPDATE_PREFERRED);
6696 defaults.putInt(KEY_CONFERENCE_SUBSCRIBE_TYPE_INT,
6697 CONFERENCE_SUBSCRIBE_TYPE_OUT_OF_DIALOG);
6698 defaults.putInt(KEY_AUDIO_RTP_INACTIVITY_TIMER_MILLIS_INT, 20000);
6699 defaults.putInt(KEY_AUDIO_RTCP_INACTIVITY_TIMER_MILLIS_INT, 20000);
6700 defaults.putInt(KEY_DEDICATED_BEARER_WAIT_TIMER_MILLIS_INT, 8000);
6701 defaults.putInt(KEY_RINGING_TIMER_MILLIS_INT, 90000);
6702 defaults.putInt(KEY_RINGBACK_TIMER_MILLIS_INT, 90000);
6703 defaults.putInt(KEY_MO_CALL_REQUEST_TIMEOUT_MILLIS_INT, 5000);
6704 defaults.putInt(KEY_SESSION_EXPIRES_TIMER_SEC_INT, 1800);
6705 defaults.putInt(KEY_MINIMUM_SESSION_EXPIRES_TIMER_SEC_INT, 90);
6706 defaults.putInt(KEY_AUDIO_AS_BANDWIDTH_KBPS_INT, 41);
6707 defaults.putInt(KEY_AUDIO_RS_BANDWIDTH_BPS_INT, 600);
6708 defaults.putInt(KEY_AUDIO_RR_BANDWIDTH_BPS_INT, 2000);
6709
6710 defaults.putIntArray(
6711 KEY_AUDIO_INACTIVITY_CALL_END_REASONS_INT_ARRAY,
6712 new int[] {
6713 Ims.RTCP_INACTIVITY_ON_CONNECTED,
Sateshk Kumar Chinnappan9b1b1df2022-02-14 09:16:32 -08006714 Ims.RTP_INACTIVITY_ON_CONNECTED,
6715 Ims.E911_RTCP_INACTIVITY_ON_CONNECTED,
6716 Ims.RTCP_INACTIVITY_ON_HOLD
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08006717 });
6718
6719 defaults.putIntArray(
6720 KEY_SRVCC_TYPE_INT_ARRAY,
6721 new int[] {
6722 BASIC_SRVCC_SUPPORT,
6723 ALERTING_SRVCC_SUPPORT,
6724 PREALERTING_SRVCC_SUPPORT,
6725 MIDCALL_SRVCC_SUPPORT
6726 });
6727
6728 defaults.putString(KEY_CONFERENCE_FACTORY_URI_STRING, "");
6729
6730 PersistableBundle audio_codec_capability_payload_types = new PersistableBundle();
6731
6732 audio_codec_capability_payload_types.putIntArray(
6733 KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY,
6734 new int[] { 97, 98 });
6735
6736 audio_codec_capability_payload_types.putIntArray(
6737 KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY,
6738 new int[] { 99, 100 });
6739
6740 audio_codec_capability_payload_types.putIntArray(
6741 KEY_DTMFWB_PAYLOAD_TYPE_INT_ARRAY,
6742 new int[] { 101 });
6743
6744 audio_codec_capability_payload_types.putIntArray(
6745 KEY_DTMFNB_PAYLOAD_TYPE_INT_ARRAY,
6746 new int[] { 102 });
6747
6748 defaults.putPersistableBundle(
6749 KEY_AUDIO_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE,
6750 audio_codec_capability_payload_types);
6751
6752 /* Setting defaults for AMRWB */
6753 PersistableBundle all_amrwb_payload_bundles = new PersistableBundle();
6754 PersistableBundle amrwb_bundle_instance1 = new PersistableBundle();
6755
6756 all_amrwb_payload_bundles.putPersistableBundle(
6757 "97", /* Same value of payload type as in KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY */
6758 amrwb_bundle_instance1);
6759
6760 PersistableBundle amrwb_bundle_instance2 = new PersistableBundle();
6761
6762 amrwb_bundle_instance2.putInt(KEY_AMR_CODEC_ATTRIBUTE_PAYLOAD_FORMAT_INT,
6763 OCTET_ALIGNED);
6764
6765 all_amrwb_payload_bundles.putPersistableBundle(
6766 "98", /* Same value of payload type as in KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY */
6767 amrwb_bundle_instance2);
6768
6769 defaults.putPersistableBundle(
6770 KEY_AMRWB_PAYLOAD_DESCRIPTION_BUNDLE,
6771 all_amrwb_payload_bundles);
6772
6773 /* Setting defaults for AMRNB */
6774 PersistableBundle all_amrnb_payload_bundles = new PersistableBundle();
6775 PersistableBundle amrnb_bundle_instance1 = new PersistableBundle();
6776
6777 all_amrnb_payload_bundles.putPersistableBundle(
6778 "99", /* Same value of payload type as in KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY */
6779 amrnb_bundle_instance1);
6780
6781 PersistableBundle amrnb_bundle_instance2 = new PersistableBundle();
6782
6783 amrnb_bundle_instance2.putInt(KEY_AMR_CODEC_ATTRIBUTE_PAYLOAD_FORMAT_INT,
6784 OCTET_ALIGNED);
6785
6786 all_amrnb_payload_bundles.putPersistableBundle(
6787 "100", /* Same value of payload type as in KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY */
6788 amrnb_bundle_instance2);
6789
6790 defaults.putPersistableBundle(
6791 KEY_AMRNB_PAYLOAD_DESCRIPTION_BUNDLE,
6792 all_amrnb_payload_bundles);
6793
6794 return defaults;
6795 }
6796 }
6797
6798 /**
6799 * IMS SMS configs. This groups the configs specific for SMS over IMS
6800 */
6801 public static final class ImsSms {
6802 private ImsSms() {}
6803
6804 /** Prefix of all imssms.KEY_* constants. */
6805 public static final String KEY_PREFIX = "imssms.";
6806
6807 /**
6808 * Flag specifying if SMS over IMS support is available or not.
6809 *
6810 * <p>If {@code true}: SMS over IMS support available.
6811 * {@code false}: otherwise.
6812 */
6813 public static final String KEY_SMS_OVER_IMS_SUPPORTED_BOOL =
6814 KEY_PREFIX + "sms_over_ims_supported_bool";
6815
6816 /**
6817 * Flag specifying whether to allow SMS CSFB in case of
6818 * SMS over PS failure.
6819 *
6820 * <p>If {@code true}: allow SMS CSFB in case of SMS over PS failure.
6821 * {@code false} otherwise.
6822 */
6823 public static final String KEY_SMS_CSFB_RETRY_ON_FAILURE_BOOL =
6824 KEY_PREFIX + "sms_csfb_retry_on_failure_bool";
6825
6826 /** @hide */
6827 @IntDef({
6828 SMS_FORMAT_3GPP,
6829 SMS_FORMAT_3GPP2
6830 })
6831
6832 public @interface SmsFormat {}
6833
6834 /** SMS format is 3GPP. */
6835 public static final int SMS_FORMAT_3GPP = 0;
6836
6837 /** SMS format is 3GPP2. */
6838 public static final int SMS_FORMAT_3GPP2 = 1;
6839
6840 /**
6841 * Specifies the SMS over IMS format.
6842 *
6843 * <p>Possible values are,
6844 * {@link #SMS_FORMAT_3GPP},
6845 * {@link #SMS_FORMAT_3GPP2}
6846 */
6847 public static final String KEY_SMS_OVER_IMS_FORMAT_INT =
6848 KEY_PREFIX + "sms_over_ims_format_int";
6849
6850 /**
6851 * List of different RAT technologies on which SMS over IMS
6852 * is supported.
6853 *
6854 * <p>Possible values are,
6855 * {@link AccessNetworkConstants.AccessNetworkType#NGRAN}
6856 * {@link AccessNetworkConstants.AccessNetworkType#EUTRAN}
6857 * {@link AccessNetworkConstants.AccessNetworkType#IWLAN}
6858 * {@link AccessNetworkConstants.AccessNetworkType#UTRAN}
6859 * {@link AccessNetworkConstants.AccessNetworkType#GERAN}
6860 */
6861 public static final String KEY_SMS_OVER_IMS_SUPPORTED_RATS_INT_ARRAY =
6862 KEY_PREFIX + "sms_over_ims_supported_rats_int_array";
6863
6864 private static PersistableBundle getDefaults() {
6865 PersistableBundle defaults = new PersistableBundle();
6866 defaults.putBoolean(KEY_SMS_OVER_IMS_SUPPORTED_BOOL, true);
6867 defaults.putBoolean(KEY_SMS_CSFB_RETRY_ON_FAILURE_BOOL, true);
6868
6869 defaults.putInt(KEY_SMS_OVER_IMS_FORMAT_INT, SMS_FORMAT_3GPP);
6870
6871 defaults.putIntArray(
6872 KEY_SMS_OVER_IMS_SUPPORTED_RATS_INT_ARRAY,
6873 new int[] {
6874 AccessNetworkType.EUTRAN,
6875 AccessNetworkType.IWLAN
6876 });
6877
6878 return defaults;
6879 }
6880 }
6881
6882 /**
6883 * IMS RTT configs. This groups the configs specific for text media,
6884 * RTT (Real Time Text).
6885 */
6886 public static final class ImsRtt {
6887 private ImsRtt() {}
6888
6889 /** Prefix of all imsrtt.KEY_* constants. */
6890 public static final String KEY_PREFIX = "imsrtt.";
6891
6892 /**
6893 * Flag specifying whether text media is allowed on default bearer.
6894 *
6895 * <p>If {@code true}: text media can be sent on default bearer.
6896 * {@code false} otherwise.
6897 */
6898 public static final String KEY_TEXT_ON_DEFAULT_BEARER_SUPPORTED_BOOL =
6899 KEY_PREFIX + "text_on_default_bearer_supported_bool";
6900
6901 /**
6902 * Flag specifying whether QoS preconditions are supported for text.
6903 *
6904 * <p>If {@code true}: QoS Preconditions are supported.
6905 * {@code false} otherwise.
6906 * <p>Reference: 3GPP TS 24.229
6907 */
6908 public static final String KEY_TEXT_QOS_PRECONDITION_SUPPORTED_BOOL =
6909 KEY_PREFIX + "text_qos_precondition_supported_bool";
6910
6911 /**
6912 * Specifies the AS (Application Specific) SDP modifier for text media.
6913 *
6914 * <p>Expressed in kilobits per second as per RFC 3556 Section 2.
6915 */
6916 public static final String KEY_TEXT_AS_BANDWIDTH_KBPS_INT =
6917 KEY_PREFIX + "text_as_bandwidth_kbps_int";
6918
6919 /**
6920 * Specifies the RS (RTCP bandwidth-Sender) SDP modifier for text media.
6921 *
6922 * <p>This indicates the RTCP bandwidth allocated to active data senders
6923 * for text media.
6924 *
6925 * <p>Expressed in bits per second as per RFC 3556 Section 2.
6926 */
6927 public static final String KEY_TEXT_RS_BANDWIDTH_BPS_INT =
6928 KEY_PREFIX + "text_rs_bandwidth_bps_int";
6929
6930 /**
6931 * Specifies the RR (RTCP bandwidth-Receiver) SDP modifier for
6932 * text media.
6933 *
6934 * <p>This indicates the RTCP bandwidth allocated to receivers
6935 * for text media.
6936 *
6937 * <p>Expressed in bits per second as per RFC 3556 Section 2.
6938 */
6939 public static final String KEY_TEXT_RR_BANDWIDTH_BPS_INT =
6940 KEY_PREFIX + "text_rr_bandwidth_bps_int";
6941
6942 /**
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08006943 * Specifies the Text Codec capability.
6944 *
6945 * <p>Possible keys in this bundle are,
6946 * <UL>
6947 * <LI>{@link #KEY_T140_PAYLOAD_TYPE_INT}</LI>
6948 * <LI>{@link #KEY_RED_PAYLOAD_TYPE_INT}</LI>
6949 * </UL>
6950 */
6951 public static final String KEY_TEXT_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE =
6952 KEY_PREFIX + "text_codec_capability_payload_types_bundle";
6953
6954 /** Integer representing payload type for T140 codec.
6955 * <p>Payload type is an integer in dynamic payload type range 96-127
6956 * as per RFC RFC 3551 Section 6.
6957 */
6958 public static final String KEY_T140_PAYLOAD_TYPE_INT =
6959 KEY_PREFIX + "t140_payload_type_int";
6960
6961 /** Integer representing payload type for RED/redundancy codec.
6962 * <p>Payload type is an integer in dynamic payload type range 96-127
6963 * as per RFC RFC 3551 Section 6.
6964 */
6965 public static final String KEY_RED_PAYLOAD_TYPE_INT =
6966 KEY_PREFIX + "red_payload_type_int";
6967
6968 private static PersistableBundle getDefaults() {
6969 PersistableBundle defaults = new PersistableBundle();
6970 defaults.putBoolean(KEY_TEXT_ON_DEFAULT_BEARER_SUPPORTED_BOOL, false);
6971 defaults.putBoolean(KEY_TEXT_QOS_PRECONDITION_SUPPORTED_BOOL, true);
6972
6973 defaults.putInt(KEY_TEXT_AS_BANDWIDTH_KBPS_INT, 4);
6974 defaults.putInt(KEY_TEXT_RS_BANDWIDTH_BPS_INT, 100);
6975 defaults.putInt(KEY_TEXT_RR_BANDWIDTH_BPS_INT, 300);
6976
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08006977 PersistableBundle text_codec_capability_payload_types = new PersistableBundle();
6978
6979 text_codec_capability_payload_types.putInt(
6980 KEY_RED_PAYLOAD_TYPE_INT,
6981 112);
6982
6983 text_codec_capability_payload_types.putInt(
6984 KEY_T140_PAYLOAD_TYPE_INT,
6985 111);
6986
6987 defaults.putPersistableBundle(
6988 KEY_TEXT_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE,
6989 text_codec_capability_payload_types);
6990
6991 return defaults;
6992 }
6993 }
6994
6995 /**
6996 * Emergency Call/E911. This groups the configs specific for emergency call
6997 * over IMS.
6998 *
6999 * <p> Reference: 3GPP 24.229, 3GPP 23.167 Annex H, 3GPP 24.301.
7000 */
7001 public static final class ImsEmergency {
7002 private ImsEmergency() {}
7003
7004 /** Prefix of all imsemergency.KEY_* constants. */
7005 public static final String KEY_PREFIX = "imsemergency.";
7006
7007 /**
7008 * Flag specifying whether UE would retry E911 call on
7009 * IMS PDN if emergency PDN setup failed.
7010 *
7011 * <p>If {@code true}: Allow UE to retry emergency call on
7012 * IMS PDN if emergency PDN setup failed.{@code false} otherwise.
7013 */
7014 public static final String KEY_RETRY_EMERGENCY_ON_IMS_PDN_BOOL =
7015 KEY_PREFIX + "retry_emergency_on_ims_pdn_bool";
7016
7017 /**
7018 * Flag specifying whether UE should enter Emergency CallBack Mode(ECBM)
7019 * after E911 call is ended.
7020 *
7021 * <p>If {@code true}: Enter ECBM mode after E911 call is ended.
7022 * {@code false} otherwise.
7023 */
7024 public static final String KEY_EMERGENCY_CALLBACK_MODE_SUPPORTED_BOOL =
7025 KEY_PREFIX + "emergency_callback_mode_supported_bool";
7026
7027 /**
7028 * Flag specifying whether QoS preconditions are supported for emergency
7029 * call setup.
7030 *
7031 * <p>If {@code true}: QoS Preconditions are supported.
7032 * {@code false} otherwise.
7033 *
7034 * <p>Reference: 3GPP TS 24.229
7035 */
7036 public static final String KEY_EMERGENCY_QOS_PRECONDITION_SUPPORTED_BOOL =
7037 KEY_PREFIX + "emergency_qos_precondition_supported_bool";
7038
7039 /**
7040 * List of different RAT technologies on which emergency call using IMS
7041 * is supported.
7042 *
7043 * <p>Possible values are,
7044 * {@link AccessNetworkConstants.AccessNetworkType#NGRAN}
7045 * {@link AccessNetworkConstants.AccessNetworkType#EUTRAN}
7046 * {@link AccessNetworkConstants.AccessNetworkType#IWLAN}
7047 */
7048 public static final String KEY_EMERGENCY_OVER_IMS_SUPPORTED_RATS_INT_ARRAY =
7049 KEY_PREFIX + "emergency_over_ims_supported_rats_int_array";
7050
7051 /**
7052 * Specifies the maximum time from deciding that an emergency service is to
7053 * be established until completion of the emergency registration procedure.
7054 * Upon timer expiry, the UE considers the emergency REGISTER request or
7055 * the emergency call attempt as failed.
7056 */
7057 public static final String KEY_EMERGENCY_REGISTRATION_TIMER_MILLIS_INT =
7058 KEY_PREFIX + "emergency_registration_timer_millis_int";
7059
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08007060 /**
7061 * This setting will be specify the wait time for refreshing
7062 * geolocation information before dialing emergency call.
7063 */
7064 public static final String KEY_REFRESH_GEOLOCATION_TIMEOUT_MILLIS_INT =
7065 KEY_PREFIX + "refresh_geolocation_timeout_millis_int";
7066
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08007067 private static PersistableBundle getDefaults() {
7068 PersistableBundle defaults = new PersistableBundle();
7069 defaults.putBoolean(KEY_RETRY_EMERGENCY_ON_IMS_PDN_BOOL, false);
7070 defaults.putBoolean(KEY_EMERGENCY_CALLBACK_MODE_SUPPORTED_BOOL, false);
7071 defaults.putBoolean(KEY_EMERGENCY_QOS_PRECONDITION_SUPPORTED_BOOL, true);
7072
7073 defaults.putIntArray(
7074 KEY_EMERGENCY_OVER_IMS_SUPPORTED_RATS_INT_ARRAY,
7075 new int[] {
7076 AccessNetworkType.EUTRAN,
7077 AccessNetworkType.IWLAN
7078 });
7079
Sateshk Kumar Chinnappan9b1b1df2022-02-14 09:16:32 -08007080 defaults.putInt(KEY_EMERGENCY_REGISTRATION_TIMER_MILLIS_INT, 10000);
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08007081 defaults.putInt(KEY_REFRESH_GEOLOCATION_TIMEOUT_MILLIS_INT, 5000);
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08007082
7083 return defaults;
7084 }
7085 }
7086
7087 /**
7088 * IMS Video Telephony configs. This groups the configs that are specific for video call.
7089 */
7090 public static final class ImsVt {
7091 private ImsVt() {}
7092
7093 /** Prefix of all imsvt.KEY_* constants. */
7094 public static final String KEY_PREFIX = "imsvt.";
7095
7096 /**
7097 * Flag specifying whether video media is allowed on default bearer.
7098 *
7099 * <p>If {@code true}: video media can be sent on default bearer.
7100 * {@code false} otherwise.
7101 */
7102 public static final String KEY_VIDEO_ON_DEFAULT_BEARER_SUPPORTED_BOOL =
7103 KEY_PREFIX + "video_on_default_bearer_supported_bool";
7104
7105 /**
7106 * Specifies the timeout value for no video RTP packets received.
7107 * <p>On timer expiry, VT call can downgrade to voice call or end
7108 * or continue depending on the operator requirement.
7109 */
7110 public static final String KEY_VIDEO_RTP_INACTIVITY_TIMER_MILLIS_INT =
7111 KEY_PREFIX + "video_rtp_inactivity_timer_millis_int";
7112
7113 /**
7114 * Specifies the timeout value for no video RTCP packets received.
7115 * <p>On timer expiry, VT call can downgrade to voice call or end
7116 * or continue depending on the operator requirement.
7117 */
7118 public static final String KEY_VIDEO_RTCP_INACTIVITY_TIMER_MILLIS_INT =
7119 KEY_PREFIX + "video_rtcp_inactivity_timer_millis_int";
7120
7121 /**
7122 * Specifies the AS (Application Specific) SDP modifier for video media.
7123 *
7124 * <p>Expressed in kilobits per second as per RFC 3556 Section 2.
7125 */
7126 public static final String KEY_VIDEO_AS_BANDWIDTH_KBPS_INT =
7127 KEY_PREFIX + "video_as_bandwidth_kbps_int";
7128
7129 /**
7130 * Specifies the RS (RTCP bandwidth-Sender) SDP modifier for video media.
7131 *
7132 * <p>This indicates the RTCP bandwidth allocated to active data senders
7133 * for video media.
7134 *
7135 * <p>Expressed in bits per second as per RFC 3556 Section 2.
7136 */
7137 public static final String KEY_VIDEO_RS_BANDWIDTH_BPS_INT =
7138 KEY_PREFIX + "video_rs_bandwidth_bps_int";
7139
7140 /**
7141 * Specifies the RR (RTCP bandwidth-Receiver) SDP modifier
7142 * for video media.
7143 *
7144 * <p>This indicates the RTCP bandwidth allocated to receivers
7145 * for video media.
7146 *
7147 * <p>Expressed in bits per second as per RFC 3556 Section 2.
7148 */
7149 public static final String KEY_VIDEO_RR_BANDWIDTH_BPS_INT =
7150 KEY_PREFIX + "video_rr_bandwidth_bps_int";
7151
7152 /**
7153 * Specifies the differentiated services code point (DSCP) value
7154 * for Video RTP.
7155 *
7156 * <p>Reference: RFC 4594 Section 1.4.4
7157 */
7158 public static final String KEY_VIDEO_RTP_DSCP_INT =
7159 KEY_PREFIX + "video_rtp_dscp_int";
7160
7161 /**
7162 * Flag specifying whether QoS preconditions are supported for Video.
7163 *
7164 * <p>If {@code true}: QoS Preconditions are supported.
7165 * {@code false} otherwise.
7166 * <p>Reference: 3GPP TS 24.229
7167 */
7168 public static final String KEY_VIDEO_QOS_PRECONDITION_SUPPORTED_BOOL =
7169 KEY_PREFIX + "video_qos_precondition_supported_bool";
7170
7171 /**
7172 * Specifies the Video Codec capability. This contains a list of
7173 * payload types representing different Video codec instances.
7174
7175 * <p>Possible key(s) in this bundle are,
7176 * <UL>
7177 * <LI>{@link #KEY_H264_PAYLOAD_TYPE_INT_ARRAY}</LI>
7178 * </UL>
7179 * <p>To specify payload descriptions for each of the payload types, see
7180 * <UL>
7181 * <LI>{@link #KEY_H264_PAYLOAD_DESCRIPTION_BUNDLE}</LI>
7182 * </UL>
7183 */
7184 public static final String KEY_VIDEO_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE =
7185 KEY_PREFIX + "video_codec_capability_payload_types_bundle";
7186
7187 /**
7188 * A list of integers representing the different payload types
7189 * in H264 video codec in priority order from highest to lowest.
7190 * <p>Payload type is an integer in dynamic payload type range 96-127
7191 * as per RFC RFC 3551 Section 6.
7192 */
7193 public static final String KEY_H264_PAYLOAD_TYPE_INT_ARRAY =
7194 KEY_PREFIX + "h264_payload_type_int_array";
7195
7196 /**
7197 * Specifies the codec attributes of different payload types
7198 * representing H264 video codec instances.
7199 *
7200 * <p> The allowed payload types of the video codecs are specified in,
7201 * {@link #KEY_H264_PAYLOAD_TYPE_INT_ARRAY}.
7202 *
7203 * <p>Codec attributes allowed as part of H264 codec bundle are,
7204 * <UL>
7205 * <LI>{@link #KEY_H264_VIDEO_CODEC_ATTRIBUTE_PROFILE_LEVEL_ID_STRING}</LI>
7206 * <LI>{@link #KEY_VIDEO_CODEC_ATTRIBUTE_PACKETIZATION_MODE_INT}</LI>
7207 * <LI>{@link #KEY_VIDEO_CODEC_ATTRIBUTE_FRAME_RATE_INT}</LI>
7208 * <LI>{@link #KEY_VIDEO_CODEC_ATTRIBUTE_RESOLUTION_INT_ARRAY}</LI>
7209 * </UL>
7210 *
7211 * <p>If this bundle is not configured and
7212 * {@link #KEY_H264_PAYLOAD_TYPE_INT_ARRAY} is not empty,
7213 * then default values as in the individual codec attributes to
7214 * be used for that payload type.
7215 * <p>If the codec attributes in a particular codec instance bundle
7216 * is not valid together, then that codec instance should not be used.
7217 */
7218 public static final String KEY_H264_PAYLOAD_DESCRIPTION_BUNDLE =
7219 KEY_PREFIX + "h264_payload_description_bundle";
7220
7221 /**
7222 * Specifies the packetization mode of the video codec.
7223 *
7224 * <p>Permissible values are 0 (Single NAL unit mode),
7225 * 1(Non-interleaved mode).
7226 *
7227 * <p>If this key is not specified or invalid, then the following
7228 * default value to be used.
7229 * <UL>
7230 * <LI>For H264: 1(Non-interleaved mode)</LI>
7231 * <UL>
7232 *
7233 * <p>Reference: RFC 6184 Section 5.4
7234 */
7235 public static final String KEY_VIDEO_CODEC_ATTRIBUTE_PACKETIZATION_MODE_INT =
7236 KEY_PREFIX + "video_codec_attribute_packetization_mode_int";
7237
7238 /**
7239 * Specifies the maximum frame rate the offerer wishes to receive.
7240 * This gives the maximum video frame rate in frames/sec.
7241 *
7242 * <p>If this key is not specified or invalid, then the following
7243 * default value to be used.
7244 * <UL>
7245 * <LI>For H264: 15 </LI>
7246 * <UL>
7247 * <p>Reference: RFC 4566 Section 6, 3GPP 26.114 Section 6.2.3.2
7248 */
7249 public static final String KEY_VIDEO_CODEC_ATTRIBUTE_FRAME_RATE_INT =
7250 KEY_PREFIX + "video_codec_attribute_frame_rate_int";
7251
7252 /**
7253 * Specifies the maximum resolution allowed for the video codec
7254 * instance.
7255 *
7256 * <p>This is specified as an array of two integers, with
7257 * index 0 : Width,
7258 * index 1 : Height
7259 *
7260 * <p>If this key is not specified or invalid as per the video codec,
7261 * then the following default value to be used.
7262 * <UL>
7263 * <LI>For H264: 240 (WIDTH) x 320 (HEIGHT) </LI>
7264 * <UL>
7265 * <p>Reference: RFC 4566 Section 6, 3GPP 26.114 Section 6.2.3.2
7266 *
7267 */
7268 public static final String KEY_VIDEO_CODEC_ATTRIBUTE_RESOLUTION_INT_ARRAY =
7269 KEY_PREFIX + "video_codec_attribute_resolution_int_array";
7270
7271 /**
7272 * Specifies the profile level id of the H264 video codec.
7273 * This value is represented as "profile-level-id" in the SDP offer
7274 * as per RFC 6184 Section 8.1.
7275 *
7276 * <p>If this key is not specified or invalid as per the video codec,
7277 * then default value of 42C00C to be used.
7278 *
7279 * <p>Reference: RFC 6184 Section 8.1, ITU-T Recommendation H.264
7280 */
7281 public static final String KEY_H264_VIDEO_CODEC_ATTRIBUTE_PROFILE_LEVEL_ID_STRING =
7282 KEY_PREFIX + "h264_video_codec_attribute_profile_level_id_string";
7283
7284 private static PersistableBundle getDefaults() {
7285 PersistableBundle defaults = new PersistableBundle();
7286 defaults.putBoolean(KEY_VIDEO_ON_DEFAULT_BEARER_SUPPORTED_BOOL, false);
7287 defaults.putBoolean(KEY_VIDEO_QOS_PRECONDITION_SUPPORTED_BOOL, true);
7288
7289 defaults.putInt(KEY_VIDEO_RTP_INACTIVITY_TIMER_MILLIS_INT, 0);
7290 defaults.putInt(KEY_VIDEO_RTCP_INACTIVITY_TIMER_MILLIS_INT, 0);
7291
7292 defaults.putInt(KEY_VIDEO_AS_BANDWIDTH_KBPS_INT, 960);
7293 defaults.putInt(KEY_VIDEO_RS_BANDWIDTH_BPS_INT, 8000);
7294 defaults.putInt(KEY_VIDEO_RR_BANDWIDTH_BPS_INT, 6000);
7295 defaults.putInt(KEY_VIDEO_RTP_DSCP_INT, 40);
7296
7297 PersistableBundle video_codec_capability_payload_types = new PersistableBundle();
7298
7299 video_codec_capability_payload_types.putIntArray(
7300 KEY_H264_PAYLOAD_TYPE_INT_ARRAY,
7301 new int[] { 99, 100 });
7302
7303 defaults.putPersistableBundle(
7304 KEY_VIDEO_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE,
7305 video_codec_capability_payload_types);
7306
7307 PersistableBundle all_h264_payload_bundles = new PersistableBundle();
7308
7309 /* Setting default codec attributes for individual H264 profiles*/
7310
7311 /* For H264 profile-level-id: 42C00C, frame rate:15, Resolution: 240x320 */
7312 PersistableBundle h264_bundle_instance1 = new PersistableBundle();
7313 all_h264_payload_bundles.putPersistableBundle(
7314 "99", /* Same value of payload type as in KEY_H264_PAYLOAD_TYPE_INT_ARRAY */
7315 h264_bundle_instance1);
7316
7317 /* For H264 profile-level-id: 42C00C, packetisation mode:0, frame rate:15,
7318 * Resolution: 240x320 */
7319 PersistableBundle h264_bundle_instance2 = new PersistableBundle();
7320 h264_bundle_instance2.putInt(
7321 KEY_VIDEO_CODEC_ATTRIBUTE_PACKETIZATION_MODE_INT,
7322 0);
7323
7324 all_h264_payload_bundles.putPersistableBundle(
7325 "100", /* Same value of payload type as in KEY_H264_PAYLOAD_TYPE_INT_ARRAY */
7326 h264_bundle_instance2);
7327
7328 defaults.putPersistableBundle(
7329 KEY_H264_PAYLOAD_DESCRIPTION_BUNDLE,
7330 all_h264_payload_bundles);
7331
7332 return defaults;
7333 }
7334 }
7335
7336 /**
7337 * WiFi Calling. This groups the configs specific for Voice over WiFi/WFC call.
7338 */
7339 public static final class ImsWfc {
7340 private ImsWfc() {}
7341
7342 /** Prefix of all imswfc.KEY_* constants. */
7343 public static final String KEY_PREFIX = "imswfc.";
7344
7345 /**
7346 * List of MDNs for which Geo-location PIDF XML with country info
7347 * needs to included for normal calls involving short code.
7348 */
7349 public static final String KEY_PIDF_SHORT_CODE_STRING_ARRAY =
7350 KEY_PREFIX + "pidf_short_code_string_array";
7351
7352 /**
7353 * Flag specifying whether emergency call over VoWiFi is requested over
7354 * emergency PDN or IMS PDN.
7355 *
7356 * <p>If {@code false}: E911 call uses IMS PDN for E911 call over VoWiFi.
7357 * If {@code true}: E911 call uses Emergency PDN for E911 call over VoWiFi.
7358 */
7359 public static final String KEY_EMERGENCY_CALL_OVER_EMERGENCY_PDN_BOOL =
7360 KEY_PREFIX + "emergency_call_over_emergency_pdn_bool";
7361
7362
7363 private static PersistableBundle getDefaults() {
7364 PersistableBundle defaults = new PersistableBundle();
7365
7366 defaults.putBoolean(KEY_EMERGENCY_CALL_OVER_EMERGENCY_PDN_BOOL, false);
7367 defaults.putStringArray(KEY_PIDF_SHORT_CODE_STRING_ARRAY, new String[] {});
7368
7369 return defaults;
7370 }
7371 }
7372
7373 /**
7374 * IMS supplementary services configs. This groups the configs required for
7375 * supplementary services (SS) like XCAP over UT,
7376 * Unstructured Supplementary Service Data(USSD).
7377 */
7378 public static final class ImsSs {
7379 private ImsSs() {}
7380
7381 /** Prefix of all imsss.KEY_* constants. */
7382 public static final String KEY_PREFIX = "imsss.";
7383
7384 /**
7385 * Flag that controls whether XCAP over UT status need to be
7386 * dependent on IMS registration.
7387 *
7388 * <p>If {@code true}: XCAP over UT status need to be
7389 * dependent on IMS registration.
7390 * {@code false} otherwise.
7391 */
7392 public static final String KEY_UT_REQUIRES_IMS_REGISTRATION_BOOL =
7393 KEY_PREFIX + "ut_requires_ims_registration_bool";
7394
7395 /**
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08007396 * Flag that controls whether XCAP over UT is supported
7397 * when on roaming network.
7398 *
7399 * <p>If {@code true}: XCAP over UT is supported when on
7400 * roaming network.
7401 * {@code false} otherwise.
7402 */
7403 public static final String KEY_UT_SUPPORTED_WHEN_ROAMING_BOOL =
7404 KEY_PREFIX + "ut_supported_when_roaming_bool";
7405
7406 /**
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08007407 * Flag that controls whether Circuit Switched Fallback (CSFB)
7408 * option is available when XCAP over UT fails.
7409 *
7410 * <p>If {@code false}: XCAP over UT only with no CSFB option.
7411 * If XCAP over UT fails, return error.
7412 * if {@code true}, Use CSFB if XCAP over UT fails.
7413 */
7414 public static final String KEY_USE_CSFB_ON_XCAP_OVER_UT_FAILURE_BOOL =
7415 KEY_PREFIX + "use_csfb_on_xcap_over_ut_failure_bool";
7416
7417 /**
7418 * Flag that controls whether XCAP over UT is enabled or not
7419 * when PS data is turned off.
7420 *
7421 * <p>If {@code true}: XCAP over UT is enabled when PS data is off.
7422 * {@code false}: Otherwise.
7423 *
7424 * Reference: IR.92 Section 5.5.1
7425 */
7426 public static final String KEY_UT_SUPPORTED_WHEN_PS_DATA_OFF_BOOL =
7427 KEY_PREFIX + "ut_supported_when_ps_data_off_bool";
7428
7429 /**
7430 * Flag that controls whether network initiated USSD over IMS is
7431 * supported by the UE.
7432 *
7433 * <p>If {@code true}: Support Available.{@code false}: Otherwise.
7434 * Reference: 3GPP 24.390.
7435 */
7436 public static final String KEY_NETWORK_INITIATED_USSD_OVER_IMS_SUPPORTED_BOOL =
7437 KEY_PREFIX + "network_initiated_ussd_over_ims_supported_bool";
7438
7439 /**
7440 * Specifies the 'XCAP over UT' IP Type when device is
7441 * on Home Network.
7442 *
7443 * <p>Possible values are,
7444 * {@link ApnSetting#PROTOCOL_IPV4V6},
7445 * {@link ApnSetting#PROTOCOL_IP},
7446 * {@link ApnSetting#PROTOCOL_IPV6}
7447 *
7448 * If key is invalid or not configured, the default value
7449 * {@link ApnSetting#PROTOCOL_IPV4V6} will apply.
7450 */
7451 public static final String KEY_UT_IPTYPE_HOME_INT =
7452 KEY_PREFIX + "ut_iptype_home_int";
7453
7454 /**
7455 * Specifies the 'XCAP over UT' IP Type when device is roaming.
7456 *
7457 * <p>Possible values are,
7458 * {@link ApnSetting#PROTOCOL_IPV4V6},
7459 * {@link ApnSetting#PROTOCOL_IP},
7460 * {@link ApnSetting#PROTOCOL_IPV6}
7461
7462 * If key is invalid or not configured, the default value
7463 * {@link ApnSetting#PROTOCOL_IPV4V6} will apply.
7464 */
7465 public static final String KEY_UT_IPTYPE_ROAMING_INT =
7466 KEY_PREFIX + "ut_iptype_roaming_int";
7467
7468 /**
7469 * Specifies the XCAP Application Server fully qualified domain name (FQDN).
7470 * <p> Reference: 24.623 Section 5.2.3.
7471 */
7472 public static final String KEY_UT_AS_SERVER_FQDN_STRING =
7473 KEY_PREFIX + "ut_as_server_fqdn_string";
7474
7475 /**
7476 * Specifies the XCAP Application Server Remote port.
7477 * As XCAP is a usage of HTTP, the default value is same as HTTP, i.e. 80.
7478 */
7479 public static final String KEY_UT_AS_SERVER_PORT_INT =
7480 KEY_PREFIX + "ut_as_server_port_int";
7481
7482 /**
7483 * Specifies the preferred transport to be used for XCAP over UT.
7484 *
7485 * <p>Possible values are,
7486 * {@link Ims#PREFERRED_TRANSPORT_TCP},
7487 * {@link Ims#PREFERRED_TRANSPORT_TLS}
7488 *
7489 * <p>If key is invalid or not configured, the default value
7490 * {@link Ims#PREFERRED_TRANSPORT_TCP} will apply.
7491 */
7492 public static final String KEY_UT_TRANSPORT_TYPE_INT =
7493 KEY_PREFIX + "ut_transport_type_int";
7494
7495 /** @hide */
7496 @IntDef({
7497 SUPPLEMENTARY_SERVICE_CW,
7498 SUPPLEMENTARY_SERVICE_CF_ALL,
7499 SUPPLEMENTARY_SERVICE_CF_CFU,
7500 SUPPLEMENTARY_SERVICE_CF_ALL_CONDITONAL_FORWARDING,
7501 SUPPLEMENTARY_SERVICE_CF_CFB,
7502 SUPPLEMENTARY_SERVICE_CF_CFNRY,
7503 SUPPLEMENTARY_SERVICE_CF_CFNRC,
7504 SUPPLEMENTARY_SERVICE_CF_CFNL,
7505 SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIP,
7506 SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIP,
7507 SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIR,
7508 SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIR,
7509 SUPPLEMENTARY_SERVICE_CB_ALL,
7510 SUPPLEMENTARY_SERVICE_CB_OBS,
7511 SUPPLEMENTARY_SERVICE_CB_BAOC,
7512 SUPPLEMENTARY_SERVICE_CB_BOIC,
7513 SUPPLEMENTARY_SERVICE_CB_BOIC_EXHC,
7514 SUPPLEMENTARY_SERVICE_CB_IBS,
7515 SUPPLEMENTARY_SERVICE_CB_BAIC,
7516 SUPPLEMENTARY_SERVICE_CB_BIC_ROAM,
7517 SUPPLEMENTARY_SERVICE_CB_ACR,
7518 SUPPLEMENTARY_SERVICE_CB_BIL
7519 })
7520
7521 public @interface SsType {}
7522
7523 /** Communication Waiting (CW) support as per 3GPP 24.615. */
7524 public static final int SUPPLEMENTARY_SERVICE_CW = 0;
7525
7526 /**
7527 * Call Diversion - All call forwarding support as per 3GPP 24.604.
7528 *
7529 * <p>This value is associated with MMI support service code 002
7530 * as indicated in TS 22.030 Table B.1
7531 */
7532 public static final int SUPPLEMENTARY_SERVICE_CF_ALL = 1;
7533
7534 /**
7535 * Call Diversion - All Unconditional call forwarding support (CFU) as
7536 * per 3GPP 24.604.
7537 *
7538 * <p>This value is associated with MMI support service code 21
7539 * as indicated in TS 22.030 Table B.1
7540 */
7541 public static final int SUPPLEMENTARY_SERVICE_CF_CFU = 2;
7542
7543 /**
7544 * Call Diversion - All conditional call forwarding support as
7545 * per 3GPP 24.604.
7546 *
7547 * <p>This value is associated with MMI support service code 004
7548 * as indicated in TS 22.030 Table B.1
7549 */
7550 public static final int SUPPLEMENTARY_SERVICE_CF_ALL_CONDITONAL_FORWARDING = 3;
7551
7552 /**
7553 * Call Diversion - Call forwarding on mobile subscriber busy (CFB)
7554 * support as per 3GPP 24.604.
7555 *
7556 * <p>This value is associated with MMI support service code 67
7557 * as indicated in TS 22.030 Table B.1
7558 */
7559 public static final int SUPPLEMENTARY_SERVICE_CF_CFB = 4;
7560
7561 /**
7562 * Call Diversion - Call forwarding on no reply (CFNRY)
7563 * support as per 3GPP 24.604.
7564 *
7565 * <p>This value is associated with MMI support service code 61
7566 * as indicated in TS 22.030 Table B.1
7567 */
7568 public static final int SUPPLEMENTARY_SERVICE_CF_CFNRY = 5;
7569
7570 /**
7571 * Call Diversion - Call forwarding on mobile subscriber not reachable
7572 * (CFNRC) support as per 3GPP 24.604.
7573 *
7574 * <p>This value is associated with MMI support service code 62
7575 * as indicated in TS 22.030 Table B.1
7576 */
7577 public static final int SUPPLEMENTARY_SERVICE_CF_CFNRC = 6;
7578
7579 /**
7580 * Communication Forwarding on Not Logged-in (CFNL).
7581 * support as per 3GPP 24.604 Section 4.2.1.7
7582 *
7583 */
7584 public static final int SUPPLEMENTARY_SERVICE_CF_CFNL = 7;
7585
7586 /**
7587 * Originating Identification Presentation (OIP) support
7588 * as per 3GPP 24.607.
7589 *
7590 */
7591 public static final int SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIP = 8;
7592
7593 /**
7594 * Terminating Identification Presentation (TIP) support
7595 * as per 3GPP 24.608.
7596 */
7597 public static final int SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIP = 9;
7598
7599 /**
7600 * Originating Identification Restriction (OIR) support
7601 * as per 3GPP 24.607.
7602 */
7603 public static final int SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIR = 10;
7604
7605 /**
7606 * Terminating Identification Restriction (TIR) support
7607 * as per 3GPP 24.608.
7608 */
7609 public static final int SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIR = 11;
7610
7611 /**
7612 * Call Barring - All barring services,
7613 * This value is associated with MMI support service code 330
7614 * as indicated TS 22.030 Table B.1
7615 */
7616 public static final int SUPPLEMENTARY_SERVICE_CB_ALL = 12;
7617
7618 /**
7619 * Call Barring - Outgoing barring services,
7620 * This value is associated with MMI support service code 333
7621 * as indicated TS 22.030 Table B.1
7622 */
7623 public static final int SUPPLEMENTARY_SERVICE_CB_OBS = 13;
7624
7625 /**
7626 * Call Barring - Barring of all outgoing calls (BAOC)
7627 * support as per 3GPP TS 24.611.
7628 *
7629 * <p>This value is associated with MMI support service code 33
7630 * as indicated TS 22.030 Table B.1
7631 */
7632 public static final int SUPPLEMENTARY_SERVICE_CB_BAOC = 14;
7633
7634 /**
7635 * Call Barring - Barring of outgoing international calls
7636 * (BOIC) support as per 3GPP TS 24.611.
7637 *
7638 * <p>This value is associated with MMI support service code 331
7639 * as indicated TS 22.030 Table B.1
7640 */
7641 public static final int SUPPLEMENTARY_SERVICE_CB_BOIC = 15;
7642
7643 /**
7644 * Call Barring - Barring of outgoing international calls
7645 * except those directed to the home PLMN country (BOIC-EXHC) support
7646 * as per 3GPP TS 24.611.
7647 *
7648 * <p>This value is associated with MMI support service code 332
7649 * as indicated TS 22.030 Table B.1
7650 */
7651 public static final int SUPPLEMENTARY_SERVICE_CB_BOIC_EXHC = 16;
7652
7653 /**
7654 * Call Barring - Incoming barring services,
7655 * This value is associated with MMI support service code 353
7656 * as indicated TS 22.030 Table B.1
7657 */
7658 public static final int SUPPLEMENTARY_SERVICE_CB_IBS = 17;
7659
7660 /**
7661 * Call Barring - Barring of all incoming calls (BAIC)
7662 * support as per 3GPP TS 24.611.
7663 *
7664 * <p>This value is associated with MMI support service code 35
7665 * as indicated TS 22.030 Table B.1
7666 */
7667 public static final int SUPPLEMENTARY_SERVICE_CB_BAIC = 18;
7668
7669 /**
7670 * Call Barring - Barring of incoming calls when roaming outside
7671 * the home PLMN country (BIC-ROAM) support as per 3GPP TS 24.611.
7672 *
7673 * <p>This value is associated with MMI support service code 351
7674 * as indicated TS 22.030 Table B.1
7675 */
7676 public static final int SUPPLEMENTARY_SERVICE_CB_BIC_ROAM = 19;
7677
7678 /**
7679 * Call Barring - Anonymous Call Rejection/Barring of all anonymous
7680 * incoming number support as per 3GPP TS 24.611.
7681 */
7682 public static final int SUPPLEMENTARY_SERVICE_CB_ACR = 20;
7683
7684 /**
7685 * Call Barring - Barring list of incoming numbers support.
7686 */
7687 public static final int SUPPLEMENTARY_SERVICE_CB_BIL = 21;
7688
7689 /**
7690 * List of UT services that are Server based.
7691 *
7692 * <p>Possible values are,
7693 * <UL>
7694 * <LI>{@link #SUPPLEMENTARY_SERVICE_CW}</LI>
7695 * <LI>{@link #SUPPLEMENTARY_SERVICE_CF_ALL}</LI>
7696 * <LI>{@link #SUPPLEMENTARY_SERVICE_CF_CFU}</LI>
7697 * <LI>{@link #SUPPLEMENTARY_SERVICE_CF_ALL_CONDITONAL_FORWARDING}</LI>
7698 * <LI>{@link #SUPPLEMENTARY_SERVICE_CF_CFB}</LI>
7699 * <LI>{@link #SUPPLEMENTARY_SERVICE_CF_CFNRY}</LI>
7700 * <LI>{@link #SUPPLEMENTARY_SERVICE_CF_CFNRC}</LI>
7701 * <LI>{@link #SUPPLEMENTARY_SERVICE_CF_CFNL}</LI>
7702 * <LI>{@link #SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIP}</LI>
7703 * <LI>{@link #SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIP}</LI>
7704 * <LI>{@link #SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIR}</LI>
7705 * <LI>{@link #SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIR}</LI>
7706 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_ALL}</LI>
7707 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_OBS}</LI>
7708 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_IBS}</LI>
7709 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BAOC}</LI>
7710 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BOIC}</LI>
7711 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BOIC_EXHC}</LI>
7712 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BAIC}</LI>
7713 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BIC_ROAM}</LI>
7714 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_ACR}</LI>
7715 * <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BIL}</LI>
7716 * </UL>
7717 */
7718 public static final String KEY_UT_SERVER_BASED_SERVICES_INT_ARRAY =
7719 KEY_PREFIX + "ut_server_based_services_int_array";
7720
7721 /**
7722 * List of UT services that are terminal based.
7723 *
7724 * By default, all services are server based and defined in
7725 * {@link #KEY_UT_SERVER_BASED_SERVICES_INT_ARRAY}.
7726 * Adding here will override that service setting to terminal based.
7727 *
7728 * <p>Possible values are,
7729 * <UL>
7730 * <LI>{@link #SUPPLEMENTARY_SERVICE_CW}</LI>
7731 * <LI>{@link #SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIR}</LI>
7732 * </UL>
7733 */
7734 public static final String KEY_UT_TERMINAL_BASED_SERVICES_INT_ARRAY =
7735 KEY_PREFIX + "ut_terminal_based_services_int_array";
7736
7737 /**
7738 * List of different RAT technologies on which XCAP over UT
7739 * is supported.
7740 *
7741 * <p>Possible values are,
7742 * {@link AccessNetworkConstants.AccessNetworkType#NGRAN}
7743 * {@link AccessNetworkConstants.AccessNetworkType#EUTRAN}
7744 * {@link AccessNetworkConstants.AccessNetworkType#IWLAN}
7745 * {@link AccessNetworkConstants.AccessNetworkType#UTRAN}
7746 * {@link AccessNetworkConstants.AccessNetworkType#GERAN}
7747 */
7748 public static final String KEY_XCAP_OVER_UT_SUPPORTED_RATS_INT_ARRAY =
7749 KEY_PREFIX + "xcap_over_ut_supported_rats_int_array";
7750
7751 private static PersistableBundle getDefaults() {
7752 PersistableBundle defaults = new PersistableBundle();
Sateshk Kumar Chinnappan9b1b1df2022-02-14 09:16:32 -08007753 defaults.putBoolean(KEY_UT_REQUIRES_IMS_REGISTRATION_BOOL, false);
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08007754 defaults.putBoolean(KEY_USE_CSFB_ON_XCAP_OVER_UT_FAILURE_BOOL, true);
7755 defaults.putBoolean(KEY_UT_SUPPORTED_WHEN_PS_DATA_OFF_BOOL, true);
7756 defaults.putBoolean(KEY_NETWORK_INITIATED_USSD_OVER_IMS_SUPPORTED_BOOL, true);
Sateshk Kumar Chinnappan7ccdd1a2022-01-25 12:38:11 -08007757 defaults.putBoolean(KEY_UT_SUPPORTED_WHEN_ROAMING_BOOL, true);
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08007758
7759 defaults.putInt(KEY_UT_IPTYPE_HOME_INT, ApnSetting.PROTOCOL_IPV4V6);
7760 defaults.putInt(KEY_UT_IPTYPE_ROAMING_INT, ApnSetting.PROTOCOL_IPV4V6);
7761 defaults.putInt(KEY_UT_AS_SERVER_PORT_INT, 80);
7762 defaults.putInt(KEY_UT_TRANSPORT_TYPE_INT, Ims.PREFERRED_TRANSPORT_TCP);
7763
7764 defaults.putIntArray(
7765 KEY_UT_SERVER_BASED_SERVICES_INT_ARRAY,
7766 new int[] {
7767 SUPPLEMENTARY_SERVICE_CW,
7768 SUPPLEMENTARY_SERVICE_CF_ALL,
7769 SUPPLEMENTARY_SERVICE_CF_CFU,
7770 SUPPLEMENTARY_SERVICE_CF_CFNRC,
7771 SUPPLEMENTARY_SERVICE_CF_ALL_CONDITONAL_FORWARDING,
7772 SUPPLEMENTARY_SERVICE_CF_CFB,
7773 SUPPLEMENTARY_SERVICE_CF_CFNRY,
7774 SUPPLEMENTARY_SERVICE_CF_CFNL,
7775 SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIP,
7776 SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIP,
7777 SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIR,
7778 SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIR,
7779 SUPPLEMENTARY_SERVICE_CB_ALL,
7780 SUPPLEMENTARY_SERVICE_CB_OBS,
7781 SUPPLEMENTARY_SERVICE_CB_IBS,
7782 SUPPLEMENTARY_SERVICE_CB_BAOC,
7783 SUPPLEMENTARY_SERVICE_CB_BOIC,
7784 SUPPLEMENTARY_SERVICE_CB_BOIC_EXHC,
7785 SUPPLEMENTARY_SERVICE_CB_BAIC,
7786 SUPPLEMENTARY_SERVICE_CB_BIC_ROAM,
7787 SUPPLEMENTARY_SERVICE_CB_ACR,
7788 SUPPLEMENTARY_SERVICE_CB_BIL
7789 });
7790 defaults.putIntArray(
7791 KEY_UT_TERMINAL_BASED_SERVICES_INT_ARRAY,
7792 new int[] {});
7793
7794 defaults.putIntArray(
7795 KEY_XCAP_OVER_UT_SUPPORTED_RATS_INT_ARRAY,
7796 new int[] {
7797 AccessNetworkType.EUTRAN,
7798 AccessNetworkType.IWLAN
7799 });
7800 defaults.putString(KEY_UT_AS_SERVER_FQDN_STRING, "");
7801
7802 return defaults;
7803 }
7804 }
7805
7806 /**
7807 * This groups the BSF (BootStrapping Function) related configs.
7808 * Reference: 3GPP TS 24.109.
7809 */
7810 public static final class Bsf {
7811 private Bsf() {}
7812
7813 /** Prefix of all bsf.KEY_* constants. */
7814 public static final String KEY_PREFIX = "bsf.";
7815
7816 /** Specifies the fully qualified domain name (FQDN) of BSF Server
7817 * as per 3GPP 24.109.
7818 */
7819 public static final String KEY_BSF_SERVER_FQDN_STRING =
7820 KEY_PREFIX + "bsf_server_fqdn_string";
7821
7822 /**
7823 * Specifies the port number of the BSF server as per 3GPP 24.109.
7824 * This is usually default port number of HTTP, i.e. 80.
7825 */
7826 public static final String KEY_BSF_SERVER_PORT_INT =
7827 KEY_PREFIX + "bsf_server_port_int";
7828
7829 /**
7830 * Specifies the transport type used in communication with
7831 * BSF server.
7832 *
7833 * <p>Possible values are,
7834 * {@link Ims#PREFERRED_TRANSPORT_TCP},
7835 * {@link Ims#PREFERRED_TRANSPORT_TLS}
7836 *
7837 * <p>If key is invalid or not configured, the default value
7838 * {@link Ims#PREFERRED_TRANSPORT_TCP} will apply.
7839 */
7840 public static final String KEY_BSF_TRANSPORT_TYPE_INT =
Sateshk Kumar Chinnappanf59e2752022-01-27 07:40:53 -08007841 KEY_PREFIX + "bsf_transport_type_int";
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08007842
7843 private static PersistableBundle getDefaults() {
7844 PersistableBundle defaults = new PersistableBundle();
7845
7846 defaults.putInt(KEY_BSF_SERVER_PORT_INT, 80);
7847 defaults.putInt(KEY_BSF_TRANSPORT_TYPE_INT, Ims.PREFERRED_TRANSPORT_TCP);
7848 defaults.putString(KEY_BSF_SERVER_FQDN_STRING, "");
7849
Dheeraj Shetty054700a2019-05-23 18:22:05 -07007850 return defaults;
7851 }
7852 }
7853
7854 /**
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007855 * Configs used for epdg tunnel bring up.
7856 *
7857 * @see <a href="https://tools.ietf.org/html/rfc7296">RFC 7296, Internet Key Exchange Protocol
7858 * Version 2 (IKEv2)</a>
7859 */
7860 public static final class Iwlan {
7861 /** Prefix of all Epdg.KEY_* constants. */
7862 public static final String KEY_PREFIX = "iwlan.";
7863
7864 /**
7865 * Time in seconds after which the child security association session is terminated if rekey
7866 * procedure is not successful. If not set or set to <= 0, the default value is 3600
7867 * seconds.
7868 */
7869 public static final String KEY_CHILD_SA_REKEY_HARD_TIMER_SEC_INT =
7870 KEY_PREFIX + "child_sa_rekey_hard_timer_sec_int";
7871
7872 /**
7873 * Time in seconds after which the child session rekey procedure is started. If not set or
7874 * set to <= 0, default value is 3000 seconds.
7875 */
7876 public static final String KEY_CHILD_SA_REKEY_SOFT_TIMER_SEC_INT =
7877 KEY_PREFIX + "child_sa_rekey_soft_timer_sec_int";
7878
7879 /**
Naina Nallurid50baf12021-03-08 13:13:36 -08007880 * Supported DH groups for IKE negotiation. Possible values are:
7881 * {@link android.net.ipsec.ike.SaProposal#DH_GROUP_NONE},
7882 * {@link android.net.ipsec.ike.SaProposal#DH_GROUP_1024_BIT_MODP},
7883 * {@link android.net.ipsec.ike.SaProposal#DH_GROUP_1536_BIT_MODP},
7884 * {@link android.net.ipsec.ike.SaProposal#DH_GROUP_2048_BIT_MODP}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007885 */
7886 public static final String KEY_DIFFIE_HELLMAN_GROUPS_INT_ARRAY =
7887 KEY_PREFIX + "diffie_hellman_groups_int_array";
7888
7889 /**
7890 * Time in seconds after which a dead peer detection (DPD) request is sent. If not set or
7891 * set to <= 0, default value is 120 seconds.
7892 */
7893 public static final String KEY_DPD_TIMER_SEC_INT = KEY_PREFIX + "dpd_timer_sec_int";
7894
7895 /**
7896 * Method used to authenticate epdg server. Possible values are {@link
7897 * #AUTHENTICATION_METHOD_EAP_ONLY}, {@link #AUTHENTICATION_METHOD_CERT}
7898 */
7899 public static final String KEY_EPDG_AUTHENTICATION_METHOD_INT =
7900 KEY_PREFIX + "epdg_authentication_method_int";
7901
7902 /**
7903 * A priority list of ePDG addresses to be used. Possible values are {@link
7904 * #EPDG_ADDRESS_STATIC}, {@link #EPDG_ADDRESS_PLMN}, {@link #EPDG_ADDRESS_PCO}, {@link
EdenSu2fad1162022-01-05 17:32:50 +08007905 * #EPDG_ADDRESS_CELLULAR_LOC}, {@link #EPDG_ADDRESS_VISITED_COUNTRY}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007906 */
7907 public static final String KEY_EPDG_ADDRESS_PRIORITY_INT_ARRAY =
7908 KEY_PREFIX + "epdg_address_priority_int_array";
7909
7910 /** Epdg static IP address or FQDN */
7911 public static final String KEY_EPDG_STATIC_ADDRESS_STRING =
7912 KEY_PREFIX + "epdg_static_address_string";
7913
7914 /** Epdg static IP address or FQDN for roaming */
7915 public static final String KEY_EPDG_STATIC_ADDRESS_ROAMING_STRING =
7916 KEY_PREFIX + "epdg_static_address_roaming_string";
7917
7918 /**
7919 * List of supported key sizes for AES Cipher Block Chaining (CBC) encryption mode of child
Naina Nallurid50baf12021-03-08 13:13:36 -08007920 * session. Possible values are:
7921 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_UNUSED},
7922 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_128},
7923 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_192},
7924 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_256}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007925 */
7926 public static final String KEY_CHILD_SESSION_AES_CBC_KEY_SIZE_INT_ARRAY =
7927 KEY_PREFIX + "child_session_aes_cbc_key_size_int_array";
7928
7929 /**
7930 * List of supported key sizes for AES Counter (CTR) encryption mode of child session.
Naina Nallurid50baf12021-03-08 13:13:36 -08007931 * Possible values are:
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_CHILD_SESSION_AES_CTR_KEY_SIZE_INT_ARRAY =
7938 KEY_PREFIX + "child_session_aes_ctr_key_size_int_array";
7939
7940 /**
7941 * List of supported encryption algorithms for child session. Possible values are
Naina Nallurid50baf12021-03-08 13:13:36 -08007942 * {@link android.net.ipsec.ike.SaProposal#ENCRYPTION_ALGORITHM_AES_CBC}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007943 */
7944 public static final String KEY_SUPPORTED_CHILD_SESSION_ENCRYPTION_ALGORITHMS_INT_ARRAY =
7945 KEY_PREFIX + "supported_child_session_encryption_algorithms_int_array";
7946
7947 /**
7948 * Time in seconds after which the IKE session is terminated if rekey procedure is not
7949 * successful. If not set or set to <= 0, default value is 3600 seconds.
7950 */
7951 public static final String KEY_IKE_REKEY_HARD_TIMER_SEC_INT =
7952 KEY_PREFIX + "ike_rekey_hard_timer_in_sec";
7953
7954 /**
7955 * Time in seconds after which the IKE session rekey procedure is started. If not set or set
7956 * to <= 0, default value is 3000 seconds.
7957 */
7958 public static final String KEY_IKE_REKEY_SOFT_TIMER_SEC_INT =
7959 KEY_PREFIX + "ike_rekey_soft_timer_sec_int";
7960
7961 /**
7962 * List of supported key sizes for AES Cipher Block Chaining (CBC) encryption mode of IKE
Naina Nallurid50baf12021-03-08 13:13:36 -08007963 * session. Possible values:
7964 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_UNUSED},
7965 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_128},
7966 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_192},
7967 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_256}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007968 */
7969 public static final String KEY_IKE_SESSION_AES_CBC_KEY_SIZE_INT_ARRAY =
7970 KEY_PREFIX + "ike_session_encryption_aes_cbc_key_size_int_array";
7971
7972
7973 /**
7974 * List of supported key sizes for AES Counter (CTR) encryption mode of IKE session.
Naina Nallurid50baf12021-03-08 13:13:36 -08007975 * Possible values -
7976 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_UNUSED},
7977 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_128},
7978 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_192},
7979 * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_256}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007980 */
7981 public static final String KEY_IKE_SESSION_AES_CTR_KEY_SIZE_INT_ARRAY =
7982 KEY_PREFIX + "ike_session_encryption_aes_ctr_key_size_int_array";
7983
7984 /**
7985 * List of supported encryption algorithms for IKE session. Possible values are
Naina Nallurid50baf12021-03-08 13:13:36 -08007986 * {@link android.net.ipsec.ike.SaProposal#ENCRYPTION_ALGORITHM_AES_CBC},
7987 * {@link android.net.ipsec.ike.SaProposal#ENCRYPTION_ALGORITHM_AES_CTR}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08007988 */
7989 public static final String KEY_SUPPORTED_IKE_SESSION_ENCRYPTION_ALGORITHMS_INT_ARRAY =
7990 KEY_PREFIX + "supported_ike_session_encryption_algorithms_int_array";
7991
7992 /**
Naina Nallurid50baf12021-03-08 13:13:36 -08007993 * List of supported integrity algorithms for IKE session. Possible values are
7994 * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_NONE},
7995 * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_HMAC_SHA1_96},
7996 * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_AES_XCBC_96},
7997 * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_HMAC_SHA2_256_128},
7998 * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_HMAC_SHA2_384_192},
7999 * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_HMAC_SHA2_512_256}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008000 */
8001 public static final String KEY_SUPPORTED_INTEGRITY_ALGORITHMS_INT_ARRAY =
8002 KEY_PREFIX + "supported_integrity_algorithms_int_array";
8003
8004 /** Maximum number of retries for tunnel establishment. */
8005 public static final String KEY_MAX_RETRIES_INT = KEY_PREFIX + "max_retries_int";
8006
8007 /**
8008 * Time in seconds after which a NATT keep alive message is sent. If not set or set to <= 0,
8009 * default value is 20 seconds.
8010 */
8011 public static final String KEY_NATT_KEEP_ALIVE_TIMER_SEC_INT =
8012 KEY_PREFIX + "natt_keep_alive_timer_sec_int";
8013
8014 /** List of '-' separated MCC/MNCs used to create ePDG FQDN as per 3GPP TS 23.003 */
8015 public static final String KEY_MCC_MNCS_STRING_ARRAY = KEY_PREFIX + "mcc_mncs_string_array";
8016
8017 /**
8018 * List of supported pseudo random function algorithms for IKE session. Possible values are
Naina Nallurid50baf12021-03-08 13:13:36 -08008019 * {@link android.net.ipsec.ike.SaProposal#PSEUDORANDOM_FUNCTION_HMAC_SHA1},
8020 * {@link android.net.ipsec.ike.SaProposal#PSEUDORANDOM_FUNCTION_AES128_XCBC},
8021 * {@link android.net.ipsec.ike.SaProposal#PSEUDORANDOM_FUNCTION_SHA2_256},
8022 * {@link android.net.ipsec.ike.SaProposal#PSEUDORANDOM_FUNCTION_SHA2_384},
8023 * {@link android.net.ipsec.ike.SaProposal#PSEUDORANDOM_FUNCTION_SHA2_512}
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008024 */
8025 public static final String KEY_SUPPORTED_PRF_ALGORITHMS_INT_ARRAY =
8026 KEY_PREFIX + "supported_prf_algorithms_int_array";
8027
8028 /**
8029 * List of IKE message retransmission timeouts in milliseconds, where each timeout
8030 * is the waiting time before next retry, except the last timeout which is the waiting time
8031 * before terminating the IKE Session. Min list length = 1, Max
8032 * list length = 10 Min timeout = 500 ms, Max timeout = 1800000 ms
8033 */
8034 public static final String KEY_RETRANSMIT_TIMER_MSEC_INT_ARRAY =
8035 KEY_PREFIX + "retransmit_timer_sec_int_array";
8036
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008037 /**
8038 * Specifies the local identity type for IKE negotiations. Possible values are {@link
8039 * #ID_TYPE_FQDN}, {@link #ID_TYPE_RFC822_ADDR}, {@link #ID_TYPE_KEY_ID}
8040 */
8041 public static final String KEY_IKE_LOCAL_ID_TYPE_INT = KEY_PREFIX + "ike_local_id_type_int";
8042
8043 /**
8044 * Specifies the remote identity type for IKE negotiations. Possible values are {@link
8045 * #ID_TYPE_FQDN}, {@link #ID_TYPE_RFC822_ADDR}, {@link #ID_TYPE_KEY_ID}
8046 */
8047 public static final String KEY_IKE_REMOTE_ID_TYPE_INT =
8048 KEY_PREFIX + "ike_remote_id_type_int";
8049
8050 /** Controls if KE payload should be added during child session local rekey procedure. */
8051 public static final String KEY_ADD_KE_TO_CHILD_SESSION_REKEY_BOOL =
8052 KEY_PREFIX + "add_ke_to_child_session_rekey_bool";
8053
8054 /** Specifies the PCO id for IPv6 Epdg server address */
8055 public static final String KEY_EPDG_PCO_ID_IPV6_INT = KEY_PREFIX + "epdg_pco_id_ipv6_int";
8056
8057 /** Specifies the PCO id for IPv4 Epdg server address */
8058 public static final String KEY_EPDG_PCO_ID_IPV4_INT = KEY_PREFIX + "epdg_pco_id_ipv4_int";
8059
EdenSu8192e6a2022-01-22 02:58:06 +08008060 /** Controls if the IKE tunnel setup supports EAP-AKA fast reauth */
8061 public static final String KEY_SUPPORTS_EAP_AKA_FAST_REAUTH_BOOL =
8062 KEY_PREFIX + "supports_eap_aka_fast_reauth_bool";
8063
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008064 /** @hide */
8065 @IntDef({AUTHENTICATION_METHOD_EAP_ONLY, AUTHENTICATION_METHOD_CERT})
8066 public @interface AuthenticationMethodType {}
8067
8068 /**
8069 * Certificate sent from the server is ignored. Only Extensible Authentication Protocol
8070 * (EAP) is used to authenticate the server. EAP_ONLY_AUTH payload is added to IKE_AUTH
8071 * request if supported.
8072 *
8073 * @see <a href="https://tools.ietf.org/html/rfc5998">RFC 5998</a>
8074 */
8075 public static final int AUTHENTICATION_METHOD_EAP_ONLY = 0;
8076 /** Server is authenticated using its certificate. */
8077 public static final int AUTHENTICATION_METHOD_CERT = 1;
8078
8079 /** @hide */
8080 @IntDef({
8081 EPDG_ADDRESS_STATIC,
8082 EPDG_ADDRESS_PLMN,
8083 EPDG_ADDRESS_PCO,
EdenSu2fad1162022-01-05 17:32:50 +08008084 EPDG_ADDRESS_CELLULAR_LOC,
8085 EPDG_ADDRESS_VISITED_COUNTRY
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008086 })
8087 public @interface EpdgAddressType {}
8088
8089 /** Use static epdg address. */
8090 public static final int EPDG_ADDRESS_STATIC = 0;
8091 /** Construct the epdg address using plmn. */
8092 public static final int EPDG_ADDRESS_PLMN = 1;
8093 /**
8094 * Use the epdg address received in protocol configuration options (PCO) from the network.
8095 */
8096 public static final int EPDG_ADDRESS_PCO = 2;
8097 /** Use cellular location to chose epdg server */
8098 public static final int EPDG_ADDRESS_CELLULAR_LOC = 3;
EdenSu2fad1162022-01-05 17:32:50 +08008099 /* Use Visited Country FQDN rule*/
8100 public static final int EPDG_ADDRESS_VISITED_COUNTRY = 4;
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008101
8102 /** @hide */
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008103 @IntDef({ID_TYPE_FQDN, ID_TYPE_RFC822_ADDR, ID_TYPE_KEY_ID})
8104 public @interface IkeIdType {}
8105
8106 /**
8107 * Ike Identification Fully Qualified Domain Name
8108 *
8109 * @see <a href="https://tools.ietf.org/html/rfc7296#section-3.5">RFC 7296, Internet Key
8110 * Exchange Protocol Version 2 (IKEv2)</a>
8111 */
8112 public static final int ID_TYPE_FQDN = 2;
8113 /**
8114 * Ike Identification Fully Qualified RFC 822 email address.
8115 *
8116 * @see <a href="https://tools.ietf.org/html/rfc7296#section-3.5">RFC 7296, Internet Key
8117 * Exchange Protocol Version 2 (IKEv2)</a>
8118 */
8119 public static final int ID_TYPE_RFC822_ADDR = 3;
8120 /**
8121 * Ike Identification opaque octet stream for vendor specific information
8122 *
8123 * @see <a href="https://tools.ietf.org/html/rfc7296#section-3.5">RFC 7296, Internet Key
8124 * Exchange Protocol Version 2 (IKEv2)</a>
8125 */
8126 public static final int ID_TYPE_KEY_ID = 11;
8127
8128 private Iwlan() {}
8129
8130 private static PersistableBundle getDefaults() {
8131 PersistableBundle defaults = new PersistableBundle();
8132 defaults.putInt(KEY_IKE_REKEY_SOFT_TIMER_SEC_INT, 7200);
8133 defaults.putInt(KEY_IKE_REKEY_HARD_TIMER_SEC_INT, 14400);
8134 defaults.putInt(KEY_CHILD_SA_REKEY_SOFT_TIMER_SEC_INT, 3600);
8135 defaults.putInt(KEY_CHILD_SA_REKEY_HARD_TIMER_SEC_INT, 7200);
8136 defaults.putIntArray(
8137 KEY_RETRANSMIT_TIMER_MSEC_INT_ARRAY, new int[] {500, 1000, 2000, 4000, 8000});
8138 defaults.putInt(KEY_DPD_TIMER_SEC_INT, 120);
8139 defaults.putInt(KEY_MAX_RETRIES_INT, 3);
8140 defaults.putIntArray(
8141 KEY_DIFFIE_HELLMAN_GROUPS_INT_ARRAY,
8142 new int[] {
Naina Nallurid50baf12021-03-08 13:13:36 -08008143 SaProposal.DH_GROUP_1024_BIT_MODP,
8144 SaProposal.DH_GROUP_1536_BIT_MODP,
8145 SaProposal.DH_GROUP_2048_BIT_MODP
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008146 });
8147 defaults.putIntArray(
8148 KEY_SUPPORTED_IKE_SESSION_ENCRYPTION_ALGORITHMS_INT_ARRAY,
Naina Nallurid50baf12021-03-08 13:13:36 -08008149 new int[] {SaProposal.ENCRYPTION_ALGORITHM_AES_CBC});
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008150 defaults.putIntArray(
8151 KEY_SUPPORTED_CHILD_SESSION_ENCRYPTION_ALGORITHMS_INT_ARRAY,
Naina Nallurid50baf12021-03-08 13:13:36 -08008152 new int[] {SaProposal.ENCRYPTION_ALGORITHM_AES_CBC});
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008153 defaults.putIntArray(
8154 KEY_SUPPORTED_INTEGRITY_ALGORITHMS_INT_ARRAY,
8155 new int[] {
Naina Nallurid50baf12021-03-08 13:13:36 -08008156 SaProposal.INTEGRITY_ALGORITHM_AES_XCBC_96,
8157 SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96,
8158 SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_256_128,
8159 SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_384_192,
8160 SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_512_256,
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008161 });
8162 defaults.putIntArray(
8163 KEY_SUPPORTED_PRF_ALGORITHMS_INT_ARRAY,
8164 new int[] {
Naina Nallurid50baf12021-03-08 13:13:36 -08008165 SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1,
8166 SaProposal.PSEUDORANDOM_FUNCTION_AES128_XCBC,
8167 SaProposal.PSEUDORANDOM_FUNCTION_SHA2_256,
8168 SaProposal.PSEUDORANDOM_FUNCTION_SHA2_384,
8169 SaProposal.PSEUDORANDOM_FUNCTION_SHA2_512
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008170 });
8171
8172 defaults.putInt(KEY_EPDG_AUTHENTICATION_METHOD_INT, AUTHENTICATION_METHOD_EAP_ONLY);
8173 defaults.putString(KEY_EPDG_STATIC_ADDRESS_STRING, "");
8174 defaults.putString(KEY_EPDG_STATIC_ADDRESS_ROAMING_STRING, "");
8175 // will be used after b/158036773 is fixed
8176 defaults.putInt(KEY_NATT_KEEP_ALIVE_TIMER_SEC_INT, 20);
8177 defaults.putIntArray(
8178 KEY_IKE_SESSION_AES_CBC_KEY_SIZE_INT_ARRAY,
Naina Nallurid50baf12021-03-08 13:13:36 -08008179 new int[] {
8180 SaProposal.KEY_LEN_AES_128,
8181 SaProposal.KEY_LEN_AES_192,
8182 SaProposal.KEY_LEN_AES_256});
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008183 defaults.putIntArray(
8184 KEY_CHILD_SESSION_AES_CBC_KEY_SIZE_INT_ARRAY,
Naina Nallurid50baf12021-03-08 13:13:36 -08008185 new int[] {
8186 SaProposal.KEY_LEN_AES_128,
8187 SaProposal.KEY_LEN_AES_192,
8188 SaProposal.KEY_LEN_AES_256});
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008189 defaults.putIntArray(
8190 KEY_IKE_SESSION_AES_CTR_KEY_SIZE_INT_ARRAY,
Naina Nallurid50baf12021-03-08 13:13:36 -08008191 new int[] {
8192 SaProposal.KEY_LEN_AES_128,
8193 SaProposal.KEY_LEN_AES_192,
8194 SaProposal.KEY_LEN_AES_256});
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008195 defaults.putIntArray(
8196 KEY_CHILD_SESSION_AES_CTR_KEY_SIZE_INT_ARRAY,
Naina Nallurid50baf12021-03-08 13:13:36 -08008197 new int[] {
8198 SaProposal.KEY_LEN_AES_128,
8199 SaProposal.KEY_LEN_AES_192,
8200 SaProposal.KEY_LEN_AES_256});
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008201 defaults.putIntArray(
8202 KEY_EPDG_ADDRESS_PRIORITY_INT_ARRAY,
8203 new int[] {EPDG_ADDRESS_PLMN, EPDG_ADDRESS_STATIC});
8204 defaults.putStringArray(KEY_MCC_MNCS_STRING_ARRAY, new String[] {});
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008205 defaults.putInt(KEY_IKE_LOCAL_ID_TYPE_INT, ID_TYPE_RFC822_ADDR);
8206 defaults.putInt(KEY_IKE_REMOTE_ID_TYPE_INT, ID_TYPE_FQDN);
8207 defaults.putBoolean(KEY_ADD_KE_TO_CHILD_SESSION_REKEY_BOOL, false);
8208 defaults.putInt(KEY_EPDG_PCO_ID_IPV6_INT, 0);
8209 defaults.putInt(KEY_EPDG_PCO_ID_IPV4_INT, 0);
EdenSu8192e6a2022-01-22 02:58:06 +08008210 defaults.putBoolean(KEY_SUPPORTS_EAP_AKA_FAST_REAUTH_BOOL, false);
Naina Nalluria0cd83e2020-11-03 12:53:27 -08008211
8212 return defaults;
8213 }
8214 }
8215
8216 /**
andychoub80dbce2019-04-09 14:50:31 +08008217 * A list of 4 GSM RSSI thresholds above which a signal level is considered POOR,
8218 * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.
8219 *
8220 * Note that the min and max thresholds are fixed at -113 and -51, as set in 3GPP TS 27.007
8221 * section 8.5.
8222 * <p>
8223 * See CellSignalStrengthGsm#GSM_RSSI_MAX and CellSignalStrengthGsm#GSM_RSSI_MIN. Any signal
8224 * level outside these boundaries is considered invalid.
8225 * @hide
8226 */
8227 public static final String KEY_GSM_RSSI_THRESHOLDS_INT_ARRAY =
8228 "gsm_rssi_thresholds_int_array";
Nathan Harold773b0822019-03-12 15:51:42 -07008229
andychoudcc0dd22019-05-08 23:24:08 +08008230 /**
8231 * Determines whether Wireless Priority Service call is supported over IMS.
8232 *
8233 * See Wireless Priority Service from https://www.fcc.gov/general/wireless-priority-service-wps
8234 * @hide
8235 */
8236 public static final String KEY_SUPPORT_WPS_OVER_IMS_BOOL =
8237 "support_wps_over_ims_bool";
8238
Nazanin Bakhshi9ed96bd2019-08-02 16:43:44 -07008239 /**
James.cf Lin8da1b072020-02-27 18:37:17 +08008240 * The two digital number pattern of MMI code which is defined by carrier.
8241 * If the dial number matches this pattern, it will be dialed out normally not USSD.
8242 *
8243 * @hide
8244 */
8245 public static final String KEY_MMI_TWO_DIGIT_NUMBER_PATTERN_STRING_ARRAY =
8246 "mmi_two_digit_number_pattern_string_array";
8247
8248 /**
Franck Perez32bd38842021-01-28 11:06:26 -05008249 * Holds the list of carrier certificate hashes, followed by optional package names.
8250 * Format: "sha1/256" or "sha1/256:package1,package2,package3..."
8251 * Note that each carrier has its own hashes.
Nazanin Bakhshi9ed96bd2019-08-02 16:43:44 -07008252 */
8253 public static final String KEY_CARRIER_CERTIFICATE_STRING_ARRAY =
8254 "carrier_certificate_string_array";
8255
Saki Oomori63bb8562018-08-22 16:07:07 +09008256 /**
Nishizawa Nobuhiroe8e1ed62019-12-13 18:09:39 +09008257 * Flag specifying whether the incoming call number should be formatted to national number
8258 * for Japan. @return {@code true} convert to the national format, {@code false} otherwise.
8259 * e.g. "+819012345678" -> "09012345678"
8260 * @hide
8261 */
8262 public static final String KEY_FORMAT_INCOMING_NUMBER_TO_NATIONAL_FOR_JP_BOOL =
8263 "format_incoming_number_to_national_for_jp_bool";
8264
8265 /**
Saki Oomori63bb8562018-08-22 16:07:07 +09008266 * DisconnectCause array to play busy tone. Value should be array of
8267 * {@link android.telephony.DisconnectCause}.
8268 */
8269 public static final String KEY_DISCONNECT_CAUSE_PLAY_BUSYTONE_INT_ARRAY =
8270 "disconnect_cause_play_busytone_int_array";
8271
Hideki Ishiide2688e2018-09-27 17:26:21 +09008272 /**
8273 * Flag specifying whether to prevent sending CLIR activation("*31#") and deactivation("#31#")
8274 * code only without dialing number.
8275 * When {@code true}, these are prevented, {@code false} otherwise.
8276 */
8277 public static final String KEY_PREVENT_CLIR_ACTIVATION_AND_DEACTIVATION_CODE_BOOL =
8278 "prevent_clir_activation_and_deactivation_code_bool";
8279
Dheeraj Shetty81a4f4e2020-01-15 16:30:18 -08008280 /**
Shinsuke Ishioka5ee45892018-08-30 13:33:30 +09008281 * Flag specifying whether to show forwarded number on call-in-progress screen.
8282 * When true, forwarded number is shown.
8283 * When false, forwarded number is not shown.
8284 */
8285 public static final String KEY_SHOW_FORWARDED_NUMBER_BOOL =
8286 "show_forwarded_number_bool";
8287
Jack Yu1e1ff942019-12-23 15:19:56 -08008288 /**
8289 * The list of originating address of missed incoming call SMS. If the SMS has originator
8290 * matched, the SMS will be treated as special SMS for notifying missed incoming call to the
8291 * user.
8292 *
8293 * @hide
8294 */
8295 public static final String KEY_MISSED_INCOMING_CALL_SMS_ORIGINATOR_STRING_ARRAY =
8296 "missed_incoming_call_sms_originator_string_array";
8297
Daniel Brightdcc3c0a2020-03-24 14:53:59 -07008298
8299 /**
8300 * String array of Apn Type configurations.
8301 * The entries should be of form "APN_TYPE_NAME:priority".
8302 * priority is an integer that is sorted from highest to lowest.
8303 * example: cbs:5
8304 *
8305 * @hide
8306 */
8307 public static final String KEY_APN_PRIORITY_STRING_ARRAY = "apn_priority_string_array";
8308
Jack Yu1e1ff942019-12-23 15:19:56 -08008309 /**
Jack Yucc516a82021-11-20 13:15:59 -08008310 * Network capability priority for determine the satisfy order in telephony. The priority is
8311 * from the lowest 0 to the highest 100. The long-lived network shall have the lowest priority.
8312 * This allows other short-lived requests like MMS requests to be established. Emergency request
8313 * always has the highest priority.
Jack Yu98819652021-10-01 02:50:46 -07008314 *
Jack Yu98819652021-10-01 02:50:46 -07008315 * @hide
8316 */
8317 public static final String KEY_TELEPHONY_NETWORK_CAPABILITY_PRIORITIES_STRING_ARRAY =
8318 "telephony_network_capability_priorities_string_array";
Jack Yu07844fb2021-10-07 01:12:15 -07008319
8320 /**
Jack Yu24e84522021-12-16 11:17:42 -08008321 * Defines the rules for data setup retry.
Jack Yu07844fb2021-10-07 01:12:15 -07008322 *
8323 * The syntax of the retry rule:
Jack Yucc516a82021-11-20 13:15:59 -08008324 * 1. Retry based on {@link NetworkCapabilities}. Note that only APN-type network capabilities
Jack Yu27194752022-10-20 23:24:09 -07008325 * are supported. If the capabilities are not specified, then the retry rule only applies
8326 * to the current failed APN used in setup data call request.
Jack Yucc516a82021-11-20 13:15:59 -08008327 * "capabilities=[netCaps1|netCaps2|...], [retry_interval=n1|n2|n3|n4...], [maximum_retries=n]"
Jack Yu07844fb2021-10-07 01:12:15 -07008328 *
8329 * 2. Retry based on {@link DataFailCause}
Jack Yucc516a82021-11-20 13:15:59 -08008330 * "fail_causes=[cause1|cause2|cause3|..], [retry_interval=n1|n2|n3|n4...], [maximum_retries=n]"
Jack Yu07844fb2021-10-07 01:12:15 -07008331 *
Jack Yucc516a82021-11-20 13:15:59 -08008332 * 3. Retry based on {@link NetworkCapabilities} and {@link DataFailCause}. Note that only
8333 * APN-type network capabilities are supported.
Jack Yu07844fb2021-10-07 01:12:15 -07008334 * "capabilities=[netCaps1|netCaps2|...], fail_causes=[cause1|cause2|cause3|...],
Jack Yucc516a82021-11-20 13:15:59 -08008335 * [retry_interval=n1|n2|n3|n4...], [maximum_retries=n]"
Jack Yu07844fb2021-10-07 01:12:15 -07008336 *
Jack Yu27194752022-10-20 23:24:09 -07008337 * 4. Permanent fail causes (no timer-based retry) on the current failed APN. Retry interval
8338 * is specified for retrying the next available APN.
8339 * "permanent_fail_causes=8|27|28|29|30|32|33|35|50|51|111|-5|-6|65537|65538|-3|65543|65547|
8340 * 2252|2253|2254, retry_interval=2500"
8341 *
Jack Yu07844fb2021-10-07 01:12:15 -07008342 * For example,
8343 * "capabilities=eims, retry_interval=1000, maximum_retries=20" means if the attached
8344 * network request is emergency, then retry data network setup every 1 second for up to 20
8345 * times.
8346 *
Jack Yucc516a82021-11-20 13:15:59 -08008347 * "capabilities=internet|enterprise|dun|ims|fota, retry_interval=2500|3000|"
8348 * "5000|10000|15000|20000|40000|60000|120000|240000|600000|1200000|1800000"
8349 * "1800000, maximum_retries=20" means for those capabilities, retry happens in 2.5s, 3s, 5s,
8350 * 10s, 15s, 20s, 40s, 1m, 2m, 4m, 10m, 20m, 30m, 30m, 30m, until reaching 20 retries.
Jack Yu07844fb2021-10-07 01:12:15 -07008351 *
8352 * // TODO: remove KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS
8353 * @hide
8354 */
Jack Yu24e84522021-12-16 11:17:42 -08008355 public static final String KEY_TELEPHONY_DATA_SETUP_RETRY_RULES_STRING_ARRAY =
8356 "telephony_data_setup_retry_rules_string_array";
8357
8358 /**
8359 * Defines the rules for data handover retry.
8360 *
8361 * The syntax of the retry rule:
8362 * 1. Retry when handover fails.
8363 * "retry_interval=[n1|n2|n3|...], [maximum_retries=n]"
8364 *
8365 * For example,
8366 * "retry_interval=1000|3000|5000, maximum_retries=10" means handover retry will happen in 1s,
8367 * 3s, 5s, 5s, 5s....up to 10 times.
8368 *
8369 * 2. Retry when handover fails with certain fail causes.
8370 * "retry_interval=[n1|n2|n3|...], fail_causes=[cause1|cause2|cause3|...], [maximum_retries=n]
8371 *
8372 * For example,
8373 * "retry_interval=1000, maximum_retries=3, fail_causes=5" means handover retry every 1 second
8374 * for up to 3 times when handover fails with the cause 5.
8375 *
8376 * "maximum_retries=0, fail_causes=6|10|67" means handover retry should not happen for those
8377 * causes.
8378 *
8379 * @hide
8380 */
8381 public static final String KEY_TELEPHONY_DATA_HANDOVER_RETRY_RULES_STRING_ARRAY =
8382 "telephony_data_handover_retry_rules_string_array";
Jack Yu07844fb2021-10-07 01:12:15 -07008383
Jack Yu98819652021-10-01 02:50:46 -07008384 /**
Jack Yud4294152022-02-13 01:37:30 -08008385 * Indicates whether delay tearing down IMS data network until voice call ends.
8386 * @hide
8387 */
8388 public static final String KEY_DELAY_IMS_TEAR_DOWN_UNTIL_CALL_END_BOOL =
8389 "delay_ims_tear_down_until_call_end_bool";
8390
8391 /**
Jack Yu1e1ff942019-12-23 15:19:56 -08008392 * The patterns of missed incoming call sms. This is the regular expression used for
8393 * matching the missed incoming call's date, time, and caller id. The pattern should match
8394 * fields for at least month, day, hour, and minute. Year is optional although it is encouraged.
8395 *
8396 * An usable pattern should look like this:
8397 * ^(?<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]):
8398 * (?<minute>[0-5][0-9])\s*(?<callerId>[0-9]+)\s*$
8399 *
8400 * @hide
8401 */
8402 public static final String KEY_MISSED_INCOMING_CALL_SMS_PATTERN_STRING_ARRAY =
8403 "missed_incoming_call_sms_pattern_string_array";
8404
Jack Yudb897af2020-06-24 12:43:31 -07008405 /**
8406 * Indicating whether DUN APN should be disabled when the device is roaming. In that case,
8407 * the default APN (i.e. internet) will be used for tethering.
8408 *
Masaho Nishikawa115e0282020-01-30 11:46:22 +09008409 * This config is only available when using Preset APN(not user edited) as Preferred APN.
8410 *
Jack Yudb897af2020-06-24 12:43:31 -07008411 * @hide
8412 */
Masaho Nishikawa115e0282020-01-30 11:46:22 +09008413 public static final String KEY_DISABLE_DUN_APN_WHILE_ROAMING_WITH_PRESET_APN_BOOL =
8414 "disable_dun_apn_while_roaming_with_preset_apn_bool";
8415
8416 /**
8417 * Where there is no preferred APN, specifies the carrier's default preferred APN.
8418 * Specifies the {@link android.provider.Telephony.Carriers.APN} of the default preferred apn.
8419 *
8420 * This config is only available with Preset APN(not user edited).
8421 *
8422 * @hide
8423 */
8424 public static final String KEY_DEFAULT_PREFERRED_APN_NAME_STRING =
8425 "default_preferred_apn_name_string";
Jack Yudb897af2020-06-24 12:43:31 -07008426
Sarah Chindc7260a2020-08-06 17:37:40 -07008427 /**
Shuo Qian13690012020-11-30 22:34:42 -08008428 * Indicates if the carrier supports call composer.
8429 */
8430 public static final String KEY_SUPPORTS_CALL_COMPOSER_BOOL = "supports_call_composer_bool";
8431
8432 /**
8433 * Indicates the carrier server url that serves the call composer picture.
8434 */
8435 public static final String KEY_CALL_COMPOSER_PICTURE_SERVER_URL_STRING =
8436 "call_composer_picture_server_url_string";
8437
8438 /**
Sonalika Paulefa0fa92020-08-25 15:11:02 +05308439 * Determines the default RTT mode.
8440 *
8441 * Upon first boot, when the user has not yet set a value for their preferred RTT mode,
8442 * the value of this config will be sent to the IMS stack. Valid values are the same as for
8443 * {@link Settings.Secure#RTT_CALLING_MODE}.
8444 *
8445 * @hide
8446 */
8447 public static final String KEY_DEFAULT_RTT_MODE_INT =
8448 "default_rtt_mode_int";
8449
8450 /**
Hall Liud20b2a02021-01-22 16:06:50 -08008451 * Indicates whether RTT is supported while roaming.
8452 */
8453 public static final String KEY_RTT_SUPPORTED_WHILE_ROAMING_BOOL =
Hall Liu7a180702021-01-26 10:51:11 -08008454 "rtt_supported_while_roaming_bool";
Hall Liud20b2a02021-01-22 16:06:50 -08008455
8456 /**
Hui Wangb8ea95e2020-10-31 05:09:59 +00008457 * Indicates if auto-configuration server is used for the RCS config
8458 * Reference: GSMA RCC.14
8459 */
8460 public static final String KEY_USE_ACS_FOR_RCS_BOOL = "use_acs_for_rcs_bool";
8461
Jack Yu4f80a3b2021-01-15 10:19:38 -08008462 /**
8463 * Indicates temporarily unmetered mobile data is supported by the carrier.
8464 * @hide
8465 */
8466 public static final String KEY_NETWORK_TEMP_NOT_METERED_SUPPORTED_BOOL =
8467 "network_temp_not_metered_supported_bool";
8468
Jack Yu08439bf2021-02-17 23:37:42 -08008469 /**
Michele Berionne726fa0a2020-11-19 22:46:42 +00008470 * Boolean indicating whether the SIM PIN can be stored and verified
8471 * seamlessly after an unattended reboot.
8472 *
8473 * The device configuration value {@code config_allow_pin_storage_for_unattended_reboot}
8474 * ultimately controls whether this carrier configuration option is used. Where
8475 * {@code config_allow_pin_storage_for_unattended_reboot} is false, the value of the
8476 * {@link #KEY_STORE_SIM_PIN_FOR_UNATTENDED_REBOOT_BOOL} carrier configuration option is
8477 * ignored.
8478 *
8479 * @hide
8480 */
8481 public static final String KEY_STORE_SIM_PIN_FOR_UNATTENDED_REBOOT_BOOL =
8482 "store_sim_pin_for_unattended_reboot_bool";
8483
Jack Yu0bebba72021-02-17 14:08:42 -08008484 /**
Yomna Nasser7202a662022-02-09 23:14:54 +00008485 * Allow whether the user can use the "Allow 2G" toggle in Settings.
8486 *
8487 * If {@code true} then the toggle is disabled (i.e. grayed out).
Yomna Nasser8fa54b72021-01-18 22:00:55 +00008488 *
8489 * Used to trade privacy/security against potentially reduced carrier coverage for some
8490 * carriers.
8491 */
8492 public static final String KEY_HIDE_ENABLE_2G = "hide_enable_2g_bool";
8493
Jack Yu0bebba72021-02-17 14:08:42 -08008494 /**
8495 * Indicates the allowed APN types that can be used for LTE initial attach. The order of APN
8496 * types in the configuration is the order of APN types that will be used for initial attach.
8497 * Empty list indicates that no APN types are allowed for initial attach.
8498 *
8499 * @hide
8500 */
8501 public static final String KEY_ALLOWED_INITIAL_ATTACH_APN_TYPES_STRING_ARRAY =
8502 "allowed_initial_attach_apn_types_string_array";
8503
Etan Cohen65e16152021-03-13 08:31:28 +00008504 /**
8505 * Indicates whether or not the carrier will provision merged carrier Wi-Fi offload networks.
8506 * Such networks are considered part of the core carrier network.
8507 *
8508 * This configuration will be use to gate whether such configurations are allowed to the carrier
8509 * and correspondingly enable UI elements which are required for such configurations.
8510 */
8511 public static final String KEY_CARRIER_PROVISIONS_WIFI_MERGED_NETWORKS_BOOL =
8512 "carrier_provisions_wifi_merged_networks_bool";
8513
Etan Cohen4fd62972021-03-21 23:37:16 +00008514 /**
8515 * Determines whether or not to use (IP) data connectivity as a supplemental condition to
8516 * control the visibility of the no-calling indicator for this carrier in the System UI. Setting
Etan Cohenf6466c12021-04-06 01:21:13 +00008517 * the configuration to true may make sense for carriers that provide OTT calling.
Etan Cohen4fd62972021-03-21 23:37:16 +00008518 *
Etan Cohenf6466c12021-04-06 01:21:13 +00008519 * Config = true: show no-calling indication only if telephony does not have voice registration
8520 * and if no (IP) data connectivity is available.
8521 * Config = false: show no-calling indication only if telephony does not have voice
8522 * registration.
Etan Cohen4fd62972021-03-21 23:37:16 +00008523 */
Etan Cohenf6466c12021-04-06 01:21:13 +00008524 public static final String KEY_USE_IP_FOR_CALLING_INDICATOR_BOOL =
8525 "use_ip_for_calling_indicator_bool";
Etan Cohen4fd62972021-03-21 23:37:16 +00008526
Etan Cohen7573d7e2021-03-21 23:49:18 +00008527 /**
8528 * Determine whether or not to display a call strength indicator for this carrier in the System
8529 * UI. Disabling the indication may be reasonable if the carrier's calling is not integrated
8530 * into the Android telephony stack (e.g. it is OTT).
8531 *
8532 * true: Use telephony APIs to detect the current networking medium of calling and display a
8533 * UI indication based on the current strength (e.g. signal level) of that medium.
8534 * false: Do not display the call strength indicator.
8535 */
8536 public static final String KEY_DISPLAY_CALL_STRENGTH_INDICATOR_BOOL =
8537 "display_call_strength_indicator_bool";
8538
Jack Yu5badb092021-03-29 11:07:55 -07008539 /**
8540 * Determine whether or not to display no data notification when data setup is permanently
8541 * failed.
8542 *
8543 * @hide
8544 */
8545 public static final String KEY_DISPLAY_NO_DATA_NOTIFICATION_ON_PERMANENT_FAILURE_BOOL =
8546 "display_no_data_notification_on_permanent_failure_bool";
8547
Jack Yuc8cf1b02021-04-20 13:29:54 -07008548 /**
Sooraj Sasindran5dbec202021-06-15 14:49:12 -07008549 * Boolean indicating if the VoNR setting is visible in the Call Settings menu.
8550 * If true, the VoNR setting menu will be visible. If false, the menu will be gone.
8551 *
8552 * Disabled by default.
8553 *
8554 * @hide
8555 */
8556 public static final String KEY_VONR_SETTING_VISIBILITY_BOOL = "vonr_setting_visibility_bool";
8557
8558 /**
Gary Jian204ec2a2021-10-13 13:09:54 +08008559 * Flag specifying whether VoNR should be enabled for carrier.
8560 * If true, VoNr will be enabled. If false, hard disabled.
8561 *
8562 * Disabled by default.
8563 *
8564 * @hide
8565 */
8566 public static final String KEY_VONR_ENABLED_BOOL = "vonr_enabled_bool";
8567
8568 /**
Gary Jiane0b54bb2022-11-08 08:00:10 +00008569 * Boolean indicating the default VoNR user preference setting.
8570 * If true, the VoNR setting will be enabled. If false, it will be disabled initially.
8571 *
8572 * Enabled by default.
8573 *
8574 * @hide
8575 */
8576 public static final String KEY_VONR_ON_BY_DEFAULT_BOOL = "vonr_on_by_default_bool";
8577
8578 /**
Jack Yuc8cf1b02021-04-20 13:29:54 -07008579 * Determine whether unthrottle data retry when tracking area code (TAC/LAC) from cell changes
8580 *
8581 * @hide
8582 */
8583 public static final String KEY_UNTHROTTLE_DATA_RETRY_WHEN_TAC_CHANGES_BOOL =
8584 "unthrottle_data_retry_when_tac_changes_bool";
8585
Jack Yufd33d542021-12-12 13:34:53 -08008586 /**
8587 * IWLAN handover rules that determine whether handover is allowed or disallowed between
8588 * cellular and IWLAN.
8589 *
Sarah Chind9ac485b2022-06-01 17:08:53 -07008590 * Rule syntax: "source=[GERAN|UTRAN|EUTRAN|NGRAN|IWLAN|UNKNOWN], target=[GERAN|UTRAN|EUTRAN
8591 * |NGRAN|IWLAN], type=[allowed|disallowed], roaming=[true|false], capabilities=[INTERNET|MMS
8592 * |FOTA|IMS|CBS|SUPL|EIMS|XCAP|DUN]"
8593 *
8594 * Note that UNKNOWN can be only specified in the source access network and can be only used
8595 * in the disallowed rule.
8596 *
Jack Yufd33d542021-12-12 13:34:53 -08008597 * The handover rules will be matched in the order. Here are some sample rules.
8598 * <string-array name="iwlan_handover_rules" num="5">
8599 * <!-- Handover from IWLAN to 2G/3G is not allowed -->
8600 * <item value="source=IWLAN, target=GERAN|UTRAN, type=disallowed"/>
8601 * <!-- Handover from 2G/3G to IWLAN is not allowed -->
8602 * <item value="source=GERAN|UTRAN, target:IWLAN, type=disallowed"/>
8603 * <!-- Handover from IWLAN to 3G/4G/5G is not allowed if the device is roaming. -->
8604 * <item value="source=IWLAN, target=UTRAN|EUTRAN|NGRAN, roaming=true, type=disallowed"/>
Ling Ma4fcecfd2022-03-09 18:38:50 -08008605 * <!-- Handover from 4G to IWLAN is not allowed if the device has capability in either IMS
8606 * or EIMS-->
8607 * <item value="source=EUTRAN, target=IWLAN, type=disallowed, capabilities=IMS|EIMS"/>
Jack Yufd33d542021-12-12 13:34:53 -08008608 * <!-- Handover is always allowed in any condition. -->
8609 * <item value="source=GERAN|UTRAN|EUTRAN|NGRAN|IWLAN,
8610 * target=GERAN|UTRAN|EUTRAN|NGRAN|IWLAN, type=allowed"/>
8611 * </string-array>
8612 *
8613 * When handover is not allowed, frameworks will tear down the data network on source transport,
8614 * and then setup a new one on the target transport when Qualified Network Service changes the
8615 * preferred access networks for particular APN types.
8616 *
8617 * @hide
8618 */
8619 public static final String KEY_IWLAN_HANDOVER_POLICY_STRING_ARRAY =
8620 "iwlan_handover_policy_string_array";
8621
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08008622 /** The default value for every variable. */
Jonathan Basseri4f9ad1672015-05-12 10:06:32 -07008623 private final static PersistableBundle sDefaults;
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08008624
8625 static {
Jonathan Basseri4f9ad1672015-05-12 10:06:32 -07008626 sDefaults = new PersistableBundle();
Michele Berionne8ac8bd22018-12-05 11:05:33 -08008627 sDefaults.putString(KEY_CARRIER_CONFIG_VERSION_STRING, "");
Brad Ebingerc8601012016-07-19 14:09:23 -07008628 sDefaults.putBoolean(KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL, true);
Pooja Jaind34698d2017-12-28 14:15:31 +05308629 sDefaults.putBoolean(KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL, false);
Ravi Palurif4b38e72020-02-05 12:35:41 +05308630 sDefaults.putBoolean(KEY_CARRIER_ALLOW_TRANSFER_IMS_CALL_BOOL, false);
Tyler Gunn30889422017-11-28 09:04:31 -08008631 sDefaults.putBoolean(KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL, false);
Hall Liuf31f3852018-07-25 18:48:55 -07008632 sDefaults.putBoolean(KEY_AUTO_RETRY_FAILED_WIFI_EMERGENCY_CALL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008633 sDefaults.putBoolean(KEY_ADDITIONAL_CALL_SETTING_BOOL, true);
8634 sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL, false);
Hall Liue6e6ec42018-08-03 18:25:24 -07008635 sDefaults.putStringArray(KEY_UNLOGGABLE_NUMBERS_STRING_ARRAY, null);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008636 sDefaults.putBoolean(KEY_ALLOW_LOCAL_DTMF_TONES_BOOL, true);
Tyler Gunnacdb6862018-01-29 14:30:52 -08008637 sDefaults.putBoolean(KEY_PLAY_CALL_RECORDING_TONE_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008638 sDefaults.putBoolean(KEY_APN_EXPAND_BOOL, true);
8639 sDefaults.putBoolean(KEY_AUTO_RETRY_ENABLED_BOOL, false);
8640 sDefaults.putBoolean(KEY_CARRIER_SETTINGS_ENABLE_BOOL, false);
8641 sDefaults.putBoolean(KEY_CARRIER_VOLTE_AVAILABLE_BOOL, false);
Junda Liue5c7ca72015-06-24 14:41:14 -07008642 sDefaults.putBoolean(KEY_CARRIER_VT_AVAILABLE_BOOL, false);
gwenline7145b42020-09-18 11:09:20 -04008643 sDefaults.putInt(KEY_CARRIER_USSD_METHOD_INT, USSD_OVER_CS_PREFERRED);
SongFerngWang27b6a582020-04-10 15:07:09 +08008644 sDefaults.putBoolean(KEY_VOLTE_5G_LIMITED_ALERT_DIALOG_BOOL, false);
Tyler Gunn481255d2016-08-16 16:04:48 -07008645 sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL, false);
Hall Liuef800082019-07-29 16:18:30 -07008646 sDefaults.putBoolean(KEY_ALLOW_MERGING_RTT_CALLS_BOOL, false);
Tyler Gunn5ce0d3a2017-12-14 14:06:15 -08008647 sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL, false);
Tyler Gunn86d5c3f2016-08-12 14:14:13 -07008648 sDefaults.putBoolean(KEY_SUPPORT_DOWNGRADE_VT_TO_AUDIO_BOOL, true);
Jordan Liu3ff30d22016-09-01 13:25:13 -07008649 sDefaults.putString(KEY_DEFAULT_VM_NUMBER_STRING, "");
SongFerngWang310f6d02018-03-23 15:07:05 +08008650 sDefaults.putString(KEY_DEFAULT_VM_NUMBER_ROAMING_STRING, "");
Saki Oomori0dd2dfb2018-09-11 15:44:25 +09008651 sDefaults.putString(KEY_DEFAULT_VM_NUMBER_ROAMING_AND_IMS_UNREGISTERED_STRING, "");
Cassie4c6f72c2017-10-10 14:33:38 -07008652 sDefaults.putBoolean(KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL, false);
Tyler Gunn9a961f52017-08-17 15:58:47 -07008653 sDefaults.putBoolean(KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS, true);
8654 sDefaults.putBoolean(KEY_VILTE_DATA_IS_METERED_BOOL, true);
Junda Liue4786492015-06-15 13:15:28 -07008655 sDefaults.putBoolean(KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL, false);
Sooraj Sasindran83ff8ad2020-11-23 23:42:51 -08008656 sDefaults.putBoolean(KEY_CARRIER_CROSS_SIM_IMS_AVAILABLE_BOOL, false);
yawensu5cc57b62021-09-07 13:58:42 +08008657 sDefaults.putBoolean(KEY_ENABLE_CROSS_SIM_CALLING_ON_OPPORTUNISTIC_DATA_BOOL, false);
fionaxudcf5c2b2016-05-12 13:40:05 -07008658 sDefaults.putBoolean(KEY_CARRIER_WFC_SUPPORTS_WIFI_ONLY_BOOL, false);
fionaxuc71e8242016-03-08 11:46:55 -08008659 sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL, false);
8660 sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL, false);
Tyler Gunnc3e6c932016-07-07 10:11:14 -07008661 sDefaults.putBoolean(KEY_CARRIER_PROMOTE_WFC_ON_CALL_FAIL_BOOL, false);
fionaxuc71e8242016-03-08 11:46:55 -08008662 sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT, 2);
Meng Wang2c25e4a2016-09-19 14:18:05 -07008663 sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT, 2);
Jack Yua4f2da32015-07-22 13:36:42 -07008664 sDefaults.putBoolean(KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL, false);
allenwtsuc2524a42020-01-03 18:18:11 +08008665 sDefaults.putBoolean(KEY_CARRIER_RCS_PROVISIONING_REQUIRED_BOOL, true);
Junda Liue5c7ca72015-06-24 14:41:14 -07008666 sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL, false);
Brad Ebingerb3f46322019-01-14 13:46:05 -08008667 sDefaults.putBoolean(KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL, false);
Brad Ebingerbb9446d2019-03-27 09:46:56 -07008668 sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL, false);
Meng Wang05062992017-02-14 21:55:09 -08008669 sDefaults.putBoolean(KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL, false);
Pankaj Kanwar9a7abe62018-03-21 20:20:06 +00008670 sDefaults.putBoolean(KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL, true);
donaldahn3486c1d2022-02-24 05:21:28 +00008671 sDefaults.putBoolean(KEY_CARRIER_VOWIFI_TTY_SUPPORTED_BOOL, true);
Junda Liue5c7ca72015-06-24 14:41:14 -07008672 sDefaults.putBoolean(KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL, true);
Pavel Zhamaitsiakb4faf342015-10-16 16:39:00 -07008673 sDefaults.putBoolean(KEY_CARRIER_IMS_GBA_REQUIRED_BOOL, false);
Tyler Gunnac2aefc2015-07-31 15:34:46 -07008674 sDefaults.putBoolean(KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL, false);
Etan Cohencd811f02015-08-18 11:11:29 -07008675 sDefaults.putBoolean(KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL, true);
Tyler Gunn11dd6452021-10-27 14:24:49 -07008676 sDefaults.putBoolean(KEY_USE_ONLY_DIALED_SIM_ECC_LIST_BOOL, false);
Malcolm Chenec102212018-01-29 15:10:46 -08008677 sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "");
8678 sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "");
Jack Yu4d21a402018-08-27 16:59:05 -07008679 sDefaults.putString(KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_PACKAGE_OVERRIDE_STRING, "");
Jack Yufcbda452018-02-01 14:50:53 -08008680 sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "");
8681 sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "");
Tyler Gunneb5fcb92015-09-04 13:16:37 -07008682 sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING, "");
Tyler Gunn14be4cf2015-09-10 13:33:28 -07008683 sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ESCAPED_CHARS_STRING, "");
Tyler Gunndb3da5c2015-09-21 22:11:30 -07008684 sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING, "");
8685 sDefaults.putInt(KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT, 64);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008686 sDefaults.putBoolean(KEY_DISABLE_CDMA_ACTIVATION_CODE_BOOL, false);
8687 sDefaults.putBoolean(KEY_DTMF_TYPE_ENABLED_BOOL, false);
8688 sDefaults.putBoolean(KEY_ENABLE_DIALER_KEY_VIBRATION_BOOL, true);
8689 sDefaults.putBoolean(KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL, false);
8690 sDefaults.putBoolean(KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL, false);
Mattias Nilssonef874162017-12-11 13:45:40 +01008691 sDefaults.putBoolean(KEY_ONLY_AUTO_SELECT_IN_HOME_NETWORK_BOOL, false);
Qiong Liu3a996222017-12-07 14:13:50 +08008692 sDefaults.putBoolean(KEY_SHOW_SINGLE_OPERATOR_ROW_IN_CHOOSE_NETWORK_SETTING_BOOL, true);
8693 sDefaults.putBoolean(KEY_SHOW_SPN_FOR_HOME_IN_CHOOSE_NETWORK_SETTING_BOOL, false);
Joe LaPenna2b22ae32016-12-07 16:27:24 -08008694 sDefaults.putBoolean(KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL, false);
Junda Liue15cca72015-06-17 09:55:57 -07008695 sDefaults.putBoolean(KEY_HIDE_SIM_LOCK_SETTINGS_BOOL, false);
Jordan Liuc82d1132016-10-03 11:35:33 -07008696
8697 sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONED_BOOL, false);
Wenting Xiongd5853682016-08-12 18:28:37 +08008698 sDefaults.putBoolean(KEY_CALL_BARRING_VISIBILITY_BOOL, false);
Brad Ebinger0819bac2018-08-29 16:08:29 -07008699 sDefaults.putBoolean(KEY_CALL_BARRING_SUPPORTS_PASSWORD_CHANGE_BOOL, true);
8700 sDefaults.putBoolean(KEY_CALL_BARRING_SUPPORTS_DEACTIVATE_ALL_BOOL, true);
Kikkawa Shohei03a14712020-08-07 17:44:40 +09008701 sDefaults.putInt(KEY_CALL_BARRING_DEFAULT_SERVICE_CLASS_INT, SERVICE_CLASS_VOICE);
Brad Ebinger783f66f2021-07-15 16:09:56 -07008702 sDefaults.putBoolean(KEY_SUPPORT_SS_OVER_CDMA_BOOL, false);
SongFerngWang06057162018-06-28 17:28:22 +08008703 sDefaults.putBoolean(KEY_CALL_FORWARDING_VISIBILITY_BOOL, true);
Shu Wang6edfc5a2018-09-13 15:36:30 +02008704 sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_UNREACHABLE_SUPPORTED_BOOL, true);
allenwtsu6206afc2020-05-19 21:37:50 +08008705 sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_UNANSWERED_SUPPORTED_BOOL, true);
8706 sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_BUSY_SUPPORTED_BOOL, true);
SongFerngWang06057162018-06-28 17:28:22 +08008707 sDefaults.putBoolean(KEY_ADDITIONAL_SETTINGS_CALLER_ID_VISIBILITY_BOOL, true);
8708 sDefaults.putBoolean(KEY_ADDITIONAL_SETTINGS_CALL_WAITING_VISIBILITY_BOOL, true);
SongFerngWang08972c52019-11-25 22:44:12 +08008709 sDefaults.putBoolean(KEY_DISABLE_SUPPLEMENTARY_SERVICES_IN_AIRPLANE_MODE_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008710 sDefaults.putBoolean(KEY_IGNORE_SIM_NETWORK_LOCKED_EVENTS_BOOL, false);
Jordan Liube45b8c2016-11-09 13:23:42 -08008711 sDefaults.putBoolean(KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008712 sDefaults.putBoolean(KEY_OPERATOR_SELECTION_EXPAND_BOOL, true);
Yomna Nasserd3db44f2022-03-09 22:04:54 +00008713 sDefaults.putBoolean(KEY_PREFER_2G_BOOL, false);
Sooraj Sasindranb19264b2021-04-12 16:22:52 -07008714 sDefaults.putBoolean(KEY_4G_ONLY_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008715 sDefaults.putBoolean(KEY_SHOW_APN_SETTING_CDMA_BOOL, false);
8716 sDefaults.putBoolean(KEY_SHOW_CDMA_CHOICES_BOOL, false);
Jordan Liu5ac6f5c2016-10-03 12:28:27 -07008717 sDefaults.putBoolean(KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL, false);
Avinash Nalluriceaf7222018-04-21 14:06:06 -07008718 sDefaults.putBoolean(KEY_SUPPORT_EMERGENCY_SMS_OVER_IMS_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008719 sDefaults.putBoolean(KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL, true);
8720 sDefaults.putBoolean(KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL, true);
Omkar Kolangade2e8f8fe2015-12-22 21:07:04 +05308721 sDefaults.putBoolean(KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008722 sDefaults.putBoolean(KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL, true);
8723 sDefaults.putBoolean(KEY_USE_HFA_FOR_PROVISIONING_BOOL, false);
manabu, shimoda1de99d12017-10-20 17:16:06 +09008724 sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_SETTING_BOOL, true);
Jordan Liu4a546382016-09-08 12:45:58 -07008725 sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008726 sDefaults.putBoolean(KEY_USE_OTASP_FOR_PROVISIONING_BOOL, false);
8727 sDefaults.putBoolean(KEY_VOICEMAIL_NOTIFICATION_PERSISTENT_BOOL, false);
Jonathan Basseri3360c262015-06-09 15:16:21 -07008728 sDefaults.putBoolean(KEY_VOICE_PRIVACY_DISABLE_UI_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008729 sDefaults.putBoolean(KEY_WORLD_PHONE_BOOL, false);
Chris Manton1ba0fa02015-09-01 13:56:46 -07008730 sDefaults.putBoolean(KEY_REQUIRE_ENTITLEMENT_CHECKS_BOOL, true);
Meng Wang5b6f5532022-02-01 18:27:26 +00008731 sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_TETHERING_BOOL, true);
Jordan Liua5a8b592016-09-12 10:57:27 -07008732 sDefaults.putBoolean(KEY_RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION_BOOL, false);
Jack Yu3399f362018-08-21 16:57:36 -07008733 sDefaults.putIntArray(KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY, new int[]{});
Jonathan Basseri69822f02015-06-04 13:48:08 -07008734 sDefaults.putInt(KEY_VOLTE_REPLACEMENT_RAT_INT, 0);
Junda Liue4786492015-06-15 13:15:28 -07008735 sDefaults.putString(KEY_DEFAULT_SIM_CALL_MANAGER_STRING, "");
Jonathan Basseri69822f02015-06-04 13:48:08 -07008736 sDefaults.putString(KEY_VVM_DESTINATION_NUMBER_STRING, "");
8737 sDefaults.putInt(KEY_VVM_PORT_NUMBER_INT, 0);
8738 sDefaults.putString(KEY_VVM_TYPE_STRING, "");
Ta-wei Yen3f9306f2016-04-20 14:46:20 -07008739 sDefaults.putBoolean(KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL, false);
Ta-wei Yenb618d0f2017-01-17 13:52:10 -08008740 sDefaults.putString(KEY_VVM_CLIENT_PREFIX_STRING,"//VVM");
8741 sDefaults.putBoolean(KEY_VVM_SSL_ENABLED_BOOL,false);
8742 sDefaults.putStringArray(KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY, null);
8743 sDefaults.putBoolean(KEY_VVM_LEGACY_MODE_ENABLED_BOOL,false);
Ta-wei Yen3f9306f2016-04-20 14:46:20 -07008744 sDefaults.putBoolean(KEY_VVM_PREFETCH_BOOL, true);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008745 sDefaults.putString(KEY_CARRIER_VVM_PACKAGE_NAME_STRING, "");
Ta-wei Yenb618d0f2017-01-17 13:52:10 -08008746 sDefaults.putStringArray(KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY, null);
Meng Wang6b2995a2016-03-14 10:08:41 -07008747 sDefaults.putBoolean(KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL, false);
Jordan Liua59a5eb2017-12-11 16:23:25 -08008748 sDefaults.putBoolean(KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL, true);
Mattias Nilssoneee4e502020-01-24 17:49:49 +01008749 sDefaults.putBoolean(KEY_INFLATE_SIGNAL_STRENGTH_BOOL, false);
Amit Mahajan02008b72015-06-11 14:54:20 -07008750 sDefaults.putBoolean(KEY_CI_ACTION_ON_SYS_UPDATE_BOOL, false);
8751 sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING, "");
8752 sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING, "");
8753 sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING, "");
Jonathan Basseri019523a2015-06-19 11:07:22 -07008754 sDefaults.putBoolean(KEY_CSP_ENABLED_BOOL, false);
Amit Mahajan412e7c82015-10-05 11:05:02 -07008755 sDefaults.putBoolean(KEY_ALLOW_ADDING_APNS_BOOL, true);
Amit Mahajan94222f42017-05-17 15:36:30 -07008756 sDefaults.putStringArray(KEY_READ_ONLY_APN_TYPES_STRING_ARRAY, new String[] {"dun"});
Amit Mahajan71e9ea62016-09-20 10:57:47 -07008757 sDefaults.putStringArray(KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY, null);
SongFerngWangc87140c2019-08-19 22:51:46 +08008758 sDefaults.putStringArray(KEY_APN_SETTINGS_DEFAULT_APN_TYPES_STRING_ARRAY, null);
Bonian Chen94ae34a2020-01-17 05:49:54 +08008759 sDefaults.putAll(Apn.getDefaults());
8760
Amit Mahajan0c081482016-01-12 18:25:33 -08008761 sDefaults.putBoolean(KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL, false);
Jack Yu6af6c342015-09-14 16:18:59 -07008762 sDefaults.putBoolean(KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL, false);
Sarah Chin83469632021-12-06 18:34:24 -08008763 sDefaults.putInt(KEY_DEFAULT_MTU_INT, 1500);
Jack Yuc1f0e872016-09-10 00:41:17 -07008764 sDefaults.putStringArray(KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS, new String[]{
8765 "default:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000,"
8766 + "320000:5000,640000:5000,1280000:5000,1800000:5000",
8767 "mms:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000,"
8768 + "320000:5000,640000:5000,1280000:5000,1800000:5000",
Hui Wang7e82b022021-04-20 16:13:33 -07008769 "ims:max_retries=10, 5000, 5000, 5000",
Jack Yuc1f0e872016-09-10 00:41:17 -07008770 "others:max_retries=3, 5000, 5000, 5000"});
Jack Yu090dd722015-12-18 15:16:24 -08008771 sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_DEFAULT_LONG, 20000);
8772 sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_FASTER_LONG, 3000);
Jack Yu24e84522021-12-16 11:17:42 -08008773 sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_RETRY_AFTER_DISCONNECT_LONG, 3000);
Jack Yu9138a212021-06-10 10:40:12 -07008774 sDefaults.putInt(KEY_CARRIER_DATA_CALL_RETRY_NETWORK_REQUESTED_MAX_COUNT_INT, 3);
Jack Yu360dc212016-04-08 17:11:25 -07008775 sDefaults.putString(KEY_CARRIER_ERI_FILE_NAME_STRING, "eri.xml");
Abhijith Shastryd48935872016-02-04 17:28:03 -08008776 sDefaults.putInt(KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT, 7200);
Jack Yu66a6be32016-03-30 11:14:39 -07008777 sDefaults.putStringArray(KEY_CARRIER_METERED_APN_TYPES_STRINGS,
8778 new String[]{"default", "mms", "dun", "supl"});
fionaxu28ffb602016-04-17 23:56:42 -07008779 sDefaults.putStringArray(KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS,
8780 new String[]{"default", "mms", "dun", "supl"});
Jack Yuac9a7312019-06-28 16:42:37 -07008781 sDefaults.putStringArray(KEY_CARRIER_WWAN_DISALLOWED_APN_TYPES_STRING_ARRAY,
8782 new String[]{""});
8783 sDefaults.putStringArray(KEY_CARRIER_WLAN_DISALLOWED_APN_TYPES_STRING_ARRAY,
8784 new String[]{""});
Jordan Liu2420a0a2016-10-04 11:46:03 -07008785 sDefaults.putIntArray(KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY,
Sarah Chin69f721e2021-12-13 17:52:25 -08008786 new int[] {TelephonyManager.NETWORK_TYPE_CDMA, TelephonyManager.NETWORK_TYPE_1xRTT,
8787 TelephonyManager.NETWORK_TYPE_EVDO_0, TelephonyManager.NETWORK_TYPE_EVDO_A,
8788 TelephonyManager.NETWORK_TYPE_EVDO_B});
Ling Maf752c192022-08-05 23:21:12 -07008789 sDefaults.putIntArray(KEY_CAPABILITIES_EXEMPT_FROM_SINGLE_DC_CHECK_INT_ARRAY,
8790 new int[] {NetworkCapabilities.NET_CAPABILITY_IMS});
Chris Mantonca16a792015-06-16 12:06:08 -07008791 sDefaults.putStringArray(KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY, null);
8792 sDefaults.putStringArray(KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY, null);
Brad Ebinger024aaf22017-01-23 15:17:50 -08008793 sDefaults.putString(KEY_CONFIG_IMS_PACKAGE_OVERRIDE_STRING, null);
Brad Ebinger66978142019-12-05 11:38:15 -08008794 sDefaults.putString(KEY_CONFIG_IMS_MMTEL_PACKAGE_OVERRIDE_STRING, null);
8795 sDefaults.putString(KEY_CONFIG_IMS_RCS_PACKAGE_OVERRIDE_STRING, null);
Chris Mantonca16a792015-06-16 12:06:08 -07008796 sDefaults.putStringArray(KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY, null);
8797 sDefaults.putStringArray(KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY, null);
Jordan Liu02ec2a02016-09-09 11:48:48 -07008798 sDefaults.putStringArray(KEY_DIAL_STRING_REPLACE_STRING_ARRAY, null);
Thomas Stuart5c0227d2022-04-08 14:04:56 -07008799 sDefaults.putStringArray(KEY_INTERNATIONAL_ROAMING_DIAL_STRING_REPLACE_STRING_ARRAY, null);
Chris Manton63f25b62015-06-24 16:47:49 -07008800 sDefaults.putBoolean(KEY_FORCE_HOME_NETWORK_BOOL, false);
Roshan Piusdc364fe2015-09-10 10:28:06 -07008801 sDefaults.putInt(KEY_GSM_DTMF_TONE_DELAY_INT, 0);
Roshan Pius9f81ce72015-08-12 12:01:42 -07008802 sDefaults.putInt(KEY_IMS_DTMF_TONE_DELAY_INT, 0);
Roshan Piusa52c5e22015-08-14 12:58:08 -07008803 sDefaults.putInt(KEY_CDMA_DTMF_TONE_DELAY_INT, 100);
Brad Ebinger110856432017-10-12 13:58:55 -07008804 sDefaults.putBoolean(KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL, false);
Hall Liud18e5b42019-12-11 17:35:33 -08008805 sDefaults.putBoolean(KEY_IGNORE_RTT_MODE_SETTING_BOOL, true);
Jordan Liue1663562016-09-07 12:01:24 -07008806 sDefaults.putInt(KEY_CDMA_3WAYCALL_FLASH_DELAY_INT , 0);
Ravi Paluri80aa2142019-12-02 11:57:37 +05308807 sDefaults.putBoolean(KEY_SUPPORT_ADHOC_CONFERENCE_CALLS_BOOL, false);
Ravi Paluri404babb2020-01-23 19:02:44 +05308808 sDefaults.putBoolean(KEY_SUPPORT_ADD_CONFERENCE_PARTICIPANTS_BOOL, false);
Sungmin Choi8c651ae2015-08-14 15:55:13 -07008809 sDefaults.putBoolean(KEY_SUPPORT_CONFERENCE_CALL_BOOL, true);
Wei Huanga8ad1522016-03-01 15:25:04 +08008810 sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL, true);
Tyler Gunn4eb18912020-04-07 19:01:15 -07008811 sDefaults.putBoolean(KEY_LOCAL_DISCONNECT_EMPTY_IMS_CONFERENCE_BOOL, false);
Wei Huang594039c2016-04-22 14:33:55 +08008812 sDefaults.putBoolean(KEY_SUPPORT_MANAGE_IMS_CONFERENCE_CALL_BOOL, true);
Youming Yed5472f72019-05-21 13:10:48 -07008813 sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL, true);
Tyler Gunn60e5f7c2020-04-06 15:07:48 -07008814 sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_ON_PEER_BOOL, true);
Tyler Gunn0ba79072021-03-02 09:19:55 -08008815 sDefaults.putBoolean(KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_RTP_BOOL, false);
8816 sDefaults.putBoolean(KEY_SUPPORTS_SDP_NEGOTIATION_OF_D2D_RTP_HEADER_EXTENSIONS_BOOL, false);
8817 sDefaults.putBoolean(KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_DTMF_BOOL, false);
Tyler Gunnee61c622016-04-19 16:17:19 -07008818 sDefaults.putBoolean(KEY_SUPPORT_VIDEO_CONFERENCE_CALL_BOOL, false);
Tyler Gunnec5b6e32016-12-01 19:40:30 -08008819 sDefaults.putBoolean(KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL, false);
8820 sDefaults.putInt(KEY_IMS_CONFERENCE_SIZE_LIMIT_INT, 5);
Wei Huang237d7752016-03-01 17:02:40 +08008821 sDefaults.putBoolean(KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL, true);
Sungmin Choi8d2826b2015-08-25 23:30:34 -07008822 sDefaults.putBoolean(KEY_EDITABLE_ENHANCED_4G_LTE_BOOL, true);
yinxu34016ae2017-03-14 15:36:17 -07008823 sDefaults.putBoolean(KEY_HIDE_ENHANCED_4G_LTE_BOOL, false);
manabu, shimoda14723e32017-10-06 14:39:01 +09008824 sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL, true);
Sungmin Choie9d3c112015-08-31 15:32:20 -07008825 sDefaults.putBoolean(KEY_HIDE_IMS_APN_BOOL, false);
Sungmin Choic03a1da2015-09-08 15:34:23 -07008826 sDefaults.putBoolean(KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL, false);
Tyler Gunnf0836192016-03-15 20:33:13 -07008827 sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL, false);
Junda Liu85313282017-03-28 13:58:51 -07008828 sDefaults.putStringArray(KEY_ENABLE_APPS_STRING_ARRAY, null);
Sungmin Choid3b28262015-12-23 14:10:41 +09008829 sDefaults.putBoolean(KEY_EDITABLE_WFC_MODE_BOOL, true);
Pavel Zhamaitsiak7b7c4fc2016-04-12 14:24:07 -07008830 sDefaults.putStringArray(KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY, null);
8831 sDefaults.putInt(KEY_WFC_SPN_FORMAT_IDX_INT, 0);
8832 sDefaults.putInt(KEY_WFC_DATA_SPN_FORMAT_IDX_INT, 0);
Torbjorn Eklunda765a472018-09-24 17:45:23 +02008833 sDefaults.putInt(KEY_WFC_FLIGHT_MODE_SPN_FORMAT_IDX_INT, -1);
Torbjorn Eklund99c11d82018-08-21 16:06:47 +02008834 sDefaults.putBoolean(KEY_WFC_SPN_USE_ROOT_LOCALE, false);
Vineeta Srivastavac7d7ab7f2016-05-14 11:05:28 -07008835 sDefaults.putString(KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING, "");
Sunil Dutt7c5fda82016-04-05 22:08:57 +05308836 sDefaults.putBoolean(KEY_CONFIG_WIFI_DISABLE_IN_ECBM, false);
Sanket Padawe49b20422016-06-01 12:17:23 -07008837 sDefaults.putBoolean(KEY_CARRIER_NAME_OVERRIDE_BOOL, false);
8838 sDefaults.putString(KEY_CARRIER_NAME_STRING, "");
SongFerngWangd1b16442020-06-16 18:39:35 +08008839 sDefaults.putBoolean(KEY_WFC_CARRIER_NAME_OVERRIDE_BY_PNN_BOOL, false);
Sooraj Sasindran83ff8ad2020-11-23 23:42:51 -08008840 sDefaults.putInt(KEY_CROSS_SIM_SPN_FORMAT_INT, 1);
Pengquan Meng057b94f2019-04-17 19:36:58 -07008841 sDefaults.putInt(KEY_SPN_DISPLAY_CONDITION_OVERRIDE_INT, -1);
8842 sDefaults.putStringArray(KEY_SPDI_OVERRIDE_STRING_ARRAY, null);
8843 sDefaults.putStringArray(KEY_PNN_OVERRIDE_STRING_ARRAY, null);
8844 sDefaults.putStringArray(KEY_OPL_OVERRIDE_STRING_ARRAY, null);
8845 sDefaults.putStringArray(KEY_EHPLMN_OVERRIDE_STRING_ARRAY, null);
8846 sDefaults.putBoolean(KEY_ALLOW_ERI_BOOL, false);
8847 sDefaults.putBoolean(KEY_ENABLE_CARRIER_DISPLAY_NAME_RESOLVER_BOOL, false);
chen xu6b736ee2018-12-02 14:14:15 -08008848 sDefaults.putString(KEY_SIM_COUNTRY_ISO_OVERRIDE_STRING, "");
tonyzhucd0a63d2018-10-11 14:31:26 +08008849 sDefaults.putString(KEY_CARRIER_CALL_SCREENING_APP_STRING, "");
sqian4be071a2019-03-18 14:10:53 -07008850 sDefaults.putString(KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING, null);
Amit Mahajan22e89f42018-06-05 16:27:32 -07008851 sDefaults.putBoolean(KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL, false);
8852 sDefaults.putString(KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING, "");
Wileen Chiu5e8e3082016-07-15 10:00:09 -07008853 sDefaults.putBoolean(KEY_SUPPORT_DIRECT_FDN_DIALING_BOOL, false);
rongmei.libcadc902019-10-16 18:41:48 +08008854 sDefaults.putInt(KEY_FDN_NUMBER_LENGTH_LIMIT_INT, 20);
fionaxu7834be22017-06-22 18:14:23 -07008855 sDefaults.putBoolean(KEY_CARRIER_DEFAULT_DATA_ROAMING_ENABLED_BOOL, false);
DongYuchen439f16d2017-02-16 18:22:36 +08008856 sDefaults.putBoolean(KEY_SKIP_CF_FAIL_TO_DISABLE_DIALOG_BOOL, false);
Tyler Gunn212c1572018-09-12 17:50:49 -07008857 sDefaults.putBoolean(KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL, true);
Chris Mantonca16a792015-06-16 12:06:08 -07008858
Jonathan Basserif31ac332015-05-27 01:18:46 -07008859 // MMS defaults
Jonathan Basseri69822f02015-06-04 13:48:08 -07008860 sDefaults.putBoolean(KEY_MMS_ALIAS_ENABLED_BOOL, false);
8861 sDefaults.putBoolean(KEY_MMS_ALLOW_ATTACH_AUDIO_BOOL, true);
8862 sDefaults.putBoolean(KEY_MMS_APPEND_TRANSACTION_ID_BOOL, false);
8863 sDefaults.putBoolean(KEY_MMS_GROUP_MMS_ENABLED_BOOL, true);
8864 sDefaults.putBoolean(KEY_MMS_MMS_DELIVERY_REPORT_ENABLED_BOOL, false);
8865 sDefaults.putBoolean(KEY_MMS_MMS_ENABLED_BOOL, true);
8866 sDefaults.putBoolean(KEY_MMS_MMS_READ_REPORT_ENABLED_BOOL, false);
8867 sDefaults.putBoolean(KEY_MMS_MULTIPART_SMS_ENABLED_BOOL, true);
8868 sDefaults.putBoolean(KEY_MMS_NOTIFY_WAP_MMSC_ENABLED_BOOL, false);
8869 sDefaults.putBoolean(KEY_MMS_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES_BOOL, false);
8870 sDefaults.putBoolean(KEY_MMS_SHOW_CELL_BROADCAST_APP_LINKS_BOOL, true);
8871 sDefaults.putBoolean(KEY_MMS_SMS_DELIVERY_REPORT_ENABLED_BOOL, true);
8872 sDefaults.putBoolean(KEY_MMS_SUPPORT_HTTP_CHARSET_HEADER_BOOL, false);
8873 sDefaults.putBoolean(KEY_MMS_SUPPORT_MMS_CONTENT_DISPOSITION_BOOL, true);
Ye Wen406a41b2016-07-18 14:36:22 -07008874 sDefaults.putBoolean(KEY_MMS_CLOSE_CONNECTION_BOOL, false);
Jonathan Basseri69822f02015-06-04 13:48:08 -07008875 sDefaults.putInt(KEY_MMS_ALIAS_MAX_CHARS_INT, 48);
8876 sDefaults.putInt(KEY_MMS_ALIAS_MIN_CHARS_INT, 2);
8877 sDefaults.putInt(KEY_MMS_HTTP_SOCKET_TIMEOUT_INT, 60 * 1000);
8878 sDefaults.putInt(KEY_MMS_MAX_IMAGE_HEIGHT_INT, 480);
8879 sDefaults.putInt(KEY_MMS_MAX_IMAGE_WIDTH_INT, 640);
8880 sDefaults.putInt(KEY_MMS_MAX_MESSAGE_SIZE_INT, 300 * 1024);
8881 sDefaults.putInt(KEY_MMS_MESSAGE_TEXT_MAX_SIZE_INT, -1);
8882 sDefaults.putInt(KEY_MMS_RECIPIENT_LIMIT_INT, Integer.MAX_VALUE);
8883 sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD_INT, -1);
8884 sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT, -1);
8885 sDefaults.putInt(KEY_MMS_SUBJECT_MAX_LENGTH_INT, 40);
8886 sDefaults.putString(KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING, "");
8887 sDefaults.putString(KEY_MMS_HTTP_PARAMS_STRING, "");
8888 sDefaults.putString(KEY_MMS_NAI_SUFFIX_STRING, "");
8889 sDefaults.putString(KEY_MMS_UA_PROF_TAG_NAME_STRING, "x-wap-profile");
8890 sDefaults.putString(KEY_MMS_UA_PROF_URL_STRING, "");
8891 sDefaults.putString(KEY_MMS_USER_AGENT_STRING, "");
Tyler Gunn387ce2f2015-08-28 14:14:11 -07008892 sDefaults.putBoolean(KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL, true);
Brad Ebinger5eeb79d2019-03-15 13:50:34 -07008893 sDefaults.putInt(KEY_EMERGENCY_SMS_MODE_TIMER_MS_INT, 0);
Brad Ebinger62713872019-11-18 18:43:35 -08008894 sDefaults.putBoolean(KEY_ALLOW_HOLD_CALL_DURING_EMERGENCY_BOOL, true);
Tyler Gunn3e122f72016-01-11 19:25:00 -08008895 sDefaults.putBoolean(KEY_USE_RCS_PRESENCE_BOOL, false);
James.cf Linc8a345a2019-09-20 18:04:06 +08008896 sDefaults.putBoolean(KEY_USE_RCS_SIP_OPTIONS_BOOL, false);
Junda Liu276f4d62016-07-14 13:55:03 -07008897 sDefaults.putBoolean(KEY_FORCE_IMEI_BOOL, false);
Jeff Davidsonaf1d3202017-10-25 12:51:43 -07008898 sDefaults.putInt(
8899 KEY_CDMA_ROAMING_MODE_INT, TelephonyManager.CDMA_ROAMING_MODE_RADIO_DEFAULT);
Josh Hou0e9ea952019-12-03 21:00:44 +08008900 sDefaults.putBoolean(KEY_SUPPORT_CDMA_1X_VOICE_CALLS_BOOL, true);
Abhijith Shastry2215c9b2016-08-24 15:17:39 -07008901 sDefaults.putString(KEY_RCS_CONFIG_SERVER_URL_STRING, "");
fionaxub5592dc2016-04-08 13:19:31 -07008902
fionaxu1bf6ec22016-05-23 16:33:16 -07008903 // Carrier Signalling Receivers
Stuart Scott9abc2732016-05-11 15:42:01 -07008904 sDefaults.putString(KEY_CARRIER_SETUP_APP_STRING, "");
fionaxub537d742017-09-06 12:07:14 -07008905 sDefaults.putStringArray(KEY_CARRIER_APP_WAKE_SIGNAL_CONFIG_STRING_ARRAY,
8906 new String[]{
8907 "com.android.carrierdefaultapp/.CarrierDefaultBroadcastReceiver:"
8908 + "com.android.internal.telephony.CARRIER_SIGNAL_RESET"
8909 });
fionaxu41ca9372016-11-17 16:46:30 -08008910 sDefaults.putStringArray(KEY_CARRIER_APP_NO_WAKE_SIGNAL_CONFIG_STRING_ARRAY, null);
Qingxi Li38fbddc2019-03-14 13:26:03 -07008911 sDefaults.putBoolean(KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL, false);
fionaxu41ca9372016-11-17 16:46:30 -08008912
Robert Greenwalt60551b62016-06-09 16:28:40 -07008913
fionaxua21a87b2016-12-13 17:15:11 -08008914 // Default carrier app configurations
8915 sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY,
8916 new String[]{
fionaxud60a9d02017-05-23 14:55:27 -07008917 "9, 4, 1"
8918 //9: CARRIER_ACTION_REGISTER_NETWORK_AVAIL
fionaxua21a87b2016-12-13 17:15:11 -08008919 //4: CARRIER_ACTION_DISABLE_METERED_APNS
8920 //1: CARRIER_ACTION_SHOW_PORTAL_NOTIFICATION
8921 });
fionaxu77f466d2017-04-26 16:05:25 -07008922 sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_RESET, new String[]{
fionaxud60a9d02017-05-23 14:55:27 -07008923 "6, 8"
8924 //6: CARRIER_ACTION_CANCEL_ALL_NOTIFICATIONS
8925 //8: CARRIER_ACTION_DISABLE_DEFAULT_URL_HANDLER
8926 });
fionaxu79d77bb2017-07-19 11:11:54 -07008927 sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_DEFAULT_NETWORK_AVAILABLE, new String[] {
8928 String.valueOf(false) + ": 7", //7: CARRIER_ACTION_ENABLE_DEFAULT_URL_HANDLER
8929 String.valueOf(true) + ": 8" //8: CARRIER_ACTION_DISABLE_DEFAULT_URL_HANDLER
fionaxu77f466d2017-04-26 16:05:25 -07008930 });
fionaxua21a87b2016-12-13 17:15:11 -08008931 sDefaults.putStringArray(KEY_CARRIER_DEFAULT_REDIRECTION_URL_STRING_ARRAY, null);
8932
Ammar Aijazi11b44982017-01-17 17:32:15 -08008933 sDefaults.putInt(KEY_MONTHLY_DATA_CYCLE_DAY_INT, DATA_CYCLE_USE_PLATFORM_DEFAULT);
8934 sDefaults.putLong(KEY_DATA_WARNING_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT);
Jeff Sharkey0a5570d2018-04-10 12:38:29 -06008935 sDefaults.putBoolean(KEY_DATA_WARNING_NOTIFICATION_BOOL, true);
chen xu00511062019-07-02 16:32:07 -07008936 sDefaults.putBoolean(KEY_LIMITED_SIM_FUNCTION_NOTIFICATION_FOR_DSDS_BOOL, false);
Ammar Aijazi11b44982017-01-17 17:32:15 -08008937 sDefaults.putLong(KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT);
Jeff Sharkey0a5570d2018-04-10 12:38:29 -06008938 sDefaults.putBoolean(KEY_DATA_LIMIT_NOTIFICATION_BOOL, true);
8939 sDefaults.putBoolean(KEY_DATA_RAPID_NOTIFICATION_BOOL, true);
Ammar Aijazi11b44982017-01-17 17:32:15 -08008940
Ajay Nambi7965fa42015-05-14 18:48:33 -07008941 // Rat families: {GPRS, EDGE}, {EVDO, EVDO_A, EVDO_B}, {UMTS, HSPA, HSDPA, HSUPA, HSPAP},
8942 // {LTE, LTE_CA}
Robert Greenwalt60551b62016-06-09 16:28:40 -07008943 // Order is important - lowest precidence first
8944 sDefaults.putStringArray(KEY_RATCHET_RAT_FAMILIES,
Ajay Nambi7965fa42015-05-14 18:48:33 -07008945 new String[]{"1,2","7,8,12","3,11,9,10,15","14,19"});
Tyler Gunn7d633d32016-06-24 07:30:10 -07008946 sDefaults.putBoolean(KEY_TREAT_DOWNGRADED_VIDEO_CALLS_AS_VIDEO_CALLS_BOOL, false);
8947 sDefaults.putBoolean(KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL, false);
8948 sDefaults.putBoolean(KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL, true);
Hall Liu10208662016-06-15 17:55:00 -07008949 sDefaults.putBoolean(KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL, true);
Tyler Gunnbe363242020-02-12 13:50:46 -08008950 sDefaults.putBoolean(KEY_ALLOW_HOLD_VIDEO_CALL_BOOL, true);
Hall Liu7c3c28b2016-07-19 11:18:49 -07008951 sDefaults.putBoolean(KEY_WIFI_CALLS_CAN_BE_HD_AUDIO, true);
8952 sDefaults.putBoolean(KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO, true);
Alex Khlivnuikabdd37c2017-11-29 12:18:05 +09008953 sDefaults.putBoolean(KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO, false);
Ta-wei Yen9d20d982017-06-02 11:07:07 -07008954 sDefaults.putBoolean(KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL, true);
Tyler Gunnc96b5e02016-07-07 22:53:57 -07008955
8956 sDefaults.putStringArray(KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY, null);
Meng Wang542e2622016-08-03 10:18:36 -07008957 sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_BOOL, false);
clownshen6400b932018-08-16 16:54:16 +08008958 sDefaults.putInt(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT, 0);
Tyler Gunn0f20d932016-08-09 15:56:43 -07008959 sDefaults.putBoolean(KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL, false);
Jordan Liu1ca2e31d2016-12-01 11:39:30 -08008960 sDefaults.putStringArray(KEY_FILTERED_CNAP_NAMES_STRING_ARRAY, null);
Meng Wang2c25e4a2016-09-19 14:18:05 -07008961 sDefaults.putBoolean(KEY_EDITABLE_WFC_ROAMING_MODE_BOOL, false);
Youming Ye9592a422019-03-20 17:53:44 -07008962 sDefaults.putBoolean(KEY_SHOW_BLOCKING_PAY_PHONE_OPTION_BOOL, false);
Hiroto Taruida081212019-02-14 14:37:09 +09008963 sDefaults.putBoolean(KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL, false);
Sooraj Sasindran6a3d36f2016-10-13 11:36:34 -07008964 sDefaults.putBoolean(KEY_STK_DISABLE_LAUNCH_BROWSER_BOOL, false);
Ecco Park1074c882019-03-21 12:58:09 -07008965 sDefaults.putBoolean(KEY_ALLOW_METERED_NETWORK_FOR_CERT_DOWNLOAD_BOOL, false);
Yoshiaki Naka1c5203a62019-02-21 18:40:03 +09008966 sDefaults.putBoolean(KEY_HIDE_DIGITS_HELPER_TEXT_ON_STK_INPUT_SCREEN_BOOL, true);
pkanwarffd45832016-12-11 17:45:50 -08008967 sDefaults.putInt(KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT, -1);
pkanwar68e3de72017-08-13 12:18:19 -07008968 sDefaults.putInt(KEY_EMERGENCY_NOTIFICATION_DELAY_INT, -1);
Tyler Gunn02212db2017-06-05 11:26:46 -07008969 sDefaults.putBoolean(KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL, true);
Brad Ebinger17acc152016-12-09 13:18:30 -08008970 sDefaults.putBoolean(KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL, true);
Qiong Liu48fe53f2017-10-16 17:04:30 +08008971 sDefaults.putBoolean(KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL,
8972 false);
Tyler Gunn662ae092017-02-16 16:21:14 -08008973 sDefaults.putBoolean(KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL, false);
taiki tsutsumi2ee96822018-07-02 17:15:42 +09008974 sDefaults.putBoolean(KEY_HIDE_PRESET_APN_DETAILS_BOOL, false);
Masaho Nishikawa4c7511c2017-12-18 14:33:38 +09008975 sDefaults.putBoolean(KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL, false);
Brad Ebinger9ab43212016-12-12 14:57:37 -08008976 sDefaults.putStringArray(KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY,
8977 null);
Josh Hou7d4f7792020-05-28 23:32:37 +08008978 sDefaults.putBoolean(KEY_SUPPORT_IMS_CALL_FORWARDING_WHILE_ROAMING_BOOL, true);
Sooraj Sasindran1b7bec52017-03-08 23:43:17 -08008979 sDefaults.putInt(KEY_LTE_EARFCNS_RSRP_BOOST_INT, 0);
8980 sDefaults.putStringArray(KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY, null);
Amit Mahajanae5f04d2021-05-27 13:00:33 -07008981 sDefaults.putIntArray(KEY_NRARFCNS_RSRP_BOOST_INT_ARRAY, null);
8982 sDefaults.putStringArray(KEY_BOOSTED_NRARFCNS_STRING_ARRAY, null);
Wenting Xiongcb35e992017-10-18 15:05:49 +09008983 sDefaults.putBoolean(KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL, false);
Sanket Padawedb688bb2017-03-28 15:26:13 -07008984 sDefaults.putBoolean(KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL, false);
pkanwarbecc8692017-07-04 16:04:44 -07008985 sDefaults.putInt(IMSI_KEY_AVAILABILITY_INT, 0);
pkanwar232573f2017-05-31 13:10:03 -07008986 sDefaults.putString(IMSI_KEY_DOWNLOAD_URL_STRING, null);
Jordan Liu762fe4b2021-01-14 13:00:06 -08008987 sDefaults.putString(IMSI_CARRIER_PUBLIC_KEY_EPDG_STRING, null);
8988 sDefaults.putString(IMSI_CARRIER_PUBLIC_KEY_WLAN_STRING, null);
Naveen Kallaabd28422017-07-11 20:03:58 -07008989 sDefaults.putBoolean(KEY_CONVERT_CDMA_CALLER_ID_MMI_CODES_WHILE_ROAMING_ON_3GPP_BOOL,
8990 false);
Naveen Kalla7e15c582017-07-13 20:43:21 -07008991 sDefaults.putStringArray(KEY_NON_ROAMING_OPERATOR_STRING_ARRAY, null);
fionaxu1c6027c2017-06-01 18:52:17 -07008992 sDefaults.putStringArray(KEY_ROAMING_OPERATOR_STRING_ARRAY, null);
Ping Sune0e3cbd2016-03-02 19:09:27 +08008993 sDefaults.putBoolean(KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL, false);
Hall Liu47ed6202017-11-20 16:25:39 -08008994 sDefaults.putBoolean(KEY_RTT_SUPPORTED_BOOL, false);
Tyler Gunne4d72b42019-02-25 10:42:45 -08008995 sDefaults.putBoolean(KEY_TTY_SUPPORTED_BOOL, true);
Hall Liu3a23d7e2019-07-29 17:30:12 -07008996 sDefaults.putBoolean(KEY_HIDE_TTY_HCO_VCO_WITH_RTT_BOOL, false);
Hall Liud20b2a02021-01-22 16:06:50 -08008997 sDefaults.putBoolean(KEY_RTT_SUPPORTED_WHILE_ROAMING_BOOL, false);
Hall Liuf4eae0f2021-03-15 16:03:38 -07008998 sDefaults.putBoolean(KEY_RTT_UPGRADE_SUPPORTED_FOR_DOWNGRADED_VT_CALL_BOOL, true);
8999 sDefaults.putBoolean(KEY_VT_UPGRADE_SUPPORTED_FOR_DOWNGRADED_RTT_CALL_BOOL, true);
Omata Shou9766b182017-08-22 17:17:55 +09009000 sDefaults.putBoolean(KEY_DISABLE_CHARGE_INDICATION_BOOL, false);
manabu, shimoda6ce31382017-12-25 18:38:47 +09009001 sDefaults.putBoolean(KEY_SUPPORT_NO_REPLY_TIMER_FOR_CFNRY_BOOL, true);
Kazuya Ohshiro990af172017-09-27 16:02:55 +09009002 sDefaults.putStringArray(KEY_FEATURE_ACCESS_CODES_STRING_ARRAY, null);
Kazuya Ohshirob8981ba2017-10-27 16:26:15 +09009003 sDefaults.putBoolean(KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL, false);
Wenting Xiongf21f3cf2016-04-01 15:25:45 +08009004 sDefaults.putBoolean(KEY_SHOW_PRECISE_FAILED_CAUSE_BOOL, false);
Masaho Nishikawa40184352017-11-01 20:33:36 +09009005 sDefaults.putBoolean(KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL, false);
Wenting Xiong63364fe2017-02-07 19:12:27 +08009006 sDefaults.putBoolean(KEY_ALWAYS_SHOW_DATA_RAT_ICON_BOOL, false);
Pengquan Mengcdb6c682018-10-24 15:43:44 -07009007 sDefaults.putBoolean(KEY_SHOW_4G_FOR_LTE_DATA_ICON_BOOL, false);
kimmy.yang2d5fd292021-12-29 16:52:39 +08009008 sDefaults.putBoolean(KEY_SHOW_4GLTE_FOR_LTE_DATA_ICON_BOOL, false);
vagdevi3f2b9a52019-08-09 09:45:14 -07009009 sDefaults.putBoolean(KEY_SHOW_4G_FOR_3G_DATA_ICON_BOOL, false);
SongFerngWang2d178ea2019-03-21 23:14:20 +08009010 sDefaults.putString(KEY_OPERATOR_NAME_FILTER_PATTERN_STRING, "");
9011 sDefaults.putString(KEY_SHOW_CARRIER_DATA_ICON_PATTERN_STRING, "");
Hall Liu1ce5e662018-10-31 18:17:38 -07009012 sDefaults.putBoolean(KEY_HIDE_LTE_PLUS_DATA_ICON_BOOL, true);
Sarah Chinea9d40e2020-08-12 19:38:02 -07009013 sDefaults.putInt(KEY_LTE_PLUS_THRESHOLD_BANDWIDTH_KHZ_INT, 20000);
Jack Yu5e7b8532021-10-19 21:21:28 -07009014 sDefaults.putInt(KEY_NR_ADVANCED_THRESHOLD_BANDWIDTH_KHZ_INT, 0);
Sarah Chin62b6e992022-11-23 14:47:25 -08009015 sDefaults.putBoolean(KEY_INCLUDE_LTE_FOR_NR_ADVANCED_THRESHOLD_BANDWIDTH_BOOL, false);
SongFerngWangc42f2692021-03-11 13:18:32 +08009016 sDefaults.putIntArray(KEY_CARRIER_NR_AVAILABILITIES_INT_ARRAY,
9017 new int[]{CARRIER_NR_AVAILABILITY_NSA, CARRIER_NR_AVAILABILITY_SA});
Pengquan Mengcb6aaf02018-11-02 17:40:17 -07009018 sDefaults.putBoolean(KEY_LTE_ENABLED_BOOL, true);
9019 sDefaults.putBoolean(KEY_SUPPORT_TDSCDMA_BOOL, false);
9020 sDefaults.putStringArray(KEY_SUPPORT_TDSCDMA_ROAMING_NETWORKS_STRING_ARRAY, null);
9021 sDefaults.putBoolean(KEY_WORLD_MODE_ENABLED_BOOL, false);
Pengquan Meng3d4e67c2018-11-07 14:54:21 -08009022 sDefaults.putString(KEY_CARRIER_SETTINGS_ACTIVITY_COMPONENT_NAME_STRING, "");
Niklas Lindgren7ef2acb2018-10-01 11:09:43 +02009023 sDefaults.putBoolean(KEY_SHOW_OPERATOR_NAME_IN_STATUSBAR_BOOL, false);
yinxu0d56f3c2017-11-29 15:02:05 -08009024 sDefaults.putBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL, false);
pkanwar1e96fae2018-01-03 18:41:18 -08009025 sDefaults.putBoolean(KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL, false);
Jordan Liub5fbb912019-07-23 15:52:08 -07009026 sDefaults.putBoolean(KEY_SHOW_DATA_CONNECTED_ROAMING_NOTIFICATION_BOOL, false);
Kitta Koutarou911f56c2017-12-01 19:19:49 +09009027 sDefaults.putIntArray(KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY,
9028 new int[] {
Kitta Koutarou911f56c2017-12-01 19:19:49 +09009029 -128, /* SIGNAL_STRENGTH_POOR */
9030 -118, /* SIGNAL_STRENGTH_MODERATE */
9031 -108, /* SIGNAL_STRENGTH_GOOD */
9032 -98, /* SIGNAL_STRENGTH_GREAT */
Kitta Koutarou911f56c2017-12-01 19:19:49 +09009033 });
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09009034 sDefaults.putIntArray(KEY_LTE_RSRQ_THRESHOLDS_INT_ARRAY,
9035 new int[] {
Shuo Qian66c51cd2020-05-01 00:38:02 -07009036 -20, /* SIGNAL_STRENGTH_POOR */
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09009037 -17, /* SIGNAL_STRENGTH_MODERATE */
9038 -14, /* SIGNAL_STRENGTH_GOOD */
Shuo Qian66c51cd2020-05-01 00:38:02 -07009039 -11 /* SIGNAL_STRENGTH_GREAT */
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09009040 });
9041 sDefaults.putIntArray(KEY_LTE_RSSNR_THRESHOLDS_INT_ARRAY,
9042 new int[] {
Shuo Qian6775b772020-06-11 10:32:17 -07009043 -3, /* SIGNAL_STRENGTH_POOR */
9044 1, /* SIGNAL_STRENGTH_MODERATE */
9045 5, /* SIGNAL_STRENGTH_GOOD */
9046 13 /* SIGNAL_STRENGTH_GREAT */
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09009047 });
Tomita, Ryounosuke Xd41feee2017-12-13 18:46:12 +09009048 sDefaults.putIntArray(KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY,
9049 new int[] {
9050 -115, /* SIGNAL_STRENGTH_POOR */
9051 -105, /* SIGNAL_STRENGTH_MODERATE */
9052 -95, /* SIGNAL_STRENGTH_GOOD */
9053 -85 /* SIGNAL_STRENGTH_GREAT */
9054 });
Shuo Qian7d7b2f12019-11-23 19:09:36 -08009055 sDefaults.putIntArray(KEY_5G_NR_SSRSRP_THRESHOLDS_INT_ARRAY,
9056 // Boundaries: [-140 dB, -44 dB]
9057 new int[] {
sqian9db66a62020-01-23 15:42:51 -08009058 -110, /* SIGNAL_STRENGTH_POOR */
9059 -90, /* SIGNAL_STRENGTH_MODERATE */
9060 -80, /* SIGNAL_STRENGTH_GOOD */
9061 -65, /* SIGNAL_STRENGTH_GREAT */
Shuo Qian7d7b2f12019-11-23 19:09:36 -08009062 });
9063 sDefaults.putIntArray(KEY_5G_NR_SSRSRQ_THRESHOLDS_INT_ARRAY,
Shuo Qian26e679e2020-07-01 11:48:52 -07009064 // Boundaries: [-43 dB, 20 dB]
Shuo Qian7d7b2f12019-11-23 19:09:36 -08009065 new int[] {
Shuo Qian26e679e2020-07-01 11:48:52 -07009066 -31, /* SIGNAL_STRENGTH_POOR */
9067 -19, /* SIGNAL_STRENGTH_MODERATE */
9068 -7, /* SIGNAL_STRENGTH_GOOD */
9069 6 /* SIGNAL_STRENGTH_GREAT */
Shuo Qian7d7b2f12019-11-23 19:09:36 -08009070 });
9071 sDefaults.putIntArray(KEY_5G_NR_SSSINR_THRESHOLDS_INT_ARRAY,
9072 // Boundaries: [-23 dB, 40 dB]
9073 new int[] {
sqian9db66a62020-01-23 15:42:51 -08009074 -5, /* SIGNAL_STRENGTH_POOR */
9075 5, /* SIGNAL_STRENGTH_MODERATE */
9076 15, /* SIGNAL_STRENGTH_GOOD */
9077 30 /* SIGNAL_STRENGTH_GREAT */
Shuo Qian7d7b2f12019-11-23 19:09:36 -08009078 });
9079 sDefaults.putInt(KEY_PARAMETERS_USE_FOR_5G_NR_SIGNAL_BAR_INT,
9080 CellSignalStrengthNr.USE_SSRSRP);
SongFerngWang68c58a52020-04-13 18:13:04 +08009081 sDefaults.putBoolean(KEY_SIGNAL_STRENGTH_NR_NSA_USE_LTE_AS_PRIMARY_BOOL, true);
Sarah Chin5023ffd2020-02-07 10:33:06 -08009082 sDefaults.putStringArray(KEY_BANDWIDTH_STRING_ARRAY, new String[]{
Sarah Chin83469632021-12-06 18:34:24 -08009083 "GPRS:24,24", "EDGE:70,18", "UMTS:115,115", "CDMA:14,14",
9084 "1xRTT:30,30", "EvDo_0:750,48", "EvDo_A:950,550", "HSDPA:4300,620",
9085 "HSUPA:4300,1800", "HSPA:4300,1800", "EvDo_B:1500,550", "eHRPD:750,48",
9086 "iDEN:14,14", "LTE:30000,15000", "HSPA+:13000,3400", "GSM:24,24",
9087 "TD_SCDMA:115,115", "LTE_CA:30000,15000", "NR_NSA:47000,18000",
9088 "NR_NSA_MMWAVE:145000,60000", "NR_SA:145000,60000", "NR_SA_MMWAVE:145000,60000"});
Sarah Chin83469632021-12-06 18:34:24 -08009089 sDefaults.putBoolean(KEY_BANDWIDTH_NR_NSA_USE_LTE_VALUE_FOR_UPLINK_BOOL, false);
Nathan Harold549c3ba2019-01-03 10:30:31 -08009090 sDefaults.putString(KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING, "rssi");
Mengjun Lengc9356222018-08-28 11:05:34 +08009091 sDefaults.putBoolean(KEY_CONFIG_SHOW_ORIG_DIAL_STRING_FOR_CDMA_BOOL, false);
Kikkawa Shohei638d11e2018-09-21 17:06:07 +09009092 sDefaults.putBoolean(KEY_SHOW_CALL_BLOCKING_DISABLED_NOTIFICATION_ALWAYS_BOOL, false);
SongFerngWang165d2d22018-07-09 21:10:26 +08009093 sDefaults.putBoolean(KEY_CALL_FORWARDING_OVER_UT_WARNING_BOOL, false);
9094 sDefaults.putBoolean(KEY_CALL_BARRING_OVER_UT_WARNING_BOOL, false);
9095 sDefaults.putBoolean(KEY_CALLER_ID_OVER_UT_WARNING_BOOL, false);
9096 sDefaults.putBoolean(KEY_CALL_WAITING_OVER_UT_WARNING_BOOL, false);
Youming Ye568455f2018-10-24 14:54:39 -07009097 sDefaults.putBoolean(KEY_SUPPORT_CLIR_NETWORK_DEFAULT_BOOL, true);
Chuck Liao3bad37e2018-10-30 11:39:56 +08009098 sDefaults.putBoolean(KEY_SUPPORT_EMERGENCY_DIALER_SHORTCUT_BOOL, true);
SongFerngWangc64d9702018-10-24 11:37:13 +08009099 sDefaults.putBoolean(KEY_USE_CALL_FORWARDING_USSD_BOOL, false);
9100 sDefaults.putBoolean(KEY_USE_CALLER_ID_USSD_BOOL, false);
SongFerngWang7718c202021-03-31 22:55:50 +08009101 sDefaults.putBoolean(KEY_USE_CALL_WAITING_USSD_BOOL, false);
SongFerngWangc64d9702018-10-24 11:37:13 +08009102 sDefaults.putInt(KEY_CALL_WAITING_SERVICE_CLASS_INT, 1 /* SERVICE_CLASS_VOICE */);
Pengquan Mengdfb39562018-12-05 16:26:42 -08009103 sDefaults.putString(KEY_5G_ICON_CONFIGURATION_STRING,
SongFerngWang56e1a312020-03-10 13:08:31 +08009104 "connected_mmwave:5G,connected:5G,not_restricted_rrc_idle:5G,"
9105 + "not_restricted_rrc_con:5G");
Sarah Chin46941d62020-04-20 21:11:40 -07009106 sDefaults.putString(KEY_5G_ICON_DISPLAY_GRACE_PERIOD_STRING, "");
9107 sDefaults.putString(KEY_5G_ICON_DISPLAY_SECONDARY_GRACE_PERIOD_STRING, "");
SongFerngWang3a3af2f2020-07-07 18:10:00 +08009108 sDefaults.putBoolean(KEY_NR_TIMERS_RESET_IF_NON_ENDC_AND_RRC_IDLE_BOOL, false);
Sarah Chine0b991e2020-02-04 12:08:45 -08009109 /* Default value is 1 hour. */
9110 sDefaults.putLong(KEY_5G_WATCHDOG_TIME_MS_LONG, 3600000);
SongFerngWangea06cec2021-04-07 23:14:46 +08009111 sDefaults.putIntArray(KEY_ADDITIONAL_NR_ADVANCED_BANDS_INT_ARRAY, new int[0]);
SongFerngWang6c1f38e2021-05-10 22:43:14 +08009112 sDefaults.putInt(KEY_NR_ADVANCED_CAPABLE_PCO_ID_INT, 0);
Jack Yu5e7b8532021-10-19 21:21:28 -07009113 sDefaults.putBoolean(KEY_ENABLE_NR_ADVANCED_WHILE_ROAMING_BOOL, true);
SongFerngWangaf6fd222021-07-03 01:06:09 +08009114 sDefaults.putBoolean(KEY_LTE_ENDC_USING_USER_DATA_FOR_RRC_DETECTION_BOOL, false);
Sarah Chin69f721e2021-12-13 17:52:25 -08009115 sDefaults.putStringArray(KEY_UNMETERED_NETWORK_TYPES_STRING_ARRAY, new String[] {
9116 "NR_NSA", "NR_NSA_MMWAVE", "NR_SA", "NR_SA_MMWAVE"});
9117 sDefaults.putStringArray(KEY_ROAMING_UNMETERED_NETWORK_TYPES_STRING_ARRAY, new String[0]);
Sarah Chine0b991e2020-02-04 12:08:45 -08009118 sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_BOOL, false);
9119 sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_MMWAVE_BOOL, false);
9120 sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_SUB6_BOOL, false);
Sarah Chindc310312020-04-01 10:59:34 -07009121 sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_WHEN_ROAMING_BOOL, false);
Sarah Chin5956f302020-04-09 10:33:28 -07009122 sDefaults.putBoolean(KEY_UNMETERED_NR_SA_BOOL, false);
9123 sDefaults.putBoolean(KEY_UNMETERED_NR_SA_MMWAVE_BOOL, false);
9124 sDefaults.putBoolean(KEY_UNMETERED_NR_SA_SUB6_BOOL, false);
Sukanya Rajkhowa6de48e42018-08-20 16:35:36 +08009125 sDefaults.putBoolean(KEY_ASCII_7_BIT_SUPPORT_FOR_LONG_MESSAGE_BOOL, false);
Nishizawa Nobuhiro4583ccb2020-01-30 18:01:36 +09009126 sDefaults.putBoolean(KEY_SHOW_WIFI_CALLING_ICON_IN_STATUS_BAR_BOOL, false);
Avinash Malipatila27b8d1a2021-10-27 03:30:18 +00009127 sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_OPP_DATA_AUTO_PROVISIONING_BOOL, false);
9128 sDefaults.putString(KEY_SMDP_SERVER_ADDRESS_STRING, "");
9129 sDefaults.putInt(KEY_ESIM_MAX_DOWNLOAD_RETRY_ATTEMPTS_INT, 5);
9130 sDefaults.putInt(KEY_ESIM_DOWNLOAD_RETRY_BACKOFF_TIMER_SEC_INT, 60);
Avinash Malipatilf63c1fd2021-12-07 08:01:03 +00009131 sDefaults.putIntArray(KEY_OPPORTUNISTIC_CARRIER_IDS_INT_ARRAY, new int[] {0});
Avinash Malipatilc179ec32022-02-03 17:37:58 +00009132 sDefaults.putBoolean(KEY_OPPORTUNISTIC_ESIM_DOWNLOAD_VIA_WIFI_ONLY_BOOL, false);
Sooraj Sasindran6633c572019-03-29 23:14:23 +00009133 /* Default value is minimum RSRP level needed for SIGNAL_STRENGTH_GOOD */
9134 sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSRP_INT, -108);
Sooraj Sasindran873252f2018-12-11 10:35:16 -08009135 /* Default value is minimum RSRP level needed for SIGNAL_STRENGTH_MODERATE */
Sooraj Sasindran6633c572019-03-29 23:14:23 +00009136 sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT, -118);
9137 /* Default value is minimum RSSNR level needed for SIGNAL_STRENGTH_GOOD */
Jack Nudelman35d62382022-02-28 14:48:46 -08009138 sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSSNR_INT, 5);
Sooraj Sasindran873252f2018-12-11 10:35:16 -08009139 /* Default value is minimum RSSNR level needed for SIGNAL_STRENGTH_MODERATE */
Jack Nudelman35d62382022-02-28 14:48:46 -08009140 sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT, 1);
Sooraj Sasindran73710f82019-01-09 11:09:22 -08009141 /* Default value is 1024 kbps */
9142 sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_BANDWIDTH_INT, 1024);
9143 /* Default value is 10 seconds */
Sooraj Sasindran5f7ca3a2019-02-20 19:51:06 -08009144 sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_ENTRY_OR_EXIT_HYSTERESIS_TIME_LONG, 10000);
Sooraj Sasindran73710f82019-01-09 11:09:22 -08009145 /* Default value is 10 seconds. */
Sooraj Sasindran5f7ca3a2019-02-20 19:51:06 -08009146 sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG, 10000);
Sooraj Sasindran9f80e4b2019-08-01 13:52:32 -07009147 /* Default value is 3 seconds. */
9148 sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG, 3000);
Meng Wang84b8cd12022-01-22 01:02:27 +00009149 sDefaults.putAll(OpportunisticNetwork.getDefaults());
Sooraj Sasindran75c09602019-09-13 10:40:32 -07009150 sDefaults.putBoolean(KEY_PING_TEST_BEFORE_DATA_SWITCH_BOOL, true);
Sooraj Sasindran8c04a5a2019-11-04 13:07:23 -08009151 sDefaults.putBoolean(KEY_SWITCH_DATA_TO_PRIMARY_IF_PRIMARY_IS_OOS_BOOL, true);
Sooraj Sasindran74891f22019-11-19 10:23:22 -08009152 /* Default value is 60 seconds. */
9153 sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG, 60000);
Sooraj Sasindran8c04a5a2019-11-04 13:07:23 -08009154 /* Default value is 10 seconds. */
9155 sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG, 10000);
Sooraj Sasindran74891f22019-11-19 10:23:22 -08009156 /* Default value is 60 seconds. */
9157 sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_MAX_BACKOFF_TIME_LONG, 60000);
Jack Nudelman0cd98972021-07-01 06:40:52 -07009158 sDefaults.putBoolean(KEY_ENABLE_4G_OPPORTUNISTIC_NETWORK_SCAN_BOOL, true);
Meng Wang7332ded2022-01-18 04:53:10 +00009159 sDefaults.putLong(KEY_TIME_TO_SWITCH_BACK_TO_PRIMARY_IF_OPPORTUNISTIC_OOS_LONG, 60000L);
9160 sDefaults.putLong(
Jack Nudelmanda76b832021-10-07 14:20:55 -07009161 KEY_OPPORTUNISTIC_TIME_TO_SCAN_AFTER_CAPABILITY_SWITCH_TO_PRIMARY_LONG,
Meng Wang7332ded2022-01-18 04:53:10 +00009162 120000L);
Meng Wang33c62212021-12-13 19:04:25 +00009163 sDefaults.putAll(ImsServiceEntitlement.getDefaults());
Meng Wang19b214d2018-11-07 12:14:39 -08009164 sDefaults.putAll(Gps.getDefaults());
chen xueb07e4e2019-02-08 17:40:33 -08009165 sDefaults.putIntArray(KEY_CDMA_ENHANCED_ROAMING_INDICATOR_FOR_HOME_NETWORK_INT_ARRAY,
9166 new int[] {
9167 1 /* Roaming Indicator Off */
9168 });
sqian69f48c52019-02-15 16:19:36 -08009169 sDefaults.putStringArray(KEY_EMERGENCY_NUMBER_PREFIX_STRING_ARRAY, new String[0]);
Shuo Qiand4dd13c2021-05-07 01:48:14 -07009170 sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_CALLER_ID_VERTICAL_SERVICE_CODES_BOOL, false);
mavishsu00111212019-03-06 13:12:23 +08009171 sDefaults.putBoolean(KEY_USE_USIM_BOOL, false);
Hall Liuf30b5ac2019-04-30 07:45:00 -07009172 sDefaults.putBoolean(KEY_SHOW_WFC_LOCATION_PRIVACY_POLICY_BOOL, false);
James.cf Lin8f05cb62019-08-07 15:41:45 +08009173 sDefaults.putBoolean(KEY_AUTO_CANCEL_CS_REJECT_NOTIFICATION, true);
Bonian Chen612e6a92019-03-26 01:49:39 +08009174 sDefaults.putString(KEY_SMART_FORWARDING_CONFIG_COMPONENT_NAME_STRING, "");
Malcolm Chen50ba9632019-02-26 16:49:56 -08009175 sDefaults.putBoolean(KEY_ALWAYS_SHOW_PRIMARY_SIGNAL_BAR_IN_OPPORTUNISTIC_NETWORK_BOOLEAN,
9176 false);
Nathan Harold773b0822019-03-12 15:51:42 -07009177 sDefaults.putString(KEY_SUBSCRIPTION_GROUP_UUID_STRING, "");
9178 sDefaults.putBoolean(KEY_IS_OPPORTUNISTIC_SUBSCRIPTION_BOOL, false);
andychoub80dbce2019-04-09 14:50:31 +08009179 sDefaults.putIntArray(KEY_GSM_RSSI_THRESHOLDS_INT_ARRAY,
9180 new int[] {
9181 -107, /* SIGNAL_STRENGTH_POOR */
9182 -103, /* SIGNAL_STRENGTH_MODERATE */
9183 -97, /* SIGNAL_STRENGTH_GOOD */
9184 -89, /* SIGNAL_STRENGTH_GREAT */
9185 });
andychoudcc0dd22019-05-08 23:24:08 +08009186 sDefaults.putBoolean(KEY_SUPPORT_WPS_OVER_IMS_BOOL, true);
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009187 sDefaults.putAll(Ims.getDefaults());
Sateshk Kumar Chinnappanc53b8302022-01-07 08:49:40 -08009188 sDefaults.putAll(ImsVoice.getDefaults());
9189 sDefaults.putAll(ImsSms.getDefaults());
9190 sDefaults.putAll(ImsRtt.getDefaults());
9191 sDefaults.putAll(ImsEmergency.getDefaults());
9192 sDefaults.putAll(ImsVt.getDefaults());
9193 sDefaults.putAll(ImsWfc.getDefaults());
9194 sDefaults.putAll(ImsSs.getDefaults());
9195 sDefaults.putAll(Bsf.getDefaults());
Naina Nalluria0cd83e2020-11-03 12:53:27 -08009196 sDefaults.putAll(Iwlan.getDefaults());
Nazanind18cde62020-08-18 14:45:22 -07009197 sDefaults.putStringArray(KEY_CARRIER_CERTIFICATE_STRING_ARRAY, new String[0]);
Nishizawa Nobuhiroe8e1ed62019-12-13 18:09:39 +09009198 sDefaults.putBoolean(KEY_FORMAT_INCOMING_NUMBER_TO_NATIONAL_FOR_JP_BOOL, false);
Saki Oomori63bb8562018-08-22 16:07:07 +09009199 sDefaults.putIntArray(KEY_DISCONNECT_CAUSE_PLAY_BUSYTONE_INT_ARRAY,
9200 new int[] {4 /* BUSY */});
Hideki Ishiide2688e2018-09-27 17:26:21 +09009201 sDefaults.putBoolean(KEY_PREVENT_CLIR_ACTIVATION_AND_DEACTIVATION_CODE_BOOL, false);
Malcolm Chen58f8d0f2019-10-31 15:06:19 -07009202 sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_TIMEOUT_LONG, 2000);
James.cf Lin8da1b072020-02-27 18:37:17 +08009203 sDefaults.putStringArray(KEY_MMI_TWO_DIGIT_NUMBER_PATTERN_STRING_ARRAY, new String[0]);
Tomita, Ryounosuke Xbe117202018-09-11 14:06:40 +09009204 sDefaults.putInt(KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT,
SongFerngWang680c9862020-02-04 21:29:47 +08009205 CellSignalStrengthLte.USE_RSRP);
lesle14a0902019-12-12 17:16:30 +08009206 // Default wifi configurations.
9207 sDefaults.putAll(Wifi.getDefaults());
Hai Shalom0a5b2072019-12-26 16:17:00 -08009208 sDefaults.putBoolean(ENABLE_EAP_METHOD_PREFIX_BOOL, false);
Hall Liuab470f72021-03-10 18:02:47 -08009209 sDefaults.putInt(KEY_GBA_MODE_INT, GBA_ME);
9210 sDefaults.putInt(KEY_GBA_UA_SECURITY_ORGANIZATION_INT,
9211 UaSecurityProtocolIdentifier.ORG_3GPP);
9212 sDefaults.putInt(KEY_GBA_UA_SECURITY_PROTOCOL_INT,
9213 UaSecurityProtocolIdentifier.UA_SECURITY_PROTOCOL_3GPP_TLS_DEFAULT);
9214 sDefaults.putInt(KEY_GBA_UA_TLS_CIPHER_SUITE_INT, TlsParams.TLS_NULL_WITH_NULL_NULL);
9215
Shinsuke Ishioka5ee45892018-08-30 13:33:30 +09009216 sDefaults.putBoolean(KEY_SHOW_FORWARDED_NUMBER_BOOL, false);
Malcolm Chen57b574e2020-02-19 15:21:22 -08009217 sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG, TimeUnit.DAYS.toMillis(1));
Jack Yu1e1ff942019-12-23 15:19:56 -08009218 sDefaults.putStringArray(KEY_MISSED_INCOMING_CALL_SMS_ORIGINATOR_STRING_ARRAY,
9219 new String[0]);
Daniel Brightdcc3c0a2020-03-24 14:53:59 -07009220 sDefaults.putStringArray(KEY_APN_PRIORITY_STRING_ARRAY, new String[] {
Sarah Chind30c8532021-03-31 00:46:42 -07009221 "enterprise:0", "default:1", "mms:2", "supl:2", "dun:2", "hipri:3", "fota:2",
Daniel Brightdcc3c0a2020-03-24 14:53:59 -07009222 "ims:2", "cbs:2", "ia:2", "emergency:2", "mcx:3", "xcap:3"
9223 });
Jack Yucc516a82021-11-20 13:15:59 -08009224
9225 // Do not modify the priority unless you know what you are doing. This will have significant
9226 // impacts on the order of data network setup.
Jack Yu98819652021-10-01 02:50:46 -07009227 sDefaults.putStringArray(
9228 KEY_TELEPHONY_NETWORK_CAPABILITY_PRIORITIES_STRING_ARRAY, new String[] {
9229 "eims:90", "supl:80", "mms:70", "xcap:70", "cbs:50", "mcx:50", "fota:50",
9230 "ims:40", "dun:30", "enterprise:20", "internet:20"
9231 });
Jack Yu07844fb2021-10-07 01:12:15 -07009232 sDefaults.putStringArray(
Jack Yu24e84522021-12-16 11:17:42 -08009233 KEY_TELEPHONY_DATA_SETUP_RETRY_RULES_STRING_ARRAY, new String[] {
Jack Yu07844fb2021-10-07 01:12:15 -07009234 "capabilities=eims, retry_interval=1000, maximum_retries=20",
Jack Yu27194752022-10-20 23:24:09 -07009235 // Permanent fail causes. When setup data call fails with the following
9236 // fail causes, telephony data frameworks will stop timer-based retry on
9237 // the failed APN until power cycle, APM, or some special events. Note that
9238 // even though timer-based retry is not performed, condition-based (RAT
9239 // changes, registration state changes) retry can still happen.
9240 "permanent_fail_causes=8|27|28|29|30|32|33|35|50|51|111|-5|-6|65537|65538|"
9241 + "-3|65543|65547|2252|2253|2254, retry_interval=2500",
Jack Yu69af7792021-10-17 18:15:32 -07009242 "capabilities=mms|supl|cbs, retry_interval=2000",
Jack Yucc516a82021-11-20 13:15:59 -08009243 "capabilities=internet|enterprise|dun|ims|fota, retry_interval=2500|3000|"
9244 + "5000|10000|15000|20000|40000|60000|120000|240000|"
9245 + "600000|1200000|1800000, maximum_retries=20"
Jack Yu07844fb2021-10-07 01:12:15 -07009246 });
Jack Yu24e84522021-12-16 11:17:42 -08009247 sDefaults.putStringArray(
9248 KEY_TELEPHONY_DATA_HANDOVER_RETRY_RULES_STRING_ARRAY, new String[] {
9249 "retry_interval=1000|2000|4000|8000|16000, maximum_retries=5"
9250 });
Jack Yud4294152022-02-13 01:37:30 -08009251 sDefaults.putBoolean(KEY_DELAY_IMS_TEAR_DOWN_UNTIL_CALL_END_BOOL, false);
Jack Yu1e1ff942019-12-23 15:19:56 -08009252 sDefaults.putStringArray(KEY_MISSED_INCOMING_CALL_SMS_PATTERN_STRING_ARRAY, new String[0]);
Masaho Nishikawa115e0282020-01-30 11:46:22 +09009253 sDefaults.putBoolean(KEY_DISABLE_DUN_APN_WHILE_ROAMING_WITH_PRESET_APN_BOOL, false);
9254 sDefaults.putString(KEY_DEFAULT_PREFERRED_APN_NAME_STRING, "");
Shuo Qian13690012020-11-30 22:34:42 -08009255 sDefaults.putBoolean(KEY_SUPPORTS_CALL_COMPOSER_BOOL, false);
9256 sDefaults.putString(KEY_CALL_COMPOSER_PICTURE_SERVER_URL_STRING, "");
Hui Wangb8ea95e2020-10-31 05:09:59 +00009257 sDefaults.putBoolean(KEY_USE_ACS_FOR_RCS_BOOL, false);
Jack Yuea53b4e2021-01-19 11:09:32 -08009258 sDefaults.putBoolean(KEY_NETWORK_TEMP_NOT_METERED_SUPPORTED_BOOL, true);
Sonalika Paulefa0fa92020-08-25 15:11:02 +05309259 sDefaults.putInt(KEY_DEFAULT_RTT_MODE_INT, 0);
Michele Berionne726fa0a2020-11-19 22:46:42 +00009260 sDefaults.putBoolean(KEY_STORE_SIM_PIN_FOR_UNATTENDED_REBOOT_BOOL, true);
Yomna Nasser8fa54b72021-01-18 22:00:55 +00009261 sDefaults.putBoolean(KEY_HIDE_ENABLE_2G, false);
Jack Yu0bebba72021-02-17 14:08:42 -08009262 sDefaults.putStringArray(KEY_ALLOWED_INITIAL_ATTACH_APN_TYPES_STRING_ARRAY,
Jack Yu2dd6cbb2022-01-28 17:01:58 -08009263 new String[]{"ia", "default"});
Etan Cohen65e16152021-03-13 08:31:28 +00009264 sDefaults.putBoolean(KEY_CARRIER_PROVISIONS_WIFI_MERGED_NETWORKS_BOOL, false);
Etan Cohenf6466c12021-04-06 01:21:13 +00009265 sDefaults.putBoolean(KEY_USE_IP_FOR_CALLING_INDICATOR_BOOL, false);
Etan Cohen7573d7e2021-03-21 23:49:18 +00009266 sDefaults.putBoolean(KEY_DISPLAY_CALL_STRENGTH_INDICATOR_BOOL, true);
Calvin Pan2260d0b2021-03-05 00:21:32 +08009267 sDefaults.putString(KEY_CARRIER_PROVISIONING_APP_STRING, "");
Jack Yu5badb092021-03-29 11:07:55 -07009268 sDefaults.putBoolean(KEY_DISPLAY_NO_DATA_NOTIFICATION_ON_PERMANENT_FAILURE_BOOL, false);
Jack Yuc8cf1b02021-04-20 13:29:54 -07009269 sDefaults.putBoolean(KEY_UNTHROTTLE_DATA_RETRY_WHEN_TAC_CHANGES_BOOL, false);
Gary Jianeaa09eb2021-11-15 19:26:34 +08009270 sDefaults.putBoolean(KEY_VONR_SETTING_VISIBILITY_BOOL, true);
Gary Jian204ec2a2021-10-13 13:09:54 +08009271 sDefaults.putBoolean(KEY_VONR_ENABLED_BOOL, false);
Gary Jiane0b54bb2022-11-08 08:00:10 +00009272 sDefaults.putBoolean(KEY_VONR_ON_BY_DEFAULT_BOOL, true);
Jack Yufd33d542021-12-12 13:34:53 -08009273 sDefaults.putStringArray(KEY_IWLAN_HANDOVER_POLICY_STRING_ARRAY, new String[]{
9274 "source=GERAN|UTRAN|EUTRAN|NGRAN|IWLAN, "
9275 + "target=GERAN|UTRAN|EUTRAN|NGRAN|IWLAN, type=allowed"});
Nathan Harold8ab07282021-11-04 18:22:24 -07009276 sDefaults.putInt(KEY_CELLULAR_USAGE_SETTING_INT,
9277 SubscriptionManager.USAGE_SETTING_UNKNOWN);
Willy Hua7846ec2021-12-22 02:52:06 +08009278 // Default data stall recovery configurations.
9279 sDefaults.putLongArray(KEY_DATA_STALL_RECOVERY_TIMERS_LONG_ARRAY,
Willy Huc20021e2022-03-18 17:09:17 +08009280 new long[] {180000, 180000, 180000, 180000});
Willy Hua7846ec2021-12-22 02:52:06 +08009281 sDefaults.putBooleanArray(KEY_DATA_STALL_RECOVERY_SHOULD_SKIP_BOOL_ARRAY,
Willy Huc20021e2022-03-18 17:09:17 +08009282 new boolean[] {false, false, true, false, false});
lesle14a0902019-12-12 17:16:30 +08009283 }
9284
9285 /**
9286 * Wi-Fi configs used in WiFi Module.
9287 *
9288 * @hide
9289 */
9290 @SystemApi
9291 public static final class Wifi {
9292 /** Prefix of all Wifi.KEY_* constants. */
9293 public static final String KEY_PREFIX = "wifi.";
9294 /**
lesl565176c2020-02-24 18:53:06 +08009295 * It contains the maximum client count definition that the carrier sets.
9296 * The default is 0, which means that the carrier hasn't set a requirement.
lesle14a0902019-12-12 17:16:30 +08009297 */
9298 public static final String KEY_HOTSPOT_MAX_CLIENT_COUNT =
9299 KEY_PREFIX + "hotspot_maximum_client_count";
9300
xshud10ce032021-01-06 19:39:39 -08009301 /**
9302 * This configuration is intended to be a narrow exception for provisioning
9303 * {@link android.net.wifi.WifiNetworkSuggestion} of widely-known carrier networks that do
9304 * not support using randomized MAC address.
9305 * Carrier provisioned {@link android.net.wifi.WifiNetworkSuggestion} with SSIDs included
9306 * in this list will have MAC randomization disabled.
9307 *
9308 * Note: the SSIDs in the list are expected to be interpreted as is - do not add double
9309 * quotes to the SSIDs.
9310 */
9311 public static final String KEY_SUGGESTION_SSID_LIST_WITH_MAC_RANDOMIZATION_DISABLED =
9312 KEY_PREFIX + "suggestion_ssid_list_with_mac_randomization_disabled";
9313
Quang Luongfb39c5d2021-01-19 11:30:58 -08009314 /**
9315 * Avoid SoftAp in 5GHz if cellular is on unlicensed 5Ghz using License Assisted Access
9316 * (LAA).
9317 */
9318 public static final String KEY_AVOID_5GHZ_SOFTAP_FOR_LAA_BOOL =
9319 KEY_PREFIX + "avoid_5ghz_softap_for_laa_bool";
9320
9321 /**
9322 * Avoid Wifi Direct in 5GHz if cellular is on unlicensed 5Ghz using License Assisted
9323 * Access (LAA).
9324 */
9325 public static final String KEY_AVOID_5GHZ_WIFI_DIRECT_FOR_LAA_BOOL =
9326 KEY_PREFIX + "avoid_5ghz_wifi_direct_for_laa_bool";
9327
9328
lesle14a0902019-12-12 17:16:30 +08009329 private static PersistableBundle getDefaults() {
9330 PersistableBundle defaults = new PersistableBundle();
9331 defaults.putInt(KEY_HOTSPOT_MAX_CLIENT_COUNT, 0);
xshud10ce032021-01-06 19:39:39 -08009332 defaults.putStringArray(KEY_SUGGESTION_SSID_LIST_WITH_MAC_RANDOMIZATION_DISABLED,
9333 new String[0]);
Quang Luongfb39c5d2021-01-19 11:30:58 -08009334 defaults.putBoolean(KEY_AVOID_5GHZ_SOFTAP_FOR_LAA_BOOL, false);
9335 defaults.putBoolean(KEY_AVOID_5GHZ_WIFI_DIRECT_FOR_LAA_BOOL, false);
xshud10ce032021-01-06 19:39:39 -08009336
lesle14a0902019-12-12 17:16:30 +08009337 return defaults;
9338 }
9339
9340 private Wifi() {}
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009341 }
9342
9343 /**
9344 * Gets the configuration values for a particular subscription, which is associated with a
9345 * specific SIM card. If an invalid subId is used, the returned config will contain default
yinxu349b6442018-03-16 10:16:53 -07009346 * values. After using this method to get the configuration bundle,
9347 * {@link #isConfigForIdentifiedCarrier(PersistableBundle)} should be called to confirm whether
9348 * any carrier specific configuration has been applied.
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009349 *
Junda Liufbd740c2015-06-18 16:29:35 -07009350 * <p>Requires Permission:
Rambo Wangd2639b92021-11-02 07:23:49 -07009351 * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}, or the calling app
9352 * has carrier privileges (see {@link TelephonyManager#hasCarrierPrivileges()}).
Junda Liufbd740c2015-06-18 16:29:35 -07009353 *
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009354 * @param subId the subscription ID, normally obtained from {@link SubscriptionManager}.
Jonathan Basseri4f9ad1672015-05-12 10:06:32 -07009355 * @return A {@link PersistableBundle} containing the config for the given subId, or default
9356 * values for an invalid subId.
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009357 */
Rambo Wangd2639b92021-11-02 07:23:49 -07009358 @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges
9359 @RequiresPermission(Manifest.permission.READ_PHONE_STATE)
Jonathan Basserib731c3d2015-05-05 12:00:59 -07009360 @Nullable
Jonathan Basseri4f9ad1672015-05-12 10:06:32 -07009361 public PersistableBundle getConfigForSubId(int subId) {
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009362 try {
Chenjie Luo90bc39d2015-12-03 12:24:12 -08009363 ICarrierConfigLoader loader = getICarrierConfigLoader();
9364 if (loader == null) {
9365 Rlog.w(TAG, "Error getting config for subId " + subId
9366 + " ICarrierConfigLoader is null");
9367 return null;
9368 }
Philip P. Moltmann33692f72019-10-03 11:56:11 -07009369 return loader.getConfigForSubIdWithFeature(subId, mContext.getOpPackageName(),
Philip P. Moltmann8a06c282020-03-05 15:01:29 -08009370 mContext.getAttributionTag());
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009371 } catch (RemoteException ex) {
Chenjie Luo90bc39d2015-12-03 12:24:12 -08009372 Rlog.e(TAG, "Error getting config for subId " + subId + ": "
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009373 + ex.toString());
9374 }
9375 return null;
9376 }
9377
9378 /**
Hall Liue5b1fda2018-10-22 18:17:44 -07009379 * Overrides the carrier config of the provided subscription ID with the provided values.
9380 *
Brad Ebingera298e672019-04-15 17:10:26 -07009381 * Any further queries to carrier config from any process will return the overridden values
9382 * after this method returns. The overrides are effective for the lifetime of the phone process
9383 * until the user passes in {@code null} for {@code overrideValues}. This removes all previous
9384 * overrides and sets the carrier config back to production values.
Hall Liue5b1fda2018-10-22 18:17:44 -07009385 *
9386 * May throw an {@link IllegalArgumentException} if {@code overrideValues} contains invalid
9387 * values for the specified config keys.
9388 *
Brad Ebingercf297462019-04-25 10:59:08 -07009389 * NOTE: This API is meant for testing purposes only.
Brad Ebingera298e672019-04-15 17:10:26 -07009390 *
Hall Liue5b1fda2018-10-22 18:17:44 -07009391 * @param subscriptionId The subscription ID for which the override should be done.
Brad Ebingera298e672019-04-15 17:10:26 -07009392 * @param overrideValues Key-value pairs of the values that are to be overridden. If set to
9393 * {@code null}, this will remove all previous overrides and set the
9394 * carrier configuration back to production values.
Hall Liue5b1fda2018-10-22 18:17:44 -07009395 * @hide
9396 */
9397 @RequiresPermission(Manifest.permission.MODIFY_PHONE_STATE)
9398 @SystemApi
Hall Liue5b1fda2018-10-22 18:17:44 -07009399 public void overrideConfig(int subscriptionId, @Nullable PersistableBundle overrideValues) {
Torbjorn Eklund4af3ae92019-02-13 16:42:16 +01009400 overrideConfig(subscriptionId, overrideValues, false);
9401 }
9402
9403 /**
9404 * Overrides the carrier config of the provided subscription ID with the provided values.
9405 *
9406 * Any further queries to carrier config from any process will return the overridden values
9407 * after this method returns. The overrides are effective until the user passes in {@code null}
9408 * for {@code overrideValues}. This removes all previous overrides and sets the carrier config
9409 * back to production values.
9410 *
9411 * The overrides is stored persistently and will survive a reboot if {@code persistent} is true.
9412 *
9413 * May throw an {@link IllegalArgumentException} if {@code overrideValues} contains invalid
9414 * values for the specified config keys.
9415 *
9416 * NOTE: This API is meant for testing purposes only.
9417 *
9418 * @param subscriptionId The subscription ID for which the override should be done.
9419 * @param overrideValues Key-value pairs of the values that are to be overridden. If set to
9420 * {@code null}, this will remove all previous overrides and set the
9421 * carrier configuration back to production values.
9422 * @param persistent Determines whether the override should be persistent.
9423 * @hide
9424 */
9425 @RequiresPermission(Manifest.permission.MODIFY_PHONE_STATE)
9426 public void overrideConfig(int subscriptionId, @Nullable PersistableBundle overrideValues,
9427 boolean persistent) {
Hall Liue5b1fda2018-10-22 18:17:44 -07009428 try {
9429 ICarrierConfigLoader loader = getICarrierConfigLoader();
9430 if (loader == null) {
9431 Rlog.w(TAG, "Error setting config for subId " + subscriptionId
9432 + " ICarrierConfigLoader is null");
9433 return;
9434 }
Torbjorn Eklund4af3ae92019-02-13 16:42:16 +01009435 loader.overrideConfig(subscriptionId, overrideValues, persistent);
Hall Liue5b1fda2018-10-22 18:17:44 -07009436 } catch (RemoteException ex) {
9437 Rlog.e(TAG, "Error setting config for subId " + subscriptionId + ": "
9438 + ex.toString());
9439 }
9440 }
9441
9442 /**
yinxu349b6442018-03-16 10:16:53 -07009443 * Gets the configuration values for the default subscription. After using this method to get
9444 * the configuration bundle, {@link #isConfigForIdentifiedCarrier(PersistableBundle)} should be
9445 * called to confirm whether any carrier specific configuration has been applied.
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009446 *
Junda Liufbd740c2015-06-18 16:29:35 -07009447 * <p>Requires Permission:
Rambo Wangd2639b92021-11-02 07:23:49 -07009448 * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}, or the calling app
9449 * has carrier privileges (see {@link TelephonyManager#hasCarrierPrivileges()}).
Junda Liufbd740c2015-06-18 16:29:35 -07009450 *
Derek Tan818822a2016-05-25 18:37:05 +00009451 * @see #getConfigForSubId
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009452 */
Rambo Wangd2639b92021-11-02 07:23:49 -07009453 @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges
9454 @RequiresPermission(Manifest.permission.READ_PHONE_STATE)
Jonathan Basserib731c3d2015-05-05 12:00:59 -07009455 @Nullable
Jonathan Basseri4f9ad1672015-05-12 10:06:32 -07009456 public PersistableBundle getConfig() {
Derek Tan818822a2016-05-25 18:37:05 +00009457 return getConfigForSubId(SubscriptionManager.getDefaultSubscriptionId());
Shishir Agrawal3bf26b52016-02-17 15:52:09 -08009458 }
9459
9460 /**
yinxu0d56f3c2017-11-29 15:02:05 -08009461 * Determines whether a configuration {@link PersistableBundle} obtained from
9462 * {@link #getConfig()} or {@link #getConfigForSubId(int)} corresponds to an identified carrier.
Rambo Wangd2639b92021-11-02 07:23:49 -07009463 *
9464 * <p>When an app receives the {@link CarrierConfigManager#ACTION_CARRIER_CONFIG_CHANGED}
yinxu0d56f3c2017-11-29 15:02:05 -08009465 * broadcast which informs it that the carrier configuration has changed, it is possible
9466 * that another reload of the carrier configuration has begun since the intent was sent.
9467 * In this case, the carrier configuration the app fetches (e.g. via {@link #getConfig()})
9468 * may not represent the configuration for the current carrier. It should be noted that it
9469 * does not necessarily mean the configuration belongs to current carrier when this function
9470 * return true because it may belong to another previous identified carrier. Users should
9471 * always call {@link #getConfig()} or {@link #getConfigForSubId(int)} after receiving the
9472 * broadcast {@link #ACTION_CARRIER_CONFIG_CHANGED}.
Rambo Wangd2639b92021-11-02 07:23:49 -07009473 *
9474 * <p>After using {@link #getConfig()} or {@link #getConfigForSubId(int)} an app should always
yinxu0d56f3c2017-11-29 15:02:05 -08009475 * use this method to confirm whether any carrier specific configuration has been applied.
yinxu349b6442018-03-16 10:16:53 -07009476 * Especially when an app misses the broadcast {@link #ACTION_CARRIER_CONFIG_CHANGED} but it
9477 * still needs to get the current configuration, it must use this method to verify whether the
9478 * configuration is default or carrier overridden.
yinxu0d56f3c2017-11-29 15:02:05 -08009479 *
9480 * @param bundle the configuration bundle to be checked.
9481 * @return boolean true if any carrier specific configuration bundle has been applied, false
9482 * otherwise or the bundle is null.
9483 */
9484 public static boolean isConfigForIdentifiedCarrier(PersistableBundle bundle) {
9485 return bundle != null && bundle.getBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL);
9486 }
9487
9488 /**
Shishir Agrawal3bf26b52016-02-17 15:52:09 -08009489 * Calling this method triggers telephony services to fetch the current carrier configuration.
Rambo Wangd2639b92021-11-02 07:23:49 -07009490 *
9491 * <p>Normally this does not need to be called because the platform reloads config on its own.
Shishir Agrawal3bf26b52016-02-17 15:52:09 -08009492 * This should be called by a carrier service app if it wants to update config at an arbitrary
9493 * moment.
Rambo Wangd2639b92021-11-02 07:23:49 -07009494 *
9495 * <p>Requires Permission:
9496 * {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE}, or the calling app
9497 * has carrier privileges (see {@link TelephonyManager#hasCarrierPrivileges()}).
9498 *
9499 * <p>This method returns before the reload has completed, and {@link
9500 * android.service.carrier.CarrierService#onLoadConfig} will be called from an arbitrary thread.
Shishir Agrawal3bf26b52016-02-17 15:52:09 -08009501 */
Rambo Wangd2639b92021-11-02 07:23:49 -07009502 @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges
9503 @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
Shishir Agrawal3bf26b52016-02-17 15:52:09 -08009504 public void notifyConfigChangedForSubId(int subId) {
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009505 try {
Chenjie Luo90bc39d2015-12-03 12:24:12 -08009506 ICarrierConfigLoader loader = getICarrierConfigLoader();
9507 if (loader == null) {
9508 Rlog.w(TAG, "Error reloading config for subId=" + subId
9509 + " ICarrierConfigLoader is null");
9510 return;
9511 }
9512 loader.notifyConfigChangedForSubId(subId);
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009513 } catch (RemoteException ex) {
9514 Rlog.e(TAG, "Error reloading config for subId=" + subId + ": " + ex.toString());
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009515 }
9516 }
9517
9518 /**
Rambo Wangd2639b92021-11-02 07:23:49 -07009519 * Request the carrier config loader to update the config for phoneId.
9520 *
9521 * <p>Depending on simState, the config may be cleared or loaded from config app. This is only
9522 * used by SubscriptionInfoUpdater.
Nancy Chen9e4cd832015-05-22 17:29:43 -07009523 *
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009524 * @hide
9525 */
9526 @SystemApi
Jeff Sharkeyd86b8fe2017-06-02 17:36:26 -06009527 @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009528 public void updateConfigForPhoneId(int phoneId, String simState) {
9529 try {
Chenjie Luo90bc39d2015-12-03 12:24:12 -08009530 ICarrierConfigLoader loader = getICarrierConfigLoader();
9531 if (loader == null) {
9532 Rlog.w(TAG, "Error updating config for phoneId=" + phoneId
9533 + " ICarrierConfigLoader is null");
9534 return;
9535 }
9536 loader.updateConfigForPhoneId(phoneId, simState);
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009537 } catch (RemoteException ex) {
9538 Rlog.e(TAG, "Error updating config for phoneId=" + phoneId + ": " + ex.toString());
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009539 }
9540 }
9541
Shuo Qianec428aa2019-12-19 15:09:43 -08009542 /**
9543 * Gets the package name for a default carrier service.
9544 * @return the package name for a default carrier service; empty string if not available.
9545 *
9546 * @hide
9547 */
9548 @NonNull
9549 @SystemApi
9550 @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
Jeff Sharkey17bebd22017-07-19 21:00:38 -06009551 public String getDefaultCarrierServicePackageName() {
9552 try {
Shuo Qianec428aa2019-12-19 15:09:43 -08009553 ICarrierConfigLoader loader = getICarrierConfigLoader();
9554 if (loader == null) {
9555 Rlog.w(TAG, "getDefaultCarrierServicePackageName ICarrierConfigLoader is null");
9556 return "";
9557 }
9558 return loader.getDefaultCarrierServicePackageName();
9559 } catch (RemoteException ex) {
9560 Rlog.e(TAG, "getDefaultCarrierServicePackageName ICarrierConfigLoader is null"
9561 + ex.toString());
Shuo Qianad46ae12020-02-26 16:13:49 -08009562 ex.rethrowAsRuntimeException();
Jeff Sharkey17bebd22017-07-19 21:00:38 -06009563 }
Shuo Qianec428aa2019-12-19 15:09:43 -08009564 return "";
Jeff Sharkey17bebd22017-07-19 21:00:38 -06009565 }
9566
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009567 /**
Jonathan Basseri98927182015-04-23 23:34:15 -07009568 * Returns a new bundle with the default value for every supported configuration variable.
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009569 *
9570 * @hide
9571 */
Jonathan Basserib731c3d2015-05-05 12:00:59 -07009572 @NonNull
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009573 @SystemApi
Aurimas Liutikas1394a012020-11-12 18:26:09 -08009574 @SuppressLint("RequiresPermission")
Jonathan Basseri4f9ad1672015-05-12 10:06:32 -07009575 public static PersistableBundle getDefaultConfig() {
9576 return new PersistableBundle(sDefaults);
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009577 }
9578
9579 /** @hide */
Chenjie Luo90bc39d2015-12-03 12:24:12 -08009580 @Nullable
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009581 private ICarrierConfigLoader getICarrierConfigLoader() {
Peter Wangd9eebca2019-12-30 16:14:01 -08009582 return ICarrierConfigLoader.Stub.asInterface(
9583 TelephonyFrameworkInitializer
9584 .getTelephonyServiceManager()
9585 .getCarrierConfigServiceRegisterer()
9586 .get());
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009587 }
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009588
9589 /**
9590 * Gets the configuration values for a component using its prefix.
9591 *
9592 * <p>Requires Permission:
Rambo Wangd2639b92021-11-02 07:23:49 -07009593 * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}, or the calling app
9594 * has carrier privileges (see {@link TelephonyManager#hasCarrierPrivileges()}).
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009595 *
9596 * @param prefix prefix of the component.
9597 * @param subId the subscription ID, normally obtained from {@link SubscriptionManager}.
9598 *
9599 * @see #getConfigForSubId
9600 */
Rambo Wangd2639b92021-11-02 07:23:49 -07009601 @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges
9602 @RequiresPermission(Manifest.permission.READ_PHONE_STATE)
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009603 @Nullable
Aurimas Liutikas4d1699d2019-08-28 13:01:05 -07009604 public PersistableBundle getConfigByComponentForSubId(@NonNull String prefix, int subId) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009605 PersistableBundle configs = getConfigForSubId(subId);
9606
9607 if (configs == null) {
9608 return null;
9609 }
9610
9611 PersistableBundle ret = new PersistableBundle();
9612 for (String configKey : configs.keySet()) {
9613 if (configKey.startsWith(prefix)) {
9614 addConfig(configKey, configs.get(configKey), ret);
9615 }
9616 }
9617
9618 return ret;
9619 }
9620
9621 private void addConfig(String key, Object value, PersistableBundle configs) {
9622 if (value instanceof String) {
9623 configs.putString(key, (String) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009624 } else if (value instanceof String[]) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009625 configs.putStringArray(key, (String[]) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009626 } else if (value instanceof Integer) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009627 configs.putInt(key, (Integer) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009628 } else if (value instanceof Long) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009629 configs.putLong(key, (Long) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009630 } else if (value instanceof Double) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009631 configs.putDouble(key, (Double) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009632 } else if (value instanceof Boolean) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009633 configs.putBoolean(key, (Boolean) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009634 } else if (value instanceof int[]) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009635 configs.putIntArray(key, (int[]) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009636 } else if (value instanceof double[]) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009637 configs.putDoubleArray(key, (double[]) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009638 } else if (value instanceof boolean[]) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009639 configs.putBooleanArray(key, (boolean[]) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009640 } else if (value instanceof long[]) {
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009641 configs.putLongArray(key, (long[]) value);
Allen Xud0a56a12022-03-10 18:24:32 +00009642 } else if (value instanceof PersistableBundle) {
9643 configs.putPersistableBundle(key, (PersistableBundle) value);
Dheeraj Shetty054700a2019-05-23 18:22:05 -07009644 }
9645 }
Jonathan Basseri9a1c9b62015-02-25 13:01:52 -08009646}