Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find CPU temperature on any android with adb command [closed]

Tags:

android

shell

adb

Ill am trying to find a way to get the temperature of the CPU of any android device only with adb command.

like image 531
Alon Shalev Avatar asked Nov 28 '22 23:11

Alon Shalev


1 Answers

Use adb shell ls sys/class/thermal/ to get list of thermal zones and then:

adb shell cat sys/class/thermal/[name of thermal zone]/temp

For example: adb shell cat sys/class/thermal/thermal_zone0/temp

Note: Some of the thermal zones may return some weird values especially those with higher number. Also, some thermal zones return values in millidegree Celsius.

like image 81
pr0gramist Avatar answered Dec 04 '22 14:12

pr0gramist