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

Commit 3aaa23e1 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

Change-Id: I9d66ecd2520cebe75c583a0f8521972ebd284a3e
parents 363b273e 595f82f9
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) {