Add apex_available to libs
Bug: 145922701
Test: m -j
Change-Id: If5cbe5651e47878520bdc5b943b17a4f72a2a2f3
diff --git a/libstats/pull/Android.bp b/libstats/pull/Android.bp
index 827e992..d74a36b 100644
--- a/libstats/pull/Android.bp
+++ b/libstats/pull/Android.bp
@@ -29,12 +29,14 @@
export_include_dirs: ["include"],
shared_libs: [
"libbinder_ndk",
- "libstatssocket",
+ "liblog",
"statsd-aidl-ndk_platform",
],
static_libs: [
- "liblog",
"libutils",
+ // TODO(b/149340100): Clean this up when libstatssocket is moved to the apex.
+ "libstatssocket",
+ "libcutils",
],
// enumerate stable entry points for APEX use
stubs: {
@@ -43,4 +45,8 @@
"30",
],
},
+ apex_available: [
+ "com.android.os.statsd",
+ "test_com.android.os.statsd",
+ ],
}
diff --git a/libstats/socket/Android.bp b/libstats/socket/Android.bp
index f36b214..c478521 100644
--- a/libstats/socket/Android.bp
+++ b/libstats/socket/Android.bp
@@ -47,7 +47,13 @@
versions: [
"30",
],
- }
+ },
+ apex_available: [
+ "com.android.os.statsd",
+ "test_com.android.os.statsd",
+ //TODO(b/149340100): Remove this once libstatssocket is only linked as shared.
+ "//apex_available:platform",
+ ],
}
cc_library_headers {