ADB测试Android真机

基本命令

查看版本信息

adb verison

查看连接设备

adb devices

重启adb

adb kill-server

adb start-server

查看测试机信息

查看测试手机系统版本

adb shell getpropro.build.version.release

查看测试手机名称

adb devices -l

查看测试手机开启的APP和动作

adb shell dumpsys activity | findstr “mResume”

adb shell dumpsys activity | findstr “mFocus”

 启动应用

adb shell am start -n <包名>/<activity>




原文地址:https://www.cnblogs.com/s1awwhy/p/14636319.html