From 31600d1e5254a964900b85e1cbad7506a453c56c Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Tue, 18 Jun 2019 03:25:47 +0200 Subject: [PATCH] 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 --- rootdir/etc/init.qcom.rc | 3 +++ sepolicy/private/property_contexts | 1 - system_prop.mk | 4 ---- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 8e0b688..d8a38b5 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -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 diff --git a/sepolicy/private/property_contexts b/sepolicy/private/property_contexts index ba0ffd1..d415bb7 100644 --- a/sepolicy/private/property_contexts +++ b/sepolicy/private/property_contexts @@ -1,4 +1,3 @@ -persist.sys.oem.otg_support u:object_r:public_vendor_default_prop:s0 ro.vendor.graphics.memory u:object_r:public_vendor_default_prop:s0 vendor.debug.egl.changepixelformat u:object_r:public_vendor_default_prop:s0 vendor.debug.egl.profiler u:object_r:public_vendor_default_prop:s0 diff --git a/system_prop.mk b/system_prop.mk index 4b1f353..966682e 100644 --- a/system_prop.mk +++ b/system_prop.mk @@ -52,10 +52,6 @@ PRODUCT_PROPERTY_OVERRIDES += \ vendor.iop.enable_prefetch_ofr=1 \ vendor.iop.enable_uxe=0 -# OTG -PRODUCT_PROPERTY_OVERRIDES += \ - persist.sys.oem.otg_support=true - # Media PRODUCT_PROPERTY_OVERRIDES += \ media.settings.xml=/system/etc/media_profiles_vendor.xml