# otadump [![crates.io][crates.io-badge]][crates.io] **`otadump` helps you extract and verify partitions from Android OTA files.**
Partitions can be individually flashed to your device using `fastboot`.

Installation

Linux / macOS

Install a pre-built binary:

sh curl -sS https://raw.githubusercontent.com/crazystylus/otadump/mainline/install.sh | bash

Otherwise, using Cargo:

```sh

needs liblzma-dev and protobuf-compiler

cargo install --locked otadump ```

Windows

Download the pre-built binary from the [Releases] page. Extract it and run the otadump.exe file.

Usage

Run the following command in your terminal:

sh otadump payload.bin

Benchmarks

Comparing the time taken to extract all partitions from a few sample files (lower is better):

Benchmarks

Note: otadump was run with args --no-verify -c 12 and payload-dumper-go was run with args -c 12

System specifications: