Merge "Allow financed DOs to set LOCK_TASK_FEATURE_NONE" into udc-dev

This commit is contained in:
Kholoud Mohamed
2023-05-12 10:01:13 +00:00
committed by Android (Google) Code Review

View File

@@ -15135,7 +15135,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
return;
}
if ((flags == 0) || ((flags & ~(allowedFlags)) != 0)) {
if ((flags & ~(allowedFlags)) != 0) {
throw new SecurityException(
"Permitted lock task features when managing a financed device: "
+ "LOCK_TASK_FEATURE_SYSTEM_INFO, LOCK_TASK_FEATURE_KEYGUARD, "