tangorpro: Enable force alt path if property is set
(ported from If9eda2080fa53e9dedad6fce690dbe779ee06db5) Bug: 272411364 Change-Id: I45f8ece03f3e04454539cf3460129d31905afb97 Signed-off-by: Kyle Tso <kyletso@google.com>
This commit is contained in:
parent
12cb15e48c
commit
d43c7a0a13
1 changed files with 7 additions and 0 deletions
|
@ -131,6 +131,13 @@ on post-fs
|
|||
chmod 600 /sys/devices/platform/google,pogo/hall1_n
|
||||
chmod 600 /sys/devices/platform/google,pogo/hall2_s
|
||||
|
||||
# Set/Clear force_pogo feature
|
||||
on property:persist.vendor.usb.force_pogo=1
|
||||
write /sys/devices/platform/google,pogo/force_pogo 1
|
||||
|
||||
on property:persist.vendor.usb.force_pogo=0
|
||||
write /sys/devices/platform/google,pogo/force_pogo 0
|
||||
|
||||
# Sensor
|
||||
on init && property:ro.bootmode=charger
|
||||
write /sys/devices/platform/19000000.aoc/sensor_power_enable 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue