Loading src/java/com/android/internal/telephony/euicc/EuiccController.java +9 −6 Original line number Diff line number Diff line Loading @@ -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); Loading Loading
src/java/com/android/internal/telephony/euicc/EuiccController.java +9 −6 Original line number Diff line number Diff line Loading @@ -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); Loading