This is more of a proof of concept that might be useful to lock the screen.
Does not require root.
HTC's framework detects gestures while the screen is on, this is actually broadcasted to all applications, but the only app that reacts to it is HTC's Media Output (Three finger swipe up or left-right).
This app is both an implementation that reacts to a three finger click to lock the screen, and a dev concept that shows how to react to the gestures.
If you want to use this to lock the phone, just tap with three fingers anywhere after enabling device admin.
Download:
http://mohammadag.xceleo.org/public/Android/HTCOneM8/
Source:
https://github.com/MohammadAG/HTC-Gesture-Listener
More dev stuff:
If anyone is interested where this happens, it's in services.odex's com.htc.server.gesture package.
Does not require root.
HTC's framework detects gestures while the screen is on, this is actually broadcasted to all applications, but the only app that reacts to it is HTC's Media Output (Three finger swipe up or left-right).
This app is both an implementation that reacts to a three finger click to lock the screen, and a dev concept that shows how to react to the gestures.
If you want to use this to lock the phone, just tap with three fingers anywhere after enabling device admin.
Download:
http://mohammadag.xceleo.org/public/Android/HTCOneM8/
Source:
https://github.com/MohammadAG/HTC-Gesture-Listener
More dev stuff:
If anyone is interested where this happens, it's in services.odex's com.htc.server.gesture package.
Last edited: