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

Commit c0092acb authored by Jack Yu's avatar Jack Yu Committed by android-build-team Robot
Browse files

Fixed permission exception for getNetworkType

Fixed by removing the permission check in getActiveDataSubscriptionId.
The old getDefaultDataSubscriptionId does not require any permission.

Bug: 134886497
Test: Manual
Change-Id: I0cf6e00565cf89a3c49742a5889733e3ea8d5fa4
(cherry picked from commit f7c3c5cf)
parent 5d07e5bf
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -3729,7 +3729,6 @@ public class SubscriptionController extends ISub.Stub {
     */
    @Override
    public int getActiveDataSubscriptionId() {
        enforceReadPrivilegedPhoneState("getActiveDataSubscriptionId");
        final long token = Binder.clearCallingIdentity();

        try {