当前位置:网站首页>Grab startup logcat

Grab startup logcat

2022-06-24 00:56:00 A tree is a yard farmer

I have a problem at work , Want to grab the boot Log About China service init Of log Information , But by

adb reboot
adb wait-for-device
adb logcat > LOG.log

This method has been unable to catch , Later, this method was used to solve the problem , It is hereby recorded that .

First of all, in the background log:

logcat -c;logcat -v threadtime >/data/20-1.log&

pgrep composer // Find keywords composer In the process pid

kill composer_pid  //kill composer process

Through this method , Successfully capture the boot process information I want .

原网站

版权声明
本文为[A tree is a yard farmer]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206232228212381.html