adb shell am start -a android.intent.action.SENDTO -d sms:10086 --es sms_body hello //编辑短信
adb shell input keyevent 22 //焦点去到发送按键
adb shell input keyevent 66 //回车,就是按下发送键
am start -a android.intent.action.SENDTO -d sms:10086 --es sms_body cxll
input keyevent 22
input keyevent 66
am start -a android.intent.action.SENDTO -d sms:10001 --es sms_body cxll
input keyevent 22
input keyevent 66
settings put global multi_sim_data_call 1 切换卡1
settings put global multi_sim_data_call 2 切换卡2
打开飞行模式:
adb shell settings put global airplane_mode_on 1
关闭飞行模式:
adb shell settings put global airplane_mode_on 0
settings put global multi_sim_data_call 1
svc data disable
svc data enable
试一下:
//开启飞行模式
settings put global airplane_mode_on 1
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true
//关闭飞行模式
settings put global airplane_mode_on 0
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false
测速
adb shell am start -n com.android.camera/com.android.camera.Camera //开启飞行模式 su settings put global airplane_mode_on 1 am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true //关闭飞行模式 su settings put global airplane_mode_on 0 am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false