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

Commit faa2c1f3 authored by Todd Poynor's avatar Todd Poynor Committed by android-build-merger
Browse files

Merge "powerctl: add thermal-shutdown command"

am: 3472c1b1

Change-Id: Iad0d78b6f408bdc82740165550fbdccd00f52735
parents d5a201ca 3472c1b1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -718,6 +718,9 @@ static int do_powerctl(const std::vector<std::string>& args) {
    } else if (strncmp(command, "reboot", 6) == 0) {
        cmd = ANDROID_RB_RESTART2;
        len = 6;
    } else if (strncmp(command, "thermal-shutdown", 16) == 0) {
        cmd = ANDROID_RB_THERMOFF;
        len = 16;
    } else {
        LOG(ERROR) << "powerctl: unrecognized command '" << command << "'";
        return -EINVAL;