I’m developing a private app where I’m using the Accessibility service to inject the various events remotely. One of the event is ‘GLOBAL_ACTION_LOCK_SCREEN’. Using this event, a screen is getting locked. I’m able to inject this event successfully. Then one of the requirement is to wake up a locked device. To do this, I woke up a locked device using the same event, ‘GLOBAL_ACTION_LOCK_SCREEN’. Up to OS 13, this functioned flawlessly. BUT from OS 14, it is no more working.
I’ve searched the Accessibilityservice.java class to check whether any other event is introduced, but no use. I have not found any other event or way to wake up a device.
I’m looking for an advice/guidance to unlock/wakeup a locked device using the Accessibility service.