platform_system_core/fastboot/device
David Anderson 5a0177d945 fastboot: Fix snapshot-update merge behavior.
When merging in recovery, the "imminent data wipe" code was used, which
made the assumption the /metadata and /data state would be zapped. This
caused future OTAs to error because the old snapshots were detected.

This CL allows OTAs to proceed even if unexpected snapshots are present.
It also forces the state to "MergeCompleted" after a merge in recovery,
so that the next normal boot can perform cleanup.

Bug: 155339165
Test: fastboot snapshot-update merge, then take another OTA
      vts_libsnapshot_test
Change-Id: Ief6dea3ba76323044e61307272dda320a4494aea
2020-05-02 16:02:07 -07:00
..
commands.cpp fastboot: Fix snapshot-update merge behavior. 2020-05-02 16:02:07 -07:00
commands.h Merge "fastboot: Implement helper commands for Virtual A/B." 2019-10-31 01:11:49 +00:00
fastboot_device.cpp fastbootd: Unmount /cache before flashing. 2020-03-25 21:00:13 -07:00
fastboot_device.h fastbootd: Disallow certain operations during snapshot updates. 2019-11-10 23:07:13 -08:00
flashing.cpp fastbootd: sync() after flashing partitions or updating super 2020-03-31 10:54:58 -07:00
flashing.h fastbootd: Remove metadata merging code. 2018-10-26 13:34:40 -07:00
main.cpp Add fastbootd. 2018-08-02 09:43:23 -07:00
usb.cpp Move adbd's legacy USB implementation to fastboot. 2020-03-30 16:43:06 -07:00
usb.h Move adbd's legacy USB implementation to fastboot. 2020-03-30 16:43:06 -07:00
usb_client.cpp Allow fuzzy_fastboot test devices over internet 2020-01-21 15:40:52 +00:00
usb_client.h Move adbd's legacy USB implementation to fastboot. 2020-03-30 16:43:06 -07:00
utility.cpp fastboot: Mount /metadata before overlayfs teardown. 2019-12-30 13:42:57 -08:00
utility.h fastboot: Mount /metadata before overlayfs teardown. 2019-12-30 13:42:57 -08:00
variables.cpp fastbootd: exporting more properties 2020-01-22 23:29:07 +08:00
variables.h fastbootd: exporting more properties 2020-01-22 23:29:07 +08:00