diff --git a/configs/thermal_info_config.json b/configs/thermal_info_config.json
new file mode 100644
index 0000000..e865dba
--- /dev/null
+++ b/configs/thermal_info_config.json
@@ -0,0 +1,371 @@
+{
+ "Sensors": [
+ {
+ "Name": "CPU",
+ "Type": "CPU",
+ "ZoneName": "mtktscpu",
+ "HotThreshold": ["NAN", "NAN", "NAN", 85, 90, 100, 117],
+ "VrThreshold": "85.0",
+ "Multiplier": 0.001
+ },
+ {
+ "Name": "GPU",
+ "Type": "GPU",
+ "ZoneName": "mtktscpu",
+ "HotThreshold": ["NAN", "NAN", "NAN", 85, 90, 100, 117],
+ "VrThreshold": "85.0",
+ "Multiplier": 0.001
+ },
+ {
+ "Name": "mtktsbattery",
+ "Type": "BATTERY",
+ "HotThreshold": ["NAN", "NAN", "NAN", 50, 55, 59, 60],
+ "VrThreshold": "50.0",
+ "Multiplier": 0.001
+ },
+ {
+ "Name": "mtktsAP",
+ "Type": "SKIN",
+ "HotThreshold": ["NAN", "NAN", "NAN", 50, 70, 80, 90],
+ "VrThreshold": "50.0",
+ "Multiplier": 0.001
+ },
+ {
+ "Name": "mtktsbtsmdpa",
+ "Type": "POWER_AMPLIFIER",
+ "HotThreshold": ["NAN", "NAN", "NAN", 68, 90, 100, 110],
+ "VrThreshold": "NAN",
+ "Multiplier": 0.001
+ },
+ {
+ "Name": "NPU",
+ "Type": "NPU",
+ "ZoneName": "mtktscpu",
+ "HotThreshold": ["NAN", "NAN", "NAN", 85, 90, 100, 117],
+ "VrThreshold": "NAN",
+ "Multiplier": 0.001
+ }
+ ],
+ "CoolingDevices": [
+ {
+ "Name": "mtktsbattery-sysrst",
+ "Type": "BATTERY"
+ },
+ {
+ "Name": "mtk-cl-cam00",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtk-cl-cam01",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtk-cl-cam02",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtk-cl-cam-urgent",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtk-cl-kshutdown00",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtk-cl-kshutdown01",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtk-cl-kshutdown02",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtk-cl-kshutdown03",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtk-cl-kshutdown04",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtk-cl-kshutdown05",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtk-cl-kshutdown06",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtk-cl-kshutdown07",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtk-cl-shutdown00",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtk-cl-shutdown01",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtk-cl-shutdown02",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtktsbuck-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtktsAP-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mt6359dcxo-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mt6359tsx-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mt6359vcore-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mt6359vgpu-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mt6359vproc-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtktscharger-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "tzimgs0-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "tzimgs1-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "tzimgs2-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "tzimgs3-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "tzimgs4-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "tzimgs5-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtktspmic-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtktswmt-sysrst",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtktswmt-pa1",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "mtktswmt-pa2",
+ "Type": "COMPONENT"
+ },
+ {
+ "Name": "cpu_adaptive_0",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu_adaptive_1",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu_adaptive_2",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu00",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu01",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu02",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu03",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu04",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu05",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu06",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu07",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu08",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu09",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu10",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu11",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu12",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu13",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu14",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu15",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu16",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu17",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu18",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu19",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu20",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu21",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu22",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu23",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu24",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu25",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu26",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu27",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu28",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu29",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu30",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu31",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu32",
+ "Type": "CPU"
+ },
+ {
+ "Name": "cpu33",
+ "Type": "CPU"
+ },
+ {
+ "Name": "mtktscpu-sysrst",
+ "Type": "CPU"
+ },
+ {
+ "Name": "mtk-cl-mutt00",
+ "Type": "MODEM"
+ },
+ {
+ "Name": "mtk-cl-mutt01",
+ "Type": "MODEM"
+ },
+ {
+ "Name": "mtk-cl-mutt02",
+ "Type": "MODEM"
+ },
+ {
+ "Name": "mtk-cl-mutt03",
+ "Type": "MODEM"
+ },
+ {
+ "Name": "mtk-cl-noIMS",
+ "Type": "MODEM"
+ },
+ {
+ "Name": "mtk-cl-mdoff",
+ "Type": "MODEM"
+ },
+ {
+ "Name": "mtk-cl-adp-mutt",
+ "Type": "MODEM"
+ },
+ {
+ "Name": "mtktspa-sysrst",
+ "Type": "MODEM"
+ }
+ ]
+}
diff --git a/device.mk b/device.mk
index 5f044d1..7340c1b 100644
--- a/device.mk
+++ b/device.mk
@@ -455,10 +455,10 @@ PRODUCT_SOONG_NAMESPACES += \
# Thermal
PRODUCT_PACKAGES += \
- android.hardware.thermal@1.0-impl
+ android.hardware.thermal-service.mediatek
-PRODUCT_PACKAGES += \
- android.hardware.thermal@2.0.vendor
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/configs/thermal_info_config.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
# USB
PRODUCT_PACKAGES += \
diff --git a/manifest.xml b/manifest.xml
index 194e4bf..5d62a7c 100644
--- a/manifest.xml
+++ b/manifest.xml
@@ -102,12 +102,6 @@
hwbinder
@1.1::IOffloadControl/default
-
- android.hardware.thermal
- hwbinder
- @1.0::IThermal/default
- @2.0::IThermal/default
-
com.fingerprints.extension
hwbinder
diff --git a/proprietary-files.txt b/proprietary-files.txt
index a164689..0e9ca92 100644
--- a/proprietary-files.txt
+++ b/proprietary-files.txt
@@ -2598,7 +2598,6 @@ vendor/thh/ta/e97c270ea5c44c58bcd3384a2fa2539e.ta
vendor/thh/ta/isee_model.json
# Thermal
-vendor/bin/hw/android.hardware.thermal@2.0-service.mtk
vendor/bin/mi_thermald
vendor/bin/thermal
vendor/bin/thermal_manager
@@ -2607,7 +2606,6 @@ vendor/etc/.tp/.ht120.mtc
vendor/etc/.tp/.thermal_policy_08
vendor/etc/.tp/thermal.conf
vendor/etc/.tp/thermal.off.conf
-vendor/etc/init/android.hardware.thermal@2.0-service.mtk.rc
vendor/etc/init/init.thermal.rc
vendor/etc/init/init.thermal_manager.rc
vendor/etc/init/init.thermalloadalgod.rc
@@ -2623,10 +2621,7 @@ vendor/etc/thermal-phone.conf
vendor/etc/thermal-tgame.conf
vendor/etc/thermal-youtube.conf
vendor/etc/thermald-devices.conf
-vendor/lib/hw/android.hardware.thermal@2.0-impl.so
vendor/lib/libthermalalgo.so
-vendor/lib64/hw/android.hardware.thermal@2.0-impl.so
-vendor/lib64/hw/thermal_hal.so
# UDF
vendor/lib/libudf.so