diff --git a/extract-files.sh b/extract-files.sh index b9227ed..9ad271c 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -67,9 +67,6 @@ function blob_fixup() { vendor/bin/hw/android.hardware.security.keymint-service-qti|vendor/lib/libqtikeymint.so|vendor/lib64/libqtikeymint.so) grep -q "android.hardware.security.rkp-V3-ndk.so" "${2}" || "${PATCHELF_0_17_2}" --add-needed "android.hardware.security.rkp-V3-ndk.so" "${2}" ;; - vendor/etc/init/hw/init.mi_thermald.rc|vendor/etc/init/hw/init.qcom.usb.rc|vendor/etc/init/hw/init.qti.kernel.rc) - sed -i 's/on charger/on property:init.svc.vendor.charger=running/g' "${2}" - ;; vendor/etc/init/init.embmssl_server.rc) sed -i -n '/interface/!p' "${2}" ;; diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 3bd5c57..755afe6 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -803,7 +803,7 @@ service esepmdaemon /system/vendor/bin/esepmdaemon user system group nfc -on property:init.svc.vendor.charger=running +on charger setprop persist.sys.usb.config mass_storage start qcom-post-boot diff --git a/rootdir/etc/init.qti.kernel.rc b/rootdir/etc/init.qti.kernel.rc index 420f146..15de3a8 100644 --- a/rootdir/etc/init.qti.kernel.rc +++ b/rootdir/etc/init.qti.kernel.rc @@ -167,7 +167,7 @@ on property:sys.boot_completed=1 start kernel-boot start kernel-post-boot -on property:init.svc.vendor.charger=running +on charger start kernel-post-boot service vendor.msm_irqbalance /vendor/bin/msm_irqbalance -f /system/vendor/etc/msm_irqbalance.conf diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 968307c..f6ceea8 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -129,7 +129,7 @@ on init && property:ro.boot.mode=charger wait /sys/kernel/boot_adsp/boot write /sys/kernel/boot_adsp/boot 1 -on property:init.svc.vendor.charger=running +on charger start vendor.power_off_alarm setprop sys.usb.controller a600000.dwc3 wait /sys/class/udc/${sys.usb.controller}