# dev = connect_device("Android:///") connect_device("Android:///") dev = device() phone = '13800138000' msg = 'hello world' def sendMsg(phone, msg): info = dev.shell(f'am start -a android.intent.action.SENDTO -d sms:{phone} --es sms_body "{msg}"') touch(Template(r"tpl1671441182775.png", record_pos=(0.403, 0.936), resolution=(720, 1600))) sendMsg(phone, msg)
标签:短信,phone,dev,device,adb,connect,airtest,msg,Android From: https://www.cnblogs.com/zyip/p/16993777.html