summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2012-05-21 15:45:03 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-21 15:45:03 -0700
commit7e12cf0315f0b58075dcc77c62566b3ca7744362 (patch)
tree5ee1446bc2083558e2e0fdf141af4506a5a6b0e3
parentfca91a8e6aa7f35b2144697c6adf5934da2600b2 (diff)
parent8f669f49faf6084ad0132a02a474209907a069ce (diff)
downloadframeworks_base-7e12cf0315f0b58075dcc77c62566b3ca7744362.zip
frameworks_base-7e12cf0315f0b58075dcc77c62566b3ca7744362.tar.gz
frameworks_base-7e12cf0315f0b58075dcc77c62566b3ca7744362.tar.bz2
Merge "Improve sim ready event handling for CdmaLte." into jb-dev
-rw-r--r--telephony/java/com/android/internal/telephony/IccCard.java8
-rwxr-xr-xtelephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java11
2 files changed, 15 insertions, 4 deletions
diff --git a/telephony/java/com/android/internal/telephony/IccCard.java b/telephony/java/com/android/internal/telephony/IccCard.java
index d738d7b..fcf2f92 100644
--- a/telephony/java/com/android/internal/telephony/IccCard.java
+++ b/telephony/java/com/android/internal/telephony/IccCard.java
@@ -579,10 +579,14 @@ public class IccCard {
mHandler.sendMessage(mHandler.obtainMessage(EVENT_CARD_ADDED, null));
}
- // Call onReady only when SIM or RUIM card becomes ready (not NV)
+ // Call onReady Record(s) on the IccCard becomes ready (not NV)
if (oldState != State.READY && newState == State.READY &&
(is3gpp || isSubscriptionFromIccCard)) {
- mIccFileHandler.setAid(getAid());
+ if (!(mIccFileHandler instanceof CdmaLteUiccFileHandler)) {
+ // CdmaLteUicc File Handler deals with both USIM and CSIM.
+ // Do not lock onto one AID for now.
+ mIccFileHandler.setAid(getAid());
+ }
mIccRecords.onReady();
}
}
diff --git a/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java b/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
index 9b4d172..25cd112 100755
--- a/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
+++ b/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
@@ -293,8 +293,15 @@ public class CdmaServiceStateTracker extends ServiceStateTracker {
EVENT_RUIM_RECORDS_LOADED, null);
mNeedToRegForRuimLoaded = false;
}
- if (DBG) log("Receive EVENT_RUIM_READY and Send Request getCDMASubscription.");
- getSubscriptionInfoAndStartPollingThreads();
+
+ if (phone.getLteOnCdmaMode() == Phone.LTE_ON_CDMA_TRUE) {
+ // Subscription will be read from SIM I/O
+ if (DBG) log("Receive EVENT_RUIM_READY");
+ pollState();
+ } else {
+ if (DBG) log("Receive EVENT_RUIM_READY and Send Request getCDMASubscription.");
+ getSubscriptionInfoAndStartPollingThreads();
+ }
phone.prepareEri();
break;