otadump
helps you extract partitions from Android OTA files.
Partitions can be individually flashed to your device using fastboot
.
Install a pre-built binary:
curl -sS https://raw.githubusercontent.com/crazystylus/otadump/mainline/install.sh | bash
Otherwise, using Cargo:
# needs liblzma-dev
cargo install --locked otadump
Download the pre-build binary from the Releases page. Extract it and run the
otadump.exe
file.
Run the following command in your terminal:
otadump payload.bin
Comparing the time taken to extract all partitions from a few sample files (lower is better):
SD2A.220601.003 (bluejay ) |
ColorOS 13 F.13 (instantnoodlep ) |
|
---|---|---|
crazystylus/otadump | 00:00:08 | 00:00:21 |
ssut/payload-dumper-go | 00:00:40 | 00:00:44 |
vm03/payload_dumper | Failed | 00:00:59 |