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

Commit 16191b61 authored by Patrick Huang's avatar Patrick Huang Committed by Android (Google) Code Review
Browse files

Merge "Fix Fi activation on Q"

parents ed5fcfed 22f0ad18
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -169,14 +169,17 @@ public class EuiccController extends IEuiccController.Stub {
     */
    @Override
    public String getEid(int cardId, String callingPackage) {
        if (!callerCanReadPhoneStatePrivileged()
        boolean callerCanReadPhoneStatePrivileged = callerCanReadPhoneStatePrivileged();
        long token = Binder.clearCallingIdentity();
        try {
            if (!callerCanReadPhoneStatePrivileged
                    && !canManageActiveSubscriptionOnTargetSim(cardId, callingPackage)) {
                throw new SecurityException(
                    "Must have carrier privileges on active subscription to read EID for cardId="
                        "Must have carrier privileges on active subscription to read EID for "
                                + "cardId="
                                + cardId);
            }
        long token = Binder.clearCallingIdentity();
        try {

            return blockingGetEidFromEuiccService(cardId);
        } finally {
            Binder.restoreCallingIdentity(token);