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
This commit is contained in:
Todd Poynor 2017-02-06 15:43:05 -08:00 committed by Keun-young Park
parent eac33da63b
commit e63f366ee3

View file

@ -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(