Windows上用于多个Android设备的ADB并行 [英] ADB for multiple android devices in parallel on Windows

查看:537
本文介绍了Windows上用于多个Android设备的ADB并行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在多个连接的Android设备上并行运行ADB命令?我需要在200台设备上批量安装5个应用程序。亚行似乎是最快的选择。但是,如果我可以在多个设备上并行执行此操作,那么它将进一步节省时间。

Is there a way of running ADB commands parallely on multiple connected Android devices? I need to batch install set of 5 applications on 200 devices. ADB seems to be the fastest option. However if I can do this parallely on multiple devices, then it will further save the time.

推荐答案

创建一个 batch_install.bat 文件,其内容如下:

create a batch_install.bat file with the following content:

@echo off
cls
FOR /F "tokens=1,2" %%a IN ('adb.exe devices') DO (
    IF "%%b" == "device" ( start /b adb.exe -s %%a install -r %1 )
)

现在您可以运行 batch_install.bat< apk_file> apk_file 安装到所有连接的设备上。

Now you can run batch_install.bat <apk_file> to install the apk_file on to all connected devices.

这篇关于Windows上用于多个Android设备的ADB并行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆