Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f669f49 authored by Kazuhiro Ondo's avatar Kazuhiro Ondo Committed by Wink Saville
Browse files

Improve sim ready event handling for CdmaLte.

bug: 6463933
Change-Id: I751f760badb87c1fe4b78fd68921257cec4a4b9d
parent d7e4ae48
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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)) {
            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();
        }
    }
+9 −2
Original line number Diff line number Diff line
@@ -293,8 +293,15 @@ public class CdmaServiceStateTracker extends ServiceStateTracker {
                        EVENT_RUIM_RECORDS_LOADED, null);
                mNeedToRegForRuimLoaded = false;
            }

            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;