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:
Marc Blank 2011-08-21 21:06:54 -07:00
parent bea643e699
commit ce582527bb
1 changed files with 3 additions and 0 deletions

View File

@ -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)