I need to automatically click on a specific button on an app. Is there a way to do this on a completely controlled environment?

By controlled environment, I mean the phone could be rooted, it could be connected to a desktop machine, any external app could be installed, and any other requirement.

Note: the button is NOT on an exposed activity.

  • 1
    Yes, the "Accessibility Services" can do that. However Google is planning to remove apps from PlayStore that use this service for controlling other apps for a different reason than helping disabled persons.
    – Robert
    Commented Jan 12, 2018 at 16:15
  • There are also applications for this and lot of other commands for rooted phones.
    – Alchimista
    Commented Jan 20, 2018 at 12:16

1 Answer 1


You can use adb command to simulate touch

adb shell input tap x y

where x y are the co-ordinates of the pixels on the screen to be tapped.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .