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:
parent
894902f9d2
commit
ebda1f9559
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue