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

Commit ebf33421 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "MSim: Add Multi Sim support for SEEK"

parents 87a67dae 7c4b5764
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);
}