We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f12d430 commit 3eba9f1Copy full SHA for 3eba9f1
1 file changed
sdk/runanywhere-kotlin/src/androidMain/kotlin/com/runanywhere/sdk/foundation/device/DeviceInfoService.kt
@@ -33,8 +33,8 @@ actual class DeviceInfoService {
33
}
34
35
36
- actual fun getChipName(): String? =
37
- try {
+ actual fun getChipName(): String? {
+ return try {
38
// Try Build.SOC_MODEL first (API 31+) — returns actual SoC like "SM8750"
39
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
40
val socModel = Build.SOC_MODEL
@@ -52,6 +52,7 @@ actual class DeviceInfoService {
52
} catch (e: Exception) {
53
null
54
55
+ }
56
57
actual fun getTotalMemoryGB(): Double? {
58
return try {
0 commit comments