connglli / blog-notes

My personal notes ✍️
MIT License
32 stars 2 forks source link

Android System Update (OTA) Mechanism #51

Open connglli opened 4 years ago

connglli commented 4 years ago

Non A/B System Updates

:warning: TO BE ADDED

References

A/B System Updates

:thinking: TODO: Learn more

The OTA updates are saved in a file named payload.bin which saves the boot.img, system.img, etc. To inspect/extract the contents of the payload, one can use the payload-dumper-go tool.

List all images:

$ payload-dumper-go -l lineage-18.1-20220224-nightly-fajita-signed/payload.bin
payload.bin: lineage-18.1-20220224-nightly-fajita-signed/payload.bin
Payload Version: 2
Payload Manifest Length: 82124
Payload Manifest Signature Length: 267
Found partitions:
boot (67 MB), dtbo (8.4 MB), system (3.0 GB), vbmeta (4.1 kB)

Extract specific image, e.g., boot.img, from a payload:

$ payload-dumper-go -p boot lineage-18.1-20220224-nightly-fajita-signed/payload.bin
payload.bin: lineage-18.1-20220224-nightly-fajita-signed/payload.bin
Payload Version: 2
Payload Manifest Length: 82124
Payload Manifest Signature Length: 267
Found partitions:
boot (67 MB), dtbo (8.4 MB), system (3.0 GB), vbmeta (4.1 kB)
Number of workers: 4
boot (67 MB)  [==========================================================] 100 %

References

References