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

Commit d7cd63c6 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

am: a95ae523

Change-Id: Ia77aab9853506f178eaa7329c69926f6981fee30
parents 23726a36 a95ae523
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) {