Merge "Add permission check to setAllowOnlyVpnForUids"
am: 1fb2ed3de3
Change-Id: I3a529eecf98a19c8ab421707fc952b2a56e10f34
This commit is contained in:
@@ -1789,6 +1789,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) {
|
||||
|
||||
Reference in New Issue
Block a user