summaryrefslogtreecommitdiffstats
path: root/light
diff options
context:
space:
mode:
authorSteven Moreland2018-03-16 12:23:14 -0500
committerSteven Moreland2018-03-16 12:26:21 -0500
commit59dbae92ed243da5fa96d12551ac81de0e8f9897 (patch)
treeff40cd3fd8eb9939d979f837f137a24237f2e6fa /light
parent31857339ef1178ea1c83c3288c636ae313a12105 (diff)
downloadplatform-hardware-interfaces-59dbae92ed243da5fa96d12551ac81de0e8f9897.tar.gz
platform-hardware-interfaces-59dbae92ed243da5fa96d12551ac81de0e8f9897.tar.xz
platform-hardware-interfaces-59dbae92ed243da5fa96d12551ac81de0e8f9897.zip
light service: 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')
-rw-r--r--light/2.0/default/android.hardware.light@2.0-service.rc2
1 files changed, 2 insertions, 0 deletions
diff --git a/light/2.0/default/android.hardware.light@2.0-service.rc b/light/2.0/default/android.hardware.light@2.0-service.rc
index 68f74c4d..b54ca95a 100644
--- a/light/2.0/default/android.hardware.light@2.0-service.rc
+++ b/light/2.0/default/android.hardware.light@2.0-service.rc
@@ -3,3 +3,5 @@ service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service
3 class hal 3 class hal
4 user system 4 user system
5 group system 5 group system
6 # shutting off lights while powering-off
7 shutdown critical