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

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

Merge "Add permission check to setAllowOnlyVpnForUids" into pi-dev

am: 269357aa

Change-Id: If86e9905a38bf505b601bef6ae09c60fb76d4d4c
parents 850c6570 269357aa
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) {