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

Commit 9883f7eb authored by Thomas Nguyen's avatar Thomas Nguyen Committed by Sooraj Sasindran
Browse files

Apply the fix for 8-bit decoding error to only 3gpp messages

Bug: 262735040
Test: atest android.telephony.cts.VisualVoicemailServiceTest
            Verified with live test that voice mail is received

Change-Id: Icf64b668a11a1d7cb7b7c28b4937695ab8997929
parent 94085d45
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -305,7 +305,8 @@ public class VisualVoicemailSmsFilter {
             * received message. However, the message is most likely encoded with UTF-8. Therefore,
             * we need to retry decoding the received message with UTF-8.
             */
            if ((body == null || message.getReceivedEncodingType() == ENCODING_8BIT)
            if ((body == null || (message.is3gpp()
                    && message.getReceivedEncodingType() == ENCODING_8BIT))
                    && message.getUserData() != null) {
                Log.d(TAG, "getFullMessage decode using UTF-8");
                // Attempt to interpret the user data as UTF-8. UTF-8 string over data SMS using