Skip to content

add "flasher flash_vbmeta" command

Alexey Min requested to merge flash_vbmeta into master

Flashes device vbmeta partition (which can be overriden with deviceinfo_flash_fastboot_partition_vbmeta setting or --partition argument) with custom vbmeta.img which has verity flag disabled, so device can boot postmarketOS with no problems.

The process is described in Android_Verified_Boot_(AVB) wiki page in details. This is may be useful in general for all new devices with Android >= 8, that have Android Verified Boot enabled.

Small (2 Kb or 4 Kb, depending on deviceinfo_flash_pagesize) vbmeta.img is generated on the fly during this command and is removed after flashing.

Depends on avbtool merged first pmaports!1019 (merged)

P.S. do not forget to update https://wiki.postmarketos.org/wiki/Deviceinfo_reference with new variable

P.P.S see this, also this

Edited by Alexey Min

Merge request reports