Merge "libcutils: android_reboot: add thermal shutdown command"
This commit is contained in:
commit
97a2c49a58
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue