MCPcopy Create free account
hub / github.com/anestisb/android-simg2img

github.com/anestisb/android-simg2img @1.1.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.1.5 ↗ · + Follow
166 symbols 436 edges 21 files 8 documented · 5% updated 14mo ago★ 83611 open issues

Browse by type

Functions 122 Types & classes 44
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

simg2img

Tool to convert Android sparse images to raw images.

Since image tools are not part of Android SDK, this standalone port of AOSP libsparse aims to avoid complex building chains.

Usage

$ make
$ simg2img /path/to/Android/images/system.img /output/path/system.raw.img
$ file /path/to/Android/images/system.img
system.img: Android sparse image, version: 1.0, Total of 262144 4096-byte output blocks in 1620 input chunks.
$ file /output/path/system.raw.img
system.raw.img: Linux rev 1.0 ext4 filesystem data, UUID=57f8f4bc-abf4-655f-bf67-946fc0f9f25b (extents) (large files)

Windows

If you want to build simg2img on Windows you'll need to install MinGW and also zlib and libasprintf (go to MinGW Libraries in the installer and check mingw32-libz and mingw32-libasprintf). Once you've done that run the following command to build simg2img:

CFLAGS=-DUSE_MINGW LDFLAGS=-lasprintf mingw32-make

Linux

If zlib.h is missing then install it using

Ubuntu: sudo apt-get install libz-dev

Fedora: sudo dnf install libz-devel

Core symbols most depended-on inside this repo

Shape

Function 105
Class 41
Method 17
Enum 3

Languages

C++99%
Python1%

Modules by API surface

output_file.cpp48 symbols
sparse_read.cpp39 symbols
backed_block.cpp27 symbols
sparse.cpp23 symbols
sparse_file.h3 symbols
simg2simg.cpp3 symbols
simg2img.cpp3 symbols
img2simg.cpp3 symbols
backed_block.h3 symbols
append2simg.cpp3 symbols
android-base/stringprintf.cpp3 symbols
sparse_format.h2 symbols

For agents

$ claude mcp add android-simg2img \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page