summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Kucera <pavel@doshaska.net>2010-12-04 02:46:18 -0800
committerDanny Baumann <dannybaumann@web.de>2012-06-07 11:32:27 +0200
commitcebdb5fb70b83345aab6c4ca8a1da7aa9b954664 (patch)
treee49c374dbade9f8ab87ffda5ef4684805c4a7e6e
parent7e3ec79dbdbdbd44bd00dddd935c6f43de6d5106 (diff)
downloadframeworks_base-cebdb5fb70b83345aab6c4ca8a1da7aa9b954664.zip
frameworks_base-cebdb5fb70b83345aab6c4ca8a1da7aa9b954664.tar.gz
frameworks_base-cebdb5fb70b83345aab6c4ca8a1da7aa9b954664.tar.bz2
don't set the reserved bits0 and 1 for UCS2 encoded messages
fixes SMS troubles for Chinese users 0x0b was not a Class 3 specification as the bit 4 was set to 0
-rw-r--r--telephony/java/com/android/internal/telephony/gsm/SmsMessage.java4
1 files 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 136e2ea..f635890 100644
--- a/telephony/java/com/android/internal/telephony/gsm/SmsMessage.java
+++ b/telephony/java/com/android/internal/telephony/gsm/SmsMessage.java
@@ -324,8 +324,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)