reboot: allow opting-in to fastbootd
Change-Id: Iaf5eb813e848ef05b1b455ebfe3643f4a8b4f80d
This commit is contained in:
parent
41951e88bb
commit
b8eaf5ae42
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue