Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0167eca authored by Alessandro Astone's avatar Alessandro Astone Committed by Łukasz Patron
Browse files

reboot: allow opting-in to fastbootd

Change-Id: Iaf5eb813e848ef05b1b455ebfe3643f4a8b4f80d
parent 2d7f4193
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -42,7 +42,8 @@ void reboot_service(unique_fd fd, const std::string& arg) {
    std::string reboot_string = android::base::StringPrintf("reboot,%s", reboot_arg.c_str());

    if (reboot_arg == "fastboot" &&
        android::base::GetBoolProperty("ro.boot.dynamic_partitions", false) &&
        (android::base::GetBoolProperty("ro.boot.dynamic_partitions", false) ||
         android::base::GetBoolProperty("ro.fastbootd.available", false)) &&
        access("/dev/socket/recovery", F_OK) == 0) {
        LOG(INFO) << "Recovery specific reboot fastboot";
        /*
+2 −1
Original line number Diff line number Diff line
@@ -542,7 +542,8 @@ bool 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