Library / SDK
ssut/payload-dumper-go avatar
ssut/payload-dumper-go

payload-dumper-go reports 100% before the FEC pass has finished

an android OTA payload dumper written in Go

3,639 stars302 forksGoApache-2.0

At a glance

What is it?
A Go implementation of an Android OTA payload dumper that regenerates the dm-verity metadata delta payloads omit, applies incremental deltas on top of base images, and verifies everything with sha256. Its own documentation says machine-readable mode hits 100 percent while forward error correction is still running, and both of its performance tables stop at the word Number.
Who is it for?
payload-dumper-go suits someone who has downloaded an OTA package and needs the partition images out of it, or who wants to diff a delta update against its base without assembling them by hand. It does not suit a pipeline that treats a printed progress percentage as a completion signal, since machine-readable mode reports 100 percent before the forward error correction pass ends.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 60 days ago.
What is it written in?
Mainly Go, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • ssut/payload-dumper-go3,639 ★ · +114
Star history
Repository2026-09-242026-11-22
ssut/payload-dumper-go3.5k3.6k

114 Stars in the last 59 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Six options have short forms and the three negatives do not

The option list is nine entries, and the naming convention changes halfway through. Six of them carry a short alias: concurrency, list, output, partitions, quiet and machine-readable. The other three are long-only: `-old` for the directory of base images, `-no-verify` to skip sha256 verification, and `-no-fec` to skip dm-verity FEC generation. So the aliases are reserved for the everyday verbs, and everything that changes a safety property is spelled out in full. The most consequential of that design is that `-old`, which is required for incremental OTA and is therefore on the critical path for anyone applying a delta, has no single-letter form, while `-o` is already taken by the output directory. Two of the three long-only flags disable checks, and both are documented rather than hidden: verification covers operation data, the source images and the final images by sha256, and the file states the tool fails loudly with a non-zero exit code when something does not match. Defaults are stated where they matter, with worker count defaulting to the number of CPUs.

Machine-readable mode reports 100% while FEC is still running

The file documents its own race condition, and the sentence is worth reading twice because it is easy to skim. Delta payloads omit the dm-verity hash tree and FEC parity for partitions such as system and vendor, expecting the device to compute them on install. This tool computes both, which is why the output is described as bit-exact. Then comes the warning: `-m`, the machine-readable output format, reports 100 percent when the operations finish, while FEC still runs, and you are told to wait for the process to exit. In other words the percentage is not a completion signal. Any automation that reads progress, sees the bar reach 100 percent and moves on to the next stage will be acting on images whose forward error correction data has not been written yet. The same paragraph covers `-no-fec`, which skips FEC generation and final image verification for partitions that need it, and states plainly that those images must not be flashed and that the option is for inspecting contents only. Both facts are in the documentation, which is to the project's credit, but the first one only appears as a note attached to a different flag. Applying a delta is two invocations, the first extracting the full base package and the second applying the incremental one against it:

code
payload-dumper-go -o base_images base_full_ota.zip
payload-dumper-go -old base_images -o new_images incremental_ota.zip

The second line is where the documented race bites, since nothing in that pair of commands distinguishes completion from the FEC pass that follows it.

Both performance tables stop at the word Number

The performance section opens with a proper methodology line: a 16-inch 2021 MacBook Pro with an M1 Max and 64 GB of memory, macOS Sonoma 14.5, Go 1.22.4, tested against a 2.31 GB payload file from Google's own Android developer downloads for the akita device. Then it shows what the tool printed, and the output stops dead. The last line of the block is the single word Number. The same thing happens in the comparison block further down, which shows the pure Go run under otherwise identical conditions and also ends at Number. Both blocks do carry the useful header: the payload version, a manifest length of 154250, a manifest signature length of 523, and a partition list covering 27 partitions from abl through vendor_kernel_boot with their sizes, including a 3.4 GB product partition and an 821 MB system partition. So the shape of the payload is documented and the timings are not, and the sentence that follows the second block draws a conclusion of about six times slower for the pure Go implementation anyway.

The headline speed claim is a link, and the six times claim has no table

Two performance claims, two different levels of evidence, neither of them a table. The first sits at the top of the features list, before any of the features, and it is a link to an image host with the hardware given in parentheses, a 16-inch 2019 MacBook Pro with a 2019-era Core i9 and 16 GB of memory. So the project's headline evidence for being fast is a picture you have to open somewhere else, and the machine named is the oldest of the three machines the file mentions. The second claim comes at the end of the performance section and is stated as the pure Go implementation of xz being about six times slower than the C implementation used through cgo. That claim is doing real work, because it is the stated reason the tool has a system dependency at all. The cautions section says there is just one dependency to install, `xz`, and that the reason for not using the pure Go implementation is written in the performance section. So a load-bearing architectural decision, cgo over a pure Go library, rests on a number whose table is not in the file.

The benchmark ran on Go 1.22.4 against a module that needs 1.27

The performance section states its toolchain as Go 1.22.4, and the module file declares a much newer language version. This is a real gap for anyone trying to reproduce the numbers, because the language version in a module file is a floor that the compiler enforces, not a suggestion. A contributor on a current toolchain cannot build the project with the version the benchmark used, and a reader who tries to reproduce the timings has to reason about which of those differences matters. The rest of the dependency list tells you the project is otherwise current. There is a zstd binding at a recent version, a brotli binding at a recent version, a protobuf runtime at a recent version, a humanize library at a stable one, a progress bar library in its fifth major version, and an extended sync package. Four compression or decompression backends are present in total, which matches a payload format that stores its partitions in more than one codec. And the vendored protocol definition for the update metadata sits at the root of the repository, with the upstream source it was taken from linked at the end of the file.

The xz binding is pinned to a 2018 commit

One dependency in the list is years older than everything around it. The xz binding is required at a pseudo-version derived from a commit dated in November 2018, and the pseudo-version form means there is no release tag behind it, just that commit. It is the binding the file names when it explains why cgo is used instead of the pure Go xz library, so the oldest dependency in the project is also the one the performance argument depends on. Two of the indirect dependencies are older in the same way. One of them, a small ANSI-stripping package, is pinned to a commit from 2018 as well, and it arrives transitively through the progress bar library, along with a moving-average package. So the progress bar contributes two of the five indirect dependencies, one of them from 2018. The remaining indirect entries are a width-calculation package for character cells, a Unicode segmenter, and a system-call package. Nine direct and five indirect is a modest dependency list for a tool that parses a signed binary format, and the only part of it with a real maintenance question is the xz binding.

The container is built FROM scratch with a numeric user

The Dockerfile is the most carefully constructed file in the repository and it exists because of the cgo decision. The builder is a current Go image on Debian with the xz development headers installed, then the module files are copied and downloaded before the source, so the dependency layer caches independently. The build itself sets cgo on and links the result with an external-linker flag requesting a static binary, which is what lets a cgo program run inside an image with no operating system at all. The runtime stage is `FROM scratch`. There is no shell, no package manager and no libc, so the only things copied in are two directories the build pre-creates, the binary, and nothing else. Those two directories, a temporary one and a data one, are given mode 1777, meaning world-writable with the sticky bit, so that the unprivileged user can write to them. The container then runs as the numeric user and group 65534, which is the nobody account, with the data directory as its working directory and the binary as its entry point. No command is set, so running the image with no arguments prints the option list.

A ChromeOS directory is in the tree and the file never says so

The repository root lists twelve entries and one of them has no explanation anywhere. Alongside `main.go`, `cmd/`, `internal/`, `payload/` for the library, `scripts/`, a release configuration file, a changelog and the vendored protocol definition, there is a `chromeos_update_engine/` directory. That name tells you the tool handles more than the Android payload format described in the file, since ChromeOS ships its own update engine with a related but distinct payload structure. Nothing in the README mentions ChromeOS, in the features list, the usage section, the limitations, the library section or the sources. The sources section links the Android update engine's metadata protocol definition on the platform source host and nothing else. So the scope of the tool as built is wider than the scope of the tool as documented, and the second format is discoverable only by opening the tree. The release configuration file at the root is the counterpart to this: it is what produces the per-platform binaries the installation instructions tell you to download, and it too is never mentioned in the file.

Editorial conclusion

payload-dumper-go suits someone who has downloaded an OTA package and needs the partition images out of it, or who wants to diff a delta update against its base without assembling them by hand. It does not suit a pipeline that treats a printed progress percentage as a completion signal, since machine-readable mode reports 100 percent before the forward error correction pass ends. Before scripting it, do not read progress as completion, wait for the process to exit as the README says, and never flash output produced with `-no-fec`, which the file states must not be flashed and is for inspecting contents only. One system dependency is needed, xz, and the releases are built for each platform separately. Version 2.1.0 shipped on 2026-09-23, the same day as the last push.

Frequently asked questions

what is payload dumper go

A Go implementation of an Android OTA payload dumper. It reads either a raw payload.bin or an OTA zip, detected by content, extracts the partition images, applies incremental delta payloads on top of base images with bit-exact output, and regenerates the dm-verity hash tree and FEC parity that delta payloads omit. It is also usable as a Go library.

how to use payload-dumper-go

Point it at a file and it dumps every partition, as in `payload-dumper-go /path/to/payload.bin`. Use `-l` to list the partitions, `-p` to select them by name, `-o` for the output directory, and `-old` with a directory of base images to apply an incremental OTA. There is one system dependency, `xz`.

install payload dumper go

On Linux and macOS, download the binary for your platform from the releases page, make it executable with `chmod +x payload-dumper-go`, and add its directory to your PATH. On macOS there is also `brew install payload-dumper-go`. The Windows route is a downloaded binary plus adding its directory to the Path system variable through the Environment Variables dialog.

Official sources

  1. Issues
  2. License: Apache-2.0
  3. README
  4. Releases
  5. ssut/payload-dumper-go on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/ssut-payload-dumper-go.svg)](https://hysenlabs.com/projects/ssut-payload-dumper-go)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/ssut-payload-dumper-go.svg)](https://hysenlabs.com/projects/ssut-payload-dumper-go)

Was this useful?