I am looking for a way to intercept screen touch or preferably hardware button press in my application when the phone is locked.
The device that I need this functionality is rooted and my application is set as the device owner.
Is there a way to accomplish this?