Skip to main content

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

Project description

unsuper

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

Version Downloads

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 ~27 seconds on an average NVMe disk with the default of 4 threads. This puts the total extraction time to just under 40 seconds.

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!

yellow-button

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unsuper-1.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unsuper-1.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file unsuper-1.0.tar.gz.

File metadata

  • Download URL: unsuper-1.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for unsuper-1.0.tar.gz
Algorithm Hash digest
SHA256 0a6cc554acbd4596a59ffb59a05b87c4d0622e52541b902e0e557846cb1422af
MD5 25864607d252c2e5e50512df1d27f9df
BLAKE2b-256 a8e1411c0271624d27ade06aa121e133366873762117557ff57f0b36948f3bbd

See more details on using hashes here.

File details

Details for the file unsuper-1.0-py3-none-any.whl.

File metadata

  • Download URL: unsuper-1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for unsuper-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7bf3e2d618a8612c96f7b4648ce2a5a86f3350452f39cef5d1a8a9c243a6e13
MD5 357576ee9b084aa2713a6d9bbe946a78
BLAKE2b-256 ba463471ccc9764552f5dc287e35663455537a3787ec62e7d8bf5a04e1577a34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page