From 98e1e28f30b4de2c762bd6c4aea98a20670a175d Mon Sep 17 00:00:00 2001 From: Kazuhiro Ondo Date: Tue, 14 Jun 2011 13:49:02 -0500 Subject: [PATCH] Enforce provision check for CSIM record only. Change-Id: I94bb6dd9191b24b0bd8c0e7d6267de5cd4b82be8 --- .../telephony/cdma/CdmaLteUiccRecords.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/telephony/java/com/android/internal/telephony/cdma/CdmaLteUiccRecords.java b/telephony/java/com/android/internal/telephony/cdma/CdmaLteUiccRecords.java index 58ef747b42d07..73b5d97c8b97f 100755 --- a/telephony/java/com/android/internal/telephony/cdma/CdmaLteUiccRecords.java +++ b/telephony/java/com/android/internal/telephony/cdma/CdmaLteUiccRecords.java @@ -17,6 +17,7 @@ package com.android.internal.telephony.cdma; import static com.android.internal.telephony.TelephonyProperties.PROPERTY_ICC_OPERATOR_ALPHA; import com.android.internal.telephony.GsmAlphabet; +import com.android.internal.telephony.IccCardApplication.AppType; import com.android.internal.telephony.IccFileHandler; import com.android.internal.telephony.IccUtils; import com.android.internal.telephony.MccTable; @@ -438,9 +439,14 @@ public final class CdmaLteUiccRecords extends SIMRecords { @Override public boolean isProvisioned() { - // Look for MDN and MIN field to determine if the SIM is provisioned. - if ((mMdn != null) && (mMin != null)) return true; - - return false; + // If UICC card has CSIM app, look for MDN and MIN field + // to determine if the SIM is provisioned. Otherwise, + // consider the SIM is provisioned. (for case of ordinal + // USIM only UICC.) + if (phone.mIccCard.isApplicationOnIcc(AppType.APPTYPE_CSIM) && + ((mMdn == null) || (mMin == null))) { + return false; + } + return true; } }