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

Commit df0c2a94 authored by sj0110.kim@samsung.com(sophia kim)'s avatar sj0110.kim@samsung.com(sophia kim) Committed by Jake Hamby
Browse files

Change DCS of MO SMS to the correct value for UCS-2 encoding.

An incorrect value for TP-Data-Coding-Scheme was used for MO SMS with
UCS-2 encoding. According to 3GPP TS 23.038 section 4, when bit 4 is
set to 0, bits 0 and 1 are reserved and have no message class meaning.
We were setting those bits to 1, when they should be set to 0.

This change is required to pass a GCF test case.

Change-Id: If47361f95b0e14accc6220854783dcff3d82abf6
parent f0f7a913
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -300,8 +300,8 @@ public class SmsMessage extends SmsMessageBase {
                return null;
            }
            // TP-Data-Coding-Scheme
            // Class 3, UCS-2 encoding, uncompressed
            bo.write(0x0b);
            // UCS-2 encoding, uncompressed
            bo.write(0x08);
        }

        // (no TP-Validity-Period)