I have a Oneplus 6 and it has this super cool functionality wherein I can draw certain gestures on the turned off screen and it opens up apps and other stuff. For example: drawing a circle switches on the flashlight, drawing an S opens the camera and a few others. I also noticed that other phones do not have this functionality and wanted to build an app for the same. I searched across the web and couldn't find a solution. The majority of the posts gave the following insights:
- It couldn't be done since touch recognizer is off when screen is off.
- We might have to alter the kernel for this and should be done from a manufacturer's standpoint.
- Turn the screen black and recognize gesture. (Only works on OLED displays and its not what i want).
This is my use-case. If anyone has any knowledge on this matter please let me know how it can be done. Thanks in advance for the help.
PS - There are a lot of posts with this same topic. Please don't repeat those answers. If it's a NO please specify the exact reason why.