common: android: support boot-fastboot

In android Q, the bootloader must implement a new Boot Control
Block (BCB) command of boot-fastboot in order to support fastbootd.
Then the bootloader is expected to load and boot into the recovery
image upon seeing boot-fastboot in the BCB command. Recovery then
parses the BCB message and switches to fastbootd mode.

Change-Id: Ie868912071f6a371ec83caa8d591281fc063e6ae
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
This commit is contained in:
Jason Zhu 2019-09-04 09:18:35 +08:00 committed by Jianhong Chen
parent f877a23945
commit 01973d127b
1 changed files with 3 additions and 0 deletions

View File

@ -184,6 +184,9 @@ static enum android_boot_mode android_bootloader_load_and_clear_mode(
if (!strcmp("boot-recovery", bcb.command))
return ANDROID_BOOT_MODE_RECOVERY;
if (!strcmp("boot-fastboot", bcb.command))
return ANDROID_BOOT_MODE_RECOVERY;
return ANDROID_BOOT_MODE_NORMAL;
}