android_system_core/fastboot/device
David Anderson 96a9fd4063 fastboot: Fix flashing both slots with dynamic partitions.
When updating the super partition, attempt to preserve partitions from
the other slot. If any partition can't be preserved, fail and require a
wipe (-w) to proceed. This allows two bootable builds to be flashed to
both slots.

The preserve operation can fail if the metadata is not compatible with
the old partition layout. For example, if the partition references a
group that no longer exists, or a group changed its capacity, or the
metadata's block device list or list contents changed.

Bug: N/A
Test: liblp_test gtest
      fastboot flashall --skip-secondary

Change-Id: I53fdd29bc1f0ef132005a93d3cf1cdcd7f2fc05f
2018-11-06 11:43:03 -08:00
..
commands.cpp fastbootd: Partition commands should update all metadata slots. 2018-11-01 17:43:45 -07:00
commands.h Check maximum allowed download size for download command. 2018-10-08 14:07:56 -07:00
fastboot_device.cpp fastboot: use constants.h values 2018-10-18 14:26:27 +00:00
fastboot_device.h set_active command should update current slot information. 2018-10-10 12:25:11 -07:00
flashing.cpp fastboot: Fix flashing both slots with dynamic partitions. 2018-11-06 11:43:03 -08: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_client.cpp adbd: use unique_fd for the usb file descriptors. 2018-08-22 15:33:08 -07:00
usb_client.h Add fastbootd. 2018-08-02 09:43:23 -07:00
utility.cpp Check return status of ReadFileToString() in GetDeviceLockStatus() 2018-10-08 19:21:12 +00:00
utility.h Support 'fastboot getvar unlocked' command. 2018-09-25 16:25:46 -07:00
variables.cpp Merge "Check validity of partition for getvar:partition-type" 2018-10-09 23:21:54 +00:00
variables.h Support fastboot variable battery-soc-ok 2018-10-05 16:16:49 -07:00