Android Command capture Log

Source: Internet
Author: User

Mobile phone and computer, open 3 command windows on the computer, enter the following 3 commands respectively to grab Mainlog, Radiolog and Kernallog
ADB logcat-v Time >main.txt
ADB logcat-v time-b Radio >radio.txt
ADB shell Cat proc/kmsg >uart.txt
If it is crawl boot log, you can first enter the command to wait for the device, on boot.

------------------------------------------

The log output can be judged in code such as:

if (Log.isloggable (Logtag.app, Log.verbose)) {       "onsizechanged:w=" + width + "h=" + height + "oldw=" + Oldwid th + "oldh=" + oldheight);}

If the APP turns off log.verbose by default, use the command adb shell SetProp Log.tag.APP V to turn on Log.verbose. And then grab log.

Android Command capture Log

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.