Skip to content

Commit f16d927

Browse files
committed
[feat]
1. 정보 조회 불가 시 대체 문구 추가
1 parent ac1c3dc commit f16d927

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ open class DeviceUtils(
6060
get() = try {
6161
telephonyManager.deviceId ?: ""
6262
} catch (e: Exception) {
63-
""
63+
"안드로이드 10부터는 imei를 확인할 수 없습니다."
6464
}
6565

6666
/**

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ open class SimUtils(
3131
get() = try {
3232
when {
3333
Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1 ->
34-
subscriptionManager.activeSubscriptionInfoList?.firstOrNull()?.iccId ?: ""
35-
34+
subscriptionManager.activeSubscriptionInfoList?.firstOrNull()?.iccId ?: "유심이 장착되어 있지 않습니다."
3635
else -> telephonyManager.simSerialNumber ?: ""
3736
}
3837
} catch (e: Exception) {

0 commit comments

Comments
 (0)