Commit graph

5 commits

Author SHA1 Message Date
Steven Moreland
44c01c0883 Revert "blank_screen: always exit with _exit()."
This was a temporary workaround in Android P, but it is fixed
with a relatively more dangerous change in libhwbinder.

This reverts commit 73ba34f1b7.

Bug: 77934844
Test: reboot device and watch for screen to get shutdown, check logs

Change-Id: I970144eea4acd8254f4a67ebe803f3c3eda9aba2
2018-05-25 00:38:14 +00:00
Steven Moreland
73ba34f1b7 blank_screen: always exit with _exit().
Delay starting the threadpool until necessary,
and once started, always exit with _exit().

Bug: 77934844
Test: screen is blanked on reboot
Change-Id: I7715d889a6f78b9ce058fb3841ef7944116d8e82
2018-05-22 15:23:41 -07:00
Steven Moreland
04f859a9b9 blank_screen: shut off all lights
This is used to make the phone appear off by init
during late boot (e.x. fsck for disk health), so
it should shut off all lights (not just the screen).

Bug: 74976325
Test: blank_screen
Change-Id: I790cc3dd856c2c2095fa3cf82519fd30834304ca
2018-03-16 10:31:07 -07:00
Steven Moreland
efab822141 Remove unnecessary group from blank_screen.
Was accidentally copy-pasted here.

Bug: N/A
Test: setprop ctl.start blank_screen
Change-Id: I0b100b02aecd2649f2528834f431a0bc8b164c46
2018-01-23 15:15:40 -08:00
Steven Moreland
64a7afb07e Add 'blank_screen' util.
This can be transitioned to by init to shutdown the
screen thereby preventing init from either depending
on binder or accessing halified sysnodes directly.

Bug: 70846424
Test: manual + init use
Change-Id: I86893ee5d7118547cd073297c0626e474f366b82
2018-01-19 13:09:32 -08:00