Tuesday, October 28, 2014

Get Android Kernel log

 To catch Kernel log, need a rooted Android device and adb shell worable, then use the adb logcat command:

$adb shell logcat -v time -f /dev/kmsg | cat /proc/kmsg

To  write the output to a file:
$adb shell logcat -v time -f /dev/kmsg | cat /proc/kmsg > /sdcard/log.txt

Thrift fails on Windows - thrift failed error: The command line is too long.

Meet a thrift compiling failure on my project on Windows 7. Using Maven in IntelliJ so I choiced maven-thrift-pluging for thrift files. For ...