From 5d00f50f7596cee687939077e4799af7261829b0 Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Sun, 11 Jul 2021 07:26:22 +0900 Subject: [PATCH] apex: pass --align-file-size to signapk APEX files are sized as 4K-aligned so that they can be passed to Guest OS via block apexes. Bug: 192991318 Test: check size of built APEX files Change-Id: I32d988f3cdf2717dbebd87b2ced01840e07a3a9b --- apex/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apex/builder.go b/apex/builder.go index 24c049bcd..148f42f09 100644 --- a/apex/builder.go +++ b/apex/builder.go @@ -761,7 +761,7 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) { rule := java.Signapk args := map[string]string{ "certificates": pem.String() + " " + key.String(), - "flags": "-a 4096", //alignment + "flags": "-a 4096 --align-file-size", //alignment } implicits := android.Paths{pem, key} if ctx.Config().UseRBE() && ctx.Config().IsEnvTrue("RBE_SIGNAPK") {