隨時補充中:安卓開發(fā)測試用到的:(shell可以去掉,如果已經(jīng)進入到虛擬機)
adb logcat -v time > D:\log.txt 打印log(文件保存在d盤根目錄下)
adb shell wm size 查看手機分辨率
adb shell install -r -d -t xxx.apk 安裝apk應(yīng)用
adb uninstall com.tencent.wechat 卸載應(yīng)用
啟動某個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(可關(guān)注提示)
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
查看拉起的服務(wù)列表
adb shell service list
將文件放到設(shè)備中
adb pull sdcard/tencent/test/ 2019-07-01-08-08-04_全自動 D:\222
將文件從設(shè)備中拉去出來
adb push C:\Users\Administrator\Desktop\input.xls /sdcard/tencent/accesssdktest/input.xls
查看相關(guān)的服務(wù)
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 查看手機分辨率