diff --git a/apex/builder.go b/apex/builder.go index bc1b56600..e6bc3bdb4 100644 --- a/apex/builder.go +++ b/apex/builder.go @@ -786,6 +786,9 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) { compressRule.Build("compressRule", "Generate unsigned compressed APEX file") signedCompressedOutputFile := android.PathForModuleOut(ctx, a.Name()+".capex") + if ctx.Config().UseRBE() && ctx.Config().IsEnvTrue("RBE_SIGNAPK") { + args["outCommaList"] = signedCompressedOutputFile.String() + } ctx.Build(pctx, android.BuildParams{ Rule: rule, Description: "sign compressedApex",