summaryrefslogtreecommitdiff
path: root/scripts/update_payload/test_utils.py
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2020-12-16 15:51:30 -0500
committerKelvin Zhang <zhangkelvin@google.com>2020-12-16 16:00:45 -0500
commit3265b317b39edea86b5351029092b7728ca8461b (patch)
treec126570ace62be215c19f74e1c73eb254a121716 /scripts/update_payload/test_utils.py
parent44858971e0a0c71fa1828f1dae9381e896facf62 (diff)
Unconditionally save checkpoints when force = true
When saving update progress, we skiip a checkpoint if operation_num isn't changed. But sometimes buffer offset changes without changing operation num, namely, when we extract signature. If a checkpoint is saved immediately before we extract signature, then we will skip the checkpoint after signature is extracted, causing the on disk pref to contain incorrect buffer_offset. Pref causing resume failure: kPrefsUpdateStateNextDataOffset Location on disk: /data/misc/update_engine/prefs/update-state-next-data-offset Test: treehugger, serve an OTA update w/o slot switch then perform slot switch Bug: 175785279 Change-Id: Iea2b0b27e1af40e1961a04019e7dd498c02feb13
Diffstat (limited to 'scripts/update_payload/test_utils.py')
0 files changed, 0 insertions, 0 deletions