Disable hall sensor in factory mode.

Bug: 226505523
Test: Set ro.bootmode=factory and see hall sensor is disabled.
Signed-off-by: Rick Chen <rickctchen@google.com>
Change-Id: Ic698c1ed9fde777f5686c1597eee2ec7b8952474
This commit is contained in:
Rick Chen 2022-04-08 10:53:01 +08:00
parent 9d3f8fa70c
commit f73ecea4f5

View file

@ -99,6 +99,9 @@ on late-init
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=factory
write /sys/devices/platform/hall_sensor/enable 0
# SecureElement eSE2 cts mode # SecureElement eSE2 cts mode
on property:persist.vendor.se.ese2.mode=ctsmode on property:persist.vendor.se.ese2.mode=ctsmode
write /sys/class/st33spi/st33spi/st33spi_state 33 write /sys/class/st33spi/st33spi/st33spi_state 33