Android Device capture Log

Source: Internet
Author: User

Real-time Log

1. Crawl the application's logs.

# adb logcat-b main-v threadtime >/sdcard/main.log

2. Crawl information related to Radio/telephony.

# adb logcat-b radio-v threadtime >/sdcard/radio.log

3. Crawl the system event log, such as a touch screen event.

# adb logcat-b events-v threadtime >/sdcard/events.log

4. Crawl kernel log.

# adb logcat-b kernel >/sdcard/kernel.log
# adb Shell DMESG >/sdcard/dmesg.log//Export the currently cached kernel log
# adb Shell Kmsgcat//real-time view kernel log
# adb Shell cat/proc/kmsg > Kernel.log//Crawl PRINTK generated kernel messages

5. Crawling TCP/IP protocol-related logs

# adb shell tcpdump-s 10000-w/sdcard/tcpip.pcap

Status log

1. Get system status information, such as memory information, CPU information, cache, etc. of the phone.

# adb shell dumpstate >/sdcard/dumpstate.log

2. Obtain information about the system process. For example: currently running services, process information, and so on.

# adb Shell Dumpsys

If you want to see specific service for a particular process, such as the meminfo of the COM.ANDROID.MMS process, you can use

# adb shell Dumpsys meminfo Com.android.mms

There are several types of service:

Meminfo   Display Memory information cpuinfo display       CPU information account       display accounts information activity      Display Activities Information window        display keyboard, The window and their relationship WiFi          display wifi information    

3. Get all status information. including DUMPSYS,DMESG and Dumpstate.

# adb shell bugreport >/sdcard/bugreport.log

4. View memory Information

# adb Shell Cat/proc/meminfo
# adb Shell cat/proc/vmstate//view virtual memory information

Android Device 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.