summaryrefslogtreecommitdiff
path: root/scripts/payload_info.py
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2020-08-11 10:48:16 -0400
committerKelvin Zhang <zhangkelvin@google.com>2020-08-25 14:27:21 +0000
commitd719103441dcd39bcd0fa6fd1795e3783267b7bb (patch)
tree9966d000d704764d27a672781e30187435a153e4 /scripts/payload_info.py
parent76eff4d8d722ecd511bbe6c04d5479263f4a6965 (diff)
Support per-partition timestamps
update_engine is heading toward supporting partial updates, which an OTA update can update just a subset of all partitions. In this context, a single max_timestamp in OTA manifest is insufficient for checking potential downgrades, as different partitions can have different timestamps. This CL adds per-partition timestamp support on update_engine side. update_engine will accept a payload with per-partition timestamps and reject the update if any partition has an older timestamp. Changes made: 1. Add new version field to PartitionUpdate protobuf message. 2. Add new methods to HardwareInterface for fetching/checking timestamp of each partition. 3. Update delta_performer to invoke new APIs in 2 properly. 4. Add relevant testcases. Test: unittest Bug: 162553432 Change-Id: I767343e003fd35ce0d22197b15040488cf30be30
Diffstat (limited to 'scripts/payload_info.py')
0 files changed, 0 insertions, 0 deletions