0

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.

Dmytro Bilko
  • 727
  • 1
  • 7
  • 12

1 Answers1

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:

  1. Monitor when the user sets a password by calling enterprises.devices.get and checking the field Device.deviceSettings.isDeviceSecure.
  2. When there is a password, remove it by issuing a RESET_PASSWORD command and do not set the Command.newPassword field.
Fred
  • 2,191
  • 1
  • 12
  • 14