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

Commit 4eb4e0b0 authored by Avinash Nalluri's avatar Avinash Nalluri Committed by dianlujitao
Browse files

Add SMS support in 5G SA

 - Since 5G SA is PS only, if data RAT is NR, allow SMS over NAS even though voice registration state is Out of Service.

Change-Id: If182b1024bda1116e26ba08cdccb951278a83d42
CRs-Fixed: 2475186
parent b985923b
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -189,9 +189,12 @@ public final class GsmSMSDispatcher extends SMSDispatcher {
        int ss = mPhone.getServiceState().getState();
        // if sms over IMS is not supported on data and voice is not available...
        if (!isIms() && ss != ServiceState.STATE_IN_SERVICE) {
            if(mPhone.getServiceState().getRilDataRadioTechnology()
                    != ServiceState.RIL_RADIO_TECHNOLOGY_NR) {
                tracker.onFailed(mContext, getNotInServiceError(ss), 0/*errorCode*/);
                return;
            }
        }

        byte smsc[] = (byte[]) map.get("smsc");
        Message reply = obtainMessage(EVENT_SEND_SMS_COMPLETE, tracker);