You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RunCommand should still be supported for combined stdin/stdout streams, but there should be an API like exec.Cmd. The old mode is called "PTY" mode, and RunCommand should probably use that. The new mode is called "protocol" mode, and multiplexes out/err streams over a single connection with a simple protocol that sends packets with stream ID headers.
The exit code is sent as a single raw byte on the kIdExit stream.
The text was updated successfully, but these errors were encountered:
adb is getting support for differentiating stdout and stderr streams, and process exit codes.
Implementation:
https://github.com/android/platform_system_core/blob/ac50d0cc5789d8462fcd2d9f6cb225e0edf9a12f/adb/shell_service.h
https://github.com/android/platform_system_core/blob/ac50d0cc5789d8462fcd2d9f6cb225e0edf9a12f/adb/shell_service.cpp
Usage: https://github.com/android/platform_system_core/blob/ac50d0cc5789d8462fcd2d9f6cb225e0edf9a12f/adb/commandline.cpp#L291
RunCommand
should still be supported for combined stdin/stdout streams, but there should be an API likeexec.Cmd
. The old mode is called "PTY" mode, andRunCommand
should probably use that. The new mode is called "protocol" mode, and multiplexes out/err streams over a single connection with a simple protocol that sends packets with stream ID headers.The exit code is sent as a single raw byte on the
kIdExit
stream.The text was updated successfully, but these errors were encountered: