In android device, we can have three types of lock as Pattern, PIN and password.
In my application, I want to change/reset the PIN pro-grammatically.
I am accepting 4-digits from user which will be set as a new PIN for that device.
Is it possible to reset this PIN or is it against the android security policy?
Note: You can get the sample code at
<version> number corresponds to the platform's API level.