summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Hyosun Kim <hyosunkim@google.com> 2022-09-20 03:06:34 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-09-20 03:06:34 +0000
commit2dbb6cb42183dfd4ff64d3c10e800e513fc215a2 (patch)
tree3a6b318ce086092372b7861488969ba73b248cb2
parent3507c76df092f81bfb08dadd6aa96c4a433f2bbe (diff)
parent6f8675f324ca9442b8c025cc3fb2c85b662d4bde (diff)
Merge "To read the group UUID, the calling app either needs carrier privileges or the READ_PHONE_STATE permission and access to device identifiers." into tm-qpr-dev
-rw-r--r--telephony/java/android/telephony/SubscriptionManager.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/telephony/java/android/telephony/SubscriptionManager.java b/telephony/java/android/telephony/SubscriptionManager.java
index d07d8097bce4..77408458c96b 100644
--- a/telephony/java/android/telephony/SubscriptionManager.java
+++ b/telephony/java/android/telephony/SubscriptionManager.java
@@ -3426,10 +3426,20 @@ public class SubscriptionManager {
* Get subscriptionInfo list of subscriptions that are in the same group of given subId.
* See {@link #createSubscriptionGroup(List)} for more details.
*
- * Caller will either have {@link android.Manifest.permission#READ_PHONE_STATE}
- * permission or had carrier privilege permission on the subscription.
+ * Caller must have {@link android.Manifest.permission#READ_PHONE_STATE}
+ * or carrier privilege permission on the subscription.
* {@link TelephonyManager#hasCarrierPrivileges()}
*
+ * <p>Starting with API level 33, this method will return an empty List if the caller does
+ * not have access to device identifiers.
+ * This method can be invoked if one of the following requirements is met:
+ * <ul>
+ * <li>If the app has carrier privilege permission.
+ * {@link TelephonyManager#hasCarrierPrivileges()}
+ * <li>If the app has {@link android.Manifest.permission#READ_PHONE_STATE} permission and
+ * access to device identifiers.
+ * </ul>
+ *
* @throws IllegalStateException if Telephony service is in bad state.
* @throws SecurityException if the caller doesn't meet the requirements
* outlined above.