How to capture logs when Android switches on quickly

Source: Internet
Author: User

 

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.

 

Related Article

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.