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

Commit c42056bc authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5698755 from 8d78a8bd to qt-c2f2-release

Change-Id: Ic7a9204c90a0583eb2d6c16ea7335f7190319314
parents 4b1861a4 8d78a8bd
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -126,7 +126,14 @@ public class PhoneSubInfoController extends IPhoneSubInfo.Stub {

    public String getSubscriberIdForSubscriber(int subId, String callingPackage) {
        String message = "getSubscriberId";
        if (SubscriptionController.getInstance().isActiveSubId(subId, callingPackage)) {
        long identity = Binder.clearCallingIdentity();
        boolean isActive;
        try {
            isActive = SubscriptionController.getInstance().isActiveSubId(subId, callingPackage);
        } finally {
            Binder.restoreCallingIdentity(identity);
        }
        if (isActive) {
            return callPhoneMethodForSubIdWithReadSubscriberIdentifiersCheck(subId, callingPackage,
                    message, (phone) -> phone.getSubscriberId());
        } else {
@@ -134,7 +141,7 @@ public class PhoneSubInfoController extends IPhoneSubInfo.Stub {
                    mContext, subId, callingPackage, message)) {
                return null;
            }
            final long identity = Binder.clearCallingIdentity();
            identity = Binder.clearCallingIdentity();
            try {
                return SubscriptionController.getInstance().getImsiPrivileged(subId);
            } finally {