Trucrux Inc

Taking logs through ADB on windows

Enable USB debugging in the device. #

Connect the device to a USB port.

Open the command prompt. #

To get logcat use the following commands:

adb shell


adb logcat > filename.txt   //stores in filename.txt in host pc

To get kernel message (kmsg) #

adb shell


cat /proc/kmsg > filename.txt   //stores kmsg in filename.txt in device.


adb pull /data/filename.txt  //pulls filename.txt from device to host pc.