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

Commit 97a2c49a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "libcutils: android_reboot: add thermal shutdown command"

parents 41c7bb50 37bba3b8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -209,6 +209,10 @@ int android_reboot_with_callback(
                           LINUX_REBOOT_CMD_RESTART2, arg);
            break;

        case ANDROID_RB_THERMOFF:
            ret = reboot(RB_POWER_OFF);
            break;

        default:
            ret = -1;
    }
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ __BEGIN_DECLS
#define ANDROID_RB_RESTART  0xDEAD0001
#define ANDROID_RB_POWEROFF 0xDEAD0002
#define ANDROID_RB_RESTART2 0xDEAD0003
#define ANDROID_RB_THERMOFF 0xDEAD0004

/* Properties */
#define ANDROID_RB_PROPERTY "sys.powerctl"