-
Notifications
You must be signed in to change notification settings - Fork 208
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
Add Android super.img (Dynamic Partitions) format #349
Conversation
2a00526
to
76ce6ef
Compare
Thanks for the review, and congrats on the 0.9 release! I've taken most of your suggestions and also added some shiny new little-endian bit fields to parse various flag fields. |
76ce6ef
to
5cfd39e
Compare
5cfd39e
to
ac5e80c
Compare
ac5e80c
to
c1fda75
Compare
@generalmimon just in case you missed my last push, this should be ready to review again now with all comments addressed. No rush, though! |
473fcbb
to
e446d85
Compare
The metadata stored by Android at the beginning of a "super" partition, which is what it calls a disk partition that holds one or more Dynamic Partitions. Dynamic Partitions do more or less the same thing that LVM does on Linux, allowing Android to map ranges of non-contiguous extents to a single logical device. This metadata holds that mapping. Signed-off-by: Thomas Hebb <[email protected]>
e446d85
to
6e48d09
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tchebb Thanks for the contribution, merging in!
It detects problems such as the following: - kaitai-io/kaitai_struct_formats#349 (comment) - kaitai-io/kaitai_struct_formats#591 (comment)
The metadata stored by Android at the beginning of a "super" partition, which is what it calls a disk partition that holds one or more Dynamic Partitions. Dynamic Partitions do more or less the same thing that LVM does on Linux, allowing Android to map ranges of non-contiguous extents to a single logical device. This metadata holds that mapping.
sample.zip contains a sample file (
super_truncated.img
) that I obtained by extracting only the header portion of a "super" partition provided as part of an official Android emulator image.