commit | 99d570d67bd5dab11de321068c4002ab76ae774a | [log] [tgz] |
---|---|---|
author | Tianjie <xunchang@google.com> | Thu Jun 04 14:57:19 2020 -0700 |
committer | Tianjie <xunchang@google.com> | Mon Jun 15 15:40:55 2020 -0700 |
tree | 6310389d540a3bd86a3810c0d128e3880b9f0864 | |
parent | d3865d1bc4298739652ee101d1b625fb12361f9b [diff] |
Implement PartitionUpdateGenerator for partial updates Implement the logic in PartitionUpdateGenerator. Here's the summary, 1. finds the a/b partitions (both static & dynamic) on the device For partitions not included in the payload: 2. calculates the partition hash for filesystem verification 3. generates one SOURCE_COPY operation for each static partition The order of the partitions are sorted. So the update will resume from the correct operation in case it's interruptted. Bug: 157778739 Test: run a partial OTA with boot & system_ext Change-Id: I5683b85e3c6dab813a33d5144aceb996fd8163d4