Add libstatspull and libstatssocket to the apex

Also make libstatssocket dependency static in statsd_test temporarily to use
AStatsEvent_getBuffer in tests.

Bug: 145922701
Bug: 145923416
Test: m

Change-Id: Idb8107cfe4f7d08d08c7a242c037fcc63912bb5f
This commit is contained in:
Muhammad Qureshi
2020-02-18 16:45:06 -08:00
parent 205a16abfb
commit 7b31ff81c5
2 changed files with 7 additions and 1 deletions

View File

@@ -21,6 +21,8 @@ apex {
apex_defaults {
native_shared_libs: [
"libstats_jni",
"libstatspull",
"libstatssocket",
],
// binaries: ["vold"],
java_libs: [

View File

@@ -299,6 +299,11 @@ cc_test {
static_libs: [
"libgmock",
"libplatformprotos",
// TODO(b/149842105): Make libstatssocket shared and remove libcutils once statsd_test is
// moved to the apex.
"libstatssocket",
"libcutils",
],
proto: {
@@ -308,7 +313,6 @@ cc_test {
shared_libs: [
"libprotobuf-cpp-lite",
"libstatssocket"
],
}