I am using this code for get current CPU Temperature :
and saw it too
private float getCurrentCPUTemperature() { String file = readFile(\"/sys/
Divide the value by 1000 on newer API:
1000
float cpu_temp = getCurrentCPUTemperature(); if(Build.VERSION.SDK_INT > Build.VERSION_CODES.M) { cpu_temp = cpu_temp / 1000; }
I'd just wonder where batteryTemp comes from and how it should be related to the CPU.
batteryTemp
CPU