Created
December 20, 2019 22:08
-
-
Save corneliusroemer/55c7494ae39a8a2a95cbe7647fea3038 to your computer and use it in GitHub Desktop.
Get list and temperature of CPU and battery temperature sensors via Android Debug Bridge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#run from terminal with: adb shell "$(cat temperature.sh)" to get list of temperature sensors and their temperature | |
#on Android devices | |
for VARIABLE in $(seq 1 80) | |
do | |
cat /sys/devices/virtual/thermal/thermal_zone$VARIABLE/type | |
cat /sys/devices/virtual/thermal/thermal_zone$VARIABLE/temp | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got it. thank you very much!!