Skip to main content

unsuper

The fastest Android super.img dumper, made in Python.

GitHub Release GitHub Downloads (all assets, all releases) GitHub Actions Workflow Status

Features

  • Direct sparse streaming - Streams partitions directly from sparse images without writing temporary unsparse files to disk
  • Zero dependencies - Built entirely with standard library Python, no external packages required
  • Smart extraction - Automatically skips empty partitions and merges contiguous extents
  • Selective usage - Extract specific partitions, inspect metadata, or unsparse the full image

Installation

Directly running the script

Download the script, or clone into the repository if you want to contribute / fork.

Download and install Python (3.6 and later) and add it to PATH.

Follow Usage. You'll need to type "python" before calling the script, the directions don't include that for simplicity.

Using pip

Simply run pip install unsuper to install the latest version globally.

Executables

If you don't want to install Python, download and use the latest executable binary for your operating system from the releases page.

Speed

Extraction streams directly from sparse chunks to partition files in a single pass without allocating temporary images on storage.

Performance depends primarily on drive write throughput and thread allocation. Benchmark metrics will be published once standardized comparative testing against lpunpack is finalized.

Usage

unsuper's usage is straightforward: state the path to your super.img and start. If no output directory is stated, unsuper will create an "extracted_partitions" folder in the current directory and use it as default.

Extra arguments come AFTER the positional arguments.

positional arguments:
  super_image           Path to super.img file
  output_dir            Output directory for extracted partitions (default: extracted_partitions)

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  -p, --partitions PARTITIONS [PARTITIONS ...]
                        Specific partition names to extract (vendor, product etc.) (default: extract all)
  -j, --jobs JOBS       Number of parallel extraction threads (default: 4)
  -q, --quiet           Suppress progress output
  --list                List available partitions and exit
  --temp-dir TEMP_DIR   Directory for temporary unsparse file if --unsparse is used (default: system temp directory)
  --unsparse            Unsparse image and save to output directory
  --dump-metadata       Dump partition metadata to metadata.json in output directory
  --use-metadata METADATA_FILE
                        Use existing metadata.json file for partition information
  --create-metadata IMAGE [IMAGE ...]
                        Create metadata.json from individual partition images

For example, if you want to extract the system_a partition using 6 threads:

unsuper.py /path/to/super.img /output_path --partitions system_a --jobs 6

And so on.

unsuper can also simply unsparse an image and save it to a specified directory:

unsuper.py /path/to/super.img /output_path --unsparse

Or list all available partitions and exit:

unsuper.py /path/to/super.img --list

Notes

If the --list argument is used with --partitions, it will calculate the specified partitions' sizes and exit.

If the --unsparse argument is used along with --partitions or --list, the unsparse image will be saved to the output directory and used for extraction.

Extras

Enjoy my work? Please consider a small donation!

yellow-button

Metadata

Release files for unsuper 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unsuper 3.0.0
File Size Uploaded Provenance Actions
unsuper-3.0.0.tar.gz 13.2 kB Without provenance Details for unsuper-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unsuper 3.0.0
File Interpreter ABI Platform Actions
unsuper-3.0.0-py3-none-any.whl Python 3 none any Details for unsuper-3.0.0-py3-none-any.whl

Total release size: 26.7 kB

Release files / unsuper-3.0.0.tar.gz

Download URL unsuper-3.0.0.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
225f75149e59c3736337374d7f66cd48f080452243adb564dcc1790f4543fc8d
BLAKE2b-256 checksum
How to use checksums
275bfd8def54434c9319db3a5265628fe3afe9d987fdca85eb31975063114bcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Release files / unsuper-3.0.0-py3-none-any.whl

Download URL unsuper-3.0.0-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07547aa7a68488265b07155ebab6a2cd4915d0a6ef901a668034c23a0ae359b8
BLAKE2b-256 checksum
How to use checksums
7983d58ec4bef91e1ee9e9dab816df37ea1645e52367a4d6e8115f8f309aea20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Security for unsuper 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page