I am using Android DevicePolicyManager to disable a range of features including USB and ADB connections to the device (client requirement).
When the policies are enforced, a default PIN code is set along with a reset token.
What I'm stuck on is; how do I use the token to reset/clear the PIN code? I wouldn't be able to unlock the phone to use an 'Unlock app', and I wouldn't be able to connect via ADB to do any terminal commands.
null or empty clears the password.
So, provided you have access to the resetToken, you should be able to disable the password. This can be done by a background service , polling an external server, awaiting the reset command. You should not be able to do it locally. Isn't that kind of the point?