From b3915ea3630cc79c550b757511713b412a53eef8 Mon Sep 17 00:00:00 2001 From: Tej Singh Date: Thu, 5 Mar 2020 14:33:15 -0800 Subject: Remove libstatssocket from statsd_test Statsd test links both libstatssocket and libstatssocket_private. It shouldn't need to link both, but needs the private lib to be able to access hidden APIs like getBuffer. So, remove it from statsd_test. Test: atest statsd_test Bug: 150435148 Change-Id: I46e71209489c8b1924800680f26e87ef7f4b8598 --- cmds/statsd/Android.bp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmds/statsd/Android.bp b/cmds/statsd/Android.bp index 0c3a49a9d340..a2fee8b6d752 100644 --- a/cmds/statsd/Android.bp +++ b/cmds/statsd/Android.bp @@ -122,7 +122,6 @@ cc_defaults { "libbinder_ndk", "libincident", "liblog", - "libstatssocket", "statsd-aidl-ndk_platform", ], } @@ -215,7 +214,10 @@ cc_binary { type: "lite", }, - shared_libs: ["libgtest_prod"], + shared_libs: [ + "libgtest_prod", + "libstatssocket", + ], apex_available: [ "com.android.os.statsd", -- cgit v1.2.3-59-g8ed1b