Skip to content

Commit d4f0855

Browse files
[chore]
1. imei 확인 불가 문구 수정 2. simserialnumber 확인 불가 문구 수정
1 parent 6143543 commit d4f0855

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

app/src/main/java/ch/lock/mobile/android/deviceinfo/utils/DeviceUtils.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,12 @@ class DeviceUtils(
5555
*/
5656
val imei: String
5757
get() = try {
58-
telephonyManager.deviceId ?: ""
58+
when (Build.VERSION.SDK_INT) {
59+
in 1..28 -> telephonyManager.deviceId ?: ""
60+
else -> "안드로이드 보안 정책에 의해 확인 불가"
61+
}
5962
} catch (e: Exception) {
60-
"안드로이드 10부터는 imei를 확인할 수 없습니다."
63+
""
6164
}
6265

6366
/**

app/src/main/java/ch/lock/mobile/android/deviceinfo/utils/SimUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class SimUtils(
3737
in 1.. 21 -> telephonyManager.simSerialNumber ?: ""
3838
in 22..28 -> subscriptionManager.activeSubscriptionInfoList?.firstOrNull()?.iccId
3939
?: "유심이 장착되어 있지 않아 확인 불가"
40-
else -> "안드로이드 정책에 의해 확인 불가"
40+
else -> "안드로이드 보안 정책에 의해 확인 불가"
4141
}
4242
} catch (e: Exception) {
4343
""

0 commit comments

Comments
 (0)