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

Commit 868a6dd3 authored by Chen Xu's avatar Chen Xu Committed by Gerrit Code Review
Browse files

Merge "not send illegalTelephonyStateException when sim is absent"

parents 18a3aa8e 2bdd3a91
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -2829,7 +2829,6 @@ public class SubscriptionController extends ISub.Stub {
     * @throws SecurityException if the caller doesn't meet the requirements
     *             outlined above.
     * @throws IllegalArgumentException if the some subscriptions in the list doesn't exist.
     * @throws IllegalStateException if Telephony service is in bad state.
     *
     * @param subIdList list of subId that will be in the same group
     * @return groupUUID a UUID assigned to the subscription group. It returns
@@ -3013,7 +3012,6 @@ public class SubscriptionController extends ISub.Stub {
     *  the access rules we keep in our database for currently inactive eSIMs.
     *
     * @throws IllegalArgumentException if the some subId is invalid or doesn't exist.
     * @throws IllegalStateException if Telephony is in bad state.
     *
     *  @return true if checking passes on all subId, false otherwise.
     */
@@ -3040,10 +3038,6 @@ public class SubscriptionController extends ISub.Stub {
        long identity = Binder.clearCallingIdentity();

        try {
            if (!isSubInfoReady()) {
                throw new IllegalStateException("Sub Controller not ready");
            }

            // Check access rules for each sub info.
            SubscriptionManager subscriptionManager = (SubscriptionManager)
                    mContext.getSystemService(Context.TELEPHONY_SUBSCRIPTION_SERVICE);