unsuper
The fastest Android super.img dumper, made in Python.
Features
- Extremely fast - Best in its class, see speed below
- Unsparse support - Automatically unsparses images without any dependancies
- Smart extraction - Automatically skips empty partitions
- Selective usage - unsuper can extract only specific partitions or just unsparse the 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.
Install the numpy module using pip install numpy.
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, simply download and use the latest executable binary for your operating system from the releases page.
Speed
unsuper can unsparse a 6.67GB super.img in only 11 seconds, and dump all available partitions in ~12 seconds on an average NVMe disk with the default of 4 threads. This puts the total extraction time to under 25 seconds, faster than any other competitor. This also means that V2.x extracts partitions up to 2.5x faster compared to V1.0.
Performance may vary based on the amount of threads and disk speeds. More threads doesn't always equal to higher speeds.
Usage
unsuper's usage is extremely easy: just state the path to your super.img and start. If no output directory is stated, unsuper will create an "extracted_partitions" folder under your home directory and use it as default.
Extra arguements come AFTER the positional arguements.
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 (default: system temp directory)
--unsparse Unsparse image and save to output directory
--dump-metadata Dump partition metadata to metadata.json in output directory
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 clean after:
unsuper.py /path/to/super.img --list
Notes
If the --list arguement is used with --partitions, it will calculate the specified partitions' sizes and exit.
If the --unsparse arguement is used along with --partitions or --list, the unsparse image will be saved to the output directory and reused for extraction rather than creating a temporary one.
Extras
Enjoy my work? Please consider a small donation!
Metadata
Release files for unsuper 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unsuper-2.2.0.tar.gz | 12.0 kB | Without provenance | Details for unsuper-2.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unsuper-2.2.0-py3-none-any.whl | Python 3 | none | any | Details for unsuper-2.2.0-py3-none-any.whl |
Total release size: 24.6 kB
Release files / unsuper-2.2.0.tar.gz
| Download URL | unsuper-2.2.0.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9039c1d9054f891716c1f78f1427064af0812e14c6fb96affcfea10225204191
|
|
BLAKE2b-256 checksum How to use checksums |
53b0e8c8510dc16054692f80b903bed5bab911e2ab96479b830fbe1a2b113593
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / unsuper-2.2.0-py3-none-any.whl
| Download URL | unsuper-2.2.0-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e238b37e7a22f757fae36b549a7564eb5b800f8358c98c020cc887d87333a37f
|
|
BLAKE2b-256 checksum How to use checksums |
fe5da720c0a0453017b177c9c2653a2fca650ad8f2f7f596914b39e0cecbab14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for unsuper 2.2.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.