From 995225841655764e1375413e98ac0026157ab7b0 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Mon, 3 Feb 2020 23:08:05 -0800 Subject: [PATCH] Add libadbd_auth to adbd's required list. It seems like we might not be tracking dependencies properly on devices with flattened APEXes? Add libadbd_auth to adbd's required list to work around this for now. Bug: http://b/148812347 Test: `ls $ANDROID_PRODUCT_OUT/system/lib/libadbd_auth.so` before and after when building a go device Change-Id: If60abeb00797e37bf6a5a037249a21877e0b3d26 --- adb/Android.bp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/adb/Android.bp b/adb/Android.bp index f6a4f39b4..560e5682e 100644 --- a/adb/Android.bp +++ b/adb/Android.bp @@ -29,7 +29,6 @@ cc_defaults { "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION=1", ], cpp_std: "experimental", - stl: "libc++_static", use_version_lib: true, compile_multilib: "first", @@ -325,6 +324,7 @@ cc_benchmark { cc_binary_host { name: "adb", + stl: "libc++_static", defaults: ["adb_defaults"], srcs: [ @@ -542,6 +542,7 @@ cc_library { cc_binary { name: "adbd", defaults: ["adbd_defaults", "host_adbd_supported"], + stl: "libc++_static", recovery_available: true, srcs: [ @@ -577,6 +578,8 @@ cc_binary { "libadbd_auth", "libcrypto", ], + + required: ["libadbd_auth"], } phony { @@ -599,6 +602,7 @@ cc_binary { name: "abb", defaults: ["adbd_defaults"], + stl: "libc++", recovery_available: false, srcs: [ @@ -631,7 +635,11 @@ cc_binary { cc_test { name: "adbd_test", + defaults: ["adbd_defaults"], + stl: "libc++_static", + + recovery_available: false, srcs: libadb_test_srcs + [ "daemon/services.cpp", "daemon/shell_service.cpp",