批处理文件中的 adb shell 命令
adb shell command from batch file
我有一个 .bat 文件,它运行用于测试应用程序并将日志打印到文件的脚本,我有所有我手动测试过的命令。
问题:
输入命令 adb shell 后,shell 在命令提示符中打开。我用 root@generic 编写了在 shell 中输入的下一个命令
命令没有通过,它只是在那个地方等待。
我必须在命令前输入什么才能使它们出现
我所拥有的例子
cd directory of sdk
adb
adb shell
am instrumentation ... (this is the command that won't go through once the shell is open.
任何帮助表示感谢我已经尝试了一些没有成功的事情
只需在批处理文件中使用以下行:
adb shell am instrumentation
将连接到 Android 设备上的 shell 和 运行 am
命令。
我有一个 .bat 文件,它运行用于测试应用程序并将日志打印到文件的脚本,我有所有我手动测试过的命令。
问题: 输入命令 adb shell 后,shell 在命令提示符中打开。我用 root@generic 编写了在 shell 中输入的下一个命令 命令没有通过,它只是在那个地方等待。
我必须在命令前输入什么才能使它们出现
我所拥有的例子
cd directory of sdk
adb
adb shell
am instrumentation ... (this is the command that won't go through once the shell is open.
任何帮助表示感谢我已经尝试了一些没有成功的事情
只需在批处理文件中使用以下行:
adb shell am instrumentation
将连接到 Android 设备上的 shell 和 运行 am
命令。