From 16b4b4cc24c9a1adbbc1fdf7121718b2b7cc6e11 Mon Sep 17 00:00:00 2001 From: arunvoddu Date: Mon, 6 Mar 2023 16:52:43 +0000 Subject: [PATCH] Update the TelephonyManager#hasIccCard API documentation Bug: 232933746 Test: Manually verified in Pixel 7 with DSDS: 1) pSIM + no eSIM 2) no pSIM + no eSIM Change-Id: I816c4eb77af1903d4e52ba6281bcf50fa31f44ca --- telephony/java/android/telephony/TelephonyManager.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 66711df4db048..60d1bdad1e399 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -3511,7 +3511,15 @@ public class TelephonyManager { public static final String ACTION_SECRET_CODE = "android.telephony.action.SECRET_CODE"; /** - * @return true if a ICC card is present + * This API is used to check if there is an ICC card present in the device. + * + * An ICC card is a smart card that contains a subscriber identity module (SIM) and is used + * to identify and authenticate users to a mobile network. + * + * Note: In case of embedded SIM there is an ICC card always present irrespective + * of whether an active SIM profile is present or not so this API would always return true. + * + * @return true if a ICC card is present. */ @RequiresFeature(PackageManager.FEATURE_TELEPHONY_SUBSCRIPTION) public boolean hasIccCard() {