diff options
author | Evan Charlton <evanc@google.com> | 2014-05-14 22:07:47 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-14 22:07:47 +0000 |
commit | 605e4942d66e69134495a24e925dc30549d2b507 (patch) | |
tree | acf524312f4ac6d42f80e8534e25c9b19d74cbdb /telephony | |
parent | 02adbb15069dbfb777cce0613d2f2b506259d65f (diff) | |
parent | c0d138ab86459883c46551130190d97f76bd7e2f (diff) | |
download | frameworks_base-605e4942d66e69134495a24e925dc30549d2b507.zip frameworks_base-605e4942d66e69134495a24e925dc30549d2b507.tar.gz frameworks_base-605e4942d66e69134495a24e925dc30549d2b507.tar.bz2 |
Merge "Revert "Modify TelephonyManager to expose sendEnvelopeWithStatus instead of sendEnvelope.""
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 11 | ||||
-rw-r--r-- | telephony/java/com/android/internal/telephony/ITelephony.aidl | 9 |
2 files changed, 9 insertions, 11 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index cbd3ff8..3593001 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -1859,7 +1859,8 @@ public class TelephonyManager { } /** - * Send ENVELOPE to the SIM and return the response. + * Send ENVELOPE to the SIM, after processing a proactive command sent by + * the SIM. * * <p>Requires Permission: * {@link android.Manifest.permission#SIM_COMMUNICATION SIM_COMMUNICATION} @@ -1867,13 +1868,11 @@ public class TelephonyManager { * @param content 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, with the last 4 bytes - * being the status word. If the command fails, returns an empty - * string. + * @return The APDU response from the ICC card. */ - public String sendEnvelopeWithStatus(String content) { + public String sendEnvelope(String content) { try { - return getITelephony().sendEnvelopeWithStatus(content); + return getITelephony().sendEnvelope(content); } catch (RemoteException ex) { } catch (NullPointerException ex) { } diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl index ab2a9b8..4341e0e 100644 --- a/telephony/java/com/android/internal/telephony/ITelephony.aidl +++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl @@ -373,16 +373,15 @@ interface ITelephony { int p1, int p2, int p3, String data); /** - * Send ENVELOPE to the SIM and returns the response. + * Send ENVELOPE to the SIM, after processing a proactive command sent by + * the SIM. * * @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, with the last 4 bytes - * being the status word. If the command fails, returns an empty - * string. + * @return The APDU response from the ICC card. */ - String sendEnvelopeWithStatus(String content); + String sendEnvelope(String content); /** * Read one of the NV items defined in {@link RadioNVItems} / {@code ril_nv_items.h}. |