summaryrefslogtreecommitdiff
path: root/telephony/common/com
diff options
context:
space:
mode:
authorPeter Wang <tpwang@google.com>2020-03-16 04:45:23 -0700
committerPeter Wang <tpwang@google.com>2020-03-18 20:35:44 -0700
commitceba2adbbdbdd40ae8a9d9e9784cf1cb484342e9 (patch)
tree71e66270ea850892a6a4da0d9da138881f3f1807 /telephony/common/com
parent7695663db7424a834e49906e4167fe4198c3c781 (diff)
[Telephony Mainline] Rename getActiveAndHiddenSubscriptionIdList and
guard with permission Bug: 150878235 Fix: 150878235 Test: Build Change-Id: I7f3b1f5170e032336d9b39b322c49e2b92573586
Diffstat (limited to 'telephony/common/com')
-rw-r--r--telephony/common/com/android/internal/telephony/TelephonyPermissions.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony/common/com/android/internal/telephony/TelephonyPermissions.java b/telephony/common/com/android/internal/telephony/TelephonyPermissions.java
index f0f9721744dd..68b17688c22e 100644
--- a/telephony/common/com/android/internal/telephony/TelephonyPermissions.java
+++ b/telephony/common/com/android/internal/telephony/TelephonyPermissions.java
@@ -616,7 +616,7 @@ public final class TelephonyPermissions {
private static boolean checkCarrierPrivilegeForAnySubId(Context context, int uid) {
SubscriptionManager sm = (SubscriptionManager) context.getSystemService(
Context.TELEPHONY_SUBSCRIPTION_SERVICE);
- int[] activeSubIds = sm.getActiveAndHiddenSubscriptionIdList();
+ int[] activeSubIds = sm.getCompleteActiveSubscriptionIdList();
for (int activeSubId : activeSubIds) {
if (getCarrierPrivilegeStatus(context, activeSubId, uid)
== TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS) {