diff options
author | Kelvin Zhang <zhangkelvin@google.com> | 2020-12-16 15:51:30 -0500 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-12-17 02:49:17 +0000 |
commit | 426adc513c5af75981afc0a6f7df778fb8510376 (patch) | |
tree | b0d83cb0d465ff0b49d2a92c1650745d6dc4a693 /scripts/update_device.py | |
parent | bab14f3314e9ac9f8f58b72a8bf270c462a0b4d6 (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
(cherry picked from commit 3265b317b39edea86b5351029092b7728ca8461b)
Diffstat (limited to 'scripts/update_device.py')
0 files changed, 0 insertions, 0 deletions