So it is working fine actually. Only when screen off, it doesn't work. Have you enable the debug log? What do you see in the log when it is working at screen on? And what do you see when it is not working at screen off?Akt wrote:Input keyevent 26 is working fine on screen on.
Any app to disable wake lock??
Greenify can cut off (disable) the wakelock, but that is not what you need to do. You have to give back (enable) the wakelock to automagic. So you have to find the culprit who is taking away the wakelock from automagic.
Try another way. Keep the same period timer 10s with input key event 26. Then in another flow, put action sleep 1 minute, keep device awake. Execute this flow and turn off the screen. Check if the period timer 10s can successfully execute input key event 26 and turn on the screen. Check the debug log afterward.