Is there any way to prevent any security level (password, fingerprint, face id) to be set by a user? I've expected all the possibly related properties such as passwordPolicies, keyguardDisabled (true), keyguardDisabledFeatures (ALL_FEATURES), but prevented only the fingerprint.
Asked
Active
Viewed 272 times
1 Answers
0
It is currently not possible to prevent the user from setting a password on Android, whether you're using the Android Management API or DevicePolicyManager.
However you could:
- Monitor when the user sets a password by calling
enterprises.devices.get
and checking the fieldDevice.deviceSettings.isDeviceSecure
. - When there is a password, remove it by issuing a
RESET_PASSWORD
command and do not set theCommand.newPassword
field.

Fred
- 2,191
- 1
- 12
- 14
-
Thank you for the answer, but it's too unreliable. – Dmytro Bilko Apr 29 '19 at 13:17