Merge changes from topic "am-af991497-a243-423d-8f58-f6bc1131a734" into nyc-dr1-dev
* changes:
[automerger] [DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids am: 41d8bf1fed
[DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids
This commit is contained in:
committed by
Android (Google) Code Review
commit
fb6e4bc01b
@@ -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