您现在的位置是:首页 >学无止境 >Android热缓解策略网站首页学无止境
Android热缓解策略
1、基础理论
Android 热缓解框架解析
2、调试方法
2.1 查看温升状态
adb shell dumpsys thermalservice
IsStatusOverride: false
ThermalEventListeners:
callbacks: 2
killed: false
broadcasts count: -1
ThermalStatusListeners:
callbacks: 2
killed: false
broadcasts count: -1
Thermal Status: 0
Cached temperatures:
HAL Ready: true
HAL connection:
ThermalHAL 2.0 connected: yes
Current temperatures from HAL:
Current cooling devices from HAL:
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-4}
CoolingDevice{mValue=0, mType=2, mName=cpufreq-cpu4}
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-40}
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-10}
CoolingDevice{mValue=0, mType=3, mName=gpu}
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-8}
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-80}
CoolingDevice{mValue=0, mType=2, mName=cpufreq-cpu0}
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-2}
CoolingDevice{mValue=0, mType=5, mName=cdsp}
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-20}
CoolingDevice{mValue=0, mType=2, mName=thermal-pause-1}
CoolingDevice{mValue=0, mType=1, mName=battery}
Temperature static thresholds from HAL:
2.2 查看各节点温度
adb shell cat /sys/class/thermal/thermal_zone*/temp
2.3 查看各节点温度类型
adb shell cat /sys/class/thermal/thermal_zone*/type