Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions HAL/OmapiTransport.cpp
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,7 +31,7 @@ constexpr uint8_t SELECTABLE_AID[] = {0xA0, 0x00, 0x00, 0x04, 0x76, 0x41, 0x6E,
0x72, 0x6F, 0x69, 0x64, 0x43, 0x54, 0x53, 0x31};
std::string const ESE_READER_PREFIX = "eSE";
constexpr const char omapiServiceName[] =
"android.system.omapi.ISecureElementService/default";
"android.se.omapi.ISecureElementService/default";

class SEListener : public ::aidl::android::se::omapi::BnSecureElementListener {};

Expand DownExpand Up@@ -193,8 +193,8 @@ bool OmapiTransport::internalTransmitApdu(
return false;
}

if ((selectResponse.size() < 2)
|| ((selectResponse[selectResponse.size() -1] & 0xFF) != 0x00)
if ((selectResponse.size() < 2)
|| ((selectResponse[selectResponse.size() -1] & 0xFF) != 0x00)
|| ((selectResponse[selectResponse.size() -2] & 0xFF) != 0x90))
{
LOG(ERROR) << "Failed to select the Applet.";
Expand Down