Merge "Add some comments in isAlwaysOnVpnLockdownEnabled" am: 4db4933c81

Change-Id: Ia04a9aebfb7cce94f72f883da9388dadc4ac2ba9
This commit is contained in:
Automerger Merge Worker
2020-03-16 10:18:44 +00:00

View File

@@ -5311,6 +5311,10 @@ public class DevicePolicyManager {
throwIfParentInstance("isAlwaysOnVpnLockdownEnabled");
if (mService != null) {
try {
// Starting from Android R, the caller can pass the permission check in
// DevicePolicyManagerService if it holds android.permission.MAINLINE_NETWORK_STACK.
// Note that the android.permission.MAINLINE_NETWORK_STACK is a signature permission
// which is used by the NetworkStack mainline module.
return mService.isAlwaysOnVpnLockdownEnabled(admin);
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();