OSDN Git Service

adb: implement shell protocol.
authorDavid Pursell <dpursell@google.com>
Mon, 31 Aug 2015 17:42:13 +0000 (10:42 -0700)
committerDavid Pursell <dpursell@google.com>
Fri, 11 Sep 2015 18:27:50 +0000 (11:27 -0700)
commit0955c66b226db7a7f34613f834f7b0a145fd407d
treedd7c0a34c47084c347e41f4b179e2538d767eb3a
parent31139af04f97c843db2a98c7fafc1d58d7f7c8ac
adb: implement shell protocol.

Adds functionality for handling stdin/stdout/stderr streams and exit
codes using the shell protocol.

This CL just contains implementation for adbd which will not yet be
enabled. Once we have the ability to query transport features from the
adb client, another CL will add the implementation for the client side
and update the feature list to turn this on.

Note: this CL must be submitted together with a minadbd CL to update
the service_to_fd() function signature.

Bug: http://b/23030641

Change-Id: Ibed55e9c1946d8a35190696163ff63e8fb880238
adb/Android.mk
adb/adb.cpp
adb/adb.h
adb/services.cpp
adb/shell_service.cpp
adb/shell_service.h
adb/shell_service_test.cpp [new file with mode: 0644]
adb/sockets.cpp
adb/transport.cpp
adb/transport.h