From 82aab58aea011e671358e0c45896c39d905386ca Mon Sep 17 00:00:00 2001 From: Nikita Ioffe Date: Thu, 28 Jan 2021 20:25:23 +0000 Subject: [PATCH] Turn apex compression from opt-out into opt-in Compression is useful only for big enough apexes. We can manually opt-in them, instead of trying to find list of apexes that should be opted-out. Test: m Bug: 178713634 Change-Id: Ice86fabb7c1db4a1e21e4c983d595cfd3a1c0b7a --- apex/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apex/builder.go b/apex/builder.go index ee0a41063..16ca74cf2 100644 --- a/apex/builder.go +++ b/apex/builder.go @@ -780,7 +780,7 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) { ctx.PropertyErrorf("test_only_force_compression", "not available") return } - compressionEnabled := ctx.Config().CompressedApex() && proptools.BoolDefault(a.properties.Compressible, true) + compressionEnabled := ctx.Config().CompressedApex() && proptools.BoolDefault(a.properties.Compressible, false) if apexType == imageApex && (compressionEnabled || a.testOnlyShouldForceCompression()) { a.isCompressed = true unsignedCompressedOutputFile := android.PathForModuleOut(ctx, a.Name()+".capex.unsigned")