summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filesystem/android_device.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/filesystem/android_device.go b/filesystem/android_device.go
index d9f38163b..83cac748f 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -358,6 +358,9 @@ func (a *androidDevice) copyImagesToTargetZip(ctx android.ModuleContext, builder
}
// Copy the filesystem ,boot and vbmeta img files to IMAGES/
ctx.VisitDirectDepsProxyWithTag(filesystemDepTag, func(child android.ModuleProxy) {
+ if strings.Contains(child.Name(), "recovery") {
+ return // skip recovery.img to match the make packaging behavior
+ }
if info, ok := android.OtherModuleProvider(ctx, child, BootimgInfoProvider); ok {
// Check Boot img first so that the boot.img is copied and not its dep ramdisk.img
builder.Command().Textf("cp ").Input(info.Output).Textf(" %s/IMAGES/", targetFilesDir.String())