Closed juleast closed 1 month ago
Can you post a link to the OTA? Or if it's not publicly available, can you extract the OTA with:
avbroot ota extract -i ota.zip -d extracted -a
and post the output of:
avbroot avb info -i extracted/system.img
fec_size
is a field in the AVB metadata that specifies how big the FEC (forward error correction) data is. FEC data is used to correct small errors if a partition happens to get corrupted.
I'm thinking either the fec_size
is somehow invalid or it's exceeding avbroot's internal limit (~32 MiB). The latter would be really easy to fix.
I've run the command you asked for. Here is the output. I've captured the output to a logfile because it was too long. system.log
Thanks. Yep, so it's just hitting avbroot's internal limit. (The limit exists so that a corrupt/malicious OTA can't cause avbroot to use up the entire system's memory.)
I'll increase the limit and release a new version of avbroot.
Thank you for the update! I will try it again when I get home.
No problem! 3.2.1 will be released in a few minutes with the change.
What are the conditions for an OTA zip to be properly signed? Does it require a specific configuration when compiling the OTA zip first? I tried to sign the OTA zip for DerpFest for my device but trying to verify it back produces this error:
I wasn't sure what this error meant.