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

Commit bd81e248 authored by Sandeep Gutta's avatar Sandeep Gutta Committed by Gerrit - the friendly Code Review server
Browse files

MSIM: Add support to query SIM state when radio turns ON

Register for radio ON event to query the latest
SIM status of the device.

On targets where persist.radio.apm.sim_not_pwdn set to
'0', sometimes telephony not receiving the unsol SIM state
change and because of that Telephony not sending the SET_UICC
request to RIL, to fix that add support to query SIM state
when RADIO turns ON.

Change-Id: Ib28b6a30d910d266da3056b659974b969ae2c96a
CRs-Fixed: 780788
parent 8bbd44b3
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -143,6 +143,7 @@ public class UiccController extends Handler {
            mCis[i].registerForIccStatusChanged(this, EVENT_ICC_STATUS_CHANGED, index);
            mCis[i].registerForIccStatusChanged(this, EVENT_ICC_STATUS_CHANGED, index);
            // TODO remove this once modem correctly notifies the unsols
            // TODO remove this once modem correctly notifies the unsols
            mCis[i].registerForAvailable(this, EVENT_ICC_STATUS_CHANGED, index);
            mCis[i].registerForAvailable(this, EVENT_ICC_STATUS_CHANGED, index);
            mCis[i].registerForOn(this, EVENT_ICC_STATUS_CHANGED, index);
            mCis[i].registerForNotAvailable(this, EVENT_RADIO_UNAVAILABLE, index);
            mCis[i].registerForNotAvailable(this, EVENT_RADIO_UNAVAILABLE, index);
            if (mOEMHookSimRefresh) {
            if (mOEMHookSimRefresh) {
                mCis[i].registerForSimRefreshEvent(this, EVENT_REFRESH_OEM, index);
                mCis[i].registerForSimRefreshEvent(this, EVENT_REFRESH_OEM, index);