Skip recovery.img in Soong target_files.zip
This matches the make behavior
Test: diff'd locally
Bug: 388635097
Change-Id: I898a94ba70285dacf3681667669efe65475809bb
diff --git a/filesystem/android_device.go b/filesystem/android_device.go
index d9f3816..83cac74 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -358,6 +358,9 @@
}
// 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())