From bf20832d80d35c1bad3315ae54198f9ba278190d Mon Sep 17 00:00:00 2001 From: Akhil Narang Date: Mon, 5 Aug 2019 20:07:03 +0530 Subject: [PATCH] miatoll: releasetools: Be more clear about firmware image patching This looks very odd on most of the devices using this tree because nothing is being patched. Just mention which image is being flashed and only when it actually is. Change-Id: Ib6c35e08aee0f1c102da28ca37434093a92f7045 --- releasetools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releasetools.py b/releasetools.py index 85538b0..7ee7fc0 100644 --- a/releasetools.py +++ b/releasetools.py @@ -27,10 +27,10 @@ def AddImage(info, basename, dest): data = info.input_zip.read(path) common.ZipWriteStr(info.output_zip, basename, data) + info.script.Print("Patching {} image unconditionally...".format(dest.split('/')[-1])) info.script.AppendExtra('package_extract_file("%s", "%s");' % (basename, dest)) def OTA_InstallEnd(info): - info.script.Print("Patching firmware images...") AddImage(info, "dtbo.img", "/dev/block/bootdevice/by-name/dtbo") AddImage(info, "vbmeta.img", "/dev/block/bootdevice/by-name/vbmeta") AddImage(info, "vbmeta_system.img", "/dev/block/bootdevice/by-name/vbmeta_system")