diff --git a/telephony/java/com/android/internal/telephony/ISms.aidl b/telephony/java/com/android/internal/telephony/ISms.aidl index 3e8db065ea1d6..6fc64ae6a53a1 100644 --- a/telephony/java/com/android/internal/telephony/ISms.aidl +++ b/telephony/java/com/android/internal/telephony/ISms.aidl @@ -118,6 +118,19 @@ interface ISms { void sendText(String callingPkg, in String destAddr, in String scAddr, in String text, in PendingIntent sentIntent, in PendingIntent deliveryIntent); + /** + * Inject an SMS PDU into the android platform. + * + * @param pdu is the byte array of pdu to be injected into android application framework + * @param format is the format of SMS pdu (android.telephony.SmsMessage.FORMAT_3GPP or + * android.telephony.SmsMessage.FORMAT_3GPP2) + * @param receivedIntent if not NULL this PendingIntent is + * broadcast when the message is successfully received by the + * android application framework. This intent is broadcasted at + * the same time an SMS received from radio is acknowledged back. + */ + void injectSmsPdu(in byte[] pdu, String format, in PendingIntent receivedIntent); + /** * Send a multi-part text based SMS. *