apex: Do not compress EROFS APEX
EROFS filesystem already compresses its contents. Hence no need to
compress the APEX.
Bug: 380786910
Test: m --no-skip-soong-tests
Change-Id: I25d44cbf98efc6b84db172fa2120e080344d9ddc
diff --git a/apex/apex.go b/apex/apex.go
index 0b56bf8..be14a17 100644
--- a/apex/apex.go
+++ b/apex/apex.go
@@ -1737,7 +1737,13 @@
}
func (a *apexBundle) isCompressable() bool {
- return proptools.BoolDefault(a.overridableProperties.Compressible, false) && !a.testApex
+ if a.testApex {
+ return false
+ }
+ if a.payloadFsType == erofs {
+ return false
+ }
+ return proptools.Bool(a.overridableProperties.Compressible)
}
func (a *apexBundle) commonBuildActions(ctx android.ModuleContext) bool {