How vm03/payload_dumper works
This is a command-line Android OTA payload dumper. The workflow accepts a local or remote payload (optionally inside a ZIP), parses its manifest, selects partitions, and writes partition images. Incremental updates use original images from the old-image directory; full and incremental extraction share the operation-application path. The sampled script supports remote filesystems, image selection, compressed replacements, and patch operations. The generated protobuf module is listed in the tree but was not sampled, so its internal behavior is not expanded here.
Main entry points: payload_dumper.py CLI and workflow · update_metadata_pb2.py Manifest schema
Components 13
Payload input
- CLI and workflow
payload_dumper.py - Payload opener
payload_dumper.py - Manifest parser
payload_dumper.py - Manifest schema
update_metadata_pb2.py
Image extraction
- Partition selection
payload_dumper.py - Partition dumper
payload_dumper.py - Operation applier
payload_dumper.py - Patch and codecs
payload_dumper.py
Image storage
- Original images
- Output images
Other components
- CLI user
- OTA payload
- Remote storage
Connections 12
- CLI user → CLI and workflow: runs
README.md - OTA payload → Payload opener: supplies
payload_dumper.py - Remote storage → Payload opener: serves files
payload_dumper.py - CLI and workflow → Payload opener: opens payload
payload_dumper.py - CLI and workflow → Manifest parser: parses manifest
payload_dumper.py - Manifest parser → Manifest schema: uses schema
payload_dumper.py - CLI and workflow → Partition selection: selects partitions
payload_dumper.py - CLI and workflow → Partition dumper: dumps partitions
payload_dumper.py - Partition dumper → Operation applier: applies operations
payload_dumper.py - Operation applier → Patch and codecs: decodes patches
payload_dumper.py - Partition dumper → Original images: reads originals
payload_dumper.py - Partition dumper → Output images: writes images
payload_dumper.py