diff options
author | Steven Moreland <smoreland@google.com> | 2018-03-16 10:23:14 -0700 |
---|---|---|
committer | TingyiChen <tingyi364@gmail.com> | 2019-08-13 11:46:51 +0200 |
commit | 91d472facfc2732777f75af82354f3e1b359c7a4 (patch) | |
tree | c99d0f56b1ae07d05e2f2226d3f7a146ad165e80 /light/android.hardware.light@2.0-service.xiaomi_wayne.rc | |
parent | 982ea91583b53d15d3bddaff51fecd93e3c9ac3e (diff) |
wayne-common: light: Mark as shutdown critical
Required because the lights need to be turned off late in boot
(e.x. during fsck for disk health), and before, blank_screen
accessing light encountered a race condition where if it didn't
get scheduled before all of the processes which were getting
shutdown were getting killed, the screen wouldn't blank.
Bug: 74976325
Test: adjusting brightness continues to work
Test: screen blanks during shutdown at the correct time
including when an artificial 5s delay is inserted when
the phone normally fscks (which can also be quick)
Change-Id: I57ebc11d7ecf57ee327c681455712f4b53de6fd3
Diffstat (limited to 'light/android.hardware.light@2.0-service.xiaomi_wayne.rc')
-rw-r--r-- | light/android.hardware.light@2.0-service.xiaomi_wayne.rc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/light/android.hardware.light@2.0-service.xiaomi_wayne.rc b/light/android.hardware.light@2.0-service.xiaomi_wayne.rc index 1d215b9..36d4af3 100644 --- a/light/android.hardware.light@2.0-service.xiaomi_wayne.rc +++ b/light/android.hardware.light@2.0-service.xiaomi_wayne.rc @@ -18,3 +18,4 @@ service light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.xiaomi_w class hal user system group system + shutdown critical |