Apply smartcard-api.patch.

Change-Id: Iebb74aa0613469967af8510e6e86db0493e319e4
NFC: Android Seek: sourcecode fixup

Source code had indentation and whitespace issues.

Change-id: I73a9ce369a06ee5418a6708125ff22abc9c0f3df
NFC: OMA update

Channel::close() is ignored when channel is already closed
Channel::isClosed() returns true if service is not connected
Session::openBasicChannel() returns null always.
Session::openLogicalChannel() returns null if not successful
Channel:transmit() checks integrity of command
Reader::openSession() throws RemoteException if no UICC present
EFACConditions parser supports CertHash as optional
Ignore status of the second SIM
Not send GetResponseCmd when SW is 0x6310
Support Session::getATR()
Support Channel::getSelectResponse()

Change-Id: I394f95aa761ce4b60fd0165c3a3b399e971b2ca3
NFC: NFC Event AC and ARF rule resolution

Support NFC Event Access Control
Resolve conflict of ARF rules
Keep logical channel open when receiving SW:0x6283.

Change-Id: I46fba5d0434052de121a922a28ec869744281722
NFC: Binding Smart Card Service with NFC.

binding smart card service with NFC.

Change-Id: I9613781432846a9af1b601548558ed5ef89650e0
SmartCardService: remove code pending review

Change-Id: I5a8d7604a25849d7dd033dea3a686ed896b768ca
Revert "SmartCardService: remove code pending review"

Review finished.  Restoring code.
This reverts commit f8dd04f481da11ef3dd3a69f8584a6940eb7d027.

Change-Id: I2148a10d352bd69993ed2a6a05b860a04ff7b90c
NFC: disable logging of transaction

Remove logging of traffic between application and secure element

Change-Id: I4f35551c4a90d78cf2e189846b8899b092733491
CRs-Fixed: 655084
NFC: GSMA API V5.0 Implementation

Add SIM2 reader for the second SIM
Add eSE2 reader for the second eSE
Add functionality to check if app certificates exist in UICC
Update explicit intent for binding service

Change-Id: I47d4b6067968887875cf72d9332bd63e0985d66f
CRs-Fixed: 642365
NFC: OMAPI for dual SIM

Use MSIM_TELEPHONY_SERVICE if dual SIM is supported
Change default reader name to SIM1/SIM2/eSE1/eSE2
Add persist.nfc.smartcard.config to configure readers

Change-Id: I4598d47905631ddb75098ad2a788a6a2827b7942
CRs-Fixed: 668985
NFC: Clear cached information when got parse error in ARF

Clear access rule cache and refresh tag when detecting unexpected type

Change-Id: Id0d3c69e0c662bf0172afa793b84afb3dc01793e
CRs-Fixed:
NFC: Cache access rule without retry

Retreive access control information without retry only when SIM state
is changed to Ready or Loaded

Change-Id: I9c6baf0f00a4f5a9312489be3f52b2f9eb5ffd4c
CRs-Fixed:668246
NFC: add featurization of SmartCardService

Only want to compile SmartCardService when it is desired.

Change-Id: I3ca42e78edaa6723e4b9b3e9585d946e59d2da11
SmartcardService: Utilize constants for state changes and actions.

Change-Id: If5b4deadfb5e023b6556fcf70824d947e0a60959
SmartcardService: Use correct defines.

Change-Id: Icc1b0646313c100d181a8ac6b4d78c1761467324