pmb.install: offer to flash vbmeta if device declares support for it (!1885)

This commit is contained in:
Alexey Min 2020-03-19 17:11:52 +03:00 committed by Oliver Smith
parent e6da56d9b0
commit e5e48537b1
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 5 additions and 0 deletions

View File

@ -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.