adb 拨号
adb shell service call phone 1 s16 10000
adb shell am start -a android.intent.action.CALL -d tel:10000
多设备时指定设备
adb -s AKGR9K2328903606 shell am start -a android.intent.action.CALL -d tel:15010000000
--------------------
adb shell am start -a android.intent.action.SENDTO -d sms:13800138000--es sms_body "短信内容" --ez exit_on_sent true
adb shell input keyevent 22
adb shell input keyevent 66
执行airtest脚本
python -m airtest run "D:\Backup\Documents\untitled.air" --device android://127.0.0.1:5037/AKGR9 --log "D:/airtestlog\722540"
python -m airtest run "D:\Backup\Documents\sms.air" --log "D:/airtestlog\722540"
adb tcpip 5555 # 5555为一个自定义的端口,只要与下一行命令的端口保持统一即可
adb connect 192.168.0.100:5555 # 192.168.0.101为手机无线网络的ip地址
发送短信
adb shell am start -a android.intent.action.SENDTO -d sms:13800138000 --es sms_body "hello world"
adb shell input tap 656 1513