Trucrux Inc

Taking logs through ADB on windows

Enable USB debugging in device. #

Connect the device to a usb port.

Open command prompt. #

To get logcat use 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.