How to change size of logcat buffer in Android?

前端 未结 8 431
隐瞒了意图╮
隐瞒了意图╮ 2020-12-28 13:47

I noticed that the size of the logcat buffer varies on different devices. Assuming I have root permissions on my device, is there a way to change the buffer size of the main

相关标签:
8条回答
  • 2020-12-28 14:31

    To set logcat buffer to 16Mb for a specific Android device through adb, I used:

    adb -s 2615a1d4e3174a6e logcat -G 16M

    But you can use just:

    adb logcat -G 16M

    Or set previous buffer size with:

    adb logcat -G 256K

    0 讨论(0)
  • 2020-12-28 14:32

    Set the size of the log ring buffer

    adb logcat -G <size> 
    

    Append K or M to indicate kilobytes or megabytes

    Example: adb logcat -G 512K

    0 讨论(0)
提交回复
热议问题