Or Continue to Thread: [ROM][4.2.2][NIGHTLIES] Cyanog…
Find Your Device:
25th December 2012, 04:47 AM   |  #3  
h8rift's Avatar
OP Recognized Developer
Thanks Meter: 9,851
 
1,860 posts
Join Date:Joined: Jun 2010
Donate to Me
More
How to gather helpful data for troubleshooting
Pre-requisites:
  • ADB setup and minor knowledge on how to use it. (See here if you do not have such knowledge)
  • Have an open command prompt or terminal window.

How to obtain a full logcat
Code:
adb shell
su
logcat > /sdcard/logcat.txt
exit
exit
adb pull /sdcard/logcat.txt
How to obtain a targeted logcat for a particular issue
Code:
adb logcat > logcat.txt
  1. Immediately reproduce the issue
  2. CTRL + C out of the running logcat.

How to obtain a dmesg (helpful for catching kernel issues on a running build)
Code:
adb shell
su
dmesg > /sdcard/dmesg.txt
exit
exit
adb pull /sdcard/dmesg.txt
How to obtain a last_kmsg (helpful for catching kernel issues from last kernel boot-up such as bootloops)
Code:
adb shell
su
cat /proc/last_kmsg > /sdcard/last_kmsg.txt
exit
exit
adb pull /sdcard/last_kmsg.txt
Last edited by h8rift; 7th February 2013 at 02:52 PM.
The Following 44 Users Say Thank You to h8rift For This Useful Post: [ View ]