You could use the Device Administrator Lib, but I believe it will wipe the device if the unlock password has been entered wrong X number of times, a shell command will still need system access.
You could use the Device Administrator Lib, but I believe it will wipe the device if the unlock password has been entered wrong X number of times, a shell command will still need system access.