前言
最近需要用群发变量短信
因短信平台不支持链接变量,且数量不大
所以用打算用手机发送
方法一
adb shell am start -a android.intent.action.SENDTO -d sms:10086 --es sms_body "hello" --ez exit_on_sent true
adb shell input keyevent 66
遇到两个问题
第一操作过程是模拟运行短信应用,输入文本,点击发送的逻辑,如果再自动操作的过程中误触屏幕可能会有别的影响。
第二adb shell input keyevent 66,在我的手机上没用😓
方法二
#安卓10以上
adb shell service call isms 5 i32