diff options
author | Kazuhiro Ondo <kazuhiro.ondo@motorola.com> | 2011-07-09 16:01:10 -0500 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2011-07-10 19:18:21 -0700 |
commit | e5d891e84e7ac3bfd56258e37e3f8b77f24d3045 (patch) | |
tree | c84d5b88993757dc1d85da36f01fe3039c7f1489 /telephony | |
parent | 64ba5eaa40614877c679b3fbaaa3c2efd17d50d2 (diff) | |
download | frameworks_base-e5d891e84e7ac3bfd56258e37e3f8b77f24d3045.zip frameworks_base-e5d891e84e7ac3bfd56258e37e3f8b77f24d3045.tar.gz frameworks_base-e5d891e84e7ac3bfd56258e37e3f8b77f24d3045.tar.bz2 |
Add a property so that CSIM provision check can be bypassed
To support test environment where a call box is used with
non-provisioned SIM.
Bug: 5010622
Change-Id: I0dd2d3c2d199f600e5979c865f97b41e2fbb706d
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/internal/telephony/TelephonyProperties.java | 7 | ||||
-rwxr-xr-x | telephony/java/com/android/internal/telephony/cdma/CdmaLteUiccRecords.java | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/TelephonyProperties.java b/telephony/java/com/android/internal/telephony/TelephonyProperties.java index 4309309..60cf9b7 100644 --- a/telephony/java/com/android/internal/telephony/TelephonyProperties.java +++ b/telephony/java/com/android/internal/telephony/TelephonyProperties.java @@ -166,4 +166,11 @@ public interface TelephonyProperties * the value of config_sms_capable */ static final String PROPERTY_SMS_SEND = "telephony.sms.send"; + + /** + * Set to true to indicate a test CSIM card is used in the device. + * This property is for testing purpose only. This should not be defined + * in commercial configuration. + */ + static final String PROPERTY_TEST_CSIM = "persist.radio.test-csim"; } diff --git a/telephony/java/com/android/internal/telephony/cdma/CdmaLteUiccRecords.java b/telephony/java/com/android/internal/telephony/cdma/CdmaLteUiccRecords.java index 10515f7..fc6abad 100755 --- a/telephony/java/com/android/internal/telephony/cdma/CdmaLteUiccRecords.java +++ b/telephony/java/com/android/internal/telephony/cdma/CdmaLteUiccRecords.java @@ -16,6 +16,7 @@ package com.android.internal.telephony.cdma; import static com.android.internal.telephony.TelephonyProperties.PROPERTY_ICC_OPERATOR_ALPHA; +import static com.android.internal.telephony.TelephonyProperties.PROPERTY_TEST_CSIM; import com.android.internal.telephony.GsmAlphabet; import com.android.internal.telephony.IccCardApplication.AppType; import com.android.internal.telephony.IccFileHandler; @@ -447,6 +448,12 @@ public final class CdmaLteUiccRecords extends SIMRecords { // to determine if the SIM is provisioned. Otherwise, // consider the SIM is provisioned. (for case of ordinal // USIM only UICC.) + // If PROPERTY_TEST_CSIM is defined, bypess provision check + // and consider the SIM is provisioned. + if (SystemProperties.getBoolean(PROPERTY_TEST_CSIM, false)) { + return true; + } + if (phone.mIccCard.isApplicationOnIcc(AppType.APPTYPE_CSIM) && ((mMdn == null) || (mMin == null))) { return false; |