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:03:24 +0000 |
commit | 8d293c99be7666028b17765aac156460cad8b3ee (patch) | |
tree | b34d20a0b978fab56c459600dd0f01fa2d8f64d2 /scripts/update_device.py | |
parent | 4a3650857ab9873a20d0a691e78b511736dd4374 (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