diff options
author | Preeti Ahuja <preetia@codeaurora.org> | 2014-08-21 16:26:24 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-10-06 11:46:09 -0700 |
commit | dbff97e8779011f7a24efe8c7b6f0ba32979e780 (patch) | |
tree | d4c333728408e4c726d223789ae69fd335061fad | |
parent | f0b1e1cf25ee16898988a8a8ccf4e32b98933f0e (diff) | |
download | android_hardware_ril-dbff97e8779011f7a24efe8c7b6f0ba32979e780.tar.gz android_hardware_ril-dbff97e8779011f7a24efe8c7b6f0ba32979e780.tar.bz2 android_hardware_ril-dbff97e8779011f7a24efe8c7b6f0ba32979e780.zip |
SEEK: Add support for getAtr
Add support for RIL_REQUEST_SIM_GET_ATR request
for enabling getAtr api.
CRs-Fixed: 718469
Change-Id: I5fe8f8156b55e7feaa7bb2671cd8451cb8bd2f36
-rw-r--r-- | include/telephony/ril.h | 20 | ||||
-rwxr-xr-x | libril/ril.cpp | 1 | ||||
-rw-r--r-- | libril/ril_commands.h | 1 |
3 files changed, 22 insertions, 0 deletions
diff --git a/include/telephony/ril.h b/include/telephony/ril.h index 66458a7..ff182cd 100644 --- a/include/telephony/ril.h +++ b/include/telephony/ril.h @@ -4516,6 +4516,26 @@ typedef struct { */ #define RIL_REQUEST_GET_ACTIVITY_INFO 135 +/** + * RIL_REQUEST_SIM_GET_ATR + * + * Get the ATR from SIM Card + * + * Only valid when radio state is "RADIO_STATE_ON" + * + * "data" is const int * + * ((const int *)data)[0] contains the slot index on the SIM from which ATR is requested. + * + * "response" is a const char * containing the ATR, See ETSI 102.221 8.1 and ISO/IEC 7816 3 + * + * Valid errors: + * + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * GENERIC_FAILURE + */ +#define RIL_REQUEST_SIM_GET_ATR 136 + /***********************************************************************/ diff --git a/libril/ril.cpp b/libril/ril.cpp index c9e4a87..04f2405 100755 --- a/libril/ril.cpp +++ b/libril/ril.cpp @@ -5128,6 +5128,7 @@ requestToString(int request) { case RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL: return "SIM_TRANSMIT_APDU_CHANNEL"; case RIL_REQUEST_GET_RADIO_CAPABILITY: return "RIL_REQUEST_GET_RADIO_CAPABILITY"; case RIL_REQUEST_SET_RADIO_CAPABILITY: return "RIL_REQUEST_SET_RADIO_CAPABILITY"; + case RIL_REQUEST_SIM_GET_ATR: return "SIM_GET_ATR"; case RIL_REQUEST_SET_UICC_SUBSCRIPTION: return "SET_UICC_SUBSCRIPTION"; case RIL_REQUEST_ALLOW_DATA: return "ALLOW_DATA"; case RIL_REQUEST_GET_HARDWARE_CONFIG: return "GET_HARDWARE_CONFIG"; diff --git a/libril/ril_commands.h b/libril/ril_commands.h index 163aa46..50e649a 100644 --- a/libril/ril_commands.h +++ b/libril/ril_commands.h @@ -150,3 +150,4 @@ {RIL_REQUEST_STOP_LCE, dispatchVoid, responseLceStatus}, {RIL_REQUEST_PULL_LCEDATA, dispatchVoid, responseLceData}, {RIL_REQUEST_GET_ACTIVITY_INFO, dispatchVoid, responseActivityData}, + {RIL_REQUEST_SIM_GET_ATR, dispatchInts, responseString}, |