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

Commit 7ed90268 authored by Chaitanya Saggurthi's avatar Chaitanya Saggurthi Committed by Bruno Martins
Browse files

Add support for getAtr api

Add support to query the ATR from SIM Card

CRs-Fixed: 2055157

Change-Id: I7a0a1c5c92226cce70cc67c36c2df85ef205f70a
parent e87303da
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1377,4 +1377,15 @@ interface ITelephony {
     * @hide
     */
    SignalStrength getSignalStrength(int subId);

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

    /**
     * Get ATR (Answer To Reset; as per ISO/IEC 7816-4) from SIM card
     * for a particular subId.
     */
    byte[] getAtrUsingSubId(int subId);
}
+1 −0
Original line number Diff line number Diff line
@@ -417,6 +417,7 @@ cat include/telephony/ril.h | \
    int RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION = 141;
    int RIL_REQUEST_START_NETWORK_SCAN = 142;
    int RIL_REQUEST_STOP_NETWORK_SCAN = 143;
    int RIL_REQUEST_SIM_QUERY_ATR = 200;

    int RIL_RESPONSE_ACKNOWLEDGEMENT = 800;