Log acquisition
A. Logcat: Intercepts all log information except for kernel:
Connect the USB to the computer and execute the following command: User version can also be used
Adblogcat–v Time >c:\ Logcat.txt
Adblogcat–v time–b Radio >c:\radio.log
B. DMESG:
Kernel log, connect the USB to the computer and execute the following command:
adb shell DMESG > C:\dmesg.txt
C:ANR (Anr:applicationnot responding) (data display, unverified):
The problem with ANR (anr:application not responding) is to provide/data/anr/traces.txt, connect the USB to the computer, and execute the following command:
ADB pull/data/anr/traces.txt.
The log file can be found in the root directory of the execution command traces.txt
Enter adb shell cat/data/anr/traces.txt on User version
D: Random problem Log Gets the method, connect USB to the computer, perform the following steps:
1) Start the system, connect USB, perform adb shell< enter >
2) After entering the shell can execute logcat-v time >/sdcard/log.log &
Log file on the phone's memory card log.log, unplug the USB cable, can still record log
E: Attachment for the Capture boot log tool (hang Wake up, panic) (data display, not verified):
Phone connect USB cable, run cmd, input adb pushinit.qcom.post_boot.sh/system/etc/
Then restart your phone. To reproduce the bug.
Do not connect the USB cable after reboot
After reproducing, the/data directory in the phone
Logcat-tue Mar 11:53:04 BNT 2011.txt
Kmsg-tue Mar 11:53:04 BNT 2011.txt
After the newly installed, the following two files will appear:
Logcat-tue Mar 11:53:04 BNT 2011.txt
Kmsg-tue Mar 11:53:04 BNT 2011.txt
At that time can not be copied out, and then new restart the phone will automatically generate two new files, the previous file will be copied out
F: Log crawl in the crash (user version)
Adbshell Entry System
mkdir/sdcard/(custom folder name)
Dmesg>/sdcard/(folder name)/dmesg.txt&
The phenomenon recurs, but because USB is not already connected, restart the machine.
ADB pull/sdcard/(folder name)/dmesg.txt./dmesg.txt