Introduction
The Android sparse image format stores a partition image as a list of chunks, so that unused or repeated
areas do not have to be stored or sent in full. It is part of libsparse in the
Android source code. Such files often carry the ordinary
.img extension.
Structure
A binary file with a header starting with the magic number 0xED26FF3A, followed by the version,
header sizes, block size, total blocks, total chunks and an image checksum. Chunks follow, of four types:
raw data (0xCAC1), fill (0xCAC2), don't care (0xCAC3) and CRC-32
(0xCAC4).
Not described
Known, not yet covered
- Reference: the layout of the format is not yet described here: the byte offsets of the file and chunk headers are in libsparse's sparse_format.h.
- Viewer: the site has no viewer for this format.
Links
Reference
- sparse_format.h – the header file in Android's libsparse that defines the format