Merge "remove unused files in fake_device_config" into main
diff --git a/core/Makefile b/core/Makefile
index ada5be5..c4327fd 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -5651,7 +5651,9 @@
       endif
     endif # INSTALLED_BOOTIMAGE_TARGET == ""
     ifeq ($(recovery_fstab),)
-      build_ota_package := false
+      ifeq ($(filter $(TARGET_RECOVERY_ROOT_OUT)/system/etc/recovery.fstab,$(INTERNAL_RECOVERYIMAGE_FILES)),)
+        build_ota_package := false
+      endif
     endif
   endif # PRODUCT_BUILD_GENERIC_OTA_PACKAGE