要多台已连接电脑的手机进行相关操作
@echo off
setlocal enabledelayedexpansion
echo 多台设备连接
adb wait-for-device
adb devices >devices.txt
set /a li = -1
for /f "usebackq" %%i in (devices.txt) do set /a li += 1
echo 有%li%台设备
for /f "skip=1" %%i in (devices.txt) do start cmd /c test.bat %%i
pause
test.bat脚本代码段:
echo 拨打电话
adb -s %1 shell am start -a android.intent.action.CALL tel:10086
pause