diff options
| author | 2024-11-27 01:39:39 +0000 | |
|---|---|---|
| committer | 2024-11-27 01:39:39 +0000 | |
| commit | 5c5dc9dce3df18029df755cc303eb82267645a34 (patch) | |
| tree | a30d02832904f753768bb1db74a5e97676870321 /apex/apex.go | |
| parent | 9138df77ce4432a6598e1287752bb76bc2241f8b (diff) | |
| parent | a8fb73be3258237caaa226df2aef6f4fea20d004 (diff) | |
Merge "apex: Do not compress EROFS APEX" into main
Diffstat (limited to 'apex/apex.go')
| -rw-r--r-- | apex/apex.go | 8 |
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 { |