summaryrefslogtreecommitdiffstats
path: root/telephony/java/com
diff options
context:
space:
mode:
authorShishir Agrawal <shishir@google.com>2014-03-14 09:32:22 -0700
committerShishir Agrawal <shishir@google.com>2014-03-14 09:38:03 -0700
commit37384dedab38239433a41641fe87fc3e51bb6976 (patch)
tree1797d430d9abe5065bb9f5a51f724aeb2ffb24f7 /telephony/java/com
parent121114abe4b17c9515ebdfb2953576f8245199d6 (diff)
downloadframeworks_base-37384dedab38239433a41641fe87fc3e51bb6976.zip
frameworks_base-37384dedab38239433a41641fe87fc3e51bb6976.tar.gz
frameworks_base-37384dedab38239433a41641fe87fc3e51bb6976.tar.bz2
Modify TelephonyManager to expose sendEnvelopeWithStatus instead of sendEnvelope.
The RIL sendEnvelope command does not return the response from the SIM while the sendEnvelopeWithStatus does. Since the response is required for certain envelope commands, its better to expose sendEnvelopeWithStatus. Change-Id: I209bfc59e396bb6f91345d6f99c51cfa35f2d650
Diffstat (limited to 'telephony/java/com')
-rw-r--r--telephony/java/com/android/internal/telephony/ITelephony.aidl9
1 files changed, 5 insertions, 4 deletions
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl
index 4c0f259..e2abb9a 100644
--- a/telephony/java/com/android/internal/telephony/ITelephony.aidl
+++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl
@@ -369,15 +369,16 @@ interface ITelephony {
int p1, int p2, int p3, String data);
/**
- * Send ENVELOPE to the SIM, after processing a proactive command sent by
- * the SIM.
+ * Send ENVELOPE to the SIM and returns the response.
*
* @param contents String containing SAT/USAT response in hexadecimal
* format starting with command tag. See TS 102 223 for
* details.
- * @return The APDU response from the ICC card.
+ * @return The APDU response from the ICC card, with the last 4 bytes
+ * being the status word. If the command fails, returns an empty
+ * string.
*/
- String sendEnvelope(String content);
+ String sendEnvelopeWithStatus(String content);
/**
* Read one of the NV items defined in {@link RadioNVItems} / {@code ril_nv_items.h}.