android_system_core/fastboot/device
Chun-Wei Wang e72b3ad204 Disallow fastboot to modify locked DSU
This enhances the security requirement by only allowing
the owner app to change a locked DSU.

Bug: 277691885
Bug: 296985785
Test: 1. ensure device is OEM locked
      2. adb shell am start-activity \
         -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
         -a android.os.image.action.START_INSTALL \
         --el KEY_USERDATA_SIZE 2147483648 \
	 --es KEY_DSU_SLOT foo.lock
      3. adb reboot fastboot
      4. `fastboot gsi disable|wipe` should be blocked

Change-Id: I1a0cb8a074412468d16043ddf4101fbb76490115
2023-09-07 15:18:23 +08:00
..
commands.cpp Disallow fastboot to modify locked DSU 2023-09-07 15:18:23 +08:00
commands.h fastbootd: Add fetch command on device 2021-03-17 15:38:06 -07:00
fastboot_device.cpp Fastboot: Use AServiceManager_waitForService instead of AServiceManager_getService 2022-12-10 05:29:26 +00:00
fastboot_device.h Fastbootd: Use Fastboot AIDL with the help of fastbootshim for legacy fastboot HAL 2022-11-09 00:38:34 +00:00
flashing.cpp fastbootd: Add better logging for flashing failures. 2022-06-01 22:46:35 -07:00
flashing.h fastbootd: Remove metadata merging code. 2018-10-26 13:34:40 -07:00
main.cpp fastbootd: Add better logging for flashing failures. 2022-06-01 22:46:35 -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 Port ADB's new handling of the USB packet ClearFeature(HALT) to Fastboot. 2022-09-14 21:11:30 +00:00
usb.h Add io_uring support to fastboot 2022-08-11 18:58:43 -07:00
usb_client.cpp Add io_uring support to fastboot 2022-08-11 18:58:43 -07:00
usb_client.h Move adbd's legacy USB implementation to fastboot. 2020-03-31 16:05:36 -07:00
usb_iouring.cpp Add io_uring support to fastboot 2022-08-11 18:58:43 -07:00
usb_iouring.h Add io_uring support to fastboot 2022-08-11 18:58:43 -07:00
utility.cpp Convert fastboot/libsnapshot to new BootControl client 2022-07-08 10:57:53 -07:00
utility.h Convert fastboot/libsnapshot to new BootControl client 2022-07-08 10:57:53 -07:00
variables.cpp fastbootd: Add getvar is-force-debuggable 2022-11-22 17:32:21 +08:00
variables.h fastbootd: Add getvar is-force-debuggable 2022-11-22 17:32:21 +08:00