hall_sensor: Disable hall sensor input when bootmode is unknown
Bug: 284431215 Test: 1. No hall sensor in getevent. 2. Inner/outer screen can be switched in offmode charging, recovery, fastboot mode. Change-Id: Id9f93b4687898cf23601516cf69d0338df14e2aa Signed-off-by: Rick Chen <rickctchen@google.com>
This commit is contained in:
parent
d084976efc
commit
508fa1bcb4
1 changed files with 3 additions and 0 deletions
|
@ -117,6 +117,9 @@ on post-fs-data
|
|||
on init && property:ro.bootmode=normal
|
||||
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
|
||||
write /sys/devices/platform/hall_sensor/enable 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue