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

Commit e63f366e authored by Todd Poynor's avatar Todd Poynor Committed by Keun-young Park
Browse files

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
parent eac33da6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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(