Stop buffering of adb shell output

2019-02-21 05:17发布

I observed this new behavior in adb v1.0.39. The command:

adb shell getevent -l

gives the output below:

Observe that the last line is not complete

Observe that the last line is incomplete. This happens on many different devices. The same command is working without buffering in adb v1.0.32.

How do I stop adb shell output buffering in adb v1.0.39?

标签: adb adb-shell
1条回答
在下西门庆
2楼-- · 2019-02-21 06:02

Use adb exec-out instead of adb shell command to force the new adb to use the raw mode and avoid stdout buffering.

For more info read comments in adb/shell_service.cpp

查看更多
登录 后发表回答