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

Commit 62a1dd3d authored by ur name's avatar ur name Committed by Tom Marshall
Browse files

MSim: Add Multi Sim support for SEEK

MSim support for the following apis has been added:
1. transmitIccLogicalChannel
2. transmitIccBasicChannel
3. openIccLogicalChannel
4. closeIccLogicalChannel
5. getLastError
6. transmitIccSimIO
7. getATR

Change-Id: I14fd1ccc08a9c89d655c7eb9f92a194c82138d3b
parent 55dcf4e0
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
@@ -382,5 +382,45 @@ interface ITelephonyMSim {
     * @return true if success
     */
    boolean setDefaultDataSubscription(int subscription);

    /**
     * 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, int subscription);

    /**
     * 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,
            int subscription);

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

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

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

    /**
     * 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,
            int subscription);

    /**
     * Get ATR (Answer To Reset; as per ISO/IEC 7816-4) from SIM card
     */
    byte[] getATR(int subscription);
}