summaryrefslogtreecommitdiff
path: root/init/action_parser.cpp
diff options
context:
space:
mode:
authorNikita Ioffe <ioffe@google.com>2020-02-26 15:18:56 +0000
committerNikita Ioffe <ioffe@google.com>2020-02-28 11:40:10 +0000
commitdffbb4f14839a4ee6b7f570249f05b8d72fb7319 (patch)
treeb85735e6b6b2dc859b44d0e79ac5ded47c21ef11 /init/action_parser.cpp
parentc7177f4a5564d2873e8dd28a36edcc8c3d485f4e (diff)
If userspace reboot watchdog triggers, don't store reason in persistent property
If init is wedged, then the write will never succeed and reboot won't happen. Also, in case of normal reboot, move call to PersistRebootReason to the top of DoReboot() function, to make sure we persist it even if /data is not mounted. Test: builds Test: adb shell svc power reboot userspace Test: atest CtsUserspaceRebootHostSideTestCases Bug: 148767783 Change-Id: I4ae40e1f6fdc41cc0bcae57020fa3d3385dda1b4 Merged-In: I4ae40e1f6fdc41cc0bcae57020fa3d3385dda1b4
Diffstat (limited to 'init/action_parser.cpp')
0 files changed, 0 insertions, 0 deletions