Use more shared libraries in adb and init.
fs_mgr is used by several different
processes in both system and recovery,
so it makes sense for it to be a shared
library to save space.
libadbd is used by adbd, recovery (as minadbd)
and fastbootd so it should be shared as well.
Bug: 78793464
Test: compiles
Change-Id: I4225f4d1a44e6e5811c68a55595d1f94f0773114
Merged-In: I4225f4d1a44e6e5811c68a55595d1f94f0773114
(cherry picked from commit aacfc68acfb6f9432e741fa25a68d9336cc7c401)
diff --git a/init/Android.bp b/init/Android.bp
index 5bbb7a0..094d914 100644
--- a/init/Android.bp
+++ b/init/Android.bp
@@ -59,17 +59,9 @@
},
},
static_libs: [
- "libbootloader_message",
- "libfs_mgr",
- "libfec",
- "libfec_rs",
"libhidl-gen-utils",
"libsquashfs_utils",
- "liblogwrap",
- "libext4_utils",
"libseccomp_policy",
- "libcrypto_utils",
- "libsparse",
"libprocessgroup",
"libavb",
"libkeyutils",
@@ -78,13 +70,22 @@
"libpropertyinfoparser",
],
shared_libs: [
+ "libbootloader_message",
+ "libcrypto_utils",
"libcutils",
"libbase",
"libc",
+ "libext4_utils",
+ "libfs_mgr",
+ "libfec",
+ "libfec_rs",
"liblog",
+ "liblogwrap",
"libcrypto",
"libc++",
"libdl",
+ "libselinux",
+ "libsparse",
"libz",
"libselinux",
],