From e5e48537b1bfa2bb5420427f6cef58ff6f016472 Mon Sep 17 00:00:00 2001 From: Alexey Min Date: Thu, 19 Mar 2020 17:11:52 +0300 Subject: [PATCH] pmb.install: offer to flash vbmeta if device declares support for it (!1885) --- pmb/install/_install.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pmb/install/_install.py b/pmb/install/_install.py index 6e2f9a56..3f1e270a 100644 --- a/pmb/install/_install.py +++ b/pmb/install/_install.py @@ -440,6 +440,11 @@ def install_system_image(args): " /boot and / subpartitions. That way we don't need to" " change the partition layout on your device.)") + # if current flasher supports vbmeta and partition is explicitly spcified in deviceinfo + if "flash_vbmeta" in flasher_actions and args.deviceinfo["flash_fastboot_partition_vbmeta"]: + logging.info("* pmbootstrap flasher flash_vbmeta") + logging.info(" Flashes vbmeta image with verification disabled flag.") + # Most flash methods operate independently of the boot partition. # (e.g. an Android boot image is generated). In that case, "flash_kernel" # works even when partitions are split or installing for sdcard.