android_system_core/fastboot/device
David Anderson 982c3410c7 fastbootd: Remove all scratch partitions on update-super.
This ensures that the dynamic "scratch" partition is removed when doing
a flashall operation.

If "scratch" is on /data, disable the partition. Add IsImageDisabled to
ImageManager so EnsureScratchMapped can skip mapping it. Also, fix
"scratch" not getting unmapped if on /data.

Bug: 205987817
Test: adb remount
      adb sync
      adb reboot fastboot
      fastboot flashall --skip-reboot # no errors
Test: adb-remount-test.sh
Change-Id: I4b9702e1dac15fb663635506fb50a8274e1e10d1
2022-02-17 04:16:53 +00:00
..
commands.cpp Fix userspace fastboot with fuzzy test 2022-01-04 19:24:23 +00:00
commands.h fastbootd: Add fetch command on device 2021-03-17 15:38:06 -07:00
fastboot_device.cpp Fix userspace fastboot with fuzzy test 2022-01-04 19:24:23 +00:00
fastboot_device.h fastboot: use health AIDL HAL 2021-12-06 23:18:32 -08:00
flashing.cpp fastbootd: Remove all scratch partitions on update-super. 2022-02-17 04:16:53 +00: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
tcp_client.cpp fastbootd: Support TCP protocol. 2020-05-19 19:11:25 +00:00
tcp_client.h fastbootd: Support TCP protocol. 2020-05-19 19:11:25 +00:00
usb.cpp fastboot device: Disallow implicit conversion from unique_fd to int. 2021-03-22 19:30:59 -07:00
usb.h Move adbd's legacy USB implementation to fastboot. 2020-03-31 16:05:36 -07:00
usb_client.cpp fastbootd: Fix USB transport data is repeated every 256K 2021-03-05 19:45:00 -08:00
usb_client.h Move adbd's legacy USB implementation to fastboot. 2020-03-31 16:05:36 -07:00
utility.cpp fastbootd: allow passage of flags to open partition 2021-11-04 12:05:48 -07:00
utility.h fastbootd: allow passage of flags to open partition 2021-11-04 12:05:48 -07:00
variables.cpp fastboot: use health AIDL HAL 2021-12-06 23:18:32 -08:00
variables.h fastbootd: Add getvar max-fetch-size. 2021-03-17 15:38:06 -07:00