mirror of
https://github.com/morluto/rea.git
synced 2026-11-22 22:45:47 +00:00
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:
1 parent
abba94101a
commit
447735c170
2 files changed
+23
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user