summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorAnil Muthineni <anilmuthineni@google.com>2014-06-03 10:44:31 -0700
committerAnil Muthineni <anilmuthineni@google.com>2014-06-12 17:44:22 +0000
commit5d3c5fc115e8b987e490b332d96537cea3536f13 (patch)
tree3e5b06d1f8cce680e107fd4dddb5657d05b51783 /telephony
parent9ad537d7dbeae9537978072ebe78a78c9f319237 (diff)
downloadframeworks_base-5d3c5fc115e8b987e490b332d96537cea3536f13.zip
frameworks_base-5d3c5fc115e8b987e490b332d96537cea3536f13.tar.gz
frameworks_base-5d3c5fc115e8b987e490b332d96537cea3536f13.tar.bz2
Add api to inject SMS PDUs
Change-Id: I58a518a7a6d6f43fef3d989bc0c8b21959404ed0
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/com/android/internal/telephony/ISms.aidl13
1 files changed, 13 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/ISms.aidl b/telephony/java/com/android/internal/telephony/ISms.aidl
index 3e8db06..6fc64ae 100644
--- a/telephony/java/com/android/internal/telephony/ISms.aidl
+++ b/telephony/java/com/android/internal/telephony/ISms.aidl
@@ -119,6 +119,19 @@ interface ISms {
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 <code>PendingIntent</code> 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.
*
* @param destinationAddress the address to send the message to