diff options
author | Dan Albert <danalbert@google.com> | 2017-05-23 14:30:00 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2017-05-23 14:30:00 -0700 |
commit | e76c390479b23d52bae351c55513e50c7f661e74 (patch) | |
tree | b704b0b1e02a7490f5ef3ca413a8d62f3fb7253d | |
parent | 0b0b11a7c382beb96e43d373c334a1749bc12b66 (diff) | |
download | adb-e76c390479b23d52bae351c55513e50c7f661e74.tar.gz |
Add host feature for `push --sync` support.
Test: adb host-features | grep push_sync
Bug: None
Change-Id: Ia7a7e9c3c2e6632a9c954fbad8f64602a21d9757
-rw-r--r-- | adb.cpp | 1 | ||||
-rw-r--r-- | transport.cpp | 1 | ||||
-rw-r--r-- | transport.h | 2 |
3 files changed, 4 insertions, 0 deletions
@@ -1140,6 +1140,7 @@ int handle_host_request(const char* service, TransportType type, if (should_use_libusb()) { features.insert(kFeatureLibusb); } + features.insert(kFeaturePushSync); SendOkay(reply_fd, FeatureSetToString(features)); return 0; } diff --git a/transport.cpp b/transport.cpp index 24e90cf..308ee8d 100644 --- a/transport.cpp +++ b/transport.cpp @@ -55,6 +55,7 @@ const char* const kFeatureShell2 = "shell_v2"; const char* const kFeatureCmd = "cmd"; const char* const kFeatureStat2 = "stat_v2"; const char* const kFeatureLibusb = "libusb"; +const char* const kFeaturePushSync = "push_sync"; static std::string dump_packet(const char* name, const char* func, apacket* p) { unsigned command = p->msg.command; diff --git a/transport.h b/transport.h index 7304404..57fc988 100644 --- a/transport.h +++ b/transport.h @@ -51,6 +51,8 @@ extern const char* const kFeatureCmd; extern const char* const kFeatureStat2; // The server is running with libusb enabled. extern const char* const kFeatureLibusb; +// The server supports `push --sync`. +extern const char* const kFeaturePushSync; class atransport { public: |