don't include liblog to APEXes
liblog is a platform library that provides stable C API. There is no
need to include the library, especialy by statically linking to it, in
any APEX. It not only wastes the storage/ram, but also is incorrect
because the socket interface to logd which is implemented in liblog is
not guaranteed to be stable.
Fixing this issue by converting static_libs: ["liblog"] into
shared_libs: ["liblog"], in which case the dependency to the library
is satisfied via the stub variant of the library.
Bug: 151051671
Test: m
Change-Id: I76dca590745748d28dca2ca03dbdab0c2dac3aba
diff --git a/libartpalette/Android.bp b/libartpalette/Android.bp
index 43539d6..63abfe2 100644
--- a/libartpalette/Android.bp
+++ b/libartpalette/Android.bp
@@ -41,12 +41,7 @@
// and binds the methods in the libartpalette-system library.
android: {
srcs: ["apex/palette.cc"],
- shared: {
- shared_libs: ["liblog"],
- },
- static: {
- static_libs: ["liblog"],
- },
+ shared_libs: ["liblog"],
version_script: "libartpalette.map.txt",
},
linux_bionic: {