hall_sensor: Disable hall sensor input when bootmode is unknown

Fix: 322899718
Test: 1. No hall sensor in getevent.
      2. Inner/outer screen can be switched in offmode charging,
      recovery, fastboot mode.
Change-Id: Ie61216a201b31a320b423460fe6694d21838b973
Signed-off-by: emilchung <emilchung@google.com>
This commit is contained in:
emilchung 2024-01-30 03:50:38 +00:00 committed by Hsin-Lin Chung
parent 640b8363ed
commit c579744e36

View file

@ -43,6 +43,9 @@ on post-fs-data
on init && property:ro.bootmode=normal on init && property:ro.bootmode=normal
write /sys/devices/platform/hall_sensor/enable 0 write /sys/devices/platform/hall_sensor/enable 0
on init && property:ro.bootmode=unknown
write /sys/devices/platform/hall_sensor/enable 0
on init && property:ro.bootmode=factory on init && property:ro.bootmode=factory
write /sys/devices/platform/hall_sensor/enable 0 write /sys/devices/platform/hall_sensor/enable 0