diff options
| author | 2024-03-22 10:56:38 +0000 | |
|---|---|---|
| committer | 2024-04-05 17:19:22 +0000 | |
| commit | 321f053b670b91b37a307f7cf8b59bf34ad1f45c (patch) | |
| tree | 05ceabd2b121fc1d6a819ed84d348e72f5db34b5 | |
| parent | ee74bd3e94ff7d6b1ff5c35a4731fe2ee44af2f6 (diff) | |
Update javadoc for org owned managed device case
Bug: 295301164
Test: NA
Change-Id: Ic2ede0a4faad1582c5fef96e807eabfd9fe91fc7
| -rw-r--r-- | telephony/java/android/telephony/euicc/EuiccManager.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/telephony/java/android/telephony/euicc/EuiccManager.java b/telephony/java/android/telephony/euicc/EuiccManager.java index ebabbf911399..ca4a643d7b20 100644 --- a/telephony/java/android/telephony/euicc/EuiccManager.java +++ b/telephony/java/android/telephony/euicc/EuiccManager.java @@ -1039,17 +1039,18 @@ public class EuiccManager { * subscription on the * current eUICC and the subscription to be downloaded according to the subscription metadata. * Without the former, an {@link #EMBEDDED_SUBSCRIPTION_RESULT_RESOLVABLE_ERROR} will be - * eturned in the callback intent to prompt the user to accept the download. + * returned in the callback intent to prompt the user to accept the download. * * <p> Starting from Android {@link android.os.Build.VERSION_CODES#VANILLA_ICE_CREAM}, * if the caller has the * {@code android.Manifest.permission#MANAGE_DEVICE_POLICY_MANAGED_SUBSCRIPTIONS} permission or - * is a profile owner or device owner, and - * {@code switchAfterDownload} is {@code false}, then the downloaded subscription - * will be managed by that caller. If {@code switchAfterDownload} is true, - * an {@link #EMBEDDED_SUBSCRIPTION_RESULT_RESOLVABLE_ERROR} will be - * returned in the callback intent to prompt the user to accept the download and the - * subscription will not be managed. + * is a profile owner or device owner, then the downloaded subscription + * will be managed by that caller. + * In case the caller is device owner or profile owner of an organization-owned device, {@code + * switchAfterDownload} can be set to true to automatically enable the subscription after + * download. If the caller is a profile owner on non organization owned device + * {@code switchAfterDownload} should be false otherwise the operation will fail with + * {@link #EMBEDDED_SUBSCRIPTION_RESULT_ERROR}. * * <p>On a multi-active SIM device, requires the * {@code android.Manifest.permission#WRITE_EMBEDDED_SUBSCRIPTIONS} permission, or a calling app |