summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Nguyen <tnd@google.com>2023-01-05 17:19:37 -0800
committerSooraj Sasindran <sasindran@google.com>2023-01-07 00:53:33 +0000
commitd438189d9d8b48ffa28bb798f4a14d270a239961 (patch)
tree36b7cb0b8d660b10237ad6feeca5190f991d8d46
parent941a35f1af86b343ab6eca1a7829b550b017c4a9 (diff)
downloadcts-d438189d9d8b48ffa28bb798f4a14d270a239961.tar.gz
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: I26e7d4ffcf1e2f21a2c8c04f1da5d934c60aba49
-rw-r--r--tests/tests/telephony/current/src/android/telephony/cts/VisualVoicemailServiceTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tests/telephony/current/src/android/telephony/cts/VisualVoicemailServiceTest.java b/tests/tests/telephony/current/src/android/telephony/cts/VisualVoicemailServiceTest.java
index f77b879effe..f9691828646 100644
--- a/tests/tests/telephony/current/src/android/telephony/cts/VisualVoicemailServiceTest.java
+++ b/tests/tests/telephony/current/src/android/telephony/cts/VisualVoicemailServiceTest.java
@@ -532,7 +532,8 @@ public class VisualVoicemailServiceTest {
for (SmsMessage message : messages) {
String body = message.getMessageBody();
- if ((body == null || message.getReceivedEncodingType() == ENCODING_8BIT)
+ if ((body == null || (message.is3gpp()
+ && message.getReceivedEncodingType() == ENCODING_8BIT))
&& message.getUserData() != null) {
Log.d(TAG, "onReceive decode using UTF-8");
// Attempt to interpret the user data as UTF-8. UTF-8 string over data SMS using