summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils_unittest.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2016-07-19 17:01:41 -0700
committerAlex Deymo <deymo@google.com>2016-07-20 08:50:58 -0700
commit01574ac3e9ed3875133c72fbf0140f06aa344ac7 (patch)
tree6beb2868a97c0a5a0c9e3b07eab0614fd9729dc0 /scripts/update_payload/format_utils_unittest.py
parent3d1ce38dfe5c1da69df02d9a7d69ea90490689d4 (diff)
Reset the update progress when partition verification fails.
When the update completes and there is an error verifying the new partitions we need to reset the update progress proactivelly to prevent the update failing repeatedly until we hit the 10 retries limit. This patch will reset the update progress when the payload application fails to verify the contents of the newly written partition. Bug: 30162558 TEST=Push an update, cancel it at 90%, erase some blocks in system, continue the update (restarts at 90% and then fails), launch the update again (restarts from 0%). (cherry picked from commit 5990bf33b50beec0caf55a97f5ca87608ccbc694) Change-Id: Ie0b22bb190397aa342ca09d55c2b9dfd6ad5f239
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions