Disable sensor power for off mode charging.

Bug: 261519005
Test: Build pass.
Test: sensor_test sample -s0.
Change-Id: I012a9342286370c019fc46e978913a89aa474da6
This commit is contained in:
matthuang 2022-12-07 19:06:44 +08:00 committed by Pin-Yu Huang
parent 19a6de8c96
commit d9c6a4a7d5

View file

@ -119,3 +119,7 @@ on post-fs
chmod 600 /sys/devices/platform/google,pogo/hall1_s
chmod 600 /sys/devices/platform/google,pogo/hall1_n
chmod 600 /sys/devices/platform/google,pogo/hall2_s
# Sensor
on init && property:ro.bootmode=charger
write /sys/devices/platform/19000000.aoc/sensor_power_enable 0