车载测试中常用的adb命令,持续更新...

adb --help / adb 看见帮助信息
adb start-server 启动 adb 服务
adb kill-server 关闭 adb 服务
adb devices 查看手机设备号
adb shell getprop ro.build.version.release 获取系统版本
adb push 电脑 手机
adb pull 手机 电脑
adb logcat | grep(unix) 包名
adb logcat | findstr(win) 包名
adb shell 进入 shell 命令行,可以操作linux命令
adb install 路径/apk 文件 安装 apk 到手机上
adb uninstall 包名 卸载 app 从手机上
adb shell am start -W 包名/启动名 app 启动时间
adb shell top 监测 app 的内存使用、CPU 消耗、流量使用情况

工作中常用到的

adb logcat -v time 带时间打印日志
adb logcat -v time >/sdcard/bq01.txt & 抓log到本地
adb shell getpropro.hk.system.uuid 查看UUID的获取方式
input keyevent 3 模拟home键
input keyevent 4 模拟back键
adb shell am start com.android.settings/com.android.settings.Settings 进入原生设置页面
getprop ro.build.version.release 查看安卓系统版本
lsusb usb挂载

猜你喜欢

转载自blog.csdn.net/weixin_46761622/article/details/116174025