by Sid Stone
Version 2 (October 26, 2019)
Download (267 downloads)
My work around to detect long press power button ( two examples one Samsung and one HTC, may not work on all devices).
This will disable shut down via power button when device is locked.