summaryrefslogtreecommitdiff
path: root/init/reboot.cpp
diff options
context:
space:
mode:
authorAlessandro Astone <ales.astone@gmail.com>2020-02-26 17:30:50 +0100
committeralk3pInjection <webmaster@raspii.tech>2022-05-02 12:00:45 +0800
commitf46e9ab91251dd0922bfc60a6168bb8cfe994af3 (patch)
tree4475b48fc469d6fa156207c85f98dd30fe582e6c /init/reboot.cpp
parent6cbe0c30150357b131d6c09d7729c5f9cf7b0daa (diff)
reboot: allow opting-in to fastbootd
Change-Id: Iaf5eb813e848ef05b1b455ebfe3643f4a8b4f80d
Diffstat (limited to 'init/reboot.cpp')
-rw-r--r--init/reboot.cpp3
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