Disable hall sensor in normal & factory mode.

Bug: 270639066
Test: Set ro.bootmode=normal and see hall sensor is disabled.
Test: Set ro.bootmode=factory and see hall sensor is disabled.
Change-Id: Id5666e2e74fdaebd2c79ad65046251f025f54afb
Signed-off-by: emilchung <emilchung@google.com>
This commit is contained in:
emilchung 2023-03-20 16:30:13 +08:00
parent df6379e548
commit 3dcad0dec3

View file

@ -45,6 +45,13 @@ on post-fs-data
on post-fs-data
chown bluetooth system /proc/bluetooth/timesync
# Hall sensor
on init && property:ro.bootmode=normal
write /sys/devices/platform/hall_sensor/enable 0
on init && property:ro.bootmode=factory
write /sys/devices/platform/hall_sensor/enable 0
# Haptics
on property:vendor.all.modules.ready=1
mkdir /mnt/vendor/persist/haptics 0770 system system