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 and protobuf-compiler
cargo install --locked otadump
Download the pre-built 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):
System specifications:
- Processor: AMD Ryzen 5 5600X (12) @ 3.700GHz
- RAM: 16 GiB
- OS: Pop!_OS 22.04 / Linux 6.0.6
- SSD: Samsung 970 EVO 250GB