Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ota: Add support for legacy OTA metadata #196

Merged
merged 1 commit into from
Oct 27, 2023
Merged

ota: Add support for legacy OTA metadata #196

merged 1 commit into from
Oct 27, 2023

Conversation

chenxiaolong
Copy link
Owner

Android 11 OTAs use the same payload.bin format, but lack the metadata.pb protobuf representation of the OTA metadata. This commit adds support for parsing the legacy plain-text metadata format. Like before, the output files will still contain both the legacy and protobuf representations.

Note that the legacy format allowed OEMs to specify arbitrary key/value pairs. These will be discarded during patching because they cannot be represented in the protobuf format, which is used in avbroot's internal representation.

Issue: #195

@chenxiaolong chenxiaolong self-assigned this Oct 27, 2023
Android 11 OTAs use the same `payload.bin` format, but lack the
`metadata.pb` protobuf representation of the OTA metadata. This commit
adds support for parsing the legacy plain-text `metadata` format. Like
before, the output files will still contain both the legacy and
protobuf representations.

Note that the legacy format allowed OEMs to specify arbitrary key/value
pairs. These will be discarded during patching because they cannot be
represented in the protobuf format, which is used in avbroot's internal
representation.

Issue: #195

Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong chenxiaolong merged commit fd7bbf5 into master Oct 27, 2023
26 checks passed
@chenxiaolong chenxiaolong deleted the legacy branch October 27, 2023 21:36
chenxiaolong added a commit that referenced this pull request Oct 27, 2023
Signed-off-by: Andrew Gunnerson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant