查询/修改/删除Settings的值
adb shell settings get global preferred_network_mode
adb shell settings put global preferred_network_mode 9
adb shell settings delete global preferred_network_mode
查看Activity Task信息
adb shell dumpsys activity activities | sed -En -e '/Running activities/,/Run #0/p'
使用命令向模拟器接打电话、发短信
先输入以下命令连接模拟器:
telnet localhost 5554
打电话:
gsm call 123456789
挂电话:
gsm cancel 123456789
发短信:(模拟123456789给模拟器发送内容为“sms_message”的短信)
sms send 123456789 sms_message
此外,还可用geo发送GPS位置给模拟器:geo fix 经度 纬度
adb启动activity
am start -n com.android.phone/com.android.phone.xxxxxx.xxxxActivity
用adb输入字符串
adb shell input text hahahahaha
adb 查看所有程序包名
adb shell pm list packages
替换framework.jar
如果无效的话,可以试试删除/system/framework下的arm/arm64/oat三个文件夹
打开tele app log
adb shell stop
adb shell setprop log.tag.TelecomFramework VERBOSE
adb shell setprop log.tag.Telephony VERBOSE
adb shell setprop log.tag.Telecom VERBOSE
adb shell setprop log.tag.InCall VERBOSE
adb shell start
stop
setprop log.tag.TelecomFramework VERBOSE
setprop log.tag.Telephony VERBOSE
setprop log.tag.Telecom VERBOSE
setprop log.tag.InCall VERBOSE
start