diff options
| author | 2022-02-12 06:35:13 +0000 | |
|---|---|---|
| committer | 2022-02-12 06:35:13 +0000 | |
| commit | badc5c5ef491f48ac6f2ec2c6962a1ccc3307a1c (patch) | |
| tree | ef561d89bb9a5cdb95674dc5fb1945eac7962bf3 | |
| parent | 5a9c79ec98478bd8637a8e1334fc3ef42b55a452 (diff) | |
| parent | d54fb9484dcf5a6ec06c07ac73946769c0d82213 (diff) | |
Merge "Carrier config for opportunistic eSIM download only over WiFi" am: d54fb9484d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1971299
Change-Id: Ic2c9be9573e5574e7931d7dcd21701d00f4c9a14
| -rw-r--r-- | telephony/java/android/telephony/CarrierConfigManager.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java index 95d8ab352c0c..2918f89098e0 100644 --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -3723,7 +3723,7 @@ public class CarrierConfigManager { /** * SMDP+ server address for downloading opportunistic eSIM profile. * FQDN (Fully Qualified Domain Name) of the SM-DP+ (e.g., smdp.gsma.com) restricted to the - * Alphanumeric mode character set defined in table 5 of ISO/IEC 18004 [15] excluding '$'. + * Alphanumeric mode character set defined in table 5 of ISO/IEC 18004 excluding '$'. */ public static final String KEY_SMDP_SERVER_ADDRESS_STRING = "smdp_server_address_string"; @@ -3767,6 +3767,17 @@ public class CarrierConfigManager { "opportunistic_carrier_ids_int_array"; /** + * Boolean configuration to control auto provisioning eSIM download in + * OpportunisticNetworkService using only WiFi or both WiFi/Data. + * True will download esim only via WiFi. + * False will use both WiFi and Data connection. + * + * @hide + */ + public static final String KEY_OPPORTUNISTIC_ESIM_DOWNLOAD_VIA_WIFI_ONLY_BOOL = + "opportunistic_esim_download_via_wifi_only_bool"; + + /** * Controls RSRP threshold at which OpportunisticNetworkService will decide whether * the opportunistic network is good enough for internet data. */ @@ -5967,6 +5978,7 @@ public class CarrierConfigManager { sDefaults.putInt(KEY_ESIM_MAX_DOWNLOAD_RETRY_ATTEMPTS_INT, 5); sDefaults.putInt(KEY_ESIM_DOWNLOAD_RETRY_BACKOFF_TIMER_SEC_INT, 60); sDefaults.putIntArray(KEY_OPPORTUNISTIC_CARRIER_IDS_INT_ARRAY, new int[] {0}); + sDefaults.putBoolean(KEY_OPPORTUNISTIC_ESIM_DOWNLOAD_VIA_WIFI_ONLY_BOOL, false); /* Default value is minimum RSRP level needed for SIGNAL_STRENGTH_GOOD */ sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSRP_INT, -108); /* Default value is minimum RSRP level needed for SIGNAL_STRENGTH_MODERATE */ |