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

Commit 76952c4c authored by Chen Xu's avatar Chen Xu Committed by Automerger Merge Worker
Browse files

filter deviceIdentifiers for subscriptionInfo if callers without perm am: f24c4326

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

Change-Id: I08b7dbdf4b9e47e6c536bdb65d29f504ceb00478
parents 4c3991a7 f24c4326
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -890,6 +890,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, callingFeatureId, "getAllSubInfoList"))
                        .collect(Collectors.toList());
            } else {
                if (VDBG) logd("[getAllSubInfoList]- no info return");
            }