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:
parent
df6379e548
commit
3dcad0dec3
1 changed files with 7 additions and 0 deletions
|
@ -45,6 +45,13 @@ on post-fs-data
|
||||||
on post-fs-data
|
on post-fs-data
|
||||||
chown bluetooth system /proc/bluetooth/timesync
|
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
|
# Haptics
|
||||||
on property:vendor.all.modules.ready=1
|
on property:vendor.all.modules.ready=1
|
||||||
mkdir /mnt/vendor/persist/haptics 0770 system system
|
mkdir /mnt/vendor/persist/haptics 0770 system system
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue