diff options
author | Nikita Ioffe <ioffe@google.com> | 2020-03-31 01:28:35 +0100 |
---|---|---|
committer | Nikita Ioffe <ioffe@google.com> | 2020-04-02 17:25:48 +0100 |
commit | 6bd3bc8d015816eb0174ede8d0e8b7cfaa6569cd (patch) | |
tree | 6af9ac5ef7a0b8fc9e9025f0e8880f38917db3e3 /libutils/FileMap_test.cpp | |
parent | 9fd393f4307ce2cdf0f4ecf2cf463f77e4974707 (diff) |
Properly fail userspace reboot if it's not supported
Previously, after `adb reboot userspace` is called on a device that
doesn't suppor it, init would've logged an error and quietly exit the
shutdown sequence. This was leaving adb handing forever.
With this approach, init will fail setprop
"sys.powerctl=reboot,userspace" in case userspace reboot is not
supported.
Test: adb root
Test: adb setprop init.userspace_reboot.is_supported 0
Test: adb reboot userspace
Test: atest CtsInitTestCases
Bug: 146639622
Change-Id: I1264078f53ed3ff54638c7f3b6846b7437f98ee5
Merged-In: I1264078f53ed3ff54638c7f3b6846b7437f98ee5
(cherry picked from commit 92116e4129812eccb32d7a20208e03be7ee2ec75)
Diffstat (limited to 'libutils/FileMap_test.cpp')
0 files changed, 0 insertions, 0 deletions