sdm845-common: Write to otg_switch node in our own init script

* Not sure why but /vendor/etc/init/hw/init.oem.rc property
  listeners aren't getting triggered thus I'm moving it here
  as it's not really worth figuring out.

Change-Id: I5b3d17745fbc086fbd560cfc122dada7b4b98272
This commit is contained in:
LuK1337
2019-06-18 03:25:47 +02:00
parent 031d6ba43a
commit 31600d1e52
3 changed files with 3 additions and 5 deletions

View File

@@ -8,6 +8,9 @@ on boot
# Fingerprint
chown system system /sys/devices/platform/soc/soc:goodix_fp/proximity_state
# OTG
write /sys/class/power_supply/usb/otg_switch 1
on charger
write /sys/class/backlight/panel0-backlight/brightness 150