platform_system_core/fastboot/device
David Anderson 38b3c7a122 fastbootd: Add an update-super command to sync the super partition.
This change introduces an "update-super" command to the fastboot
protocol. Unlike the "flash" command, which copies raw or sparse data to
a partition, the "update-super" command requires the data to be a super
image generated by lpmake.

If the super partition is not yet formatted (or is corrupt), then it
will be formatted using the given image. Otherwise, "update-super" will
preserve the existing partition layout, and only ensure that logical
partition entries exist for all the new partitions in the given image.
All new partitions added this way will have a zero size, and it is the
host's responsibility to size them as needed afterwards with the
"resize-logical-partition" command.

In addition, the "update-super" command supports a "wipe" argument,
which will force the super partition to be reformatted with the given
image, overwriting any existing partition tables.

Bug: 78793464
Test: fastboot flashall with a super partition
Change-Id: If37d839a03e396e11b6c08a9c32984106613d1dc
2018-08-22 15:05:03 -07:00
..
commands.cpp fastbootd: Add an update-super command to sync the super partition. 2018-08-22 15:05:03 -07:00
commands.h fastbootd: Add an update-super command to sync the super partition. 2018-08-22 15:05:03 -07:00
fastboot_device.cpp fastbootd: Add an update-super command to sync the super partition. 2018-08-22 15:05:03 -07:00
fastboot_device.h fastbootd: Enable erase and flash commands for physical partitions. 2018-08-09 09:58:37 -07:00
flashing.cpp fastbootd: Add an update-super command to sync the super partition. 2018-08-22 15:05:03 -07:00
flashing.h fastbootd: Add an update-super command to sync the super partition. 2018-08-22 15:05:03 -07:00
main.cpp Add fastbootd. 2018-08-02 09:43:23 -07:00
usb_client.cpp Add fastbootd. 2018-08-02 09:43:23 -07:00
usb_client.h Add fastbootd. 2018-08-02 09:43:23 -07:00
utility.cpp fastbootd: Add support for flashing logical partitions. 2018-08-09 11:15:23 -07:00
utility.h fastbootd: Add support for flashing logical partitions. 2018-08-09 11:15:23 -07:00
variables.cpp fastbootd: Complete the implementation of getvar has-slot. 2018-08-14 16:24:07 -07:00
variables.h fastbootd: Add is-userspace variable. 2018-08-09 15:06:53 -07:00