summaryrefslogtreecommitdiff
path: root/apex/apex.go
diff options
context:
space:
mode:
author Jooyung Han <jooyung@google.com> 2024-11-27 01:39:39 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-11-27 01:39:39 +0000
commit5c5dc9dce3df18029df755cc303eb82267645a34 (patch)
treea30d02832904f753768bb1db74a5e97676870321 /apex/apex.go
parent9138df77ce4432a6598e1287752bb76bc2241f8b (diff)
parenta8fb73be3258237caaa226df2aef6f4fea20d004 (diff)
Merge "apex: Do not compress EROFS APEX" into main
Diffstat (limited to 'apex/apex.go')
-rw-r--r--apex/apex.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/apex/apex.go b/apex/apex.go
index 0e40d7c0e..1fe475cb4 100644
--- a/apex/apex.go
+++ b/apex/apex.go
@@ -1755,7 +1755,13 @@ func (a *apexBundle) setPayloadFsType(ctx android.ModuleContext) {
}
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 {