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

Commit 2bdd3a91 authored by chen xu's avatar chen xu
Browse files

not send illegalTelephonyStateException when sim is absent

Bug: 130300581
Test: Manual
Merged-In: I28f6ebd26395aa51e580c8640dbc9fc0458d7315
Change-Id: I28f6ebd26395aa51e580c8640dbc9fc0458d7315
(cherry picked from commit 57e1b51aa9012d293c0444810efc0857d18978ab)
parent 2fde7b70
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -2826,7 +2826,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
@@ -3010,7 +3009,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.
     */
@@ -3037,10 +3035,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);