日志
1.实时查看日志
adb logcat
2.导出当前日志到文件
adb logcat -d > D:\my_log.txt
3.清除日志缓冲区
adb logcat -c
4. 显示带时间的日志
adb logcat -v time
5.只显示错误日志
adb logcat *:E
6.显示Java崩溃
adb logcat -s AndroidRuntime
7.显示原生崩溃,系统级崩溃
adb logcat -b crash
8.混合版(前面的总结)
adb logcat -s AndroidRuntime -b crash -d -v threadtime > full_crash.log
9.实时查看崩溃日志
adb logcat -s AndroidRuntime -b crash -v threadtime
10.实时查看应用的崩溃日志
adb logcat -v time "com.tataera.edushu:E | AndroidRuntime:E" *:S
理解
1.获取当前应用的包名
adb shell dumpsys window displays | findstr "mCurrentFocus"
2.可以直达页面
adb shell am start -n com.tencent.mobileqq/com.tencent.mobileqq.activity.SplashActivity
3.显示所有包名
adb shell pm list packages
4.显示系统包名
adb shell pm list packages -s
5. 显示第三方包名
adb shell pm list packages -3
查看应用方法
adb shell input
滑动
adb shell input swipe 566 1806 566 377 3000
adb重启
adb kill-server
adb start-server

1万+

被折叠的 条评论
为什么被折叠?



