From 92af733ee202caa3b5475fe27fcc81582f11e7c8 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 30 Apr 2015 17:32:03 -0700 Subject: More adb buffer fixes. This patch factors out a lot of the basic protocol code: sending OKAY, sending FAIL, and sending a length-prefixed string. ADB_TRACE has been non-optional for a long time, so let's just remove the #ifs. Also actually build the device tracker test tool (and remove its duplicate). Bug: http://b/20666660 Change-Id: I6c7d59f18707bdc62ca69dea45547617f9f31fc6 (cherry picked from commit e67f1f87d9b1188ec8617035db7006c37ee7b21e) --- adb/Android.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'adb/Android.mk') diff --git a/adb/Android.mk b/adb/Android.mk index 9b6e147..dd1343b 100644 --- a/adb/Android.mk +++ b/adb/Android.mk @@ -124,6 +124,21 @@ endif include $(BUILD_HOST_NATIVE_TEST) +# adb device tracker (used by ddms) test tool +# ========================================================= + +ifeq ($(HOST_OS),linux) +include $(CLEAR_VARS) +LOCAL_CLANG := $(adb_host_clang) +LOCAL_MODULE := adb_device_tracker_test +LOCAL_CFLAGS := -DADB_HOST=1 $(LIBADB_CFLAGS) +LOCAL_SRC_FILES := test_track_devices.cpp +LOCAL_SHARED_LIBRARIES := liblog libbase +LOCAL_STATIC_LIBRARIES := libadb libcrypto_static libcutils +LOCAL_LDLIBS += -lrt -ldl -lpthread +include $(BUILD_HOST_EXECUTABLE) +endif + # adb host tool # ========================================================= include $(CLEAR_VARS) -- cgit v1.1