1on property:persist.vendor.log.thermal=1 2 start vendor.thermal.logd 3 4on property:persist.vendor.log.thermal=0 5 stop vendor.thermal.logd 6 7on property:persist.vendor.log.thermal=1 && property:persist.vendor.log.thermal.interval=* 8 restart vendor.thermal.logd 9 10service vendor.thermal.logd /vendor/bin/thermal_logd ${persist.vendor.log.thermal.interval:-5} 11 class main 12 user root 13 group root system 14 disabled 15 16# Switch thermal protection for Pixels 17on property:persist.vendor.disable.thermal.control=* 18 setprop vendor.disable.thermal.control ${persist.vendor.disable.thermal.control} 19 20on property:persist.vendor.disable.usb.overheat.mitigation=* 21 setprop vendor.disable.usb.overheat.mitigation.control ${persist.vendor.disable.usb.overheat.mitigation} 22 23on property:persist.vendor.disable.thermal.tj.control=* 24 setprop vendor.disable.thermal.tj.control ${persist.vendor.disable.thermal.tj.control} 25 26on property:persist.vendor.disable.bcl.control=* 27 setprop vendor.disable.bcl.control ${persist.vendor.disable.bcl.control} 28 29on property:vendor.disable.thermal.control=1 && property:vendor.thermal.link_ready=1 30 # common 31 stop vendor.thermal-engine 32 restart vendor.thermal-hal-2-0 33 # sdm845 34 write /dev/thermal/tz-by-name/quiet-therm-adc/mode disabled 35 write /dev/thermal/tz-by-name/quiet-therm-monitor/mode disabled 36 write /dev/thermal/tz-by-name/fps-therm-adc/mode disabled 37 write /dev/thermal/tz-by-name/fps-therm-monitor/mode disabled 38 # sdm670 39 write /dev/thermal/tz-by-name/mb-therm-adc/mode disabled 40 write /dev/thermal/tz-by-name/mb-therm-monitor/mode disabled 41 # sm8150 42 write /dev/thermal/tz-by-name/sdm-therm/mode disabled 43 write /dev/thermal/tz-by-name/sdm-therm-monitor/mode disabled 44 # sm7150 45 write /dev/thermal/tz-by-name/skin-therm-adc/mode disabled 46 write /dev/thermal/tz-by-name/skin-therm-monitor/mode disabled 47 # sm7250 48 write /dev/thermal/tz-by-name/skin-therm/emul_temp 25000 49 write /dev/thermal/tz-by-name/skin-therm/mode disabled 50 write /dev/thermal/tz-by-name/skin-therm-cpu/emul_temp 25000 51 write /dev/thermal/tz-by-name/skin-therm-cpu/mode disabled 52 write /dev/thermal/tz-by-name/skin-therm-monitor/emul_temp 25000 53 write /dev/thermal/tz-by-name/skin-therm-monitor/mode disabled 54 write /dev/thermal/tz-by-name/panel-audio-therm/emul_temp 25000 55 write /dev/thermal/tz-by-name/panel-audio-therm/mode disabled 56 write /dev/thermal/tz-by-name/cellular-emergency/emul_temp 25000 57 write /dev/thermal/tz-by-name/cellular-emergency/mode disabled 58 write /dev/thermal/tz-by-name/sdm-therm/emul_temp 25000 59 write /dev/thermal/tz-by-name/sdm-therm/mode disabled 60 write /dev/thermal/tz-by-name/charger-therm/emul_temp 25000 61 write /dev/thermal/tz-by-name/charger-therm/mode disabled 62 # P21 63 write /dev/thermal/tz-by-name/disp_therm/mode disabled 64 65on property:vendor.disable.thermal.control=0 && property:vendor.thermal.link_ready=1 66 # common 67 start vendor.thermal-engine 68 restart vendor.thermal-hal-2-0 69 # sdm845 70 write /dev/thermal/tz-by-name/quiet-therm-adc/mode enabled 71 write /dev/thermal/tz-by-name/quiet-therm-monitor/mode enabled 72 write /dev/thermal/tz-by-name/fps-therm-adc/mode enabled 73 write /dev/thermal/tz-by-name/fps-therm-monitor/mode enabled 74 # sdm670 75 write /dev/thermal/tz-by-name/mb-therm-adc/mode enabled 76 write /dev/thermal/tz-by-name/mb-therm-monitor/mode enabled 77 # sm8150 78 write /dev/thermal/tz-by-name/sdm-therm/mode enabled 79 write /dev/thermal/tz-by-name/sdm-therm-monitor/mode enabled 80 # sm7150 81 write /dev/thermal/tz-by-name/skin-therm-adc/mode enabled 82 write /dev/thermal/tz-by-name/skin-therm-monitor/mode enabled 83 # sm7250 84 write /dev/thermal/tz-by-name/skin-therm/emul_temp 0 85 write /dev/thermal/tz-by-name/skin-therm/mode enabled 86 write /dev/thermal/tz-by-name/skin-therm-cpu/emul_temp 0 87 write /dev/thermal/tz-by-name/skin-therm-cpu/mode enabled 88 write /dev/thermal/tz-by-name/skin-therm-monitor/emul_temp 0 89 write /dev/thermal/tz-by-name/skin-therm-monitor/mode enabled 90 write /dev/thermal/tz-by-name/panel-audio-therm/emul_temp 0 91 write /dev/thermal/tz-by-name/panel-audio-therm/mode enabled 92 write /dev/thermal/tz-by-name/cellular-emergency/emul_temp 0 93 write /dev/thermal/tz-by-name/cellular-emergency/mode enabled 94 write /dev/thermal/tz-by-name/sdm-therm/emul_temp 0 95 write /dev/thermal/tz-by-name/sdm-therm/mode enabled 96 write /dev/thermal/tz-by-name/charger-therm/emul_temp 0 97 write /dev/thermal/tz-by-name/charger-therm/mode enabled 98 # P21 99 write /dev/thermal/tz-by-name/disp_therm/mode enabled 100 101# Switch Tj thermal protection 102on property:vendor.disable.thermal.tj.control=1 103 # P21 104 write /dev/thermal/tz-by-name/BIG/mode disabled 105 write /dev/thermal/tz-by-name/MID/mode disabled 106 write /dev/thermal/tz-by-name/LITTLE/mode disabled 107 write /dev/thermal/tz-by-name/G3D/mode disabled 108 write /dev/thermal/tz-by-name/ISP/mode disabled 109 write /dev/thermal/tz-by-name/TPU/mode disabled 110 write /sys/kernel/debug/gs101-thermal/emul_call 1 111 112on property:vendor.disable.thermal.tj.control=0 113 # P21 114 write /dev/thermal/tz-by-name/BIG/mode enabled 115 write /dev/thermal/tz-by-name/MID/mode enabled 116 write /dev/thermal/tz-by-name/LITTLE/mode enabled 117 write /dev/thermal/tz-by-name/G3D/mode enabled 118 write /dev/thermal/tz-by-name/ISP/mode enabled 119 write /dev/thermal/tz-by-name/TPU/mode enabled 120 write /sys/kernel/debug/gs101-thermal/emul_call 0 121 122# Toggle BCL control 123on property:vendor.disable.bcl.control=1 124 write /dev/thermal/tz-by-name/soc/mode disabled 125 126on property:vendor.disable.bcl.control=0 127 write /dev/thermal/tz-by-name/soc/mode enabled 128 129# Switch USB port overheat protection 130on property:vendor.disable.usb.overheat.mitigation.control=1 131 write /sys/module/overheat_mitigation/parameters/enable 0 132 write /dev/thermal/tz-by-name/usb_pwr_therm2/emul_temp 25000 133 134on property:vendor.disable.usb.overheat.mitigation.control=0 135 write /sys/module/overheat_mitigation/parameters/enable 1 136 write /dev/thermal/tz-by-name/usb_pwr_therm2/emul_temp 0 137