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

Commit dd032d16 authored by Patrick Huang's avatar Patrick Huang Committed by android-build-merger
Browse files

Merge "Fix Fi activation on Q"

am: de2e9e39

Change-Id: Ibcf22620fa9ec8082e5ce33450b84512036b39a0
parents 3fa421b3 de2e9e39
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);