summaryrefslogtreecommitdiffstats
path: root/telephony/java/android
diff options
context:
space:
mode:
authorWileen Chiu <wileenc@codeaurora.org>2015-12-04 14:37:49 -0800
committerSteve Kondik <steve@cyngn.com>2016-05-21 16:24:14 -0700
commited1ce246e4a34454225cad1e2c2d619a3d3f42b9 (patch)
tree2f926a9d168b4f6dfaa8254ea84c92616c6753fd /telephony/java/android
parentd9d67fdbc492e99af898161dfada5c2024636ac8 (diff)
downloadframeworks_base-ed1ce246e4a34454225cad1e2c2d619a3d3f42b9.zip
frameworks_base-ed1ce246e4a34454225cad1e2c2d619a3d3f42b9.tar.gz
frameworks_base-ed1ce246e4a34454225cad1e2c2d619a3d3f42b9.tar.bz2
Add P2 option in openLogicalChannel.
- Add support for iccOpenLogicalChannelWithP2. - Needed to support OMAPI 3.0 defined by SIM Alliance. Change-Id: I2ab6cfb7a54c451f32936df51b8298f35a6dc67f CRs-Fixed: 948787
Diffstat (limited to 'telephony/java/android')
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 7afaf7e..5ec6950 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -3069,6 +3069,50 @@ public class TelephonyManager {
}
/**
+ * Opens a logical channel to the ICC card
+ *
+ * Input parameters equivalent to TS 27.007 AT+CCHO command.
+ *
+ * @param AID application id. See ETSI 102.221 and 101.220.
+ * @param p2 byte P2 parameter
+ * @return an IccOpenLogicalChannelResponse object
+ * @hide
+ */
+ public IccOpenLogicalChannelResponse iccOpenLogicalChannel(String AID, byte p2) {
+ try {
+ ITelephony telephony = getITelephony();
+ if (telephony != null) {
+ return telephony.iccOpenLogicalChannelWithP2(AID, p2);
+ }
+ } catch (RemoteException ex) {
+ } catch (NullPointerException ex) {
+ }
+ return null;
+ }
+
+ /**
+ * Opens a logical channel to the ICC card for the given subId
+ *
+ * @param subId subid to send the command to
+ * @param AID applcation id. See ETSI 102.221 and 101.220.
+ * @param p2 byte P2 parameter
+ * @return an IccOpenLogicalChannelResponse object
+ * @hide
+ */
+ public IccOpenLogicalChannelResponse iccOpenLogicalChannel(int subId,
+ String AID, byte p2) {
+ try {
+ ITelephony telephony = getITelephony();
+ if (telephony != null) {
+ return telephony.iccOpenLogicalChannelUsingSubIdWithP2(subId, AID, p2);
+ }
+ } catch (RemoteException ex) {
+ } catch (NullPointerException ex) {
+ }
+ return null;
+ }
+
+ /**
* Closes a previously opened logical channel to the ICC card.
*
* Input parameters equivalent to TS 27.007 AT+CCHC command.