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
This commit is contained in:
sj0110.kim@samsung.com(sophia kim)
2011-09-29 21:20:30 +09:00
committed by Jake Hamby
parent f0f7a9139b
commit df0c2a94b5

View File

@@ -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)