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

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

Merge "[DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids" into oc-dev

am: a9df8453

Change-Id: I0d7f4421d10f977eb9071ba3478da771e58541ca
parents bdc573b3 a9df8453
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1744,6 +1744,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) {