From ebda1f9559759bbbea3ef5a964b9955e2290addd Mon Sep 17 00:00:00 2001 From: Todd Poynor Date: Mon, 6 Feb 2017 15:43:05 -0800 Subject: [PATCH] android_reboot: move reboot reason file to data/misc/reboot/ Move last reboot reason file to new directory data/misc/reboot/ to require only SELinux permissions specific to this new file. Bug: 30994946 Test: manual: reboot command, setprop sys.powerctl Change-Id: I1e067235aa4b06391cff8ab0741a9d317ba5b7da --- libcutils/include/cutils/android_reboot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcutils/include/cutils/android_reboot.h b/libcutils/include/cutils/android_reboot.h index 1bbb9b94b..2e3b42986 100644 --- a/libcutils/include/cutils/android_reboot.h +++ b/libcutils/include/cutils/android_reboot.h @@ -31,7 +31,7 @@ __BEGIN_DECLS #define ANDROID_RB_PROPERTY "sys.powerctl" /* Android reboot reason stored in this file */ -#define LAST_REBOOT_REASON_FILE "/data/misc/recovery/last_reboot_reason" +#define LAST_REBOOT_REASON_FILE "/data/misc/reboot/last_reboot_reason" int android_reboot(int cmd, int flags, const char *arg); int android_reboot_with_callback(