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

Commit 904af568 authored by Tom Cherry's avatar Tom Cherry Committed by android-build-merger
Browse files

Merge "init: Write the reason in BCB on "reboot recovery"" am: e7a010de am:...

Merge "init: Write the reason in BCB on "reboot recovery"" am: e7a010de am: da80b0de am: cc9d1e20
am: 398f328c

Change-Id: Ifa638ab1c1955c338521c5ffd1f41d2b40e30408
parents 50343b4e 398f328c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -669,6 +669,13 @@ bool HandlePowerctlMessage(const std::string& command) {
                                  "bootloader_message: "
                               << err;
                }
            } else if (reboot_target == "recovery") {
                const std::vector<std::string> options = {};
                std::string err;
                if (!write_bootloader_message(options, &err)) {
                    LOG(ERROR) << "Failed to set bootloader message: " << err;
                    return false;
                }
            } else if (reboot_target == "sideload" || reboot_target == "sideload-auto-reboot" ||
                       reboot_target == "fastboot") {
                std::string arg = reboot_target == "sideload-auto-reboot" ? "sideload_auto_reboot"