From 9ddd2e78cb82d3c7e18aeba325bb8733cdb3fb1d Mon Sep 17 00:00:00 2001 From: Cheuksan Wang Date: Thu, 2 Apr 2015 15:45:47 -0700 Subject: [PATCH] Update the SmsMessage.createFromPdu() API call Deprecate the old createFromPdu(byte[] pdu) call because it just guesses the format of the PDU. Instead, unhide the createFromPdu(byte[] pdu, String format) call which specifies the PDU format. BUG: 20015718 Change-Id: I133fc17bf5af4f762fea3106e75beea58185fd5d --- api/current.txt | 3 ++- api/system-current.txt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/current.txt b/api/current.txt index 5e50d803ccafd..ae21bb95f420e 100644 --- a/api/current.txt +++ b/api/current.txt @@ -29298,7 +29298,8 @@ package android.telephony { public class SmsMessage { method public static int[] calculateLength(java.lang.CharSequence, boolean); method public static int[] calculateLength(java.lang.String, boolean); - method public static android.telephony.SmsMessage createFromPdu(byte[]); + method public static deprecated android.telephony.SmsMessage createFromPdu(byte[]); + method public static android.telephony.SmsMessage createFromPdu(byte[], java.lang.String); method public java.lang.String getDisplayMessageBody(); method public java.lang.String getDisplayOriginatingAddress(); method public java.lang.String getEmailBody(); diff --git a/api/system-current.txt b/api/system-current.txt index d94bdcb9c6fac..582e7e4096762 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -31167,7 +31167,8 @@ package android.telephony { public class SmsMessage { method public static int[] calculateLength(java.lang.CharSequence, boolean); method public static int[] calculateLength(java.lang.String, boolean); - method public static android.telephony.SmsMessage createFromPdu(byte[]); + method public static deprecated android.telephony.SmsMessage createFromPdu(byte[]); + method public static android.telephony.SmsMessage createFromPdu(byte[], java.lang.String); method public java.lang.String getDisplayMessageBody(); method public java.lang.String getDisplayOriginatingAddress(); method public java.lang.String getEmailBody();