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

Commit 1efa51a8 authored by Rubin Xu's avatar Rubin Xu Committed by android-build-merger
Browse files

Merge "Add permission check to setAllowOnlyVpnForUids"

am: 1fb2ed3d

Change-Id: I3a529eecf98a19c8ab421707fc952b2a56e10f34
parents aa6ddd66 1fb2ed3d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1789,6 +1789,8 @@ public class NetworkManagementService extends INetworkManagementService.Stub
    @Override
    public void setAllowOnlyVpnForUids(boolean add, UidRange[] uidRanges)
            throws ServiceSpecificException {
        mContext.enforceCallingOrSelfPermission(NETWORK_STACK, TAG);

        try {
            mNetdService.networkRejectNonSecureVpn(add, uidRanges);
        } catch (ServiceSpecificException e) {