diff --git a/rootdir/init.qcom.sh b/rootdir/init.qcom.sh index dff0cc25fbca96e53f824ef265142eba31b69185..02c0394518cce48bde6e3bde5078c7b9f1b14552 100644 --- a/rootdir/init.qcom.sh +++ b/rootdir/init.qcom.sh @@ -84,7 +84,7 @@ start_msm_irqbalance_8939() { if [ -f /vendor/bin/msm_irqbalance ]; then case "$platformid" in - "239" | "293" | "294" | "295" | "304" | "338" | "313" |"353") + "239" | "293" | "294" | "295" | "304" | "338" | "313" | "353" | "354") start vendor.msm_irqbalance;; "349" | "350" ) start vendor.msm_irqbal_lb;; @@ -99,11 +99,32 @@ start_msm_irqbalance_msmnile() fi } +start_msm_irqbalance_kona() +{ + if [ -f /vendor/bin/msm_irqbalance ]; then + start vendor.msm_irqbalance + fi +} + +start_msm_irqbalance_lito() +{ + if [ -f /vendor/bin/msm_irqbalance ]; then + start vendor.msm_irqbalance + fi +} + +start_msm_irqbalance_atoll() +{ + if [ -f /vendor/bin/msm_irqbalance ]; then + start vendor.msm_irqbalance + fi +} + start_msm_irqbalance660() { if [ -f /vendor/bin/msm_irqbalance ]; then case "$platformid" in - "317" | "324" | "325" | "326" | "345" | "346") + "317" | "321" | "324" | "325" | "326" | "336" | "345" | "346" | "360" | "393") start vendor.msm_irqbalance;; "318" | "327" | "385") start vendor.msm_irqbl_sdm630;; @@ -114,7 +135,7 @@ start_msm_irqbalance660() start_msm_irqbalance() { if [ -f /vendor/bin/msm_irqbalance ]; then - start vendor.msm_irqbalance + start vendor.msm_irqbalance fi } @@ -197,7 +218,7 @@ case "$target" in fi case "$soc_id" in - "317" | "324" | "325" | "326" | "318" | "327" | "385" ) + "317" | "324" | "325" | "326" | "318" | "327" ) case "$hw_platform" in "Surf") setprop qemu.hw.mainkeys 0 @@ -267,7 +288,7 @@ case "$target" in ;; esac ;; - "msm8994" | "msm8992" | "msm8998" | "apq8098_latv" | "sdm845" | "sdm710" | "qcs605" | "talos") + "msm8994" | "msm8992" | "msm8998" | "apq8098_latv" | "sdm845" | "sdm710" | "qcs605" | "sm6150" | "trinket" | "bengal") start_msm_irqbalance ;; "msm8996") @@ -297,6 +318,15 @@ case "$target" in "msmnile") start_msm_irqbalance_msmnile ;; + "kona") + start_msm_irqbalance_kona + ;; + "lito") + start_msm_irqbalance_lito + ;; + "atoll") + start_msm_irqbalance_atoll + ;; "msm8937") start_msm_irqbalance_8939 if [ -f /sys/devices/soc0/soc_id ]; then @@ -333,6 +363,35 @@ case "$target" in ;; "msm8953") start_msm_irqbalance_8939 + if [ -f /sys/devices/soc0/soc_id ]; then + soc_id=`cat /sys/devices/soc0/soc_id` + else + soc_id=`cat /sys/devices/system/soc/soc0/id` + fi + + if [ -f /sys/devices/soc0/hw_platform ]; then + hw_platform=`cat /sys/devices/soc0/hw_platform` + else + hw_platform=`cat /sys/devices/system/soc/soc0/hw_platform` + fi + case "$soc_id" in + "293" | "304" | "338" | "351" | "349" | "350" ) + case "$hw_platform" in + "Surf") + setprop qemu.hw.mainkeys 0 + ;; + "MTP") + setprop qemu.hw.mainkeys 0 + ;; + "RCM") + setprop qemu.hw.mainkeys 0 + ;; + "QRD") + setprop qemu.hw.mainkeys 0 + ;; + esac + ;; + esac ;; "sdm710") if [ -f /sys/devices/soc0/soc_id ]; then @@ -367,12 +426,6 @@ case "$target" in ;; esac -# Remove recovery cache from persist -rm -rf /mnt/vendor/persist/cache/recovery - -# Set shared touchpanel nodes ownership (these are proc_symlinks to the real sysfs nodes) -chown -LR system.system /proc/touchpanel - # # Make modem config folder and copy firmware config to that folder for RIL #