Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 271180cb authored by Chen Xu's avatar Chen Xu Committed by Automerger Merge Worker
Browse files

filter deviceIdentifiers for subscriptionInfo if callers without perm am: 0f869d07

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/14554217

Change-Id: I4363d9acfda8768864b74f69e13cf04f6c1e37b5
parents f60011da 0f869d07
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -708,6 +708,10 @@ public class SubscriptionController extends ISub.Stub {
            subList = getSubInfo(null, null);
            if (subList != null) {
                if (VDBG) logd("[getAllSubInfoList]- " + subList.size() + " infos return");
                subList.stream().map(
                        subscriptionInfo -> conditionallyRemoveIdentifiers(subscriptionInfo,
                                callingPackage, "getAllSubInfoList"))
                        .collect(Collectors.toList());
            } else {
                if (VDBG) logd("[getAllSubInfoList]- no info return");
            }