From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Android sparse image" |
|---|
| claim | "The sparse image header is 28 bytes of little-endian fields: magic 0xED26FF3A, major 1, minor 0, file_hdr_sz 28, chunk_hdr_sz 12, blk_sz, total_blks, total_chunks, image_checksum; each chunk has a 12-byte header (type u16, reserved u16, chunk_sz in blocks u32, total_sz in bytes u32)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Android sparse image" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "sparse_header" |
|---|
| size | 28 |
|---|
| endianness | "little" |
|---|
| fields | | offset | 0 |
|---|
| name | "magic" |
|---|
| type | "u32" |
|---|
| value | "0xED26FF3A" |
|---|
|
| offset | 4 |
|---|
| name | "major_version" |
|---|
| type | "u16" |
|---|
|
| offset | 6 |
|---|
| name | "minor_version" |
|---|
| type | "u16" |
|---|
|
| offset | 8 |
|---|
| name | "file_hdr_sz" |
|---|
| type | "u16" |
|---|
|
| offset | 10 |
|---|
| name | "chunk_hdr_sz" |
|---|
| type | "u16" |
|---|
|
| offset | 12 |
|---|
| name | "blk_sz" |
|---|
| type | "u32" |
|---|
|
| offset | 16 |
|---|
| name | "total_blks" |
|---|
| type | "u32" |
|---|
|
| offset | 20 |
|---|
| name | "total_chunks" |
|---|
| type | "u32" |
|---|
|
| offset | 24 |
|---|
| name | "image_checksum" |
|---|
| type | "u32" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct sparse_header, struct chunk_header and CHUNK_TYPE_* defines (lines 25-57)" |
|---|
| repo | "android.googlesource.com/platform/system/core" |
|---|
| commit | "a3b721a32242006b59cb12bd62c9133632af3a2d" |
|---|
| path | "libsparse/sparse_format.h" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T22:47:37.526Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:21:08.569Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched libsparse/sparse_format.h at the cited commit; sparse_header (4+2+2+2+2+4+4+4+4 = 28) and chunk_header (2+2+4+4 = 12) match, magic 0xed26ff3a; chunk types 0xCAC1-0xCAC4 not listed in the fact (CRC32 type 0xCAC4 exists) but the claim does not depend on them." |
|---|
|
|
|---|