diff --git a/apex/apex.go b/apex/apex.go index c330f8254..a9be1a8ae 100644 --- a/apex/apex.go +++ b/apex/apex.go @@ -1885,7 +1885,7 @@ func (a *apexBundle) checkStaticLinkingToStubLibraries(ctx android.ModuleContext } func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) { - buildFlattenedAsDefault := ctx.Config().FlattenApex() && !ctx.Config().UnbundledBuild() + buildFlattenedAsDefault := ctx.Config().FlattenApex() && !ctx.Config().UnbundledBuildApps() switch a.properties.ApexType { case imageApex: if buildFlattenedAsDefault {