File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
telephony/java/com/android/internal/telephony Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -579,10 +579,14 @@ private void handleIccCardStatus(IccCardStatus newCardStatus) {
579579 mHandler .sendMessage (mHandler .obtainMessage (EVENT_CARD_ADDED , null ));
580580 }
581581
582- // Call onReady only when SIM or RUIM card becomes ready (not NV)
582+ // Call onReady Record(s) on the IccCard becomes ready (not NV)
583583 if (oldState != State .READY && newState == State .READY &&
584584 (is3gpp || isSubscriptionFromIccCard )) {
585- mIccFileHandler .setAid (getAid ());
585+ if (!(mIccFileHandler instanceof CdmaLteUiccFileHandler )) {
586+ // CdmaLteUicc File Handler deals with both USIM and CSIM.
587+ // Do not lock onto one AID for now.
588+ mIccFileHandler .setAid (getAid ());
589+ }
586590 mIccRecords .onReady ();
587591 }
588592 }
Original file line number Diff line number Diff line change @@ -293,8 +293,15 @@ public void handleMessage (Message msg) {
293293 EVENT_RUIM_RECORDS_LOADED , null );
294294 mNeedToRegForRuimLoaded = false ;
295295 }
296- if (DBG ) log ("Receive EVENT_RUIM_READY and Send Request getCDMASubscription." );
297- getSubscriptionInfoAndStartPollingThreads ();
296+
297+ if (phone .getLteOnCdmaMode () == Phone .LTE_ON_CDMA_TRUE ) {
298+ // Subscription will be read from SIM I/O
299+ if (DBG ) log ("Receive EVENT_RUIM_READY" );
300+ pollState ();
301+ } else {
302+ if (DBG ) log ("Receive EVENT_RUIM_READY and Send Request getCDMASubscription." );
303+ getSubscriptionInfoAndStartPollingThreads ();
304+ }
298305 phone .prepareEri ();
299306 break ;
300307
You can’t perform that action at this time.
0 commit comments