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

Commit 3378dcec authored by Rambo Wang's avatar Rambo Wang Committed by Android (Google) Code Review
Browse files

Merge "Fix CarrierApiTest#testOpportunistic CTS case failure" into main

parents 502821bc 15f3b326
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2490,7 +2490,7 @@ public class SubscriptionManagerService extends ISub.Stub {
    })
    public int setOpportunistic(boolean opportunistic, int subId, @NonNull String callingPackage) {
        TelephonyPermissions.enforceAnyPermissionGrantedOrCarrierPrivileges(
                mContext, Binder.getCallingUid(), subId, true, "setOpportunistic",
                mContext, subId, Binder.getCallingUid(), true, "setOpportunistic",
                Manifest.permission.MODIFY_PHONE_STATE);

        enforceTelephonyFeatureWithException(callingPackage, "setOpportunistic");