I need to capture the event of the power off button on the android, and cause it to be pressed a certain number of times, an activty appears above the screen to enter password.
If this is not possible, I would like to know how to open the activity but before requesting the unlock.
The programmer here has managed to capture the power button event, but said the rest is not possible.