Rebuild the vendor install-recovery if necessary.

Test: Manual on a device with VENDOR/bin/install-recovery.sh
Bug: 146504238
Bug: 68319577
Change-Id: I33c253716bda5e7e655dac5c0636e9995e7b64c1
This commit is contained in:
Robin Lee
2020-01-03 19:16:32 +01:00
parent 2cfd952682
commit da427de124

View File

@@ -552,8 +552,13 @@ def ProcessTargetFiles(input_tf_zip, output_tf_zip, misc_info,
# Ask add_img_to_target_files to rebuild the recovery patch if needed.
elif filename in ("SYSTEM/recovery-from-boot.p",
"VENDOR/recovery-from-boot.p",
"SYSTEM/etc/recovery.img",
"SYSTEM/bin/install-recovery.sh"):
"VENDOR/etc/recovery.img",
"SYSTEM/bin/install-recovery.sh",
"VENDOR/bin/install-recovery.sh"):
OPTIONS.rebuild_recovery = True
# Don't copy OTA certs if we're replacing them.