Adb的常用命令

1. 过滤日志
adb logcat -s CountrySettingsWizard:*  OOBE.TecnoActivity:*
adb logcat | findstr "zhangbin"
adb logcat | find "IconCache"
2. 录制视频
 adb shell screenrecord /sdcard/1234.mp4
3. 获取当前的activity
 adb shell dumpsys activity top
4. 在edittext中输入内容
 adb shell input text 要输入的内容
5. 抓log
adb logcat -v threadtime
6. 获得cpu架构
adb shell getprop ro.product.cpu.abi
7. 发广播
adb shell am broadcast -a XXXX
8. 启动特定activity
adb shell am start -n 应用的主包名/要打开的activity所在的包.要打开的activity的名称
9. 获取用户手机版本
adb shell getprop ro.build.type 返回值user 版本,eng 版本 userdebug版本

猜你喜欢

转载自blog.csdn.net/qq_42926578/article/details/90220492