From 919b70cde1559e4368a3b8ce5d97790d3496fc08 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Thu, 8 Nov 2018 22:39:43 -0800 Subject: [PATCH] Enable the APEX support on the device side. Test: on device Merged-In: Ic6e237556fa059e02cf9c55d1c034947b7dfb405 Change-Id: Ic6e237556fa059e02cf9c55d1c034947b7dfb405 --- adb/transport.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/adb/transport.cpp b/adb/transport.cpp index c2d4917ea..76a31cee0 100644 --- a/adb/transport.cpp +++ b/adb/transport.cpp @@ -1009,14 +1009,11 @@ size_t atransport::get_max_payload() const { const FeatureSet& supported_features() { // Local static allocation to avoid global non-POD variables. static const FeatureSet* features = new FeatureSet{ - kFeatureShell2, kFeatureCmd, kFeatureStat2, kFeatureFixedPushMkdir, -#if ADB_HOST - kFeatureApex -#endif - // Increment ADB_SERVER_VERSION when adding a feature that adbd needs - // to know about. Otherwise, the client can be stuck running an old - // version of the server even after upgrading their copy of adb. - // (http://b/24370690) + kFeatureShell2, kFeatureCmd, kFeatureStat2, kFeatureFixedPushMkdir, kFeatureApex + // Increment ADB_SERVER_VERSION when adding a feature that adbd needs + // to know about. Otherwise, the client can be stuck running an old + // version of the server even after upgrading their copy of adb. + // (http://b/24370690) }; return *features;