Extract vbmeta from footer

Do not scan manually, extract properly from footer like libavb
This commit is contained in:
topjohnwu
2022-05-13 02:49:18 -07:00
parent 6ef86d8d20
commit c11ccbae2d
2 changed files with 25 additions and 19 deletions

View File

@ -608,7 +608,7 @@ struct boot_img {
// AVB structs
AvbFooter *avb_footer;
AvbVBMetaImageHeader *avb_meta;
AvbVBMetaImageHeader *vbmeta;
// Pointers to blocks defined in header
uint8_t *hdr_addr;