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

Commit b5e5b0cc authored by The Android Open Source Project's avatar The Android Open Source Project Committed by Xin Li
Browse files

DO NOT MERGE - Merge RP1A.201005.006

Bug: 168212094
Merged-In: I0bf7c8b267a0c9cd877328c4ff3169950e1ff64f
Change-Id: I4fb017a8416aab8d00a99376e35b9a378ee7070c
parents 240d5ece ef289bf2
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@ import android.telephony.euicc.EuiccInfo;
import android.telephony.euicc.EuiccManager;
import android.telephony.euicc.EuiccManager.OtaStatus;
import android.text.TextUtils;
import android.util.EventLog;
import android.util.Log;
import android.util.Pair;

@@ -191,6 +192,12 @@ public class EuiccController extends IEuiccController.Stub {
    @Override
    public String getEid(int cardId, String callingPackage) {
        boolean callerCanReadPhoneStatePrivileged = callerCanReadPhoneStatePrivileged();
        try {
            mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage);
        } catch (SecurityException e) {
            EventLog.writeEvent(0x534e4554, "159062405", -1, "Missing UID checking");
            throw e;
        }
        long token = Binder.clearCallingIdentity();
        try {
            if (!callerCanReadPhoneStatePrivileged