adb笨猴子测试命令
时间: 2023-06-22 22:29:51 浏览: 123
adb(Android Debug Bridge)是一种用于调试和测试 Android 应用的命令行工具。以下是一些常用的 adb 测试命令:
1. 查看设备列表:
```
adb devices
```
2. 安装应用:
```
adb install package_name.apk
```
3. 卸载应用:
```
adb uninstall package_name
```
4. 清除应用数据:
```
adb shell pm clear package_name
```
5. 运行应用:
```
adb shell am start -n package_name/activity_name
```
6. 停止应用:
```
adb shell am force-stop package_name
```
7. 截屏:
```
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
```
8. 录屏:
```
adb shell screenrecord /sdcard/demo.mp4
adb pull /sdcard/demo.mp4
```
希望这些命令能对你有所帮助!
阅读全文