From b71eedf912a4afb0fe4d522e2f1f777020db671c Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Mon, 6 Aug 2018 19:13:38 -0700 Subject: [PATCH] fastboot: `fastbootd` uses `libadbd.so`. The size of `fastbootd` goes down from 64088-byte to 38488-byte (aosp_taimen-userdebug) after the change. Bug: 78793464 Test: `m -j installclean && m -j fastbootd`. Check that $OUT/recovery/root/system/lib64/libadbd.so exists and $OUT/recovery/root/system/bin/fastbootd depends on that. Change-Id: Ic36c98da1a0dda4e0d86e671f858c42578f53f90 --- fastboot/Android.bp | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/fastboot/Android.bp b/fastboot/Android.bp index aa88a8a44..e9bb1d7af 100644 --- a/fastboot/Android.bp +++ b/fastboot/Android.bp @@ -101,23 +101,20 @@ cc_binary { ], shared_libs: [ - "libasyncio", - "libext4_utils", - "libsparse", - "liblog", "android.hardware.boot@1.0", - "libbootloader_message", - "libhidltransport", - "libhidlbase", - "libhwbinder", - "libbase", - "libutils", - "libcutils", - "libfs_mgr", - ], - - static_libs: [ "libadbd", + "libasyncio", + "libbase", + "libbootloader_message", + "libcutils", + "libext4_utils", + "libfs_mgr", + "libhidlbase", + "libhidltransport", + "libhwbinder", + "liblog", + "libsparse", + "libutils", ], cpp_std: "c++17",