androidlinuxscriptingandroid-scriptingandroid-shell

How to interact with android device through a script?


I need a bump in the right direction here.

I want to write a script that will scroll up or down, maybe unlock the screen ( no lockscreen security set ) every 30 minutes or so. Also if possible I'd like for it to press the next button on my YouTube app because the music stops every hour or so and since I'm in my studio I dislike my workflow being interrupted just to press next. Now I don't know much about android so I don't know where to start with this. Maybe a cron-job? a shell script?


Solution

  • If you have a Linux/macOS-based OS then the mix cron-job plus shell script is definitely a very good start.

    Considering that the requirement is to automate the interaction with your app my suggestion is to create a script using the AndroidViewClient and with few lines of code you can programmatically scroll lists, click buttons etc.

    No root required.