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

Commit 2e7a10be authored by Muralidhar Reddy's avatar Muralidhar Reddy Committed by Automerger Merge Worker
Browse files

[MEP] EuiccManager API modifications to support carrier apps am: 18692187

parents 8d8ab947 18692187
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -994,6 +994,15 @@ public class EuiccController extends IEuiccController.Stub {
                forceDeactivateSim = true;
                forceDeactivateSim = true;
            }
            }


            // if the caller is not privileged caller and does not have the carrier privilege over
            // any active subscription, do not continue.
            if (!callerCanWriteEmbeddedSubscriptions && usePortIndex
                    && (mTelephonyManager.checkCarrierPrivilegesForPackageAnyPhone(callingPackage)
                    != TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS)) {
                Log.e(TAG, "Not permitted to use switchToSubscription with portIndex");
                throw new SecurityException(
                        "Must have carrier privileges to use switchToSubscription with portIndex");
            }
            final String iccid;
            final String iccid;
            boolean passConsent = false;
            boolean passConsent = false;
            if (subscriptionId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
            if (subscriptionId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) {