How can I reliably simulate touch events on Android without root (like Automate and Tasker)?

As suggested, the best way to simulate touch events since Nougat (API 24) is by using an accessibility service and the AccessibilityService#dispatchGesture method. Here is how I did to simulate a single tap event. // (x, y) in screen coordinates private static GestureDescription createClick(float x, float y) { // for a single tap a duration … Read more