on property:persist.vendor.log.thermal=1 start vendor.thermal.logd on property:persist.vendor.log.thermal=0 stop vendor.thermal.logd on property:persist.vendor.log.thermal=1 && property:persist.vendor.log.thermal.interval=* restart vendor.thermal.logd service vendor.thermal.logd /vendor/bin/thermal_logd ${persist.vendor.log.thermal.interval:-5} class main user root group root system disabled # Switch thermal protection for Pixels on property:persist.vendor.disable.thermal.control=* setprop vendor.disable.thermal.control ${persist.vendor.disable.thermal.control} on property:persist.vendor.disable.usb.overheat.mitigation=* setprop vendor.disable.usb.overheat.mitigation.control ${persist.vendor.disable.usb.overheat.mitigation} on property:persist.vendor.disable.thermal.tj.control=* setprop vendor.disable.thermal.tj.control ${persist.vendor.disable.thermal.tj.control} on property:persist.vendor.disable.bcl.control=* setprop vendor.disable.bcl.control ${persist.vendor.disable.bcl.control} on property:vendor.disable.thermal.control=1 && property:vendor.thermal.link_ready=1 # common stop vendor.thermal-engine restart vendor.thermal-hal-2-0 # sdm845 write /dev/thermal/tz-by-name/quiet-therm-adc/mode disabled write /dev/thermal/tz-by-name/quiet-therm-monitor/mode disabled write /dev/thermal/tz-by-name/fps-therm-adc/mode disabled write /dev/thermal/tz-by-name/fps-therm-monitor/mode disabled # sdm670 write /dev/thermal/tz-by-name/mb-therm-adc/mode disabled write /dev/thermal/tz-by-name/mb-therm-monitor/mode disabled # sm8150 write /dev/thermal/tz-by-name/sdm-therm/mode disabled write /dev/thermal/tz-by-name/sdm-therm-monitor/mode disabled # sm7150 write /dev/thermal/tz-by-name/skin-therm-adc/mode disabled write /dev/thermal/tz-by-name/skin-therm-monitor/mode disabled # sm7250 write /dev/thermal/tz-by-name/skin-therm/emul_temp 25000 write /dev/thermal/tz-by-name/skin-therm/mode disabled write /dev/thermal/tz-by-name/skin-therm-cpu/emul_temp 25000 write /dev/thermal/tz-by-name/skin-therm-cpu/mode disabled write /dev/thermal/tz-by-name/skin-therm-monitor/emul_temp 25000 write /dev/thermal/tz-by-name/skin-therm-monitor/mode disabled write /dev/thermal/tz-by-name/panel-audio-therm/emul_temp 25000 write /dev/thermal/tz-by-name/panel-audio-therm/mode disabled write /dev/thermal/tz-by-name/cellular-emergency/emul_temp 25000 write /dev/thermal/tz-by-name/cellular-emergency/mode disabled write /dev/thermal/tz-by-name/sdm-therm/emul_temp 25000 write /dev/thermal/tz-by-name/sdm-therm/mode disabled write /dev/thermal/tz-by-name/charger-therm/emul_temp 25000 write /dev/thermal/tz-by-name/charger-therm/mode disabled # P21 write /dev/thermal/tz-by-name/disp_therm/mode disabled on property:vendor.disable.thermal.control=0 && property:vendor.thermal.link_ready=1 # common start vendor.thermal-engine restart vendor.thermal-hal-2-0 # sdm845 write /dev/thermal/tz-by-name/quiet-therm-adc/mode enabled write /dev/thermal/tz-by-name/quiet-therm-monitor/mode enabled write /dev/thermal/tz-by-name/fps-therm-adc/mode enabled write /dev/thermal/tz-by-name/fps-therm-monitor/mode enabled # sdm670 write /dev/thermal/tz-by-name/mb-therm-adc/mode enabled write /dev/thermal/tz-by-name/mb-therm-monitor/mode enabled # sm8150 write /dev/thermal/tz-by-name/sdm-therm/mode enabled write /dev/thermal/tz-by-name/sdm-therm-monitor/mode enabled # sm7150 write /dev/thermal/tz-by-name/skin-therm-adc/mode enabled write /dev/thermal/tz-by-name/skin-therm-monitor/mode enabled # sm7250 write /dev/thermal/tz-by-name/skin-therm/emul_temp 0 write /dev/thermal/tz-by-name/skin-therm/mode enabled write /dev/thermal/tz-by-name/skin-therm-cpu/emul_temp 0 write /dev/thermal/tz-by-name/skin-therm-cpu/mode enabled write /dev/thermal/tz-by-name/skin-therm-monitor/emul_temp 0 write /dev/thermal/tz-by-name/skin-therm-monitor/mode enabled write /dev/thermal/tz-by-name/panel-audio-therm/emul_temp 0 write /dev/thermal/tz-by-name/panel-audio-therm/mode enabled write /dev/thermal/tz-by-name/cellular-emergency/emul_temp 0 write /dev/thermal/tz-by-name/cellular-emergency/mode enabled write /dev/thermal/tz-by-name/sdm-therm/emul_temp 0 write /dev/thermal/tz-by-name/sdm-therm/mode enabled write /dev/thermal/tz-by-name/charger-therm/emul_temp 0 write /dev/thermal/tz-by-name/charger-therm/mode enabled # P21 write /dev/thermal/tz-by-name/disp_therm/mode enabled # Switch Tj thermal protection on property:vendor.disable.thermal.tj.control=1 # P21 write /dev/thermal/tz-by-name/BIG/mode disabled write /dev/thermal/tz-by-name/MID/mode disabled write /dev/thermal/tz-by-name/LITTLE/mode disabled write /dev/thermal/tz-by-name/G3D/mode disabled write /dev/thermal/tz-by-name/ISP/mode disabled write /dev/thermal/tz-by-name/TPU/mode disabled write /sys/kernel/debug/gs101-thermal/emul_call 1 on property:vendor.disable.thermal.tj.control=0 # P21 write /dev/thermal/tz-by-name/BIG/mode enabled write /dev/thermal/tz-by-name/MID/mode enabled write /dev/thermal/tz-by-name/LITTLE/mode enabled write /dev/thermal/tz-by-name/G3D/mode enabled write /dev/thermal/tz-by-name/ISP/mode enabled write /dev/thermal/tz-by-name/TPU/mode enabled write /sys/kernel/debug/gs101-thermal/emul_call 0 # Toggle BCL control on property:vendor.disable.bcl.control=1 write /dev/thermal/tz-by-name/soc/mode disabled on property:vendor.disable.bcl.control=0 write /dev/thermal/tz-by-name/soc/mode enabled # Switch USB port overheat protection on property:vendor.disable.usb.overheat.mitigation.control=1 write /sys/module/overheat_mitigation/parameters/enable 0 write /dev/thermal/tz-by-name/usb_pwr_therm2/emul_temp 25000 on property:vendor.disable.usb.overheat.mitigation.control=0 write /sys/module/overheat_mitigation/parameters/enable 1 write /dev/thermal/tz-by-name/usb_pwr_therm2/emul_temp 0