diff options
| author | 2023-06-06 20:35:00 +0000 | |
|---|---|---|
| committer | 2023-06-06 20:35:00 +0000 | |
| commit | 3a9e1c2bc111515043edb69c5d3ed7da880c4c1a (patch) | |
| tree | a5d312923054ddcedc5d05b7e3ec86dfa1781139 | |
| parent | 8c3d465b5ebfddfe242a9489612cc5f1dcd365d8 (diff) | |
| parent | 7f266ec1c6fdc0eb4b84121040fea15f42099c47 (diff) | |
Merge "DO NOT MERGE Grant carrier privileges if package has carrier config access." into rvc-qpr-dev
| -rw-r--r-- | telephony/java/android/telephony/SubscriptionInfo.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/SubscriptionInfo.java b/telephony/java/android/telephony/SubscriptionInfo.java index 90d7a161767c..a8a7f36525a9 100644 --- a/telephony/java/android/telephony/SubscriptionInfo.java +++ b/telephony/java/android/telephony/SubscriptionInfo.java @@ -16,6 +16,7 @@ package android.telephony; +import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.SystemApi; import android.compat.annotation.UnsupportedAppUsage; @@ -694,6 +695,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 30, returns the card string if the calling app has been granted the |