summaryrefslogtreecommitdiff
path: root/scripts/update_payload/test_utils.py
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2021-05-11 12:16:27 -0400
committerKelvin Zhang <zhangkelvin@google.com>2021-05-13 14:21:45 -0400
commit866034758956e0c47ab2e642c4ed8fdfa3e88a72 (patch)
tree9d9f4923dd0c7f9ce247477904cfb31c8467e3f2 /scripts/update_payload/test_utils.py
parent8704c83dbea63aa635b1a3689802da35374287c6 (diff)
ResetStatus if update_engine boot in different slot but same build
Old behavior: When update_engine starts up after device take OTA and reboot, if device booted into a different build(check build fingerprint), ResetStatus(). When we apply a self-ota, device will boot into the same build, so ResetStatus() is never called. If we apply the same OTA at this point, this OTA will be treated as a "resume", and will fail to install because we never call libsnapshot's API to allocate snapshot for new update. Changed to ResetStatus() if boot slot changed, or build fingerprint changed. Bug: 185019674 Test: apply self-full OTA, reboot, repeat 2 times. Change-Id: Idcc29dc1c02f3b9b2c84ed1978abedb651a3875a
Diffstat (limited to 'scripts/update_payload/test_utils.py')
0 files changed, 0 insertions, 0 deletions