Merge "Add p2 option in openLogicalChannel." am: f954f2d5cc
am: 7c6fa75512
am: 9c113787a4
Change-Id: Iad26507830edceb39433766d7b6e3f0bb708c0e2
This commit is contained in:
@ -40098,7 +40098,8 @@ package android.telephony {
|
||||
method public boolean hasIccCard();
|
||||
method public boolean iccCloseLogicalChannel(int);
|
||||
method public byte[] iccExchangeSimIO(int, int, int, int, int, java.lang.String);
|
||||
method public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel(java.lang.String);
|
||||
method public deprecated android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel(java.lang.String);
|
||||
method public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel(java.lang.String, int);
|
||||
method public java.lang.String iccTransmitApduBasicChannel(int, int, int, int, int, java.lang.String);
|
||||
method public java.lang.String iccTransmitApduLogicalChannel(int, int, int, int, int, int, java.lang.String);
|
||||
method public boolean isConcurrentVoiceAndDataSupported();
|
||||
|
@ -43590,7 +43590,8 @@ package android.telephony {
|
||||
method public boolean hasIccCard();
|
||||
method public boolean iccCloseLogicalChannel(int);
|
||||
method public byte[] iccExchangeSimIO(int, int, int, int, int, java.lang.String);
|
||||
method public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel(java.lang.String);
|
||||
method public deprecated android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel(java.lang.String);
|
||||
method public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel(java.lang.String, int);
|
||||
method public java.lang.String iccTransmitApduBasicChannel(int, int, int, int, int, java.lang.String);
|
||||
method public java.lang.String iccTransmitApduLogicalChannel(int, int, int, int, int, int, java.lang.String);
|
||||
method public boolean isConcurrentVoiceAndDataSupported();
|
||||
|
@ -40314,7 +40314,8 @@ package android.telephony {
|
||||
method public boolean hasIccCard();
|
||||
method public boolean iccCloseLogicalChannel(int);
|
||||
method public byte[] iccExchangeSimIO(int, int, int, int, int, java.lang.String);
|
||||
method public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel(java.lang.String);
|
||||
method public deprecated android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel(java.lang.String);
|
||||
method public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel(java.lang.String, int);
|
||||
method public java.lang.String iccTransmitApduBasicChannel(int, int, int, int, int, java.lang.String);
|
||||
method public java.lang.String iccTransmitApduLogicalChannel(int, int, int, int, int, int, java.lang.String);
|
||||
method public boolean isConcurrentVoiceAndDataSupported();
|
||||
|
@ -3650,9 +3650,28 @@ public class TelephonyManager {
|
||||
*
|
||||
* @param AID Application id. See ETSI 102.221 and 101.220.
|
||||
* @return an IccOpenLogicalChannelResponse object.
|
||||
* @deprecated Replaced by {@link #iccOpenLogicalChannel(String, int)}
|
||||
*/
|
||||
@Deprecated
|
||||
public IccOpenLogicalChannelResponse iccOpenLogicalChannel(String AID) {
|
||||
return iccOpenLogicalChannel(getSubId(), AID);
|
||||
return iccOpenLogicalChannel(getSubId(), AID, -1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens a logical channel to the ICC card.
|
||||
*
|
||||
* Input parameters equivalent to TS 27.007 AT+CCHO command.
|
||||
*
|
||||
* <p>Requires Permission:
|
||||
* {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE}
|
||||
* Or the calling app has carrier privileges. @see #hasCarrierPrivileges
|
||||
*
|
||||
* @param AID Application id. See ETSI 102.221 and 101.220.
|
||||
* @param p2 P2 parameter (described in ISO 7816-4).
|
||||
* @return an IccOpenLogicalChannelResponse object.
|
||||
*/
|
||||
public IccOpenLogicalChannelResponse iccOpenLogicalChannel(String AID, int p2) {
|
||||
return iccOpenLogicalChannel(getSubId(), AID, p2);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -3666,14 +3685,15 @@ public class TelephonyManager {
|
||||
*
|
||||
* @param subId The subscription to use.
|
||||
* @param AID Application id. See ETSI 102.221 and 101.220.
|
||||
* @param p2 P2 parameter (described in ISO 7816-4).
|
||||
* @return an IccOpenLogicalChannelResponse object.
|
||||
* @hide
|
||||
*/
|
||||
public IccOpenLogicalChannelResponse iccOpenLogicalChannel(int subId, String AID) {
|
||||
public IccOpenLogicalChannelResponse iccOpenLogicalChannel(int subId, String AID, int p2) {
|
||||
try {
|
||||
ITelephony telephony = getITelephony();
|
||||
if (telephony != null)
|
||||
return telephony.iccOpenLogicalChannel(subId, AID);
|
||||
return telephony.iccOpenLogicalChannel(subId, AID, p2);
|
||||
} catch (RemoteException ex) {
|
||||
} catch (NullPointerException ex) {
|
||||
}
|
||||
|
@ -623,9 +623,10 @@ interface ITelephony {
|
||||
*
|
||||
* @param subId The subscription to use.
|
||||
* @param AID Application id. See ETSI 102.221 and 101.220.
|
||||
* @param p2 P2 parameter (described in ISO 7816-4).
|
||||
* @return an IccOpenLogicalChannelResponse object.
|
||||
*/
|
||||
IccOpenLogicalChannelResponse iccOpenLogicalChannel(int subId, String AID);
|
||||
IccOpenLogicalChannelResponse iccOpenLogicalChannel(int subId, String AID, int p2);
|
||||
|
||||
/**
|
||||
* Closes a previously opened logical channel to the ICC card.
|
||||
|
Reference in New Issue
Block a user