This is a modified version of payload dumper that supports the following features in addition to the original features:
- Extract partitions directly from a zip archive containing payload.bin without unzipping it.
- Extract partitions directly from a URL (such as an OTA update URL) containing payload.bin from the network without downloading the entire file.
With this script, you only need a small amount of time and storage space to extract the partitions you want from the OTA update package or address, especially the smaller partitions such as boot, init_boot, vbmeta, etc.
Future Outlook: Maybe it can support extracting some files in system partitions?
pip install git+https://github.com/5ec1cff/payload-dumper
payload_dumper --partitions <partitions you need> <file path or url>
Dumps the payload.bin
image found in Android update images. Has significant performance gains over other tools due to using multiprocessing.
- Python3
- pip
payload_dumper payload.bin
Use a comma-separated list of partitions to dump:
payload_dumper --partitions boot,dtbo,vendor payload.bin
Assuming the old partitions are in a directory named old/
:
payload_dumper --diff payload.bin