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