Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55dcf4e0 authored by Satish Kumar Singh's avatar Satish Kumar Singh Committed by Gerrit Code Review
Browse files

Support for SEEK on Android

Following apis have been introduced to support
SEEK (Secure Element Evaluation Kit) on Android:
1. transmitIccLogicalChannel
2. transmitIccBasicChannel
3. openIccLogicalChannel
4. closeIccLogicalChannel
5. getLastError
6. transmitIccSimIO
7. getATR

Conflicts:
	telephony/java/com/android/internal/telephony/ITelephony.aidl

Change-Id: Idca9b47daa646902b74e37e7841d9d1506610887
parent a26321fe
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
@@ -339,6 +339,45 @@ interface ITelephony {
     */
    void setCellInfoListRate(int rateInMillis);

    /**
     * Returns the response APDU for a command APDU sent to a logical channel
     */
    String transmitIccLogicalChannel(int cla, int command, int channel,
            int p1, int p2, int p3, String data);

    /**
     * Returns the response APDU for a command APDU sent to the basic channel
     */
    String transmitIccBasicChannel(int cla, int command,
            int p1, int p2, int p3, String data);

    /**
     * Returns the channel id of the logical channel,
     * Returns 0 on error.
     */
    int openIccLogicalChannel(String AID);

    /**
     * Return true if logical channel was closed successfully
     */
    boolean closeIccLogicalChannel(int channel);

    /**
     * Returns the error code of the last error occured.
     * Currently only used for openIccLogicalChannel
     */
    int getLastError();

    /**
     * Returns the response APDU for a command APDU sent through SIM_IO
     */
    byte[] transmitIccSimIO(int fileID, int command,
            int p1, int p2, int p3, String filePath);

    /**
     * Get ATR (Answer To Reset; as per ISO/IEC 7816-4) from SIM card
     */
     byte[] getATR();
    /**
     * Put a call on hold.
     */
+8 −0
Original line number Diff line number Diff line
@@ -67,6 +67,9 @@ public interface RILConstants {
    int SS_MODIFIED_TO_USSD = 24;             /* SS request modified to USSD */
    int SS_MODIFIED_TO_SS = 25;               /* SS request modified to different SS request */
    int SUBSCRIPTION_NOT_SUPPORTED = 26;      /* Subscription not supported */
    int MISSING_RESOURCE = 27;
    int NO_SUCH_ELEMENT = 28;
    int INVALID_PARAMETER = 29;

    /* NETWORK_MODE_* See ril.h RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE */
    int NETWORK_MODE_WCDMA_PREF     = 0; /* GSM/WCDMA (WCDMA preferred) */
@@ -292,6 +295,11 @@ cat include/telephony/ril.h | \
    int RIL_REQUEST_GET_DATA_CALL_PROFILE = 114;
    int RIL_REQUEST_SET_UICC_SUBSCRIPTION = 115;
    int RIL_REQUEST_SET_DATA_SUBSCRIPTION = 116;
    int RIL_REQUEST_SIM_TRANSMIT_BASIC = 117;
    int RIL_REQUEST_SIM_OPEN_CHANNEL = 118;
    int RIL_REQUEST_SIM_CLOSE_CHANNEL = 119;
    int RIL_REQUEST_SIM_TRANSMIT_CHANNEL = 120;
    int RIL_REQUEST_SIM_GET_ATR = 121;

    int RIL_UNSOL_RESPONSE_BASE = 1000;
    int RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED = 1000;