Android being given to solve the output Logcat [read: unexpected EOF!]

1. Problem Description: in source development is finished after the system starts to burn, adb logcat will automatically cut off, pgrep logcat serial port, the service can not find logcat. Enter the serial in logcat, will automatically cut off after a period of output log, the end is read: unexpected EOF!

2. The reason: Logcat of Buffer enough

3. Solution:
1) can adb logcat -G 4M (Note: the size of their own to fill, the default seems to 256k), adb logcat -g logger can view the current cache size

2) Open the Settings, open developer options, there is a logging buffer size (logger buffer size) can choose the size after entering.

3) to find the source file mk / device / XXX / XXX /, add

#set default logger buffer size to 2M
PRODUCT_PROPERTY_OVERRIDES += ro.logd.size=2M

In recompile brush to write, which is the default log buffer system would be a 4M ah, almost

Guess you like

Origin www.cnblogs.com/clovershell/p/12402296.html