I do not think your remote unlocking goal is achievable.
As Android is configured, many applications can have device administrator privileges, and any device administrator can issue a lock command, but unlocking must be done by the user.
I can suggest that you simplify this: your application may try to remove the key lock password, and then the user can use the device without a code, simply by sliding a finger across the screen.
Now there is what I suggested if your application is not the only device administrator. In this case, some other administrator application may set a minimum password length (or some other password restriction) that will prevent your application from releasing a screen lock password.
If your goal is to help the user forget the screen lock password, then your server can invent a new password, inform the user that the new password, and also send a new password to your application and your application, can apply the password. Then the user can unlock the phone. Do not worry, it is not as difficult as it seems.
gabriel Dec 10 '12 at 4:40 2012-12-10 04:40
source share