Merge "Don't install system image copies of libraries in unbundled apex builds"

This commit is contained in:
Colin Cross
2023-01-27 19:27:54 +00:00
committed by Gerrit Code Review

View File

@@ -2389,7 +2389,10 @@ func (a *apexBundle) depVisitor(vctx *visitorContext, ctx android.ModuleContext,
//
// Always include if we are a host-apex however since those won't have any
// system libraries.
if ch.IsStubsImplementationRequired() && !am.DirectlyInAnyApex() {
//
// Skip the dependency in unbundled builds where the device image is not
// being built.
if ch.IsStubsImplementationRequired() && !am.DirectlyInAnyApex() && !ctx.Config().UnbundledBuild() {
// we need a module name for Make
name := ch.ImplementationModuleNameForMake(ctx) + ch.Properties.SubName
if !android.InList(name, a.makeModulesToInstall) {