From 20c81b308d834f84f3decf795575dc7a0baeb69d Mon Sep 17 00:00:00 2001 From: Hridya Valsaraju Date: Fri, 27 Jul 2018 22:09:12 -0700 Subject: Add fastboot mode to recovery Add a fastboot mode to recovery that can be entered with command line args or with the ui. Add usb property triggers to switch between fastboot and adb configurations. Allow switching between fastboot and adb through usb commands by opening a unix socket. adbd/fastbootd writes to this socket, which interrupts the ui and switches to the new mode. Test: Use fastboot mode Bug: 78793464 Change-Id: I7891bb84427ec734a21a872036629b95ab3fb13c --- device.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'device.cpp') diff --git a/device.cpp b/device.cpp index 3c6334e5c..eec1932c2 100644 --- a/device.cpp +++ b/device.cpp @@ -28,6 +28,7 @@ static std::vector> g_menu_actions{ { "Reboot system now", Device::REBOOT }, { "Reboot to bootloader", Device::REBOOT_BOOTLOADER }, + { "Enter fastboot", Device::ENTER_FASTBOOT }, { "Apply update from ADB", Device::APPLY_ADB_SIDELOAD }, { "Apply update from SD card", Device::APPLY_SDCARD }, { "Wipe data/factory reset", Device::WIPE_DATA }, -- cgit v1.2.3