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

Commit fa4d4636 authored by chen xu's avatar chen xu Committed by Chen Xu
Browse files

not send illegalTelephonyStateException when sim is absent.

If caller passing inactive subscription, an illegalArugument exception
will throw

Bug: 130300581
Test: Manual
Change-Id: I28f6ebd26395aa51e580c8640dbc9fc0458d7315
parent 3f7c5d57
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);