mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_rosemary
synced 2026-01-27 07:49:58 +00:00
rosemary: Switch to Pixel thermal service
* Config based off "dumpsys thermalservice" using stock thermal service. Co-authored-by: Woomymy <woomy@woomy.be> Change-Id: I92fcc16ce01aae8b1b9307c38f4236dffb7f78b9 Signed-off-by: bengris32 <bengris32@protonmail.ch>
This commit is contained in:
committed by
Matsvei Niaverau
parent
2ee249af7c
commit
9931a31226
371
configs/thermal_info_config.json
Normal file
371
configs/thermal_info_config.json
Normal file
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -455,10 +455,10 @@ PRODUCT_SOONG_NAMESPACES += \
|
|||||||
|
|
||||||
# Thermal
|
# Thermal
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.thermal@1.0-impl
|
android.hardware.thermal-service.mediatek
|
||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_COPY_FILES += \
|
||||||
android.hardware.thermal@2.0.vendor
|
$(LOCAL_PATH)/configs/thermal_info_config.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
|
||||||
|
|
||||||
# USB
|
# USB
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
|
|||||||
@@ -102,12 +102,6 @@
|
|||||||
<transport>hwbinder</transport>
|
<transport>hwbinder</transport>
|
||||||
<fqname>@1.1::IOffloadControl/default</fqname>
|
<fqname>@1.1::IOffloadControl/default</fqname>
|
||||||
</hal>
|
</hal>
|
||||||
<hal format="hidl">
|
|
||||||
<name>android.hardware.thermal</name>
|
|
||||||
<transport>hwbinder</transport>
|
|
||||||
<fqname>@1.0::IThermal/default</fqname>
|
|
||||||
<fqname>@2.0::IThermal/default</fqname>
|
|
||||||
</hal>
|
|
||||||
<hal format="hidl">
|
<hal format="hidl">
|
||||||
<name>com.fingerprints.extension</name>
|
<name>com.fingerprints.extension</name>
|
||||||
<transport>hwbinder</transport>
|
<transport>hwbinder</transport>
|
||||||
|
|||||||
@@ -2598,7 +2598,6 @@ vendor/thh/ta/e97c270ea5c44c58bcd3384a2fa2539e.ta
|
|||||||
vendor/thh/ta/isee_model.json
|
vendor/thh/ta/isee_model.json
|
||||||
|
|
||||||
# Thermal
|
# Thermal
|
||||||
vendor/bin/hw/android.hardware.thermal@2.0-service.mtk
|
|
||||||
vendor/bin/mi_thermald
|
vendor/bin/mi_thermald
|
||||||
vendor/bin/thermal
|
vendor/bin/thermal
|
||||||
vendor/bin/thermal_manager
|
vendor/bin/thermal_manager
|
||||||
@@ -2607,7 +2606,6 @@ vendor/etc/.tp/.ht120.mtc
|
|||||||
vendor/etc/.tp/.thermal_policy_08
|
vendor/etc/.tp/.thermal_policy_08
|
||||||
vendor/etc/.tp/thermal.conf
|
vendor/etc/.tp/thermal.conf
|
||||||
vendor/etc/.tp/thermal.off.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.rc
|
||||||
vendor/etc/init/init.thermal_manager.rc
|
vendor/etc/init/init.thermal_manager.rc
|
||||||
vendor/etc/init/init.thermalloadalgod.rc
|
vendor/etc/init/init.thermalloadalgod.rc
|
||||||
@@ -2623,10 +2621,7 @@ vendor/etc/thermal-phone.conf
|
|||||||
vendor/etc/thermal-tgame.conf
|
vendor/etc/thermal-tgame.conf
|
||||||
vendor/etc/thermal-youtube.conf
|
vendor/etc/thermal-youtube.conf
|
||||||
vendor/etc/thermald-devices.conf
|
vendor/etc/thermald-devices.conf
|
||||||
vendor/lib/hw/android.hardware.thermal@2.0-impl.so
|
|
||||||
vendor/lib/libthermalalgo.so
|
vendor/lib/libthermalalgo.so
|
||||||
vendor/lib64/hw/android.hardware.thermal@2.0-impl.so
|
|
||||||
vendor/lib64/hw/thermal_hal.so
|
|
||||||
|
|
||||||
# UDF
|
# UDF
|
||||||
vendor/lib/libudf.so
|
vendor/lib/libudf.so
|
||||||
|
|||||||
Reference in New Issue
Block a user