[automerger] [DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids am: 41d8bf1fed
Change-Id: Ie04a46348908203c23a1b3a29a323a2ffbfbe5b2
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user