AVBPayloadSigner
is a tool for signing payload.bin of an incremental Android A/B OTA zip.
-
Use
openssl
to generate a private key.openssl genpkey -algorithm RSA -out ota.key
-
Ensure the Rust toolchain is installed.
-
Clone this git repo and build it.
cargo build --release
The output will be in
target/release/AVBPayloadSigner.exe
. -
Start signing by following command-lines:
AVBPayloadSigner \ --input /path/to/old/payload.bin \ --output /path/to/new/signed/payload.bin \ --key /path/to/ota.key
Based on avbroot and references some of its code implementations.