一.循环拨号
rem 循环标志
:LOOP
rem 开始拨号,10086表示号码
adb shell am start -a android.intent.action.CALL -d tel:10086
rem 延时执行下条命令用
ping 127.0.0.1 -n 20>a.txt
del a.txt
rem 模拟挂断电话
adb shell input keyevent 6
rem 跳转到标志位
goto LOOP
二、批量安装同一文件下的apk
@echo off
rem 遍历当前文件夹下的apk并安装
for /f “delims=” %%i in (‘dir /b /a-d /s “*.apk”’) do adb install %%i
Pause
三、循环发送短信
:loop
rem 发送短信,10010表示号码,hello是内容
adb shell am start -a android.intent.action.SENDTO -d sms:10010 –es sms_body “hello” –ez exit_on_sent true
rem 模拟发送键
adb shell input keyevent 66
goto loop
四、发送5条短信给10010
for /l %%i in (1,1,5) do adb shell am start -a android.intent.action.SENDTO -d sms:10010 –es sms_body “hello” –ez exit_on_sent true & adb shell input keyevent 66
pause