Merge "Handle upgrade from existing device admins"
This commit is contained in:
commit
8401dba404
@ -586,7 +586,8 @@ public class SecurityPolicy {
|
||||
DevicePolicyManager dpm = getDPM();
|
||||
return dpm.isAdminActive(mAdminName)
|
||||
&& dpm.hasGrantedPolicy(mAdminName, DeviceAdminInfo.USES_POLICY_EXPIRE_PASSWORD)
|
||||
&& dpm.hasGrantedPolicy(mAdminName, DeviceAdminInfo.USES_ENCRYPTED_STORAGE);
|
||||
&& dpm.hasGrantedPolicy(mAdminName, DeviceAdminInfo.USES_ENCRYPTED_STORAGE)
|
||||
&& dpm.hasGrantedPolicy(mAdminName, DeviceAdminInfo.USES_POLICY_DISABLE_CAMERA);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user