summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Aishwarya Mallampati <amallampati@google.com> 2023-06-06 20:36:13 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-06-06 20:36:13 +0000
commit6431ce195d49542f4d93b7eefa15fd9a01467c5a (patch)
treececdaa370fb4306166f3c0e64f4c5257cfea0fbf
parent71e32179fc376d810121bee0056f09ef7bee1e1d (diff)
parent8b9fcf30d5c2aa2d3d41f5128094e111e151003d (diff)
Merge "DO NOT MERGE Grant carrier privileges if package has carrier config access." into sc-v2-dev
-rw-r--r--telephony/java/android/telephony/SubscriptionInfo.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/SubscriptionInfo.java b/telephony/java/android/telephony/SubscriptionInfo.java
index 2d50e08ab922..4719d7374b1b 100644
--- a/telephony/java/android/telephony/SubscriptionInfo.java
+++ b/telephony/java/android/telephony/SubscriptionInfo.java
@@ -18,6 +18,7 @@ package android.telephony;
import static android.text.TextUtils.formatSimple;
+import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.compat.annotation.UnsupportedAppUsage;
@@ -697,6 +698,15 @@ public class SubscriptionInfo implements Parcelable {
}
/**
+ * @hide
+ * @return mCarrierConfigAccessRules associated with this subscription.
+ */
+ public @NonNull List<UiccAccessRule> getCarrierConfigAccessRules() {
+ return mCarrierConfigAccessRules == null ? Collections.emptyList() :
+ Arrays.asList(mCarrierConfigAccessRules);
+ }
+
+ /**
* Returns the card string of the SIM card which contains the subscription.
*
* Starting with API level 29 Security Patch 2021-04-05, returns the card string if the calling