随时补充中:安卓开发测试用到的:(shell可以去掉,如果已经进入到虚拟机)
adb logcat -v time > D:\log.txt 打印log(文件保存在d盘根目录下)
adb shell wm size 查看手机分辨率
adb shell install -r -d -t xxx.apk 安装apk应用
adb uninstall com.tencent.wechat 卸载应用
启动某个activity
adb shell am start -n com.example.recordtest/com.example.recordtest.MainActivity
启动某个service
adb shell am startservice -n com.tencent.wecarspeech/com.tencent.wecarspeech.sdk.WeCarSpeechSdkService
遇到不能卸载的情况需要remount
adb root
adb disable-verity(可关注提示)
adb reboot
adb remount
adb shell pm path com.tencent.wechat
adb shell rm system/app/WeCarUI...
adb reboot
查找包名
adb shell -n pm list package | findstr tencent
adb shell -n pm list packages
查看拉起的服务列表
adb shell service list
将文件放到设备中
adb pull sdcard/tencent/test/ 2019-07-01-08-08-04_全自动 D:\222
将文件从设备中拉去出来
adb push C:\Users\Administrator\Desktop\input.xls /sdcard/tencent/accesssdktest/input.xls
查看相关的服务
dumpsys activity services | grep wecarspeech
com.tencent.lixiangadapter
back键
adb shell input keyevent 4
灭屏
adb shell input keyevent 26
亮屏
adb shell input keyevent 82
按照分辨率点击某个位置
adb shell input tap 170 60
打印log到指定位置
adb shell logcat > D:\log 打印log(文件保存在d盘根目录下)
查看手机分辨率
adb shell wm size 查看手机分辨率