Merge "Fix change in logic introduced in https://r.android.com/1666563."

This commit is contained in:
Jose "Pepe" Galmes
2021-05-26 21:09:05 +00:00
committed by Gerrit Code Review

View File

@@ -579,7 +579,7 @@ func MutateImage(mctx android.BaseModuleContext, m ImageMutatableModule) {
// If using a snapshot, the recovery variant under AOSP directories is not needed,
// except for kernel headers, which needs all variants.
if m.KernelHeadersDecorator() &&
if !m.KernelHeadersDecorator() &&
!m.IsSnapshotPrebuilt() &&
usingRecoverySnapshot &&
!isRecoveryProprietaryModule(mctx) {