Instead of manually pressing the power button, turn on the screen using the proximity sensor and close the screen by touching the shortcut on the main screen.
This application uses the Device Manager permission.
Turning off the display is only necessary and necessary to lock the device.
To use this feature, you must enable Administration