手机软件测试常用的adb命令
时间: 2023-11-22 07:50:43 浏览: 121
以下是手机软件测试常用的adb命令:
1. 查看设备列表
```shell
adb devices
```
2. 查看应用列表
```shell
adb shell pm list packages
```
3. 安装应用
```shell
adb install <path_to_apk>
```
4. 卸载应用
```shell
adb uninstall <package_name>
```
5. 清除应用数据
```shell
adb shell pm clear <package_name>
```
6. 查看应用日志
```shell
adb logcat
```
7. 查看应用崩溃日志
```shell
adb logcat -b crash
```
8. 查看应用ANR日志
```shell
adb logcat -b events -v time | grep -i anr
```
9. 查看应用启动时间
```shell
adb shell am start -W <package_name>/<activity_name>
```
阅读全文
相关推荐














