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

Commit 044afb93 authored by Mengjun Leng's avatar Mengjun Leng Committed by Brad Ebinger
Browse files

Fix failing to send SMS with SMSC over IMS

The encoded SMSC is passed by string, and lower layer expects
hex string, but it cannot be converted from vendor because
of getting bytes from string based on different charset.

To fix it, pass hex string for SMSC over IMS.

Test: Smoke Test
Bug: 120003768

Merged-In: If35709589e7ac303563ab25d4a56a7793d2e0910
Change-Id: If35709589e7ac303563ab25d4a56a7793d2e0910
parent e2693cf6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ import com.android.ims.ImsManager;
import com.android.internal.annotations.VisibleForTesting;
import com.android.internal.telephony.GsmAlphabet.TextEncodingDetails;
import com.android.internal.telephony.metrics.TelephonyMetrics;
import com.android.internal.telephony.uicc.IccUtils;
import com.android.internal.telephony.util.SMSDispatcherUtil;
import com.android.telephony.Rlog;

@@ -400,7 +401,7 @@ public class ImsSmsDispatcher extends SMSDispatcher {
                    token,
                    tracker.mMessageRef,
                    format,
                    smsc != null ? new String(smsc) : null,
                    smsc != null ? IccUtils.bytesToHexString(smsc) : null,
                    isRetry,
                    pdu);
            mMetrics.writeImsServiceSendSms(mPhone.getPhoneId(), format,