android_device_oneplus_dre/rootdir/etc/init.qcom.rc
LuK1337 31600d1e52 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
2019-06-18 03:25:47 +02:00

24 lines
780 B
Text

on init
mount none /system/etc/audio_policy_configuration.xml /vendor/etc/audio/audio_policy_configuration.xml bind
mount none /system/lib64/hw/power.qcom.so /vendor/lib64/hw/power.qcom.so bind
mount none /system/lib/modules/wlan.ko /vendor/lib/modules-aging/qca_cld3_wlan.ko bind
mount none /system/lib/modules/wlan.ko /vendor/lib/modules/qca_cld3_wlan.ko bind
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
service dashd /sbin/dashd
class core
critical
seclabel u:r:dashd:s0
group root system
service factory-hal-1-0 /system/bin/true
disabled