Remove unncessary .so files from the apex
The current build system doesn't support well for Rust binaries with
prefer_rlib:true. It bundles transitive dependencies more than necessary
and those extra libraries are not used by any modules in the apex.
In this bug, those extra libraries are skipped by manual listing as
workaround.
Note that this workaround is fragile because it can be easily wrong when
we change the APEX contents and their dependencies.
In the upcoming change, I'd like to add an extra validation for the APEX
to ensure that the manul list remains correct.
Bug: 295593640
Test: MicrodroidHostTestCases
Change-Id: I4c1220764a053785f1a03dfe9824a00405565278
diff --git a/apex/Android.bp b/apex/Android.bp
index a05f7b0..a4c8861 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -58,6 +58,13 @@
"libvirtualizationservice_jni",
"libvirtualmachine_jni",
],
+ // TODO(b/295593640) Unfortunately these are added to the apex even though they are unused.
+ // Once the build system is fixed, remove this.
+ unwanted_transitive_deps: [
+ "libdrm",
+ "libsso",
+ "libutils",
+ ],
}
apex_defaults {