Clicking a checkbox to an app using a script I need to automate accepting a terms &amp; conditions on a 3rd party app installed on the Android device. I just need to click a checkbox on that app's T&amp;C UI. Can someone please guide me how I can do that? I assume I need to write a script??

Any advice would be highly appreciated.
You can simulate touch event with an adb command: adb shell input tap &lt;x&gt; &lt;y&gt;, where x and y are the coordinates of your checkbox.

More about input:

$ input
input
usage: input ...
       input text &lt;string&gt;
       input keyevent &lt;key code number or name&gt;
       input [touchscreen|touchpad|touchnavigation] tap &lt;x&gt; &lt;y&gt;
       input [touchscreen|touchpad|touchnavigation] swipe &lt;x1&gt; &lt;y1&gt; &lt;x2&gt; &lt;y2&gt; [duration(ms)]
       input trackball press
       input trackball roll &lt;dx&gt; &lt;dy&gt;


To the adb you have to enable Developer settings on your device and accept your computer's fingerprint.

With this you can write a script to tap on the box.