diff --git a/adb/Android.mk b/adb/Android.mk index 6188184b7..0babf1d4a 100644 --- a/adb/Android.mk +++ b/adb/Android.mk @@ -319,6 +319,7 @@ LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_SBIN_UNSTRIPPED) LOCAL_C_INCLUDES += system/extras/ext4_utils LOCAL_SANITIZE := $(adb_target_sanitize) +LOCAL_STRIP_MODULE := keep_symbols LOCAL_STATIC_LIBRARIES := \ libadbd \ libbase \ @@ -333,6 +334,7 @@ LOCAL_STATIC_LIBRARIES := \ libbase \ libcrypto_utils_static \ libcrypto_static \ - libminijail + libminijail \ + libdebuggerd_client \ include $(BUILD_EXECUTABLE) diff --git a/adb/daemon/main.cpp b/adb/daemon/main.cpp index 916bedfe8..b0a0162b0 100644 --- a/adb/daemon/main.cpp +++ b/adb/daemon/main.cpp @@ -32,6 +32,7 @@ #include #include "cutils/properties.h" +#include "debuggerd/client.h" #include "private/android_filesystem_config.h" #include "selinux/android.h" @@ -247,6 +248,7 @@ int main(int argc, char** argv) { close_stdin(); + debuggerd_init(nullptr); adb_trace_init(argv); D("Handling main()");