The fastest Android super.img dumper, made in Python.
Project description
unsuper
The fastest Android super.img dumper, made in Python.
Features
- Extremely fast - Best in its class, see speeds 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
Speed
unsuper can 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.0 extracts partitions up to 2.5 times 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
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unsuper-2.0.tar.gz.
File metadata
- Download URL: unsuper-2.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19f04c2fdf5919908dcb8fa7dd929a119c5e48fb68047b8271e2b34246f0b0e0
|
|
| MD5 |
9063975d62445fbfadd538269ca5a1b1
|
|
| BLAKE2b-256 |
6704592320a3deae4964be956c105d3849e7534ef79073e65f0e83aeaa6c5f7a
|
File details
Details for the file unsuper-2.0-py3-none-any.whl.
File metadata
- Download URL: unsuper-2.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdc2ec042f72c66e08deac115cab4c8f6e1ec09684c7ce53cfab71f53f8733f1
|
|
| MD5 |
0d08c0e47b32ca95481ca4f5c57b7701
|
|
| BLAKE2b-256 |
9621a2f3dc524ab691bed291f1e815e3223abe5caa6f2de7681cb5ffe861e7c2
|