commit | 46002d5c2131afce5feb0c7be688470c1f2c1177 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Oct 29 17:22:44 2019 -0700 |
committer | Yifan Hong <elsk@google.com> | Thu Oct 31 18:40:46 2019 -0700 |
tree | 3cd3ec171cf77cfcfd0c361006159fb4df0685d3 | |
parent | 4913d7af12cbcc58a5c992aeef76a9a545959c2c [diff] |
libsnapshot: fix re-flash after update If device takes an update from slot A to B, immediately flashes the B slot, and reboot into B slot, libsnapshot incorrectly considers the device booted into the new slot and refuses to clear update states. Fix this by checking the UPDATED flag in super partition metadata. Test: libsnapshot_test Bug: 143551390 Change-Id: I3cd7bb19b394da6399d4bf2f9d013bfaa7f186f1