aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrootdir/etc/init.qcom.power.rc14
-rw-r--r--rootdir/etc/init.target.rc11
-rw-r--r--sepolicy/thermal-engine.te9
3 files changed, 1 insertions, 33 deletions
diff --git a/rootdir/etc/init.qcom.power.rc b/rootdir/etc/init.qcom.power.rc
index 1875ad8..5de3906 100755
--- a/rootdir/etc/init.qcom.power.rc
+++ b/rootdir/etc/init.qcom.power.rc
@@ -19,13 +19,6 @@ on boot
write /proc/sys/kernel/sched_boost 1
on enable-low-power
- # Disable thermal bcl hotplug to switch governor
- write /sys/module/msm_thermal/core_control/enabled 0
- write /sys/devices/soc/soc:qcom,bcl/mode "disable"
- write /sys/devices/soc/soc:qcom,bcl/hotplug_mask 0
- write /sys/devices/soc/soc:qcom,bcl/hotplug_soc_mask 0
- write /sys/devices/soc/soc:qcom,bcl/mode "enable"
-
# Enable Adaptive LMK
write /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk 1
@@ -66,13 +59,6 @@ on enable-low-power
write /sys/devices/system/cpu/cpu2/cpufreq/interactive/ignore_hispeed_on_notif 1
write /sys/devices/system/cpu/cpu2/cpufreq/interactive/enable_prediction 1
- # Re-enable thermal and BCL hotplug
- write /sys/module/msm_thermal/core_control/enabled 1
- write /sys/devices/soc/soc:qcom,bcl/mode "disable"
- write /sys/devices/soc/soc:qcom,bcl/hotplug_mask 12
- write /sys/devices/soc/soc:qcom,bcl/hotplug_soc_mask 8
- write /sys/devices/soc/soc:qcom,bcl/mode "enable"
-
# Input boost configuration
write /sys/module/cpu_boost/parameters/input_boost_freq "0:1324800 2:1324800"
write /sys/module/cpu_boost/parameters/input_boost_ms 0
diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc
index 749df3e..42cbfc7 100644
--- a/rootdir/etc/init.target.rc
+++ b/rootdir/etc/init.target.rc
@@ -203,16 +203,6 @@ service secotad /system/bin/secotad
# group system
# disabled
#
-service thermal-engine /system/vendor/bin/thermal-engine
- class main
- user root
- socket thermal-send-client stream 0666 system system
- socket thermal-recv-client stream 0660 system system
- socket thermal-recv-passive-client stream 0666 system system
- group root
- socket thermal-send-client stream 0666 system system
- socket thermal-recv-client stream 0660 system system
- socket thermal-recv-passive-client stream 0666 system system
#service security-check1 /sbin/security_boot_check system
# class core
@@ -222,6 +212,7 @@ service thermal-engine /system/vendor/bin/thermal-engine
# class core
# oneshot
#
+
service time_daemon /system/bin/time_daemon
class late_start
user root
diff --git a/sepolicy/thermal-engine.te b/sepolicy/thermal-engine.te
deleted file mode 100644
index 7565599..0000000
--- a/sepolicy/thermal-engine.te
+++ /dev/null
@@ -1,9 +0,0 @@
-type_transition thermal-engine system_data_file:file thermal_data_file "decrypt.txt";
-allow thermal-engine sysfs_kgsl:file r_file_perms;
-allow thermal-engine system_data_file:dir w_dir_perms;
-allow thermal-engine thermal_data_file:file create_file_perms;
-allow thermal-engine sysfs_usb_supply:dir search;
-allow thermal-engine sysfs_usb_supply:file r_file_perms;
-allow thermal-engine diag_device:chr_file { read write };
-allow thermal-engine diag_device:chr_file open;
-allow thermal-engine diag_device:chr_file ioctl;