一、【MTK 平台】读取温度命令
1.查看类型是否是 CPU
adb shell “cat /sys/class/thermal/thermal_zone【编号】/type”
2.查看 CPU 温度
adb shell “cat /sys/class/thermal/thermal_zone【编号】/temp”
Z91:/sys/class/thermal/thermal_zone1 # cat type
cat type
mtktscpu
Z91:/sys/class/thermal/thermal_zone1 #
Z91:/sys/class/thermal/thermal_zone1 # cat temp
cat temp
30800
二、相关源码
xref: /kernel-3.18/drivers/misc/mediatek/thermal/common/thermal_zones/mtk_ts_cpu.c
https://github.com/sufadi/MakeDownPicForMyself/blob/master/20180112/mtk_ts_cpu.c