samsung: hidl: light service: Mark as shutdown critical
authorSteven Moreland <smoreland@google.com>
Fri, 16 Mar 2018 17:23:14 +0000 (18:23 +0100)
committerArne Coucheron <arco68@gmail.com>
Mon, 22 Jul 2019 00:15:27 +0000 (02:15 +0200)
commit50395e61e9955097ee2ae23bba014140145b141f
tree33c2dcca515480341782e6faaae901bfb6766fed
parent66b195f35949b10efbc88856da25825fbd4720e1
samsung: hidl: 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
hidl/light/android.hardware.light@2.0-service.samsung.rc