diff options
author | Alessandro Astone <ales.astone@gmail.com> | 2020-02-26 17:30:50 +0100 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-05-02 12:00:45 +0800 |
commit | f46e9ab91251dd0922bfc60a6168bb8cfe994af3 (patch) | |
tree | 4475b48fc469d6fa156207c85f98dd30fe582e6c | |
parent | 6cbe0c30150357b131d6c09d7729c5f9cf7b0daa (diff) |
reboot: allow opting-in to fastbootd
Change-Id: Iaf5eb813e848ef05b1b455ebfe3643f4a8b4f80d
-rw-r--r-- | init/reboot.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/init/reboot.cpp b/init/reboot.cpp index 845bdb949..efb817eca 100644 --- a/init/reboot.cpp +++ b/init/reboot.cpp @@ -1012,7 +1012,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 |