Fix dont-allow-camera in Email DPM
* We weren't checking for it in determining whether our policies were active; because of this, we never actually SET the policy in the DPM Bug: 5193399 Change-Id: I276901be21be681f66891f5374ec58cf1ea7b4be
This commit is contained in:
parent
bea643e699
commit
ce582527bb
|
@ -411,6 +411,9 @@ public class SecurityPolicy {
|
|||
reasons |= INACTIVE_NEED_ENCRYPTION;
|
||||
}
|
||||
}
|
||||
if (policy.mDontAllowCamera && !dpm.getCameraDisabled(mAdminName)) {
|
||||
reasons |= INACTIVE_NEED_CONFIGURATION;
|
||||
}
|
||||
// password failures are counted locally - no test required here
|
||||
// no check required for remote wipe (it's supported, if we're the admin)
|
||||
|
||||
|
|
Loading…
Reference in New Issue