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

Commit 4d78e51b authored by Mengjun Leng's avatar Mengjun Leng Committed by Mengjun Leng
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

Change-Id: If35709589e7ac303563ab25d4a56a7793d2e0910
parent 7251af1f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -40,6 +40,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 java.util.HashMap;
@@ -404,7 +405,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,