shell/ batch scripting to direct commands to adb shell

前端 未结 5 1078
长发绾君心
长发绾君心 2020-11-29 21:04

I am trying to write a batch(for win) and a shell script for linux to automate key and touch events on a android UI. At the moment in a windows batch file I am starting a ad

5条回答
  •  自闭症患者
    2020-11-29 21:48

    Put all the commands you want to run at once in an external file, one per line, then run:

    adb shell < commands.txt
    

提交回复
热议问题