You can use the following three methods to capture logs when a problem occurs during fast switch-on:
1. capture mobile logs.
Because some IPO problems occur after the sd card unmount, and the default mobile log of the original mobile phone is stored on the sd card, we recommend that you use the GAT tool to capture the mobile log, to ensure the integrity of the shutdown process.
In addition, after capturing the log, check whether there are files similar to xxx. ipo in the mobile log, such as main_log.ipo. Make sure that the content is not empty and submit the file.
2. Use adb to capture the main log of logcat:
If mobile log cannot be captured for some reason, you can use the adb method to logcat the log.
The capture method is as follows:
A. use usb to connect your mobile phone to your pc;
B. Enter the following command to enable the ipod debug mode. In this case, after the ipo is shut down, adb can still be in the working status. Cmd:"Adb shell setprop ipod_debug 1"
C. Open two windows and enter the following two commands to capture logs:
Cmd:"Adb logcat-v time> main. log"
Cmd:"Adb shell cat/proc/kmsg> kmsg. log"
D. After the problem is reproduced, extract main. log and kmsg. log.
3. Capture logs using uart:
Some problems can be reproduced only when charger is not connected. If mobile log cannot capture complete information, you need to use uart to capture logs. The capture method is as follows:
A. Open the Super Terminal and capture logs through hyper Terminal-> Transfer-> CaptureText...
B. Check whether log output exists in the Super Terminal.
C. Enter the Enter key in the Super Terminal to check whether there is # output.
D. Enter"Logcat-v time"To capture logs.
E. Re-reproduce the problem and submit the uart log.