commit | ff5985ab6c2348ab4f3f114c144c85c904b65810 | [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 | 0246314f5da58a84eca21fb089b9fea975a99df3 [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