dmesg 打印内核日志
按日志类型过滤
logcat -s android.hardware.automotive.evs@1.0.salvator
adb shell am start -n 包名/类名
不会清除数据:
adb shell am force-stop com.taobao.taobao
清除数据:
adb shell pm clear com.snj.opengles
本文介绍在安卓设备上使用dmesg和logcat命令进行内核及应用日志的查看与过滤方法,同时演示了如何通过adb shell命令启动和管理应用程序,包括不清理数据的启动和清除数据后的重新启动。
dmesg 打印内核日志
按日志类型过滤
logcat -s android.hardware.automotive.evs@1.0.salvator
adb shell am start -n 包名/类名
不会清除数据:
adb shell am force-stop com.taobao.taobao
清除数据:
adb shell pm clear com.snj.opengles
433
1万+

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