How to get Log

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.