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:
parent
640b8363ed
commit
c579744e36
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue