From df0c2a94b51ead16a8b7c7b3159295bc978d9831 Mon Sep 17 00:00:00 2001 From: "sj0110.kim@samsung.com(sophia kim)" Date: Thu, 29 Sep 2011 21:20:30 +0900 Subject: [PATCH] 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 --- .../java/com/android/internal/telephony/gsm/SmsMessage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telephony/java/com/android/internal/telephony/gsm/SmsMessage.java b/telephony/java/com/android/internal/telephony/gsm/SmsMessage.java index ea030e6bb0476..2da9642d27e00 100644 --- a/telephony/java/com/android/internal/telephony/gsm/SmsMessage.java +++ b/telephony/java/com/android/internal/telephony/gsm/SmsMessage.java @@ -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)