We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adb175a commit 8ff5ca1Copy full SHA for 8ff5ca1
1 file changed
sysmetrics-core/src/main/kotlin/com/sysmetrics/infrastructure/android/AndroidMetricsProvider.kt
@@ -191,10 +191,12 @@ public class AndroidMetricsProvider(private val context: Context) {
191
}
192
193
private fun readCpuTemperatureFallback(): Float {
194
+ // Samsung devices use different paths
195
val possiblePaths = listOf(
196
"/sys/devices/virtual/thermal/thermal_zone0/temp",
197
"/sys/class/hwmon/hwmon0/temp1_input",
- "/sys/class/hwmon/hwmon1/temp1_input"
198
+ "/sys/class/hwmon/hwmon1/temp1_input",
199
+ "/sys/devices/platform/exynos5-tmu/temp" // Samsung Exynos
200
)
201
202
for (path in possiblePaths) {
0 commit comments