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

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

am: 8dddc5e1

Change-Id: I52e47a1dec4e71c4002d2657cc99e712a39f8d34
parents d258da6a 8dddc5e1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1777,6 +1777,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) {