Merge "Remove hashtree from builtin APEXes" am: 21738f6032

am: 853b801628

Change-Id: I2e9f04ce96c4902ad459fd3a27305032fde1d16b
This commit is contained in:
Jooyung Han 2019-08-28 07:35:05 -07:00 committed by android-build-merger
commit f66a39f169
1 changed files with 7 additions and 0 deletions

View File

@ -1213,6 +1213,13 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext, apexType ap
optFlags = append(optFlags, "--assets_dir "+filepath.Dir(noticeFile.String()))
}
if !ctx.Config().UnbundledBuild() && a.installable() {
// Apexes which are supposed to be installed in builtin dirs(/system, etc)
// don't need hashtree for activation. Therefore, by removing hashtree from
// apex bundle (filesystem image in it, to be specific), we can save storage.
optFlags = append(optFlags, "--no_hashtree")
}
ctx.Build(pctx, android.BuildParams{
Rule: apexRule,
Implicits: implicitInputs,