Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 796 Bytes

File metadata and controls

33 lines (22 loc) · 796 Bytes

AVBPayloadSigner

AVBPayloadSigner is a tool for signing payload.bin of an incremental Android A/B OTA zip.

Usage

  1. Use openssl to generate a private key.

    openssl genpkey -algorithm RSA -out ota.key
  2. Ensure the Rust toolchain is installed.

  3. Clone this git repo and build it.

    cargo build --release

    The output will be in target/release/AVBPayloadSigner.exe.

  4. 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

Thanks

Based on avbroot and references some of its code implementations.