ADB logcat stops after few minutes


#1

When we run any test in loop and we capture adb logcat continuously after few minutes adb logging stops completely

  1. we tried increasing log buffer size to 16 MB in developer options but issue persists

#2

Just reminding is if you are using old images without thermal management, it’s possible to introduce hang issue; so could you confirm you are using latest images?

If you are using latest image, could you try ramoops? On Android kernel 4.4 and 4.9 you can enable ftrace function tracer dumping with ramoops, so after system hang you can reboot system and use ramoops log to analyse the CPU run flow so can find some suspected points for system hang.

BTW, for Android kernel 4.4 and 4.9, please apply this patch [1], otherwise ramoops itself has deadlock issue.

[1] https://android-review.googlesource.com/#/c/kernel/hikey-linaro/+/443413/