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

Commit 4b71619f authored by Android Build Merger (Role)'s avatar Android Build Merger (Role)
Browse files

[automerger] [DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids am:...

[automerger] [DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids am: 41d8bf1f am: 595f82f9 am: 3aaa23e1

Change-Id: Id5a58769e3f6ccbff0bd8c51a847af8aeb473769
parents 9e5c2124 3aaa23e1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1864,6 +1864,8 @@ public class NetworkManagementService extends INetworkManagementService.Stub
    @Override
    public void setAllowOnlyVpnForUids(boolean add, UidRange[] uidRanges)
            throws ServiceSpecificException {
        mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG);

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