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

PayloadWriter: Only set data_offset for operations that reference blobs #136

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

chenxiaolong
Copy link
Owner

@chenxiaolong chenxiaolong commented Sep 7, 2023

This fixes data_offset being set for ZERO and DISCARD operations, which prevents some images (eg. ossi) from being flashed due to update_engine's strict field validation.

@chenxiaolong chenxiaolong self-assigned this Sep 7, 2023
@chenxiaolong chenxiaolong changed the title PayloadWriter: Don't set data_offset for ZERO and DISCARD operations PayloadWriter: Only set data_offset for operations that reference blobs Sep 7, 2023
This fixes `data_offset` being set for `ZERO` and `DISCARD` operations,
which prevents some images (eg. `ossi`) from being flashed due to
update_engine's strict field validation.

Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong
Copy link
Owner Author

This was a problem in the Python implementation too. I guess there are 0 people who use avbroot with OnePlus stock OTAs :)

@chenxiaolong chenxiaolong merged commit 3c05eb3 into master Sep 7, 2023
26 checks passed
@chenxiaolong chenxiaolong deleted the offset branch September 7, 2023 02:50
chenxiaolong added a commit that referenced this pull request Sep 7, 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