summaryrefslogtreecommitdiff
path: root/scripts/update_device.py
diff options
context:
space:
mode:
authorTianjie <xunchang@google.com>2020-06-03 15:25:17 -0700
committerTianjie Xu <xunchang@google.com>2020-06-09 22:23:20 +0000
commitd3865d1bc4298739652ee101d1b625fb12361f9b (patch)
treefecda7a0207e8901999152719e1244fe9adeeb02 /scripts/update_device.py
parent13e4195d65fb8a5583b7acb9cc0763733e8fca86 (diff)
Add PartitionUpdateGenerator
For a/b partial update, the payload doesn't contain all partitions for the device to boot up. Therefore, we add a new class to generate additional operations on top of the partial update. The class is used in payload consumer when the install plan is created. In specific, the new class parses for the a/b partitions not included in the payload. Then, for static partitions, it generates SOURCE_COPY operations to copy the bytes from the source slot to target slot. For dynamic partitions, it only calculates the partition hash for the filesystem verification later. Bug: 157778739 Test: do a partial OTA Change-Id: Ia5c64cff4655aad05311b0e7c8c8327bc2f4fd91
Diffstat (limited to 'scripts/update_device.py')
0 files changed, 0 insertions, 0 deletions