From a03fe5c93dcd7e90b526866d196e2697d8ce5d2d Mon Sep 17 00:00:00 2001 From: Jan Altensen Date: Tue, 26 Jul 2022 15:02:48 +0200 Subject: [PATCH] universal8895: update recovery on ota Change-Id: I55e51f1224be2c5574782274d3e895ca033ce694 --- releasetools/releasetools.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/releasetools/releasetools.py b/releasetools/releasetools.py index a7d78e5..28ed2b6 100644 --- a/releasetools/releasetools.py +++ b/releasetools/releasetools.py @@ -26,6 +26,11 @@ def FullOTA_Assertions(info): def FullOTA_InstallEnd(info): skip_firmware = False + if "IMAGES/recovery.img" in info.input_zip.namelist(): + common.ZipWriteStr(info.output_zip, "firmware-update/recovery.img", info.input_zip.read("IMAGES/recovery.img")) + info.script.AppendExtra('ui_print("Patching recovery image unconditionally...");') + info.script.AppendExtra('package_extract_file("firmware-update/recovery.img", "/dev/block/platform/11120000.ufs/by-name/RECOVERY");') + # Skip Firmware if filemap or any of the images are not present if "RADIO/filemap" not in info.input_zip.namelist(): skip_firmware = True -- GitLab