Merge "Native bridge modules are not translated second archs"
diff --git a/cc/library.go b/cc/library.go
index 7889cb1..3053831 100644
--- a/cc/library.go
+++ b/cc/library.go
@@ -957,7 +957,7 @@
library.baseInstaller.subDir += "-" + vndkVersion
}
}
- } else if len(library.Properties.Stubs.Versions) > 0 {
+ } else if len(library.Properties.Stubs.Versions) > 0 && android.DirectlyInAnyApex(ctx, ctx.ModuleName()) {
// Bionic libraries (e.g. libc.so) is installed to the bootstrap subdirectory.
// The original path becomes a symlink to the corresponding file in the
// runtime APEX.