reboot: allow opting-in to fastbootd

Change-Id: Iaf5eb813e848ef05b1b455ebfe3643f4a8b4f80d
This commit is contained in:
Alessandro Astone 2020-02-26 17:30:50 +01:00 committed by zlewchan
parent 41951e88bb
commit b8eaf5ae42

View file

@ -1057,7 +1057,8 @@ void HandlePowerctlMessage(const std::string& command) {
// adb reboot fastboot should boot into bootloader for devices not
// supporting logical partitions.
if (reboot_target == "fastboot" &&
!android::base::GetBoolProperty("ro.boot.dynamic_partitions", false)) {
!android::base::GetBoolProperty("ro.boot.dynamic_partitions", false) &&
!android::base::GetBoolProperty("ro.fastbootd.available", false)) {
reboot_target = "bootloader";
}
// When rebooting to the bootloader notify the bootloader writing