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 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?
Use
adb exec-out
instead ofadb shell
command to force the newadb
to use theraw
mode and avoid stdout buffering.For more info read comments in adb/shell_service.cpp