You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I have read this is not possible. From Android documentation:
The lifecycle of an accessibility service is **managed exclusively by the system** and follows the established service life cycle. Starting an accessibility service is triggered exclusively by the user explicitly turning the service on in device settings. After the system binds to a service, it calls onServiceConnected(). This method can be overriden by clients that want to perform post binding setup.
An accessibility service stops either when the user turns it off in device settings or when it calls disableSelf() (In Android 7.0 (API 24) and later).
From the upper documentation it seems like it is not possible to manage the lifecycle of an accessibility service.
I think it not necessary to keep the service running even when the Screen is Off.
Notes
WakeLock
can be used to implement thisThe text was updated successfully, but these errors were encountered: