I am debugging the suspend/resume process of an android phone. I am using adb shell into the phone and doing cat /proc/kmsg to view the debug message. The problem is whenever the phone suspends, it will put the usb to sleep, which will disconnects adb and therefore kmsg will terminate. I can unplug and replug in usb and do another cat /proc/kmsg. But the important debug message will be lost.
So my question is how do I capture the kmsg while the phone is going through suspend and resume cycle?
Thank you.