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