fix(android): require AVB vbmeta to follow the original image (#12271)

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
This commit is contained in:
ShuaixinHuangandShuaixinHuang authored and GitHub committed 2026-11-19 06:25:19 -05:00
1 parent abba94101a
commit 447735c170
2 files changed
+23

No files matched your search

+4
View File
@@ -1187,6 +1187,10 @@ const readAvbFooter = (input: {
input.headerOccupied,
input.components,
);
// vbmeta is appended after the original image, including any padding
// within that image. Existing component checks name specific collisions.
if (vbmetaSize > 0 && vbmetaOffset < originalImageSize)
formatError("AVB vbmeta overlaps the original boot image");
return {
present: true,
footerSize: AVB_FOOTER_SIZE,