summaryrefslogtreecommitdiff
path: root/halimpl
AgeCommit message (Collapse)Author
2022-03-05Use after free in phTmlNfc_TmlThreadHEADsugisawa-pn5xxAlisher Alikhodjaev
Bug: 197353344 Test: build ok Merged-In: Id6323fd3f0588972dba3b7654435c171d6f5279b Change-Id: I1f318ae8f0263177040e10baa25952c1accdea21 (cherry picked from commit 647f3fcc75511c6f05e1670d2457b0d93c13abdf) Merged-In:I1f318ae8f0263177040e10baa25952c1accdea21
2022-03-05OOBW in phNxpNciHal_process_ext_rspAlisher Alikhodjaev
Bug: 181584626 Bug: 181660091 Bug: 181660093 Test: build ok Change-Id: I05959cc1bbba12aab896fd93684ce163217e599d (cherry picked from commit 528b21d3443efd763313a446624ea985f3d46722)
2022-03-05An info leak vuln caused by OOB read of nxp nfc hal libraryAlisher Alikhodjaev
Bug: 169258455 Test: build ok Change-Id: I8e296f3ae38ee829d87c0052b5753e2f93bd0dd4
2022-03-05An integer underflow vuln of nxp nfc hal libraryAlisher Alikhodjaev
Bug: 169258743 Test: build ok Change-Id: I98fbd6ac69ee89dadadae2f0553be47e3580a838
2022-03-05Multiple vulnerabilities in phNxpNciHal_print_res_statusAlisher Alikhodjaev
Bug: 169258884 Bug: 169258733 Bug: 169257710 Test: build ok Change-Id: Icccbe6c781847d5495cc09e9fd72bd5a39011e73
2022-03-05A stack OOB write vuln of nxp nfc hal libraryAlisher Alikhodjaev
Bug: 169259605 Test: build ok Change-Id: I5b99093abdee065eed161f3cda41847a35b13e6a
2021-09-17NFC: Update usage of NQXX FW binary paths in HAL layerTapas Dey
With Android upgrade requirement, build rules for prebuilt binary have been updated, due to which the FW binary is now built at both /vendor/lib and /vendor/lib64 directories. In order to pick correct FW binary based on the build architecture, update the FW binary paths usage based on the build architecture being used for compilation. Change-Id: Ife5def6b6c2c01b2b8a4e4f764dde5dc40377433
2020-05-21NFC: Fix compilation issuesTapas Dey
Modified code to fix build errors and enabled 2.0 HIDL service for NFC. Change-Id: Ib1b7a8e4a239dbcb8429cd105a3b66dda9e2494e
2020-05-08Merge branch ↵Tapas Dey
'caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_11' into nfc.vendor.lnx.2.1 * caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_11: (42 commits) Code cleanup on HAL 2.0 implementation HAL 2.0 implementation N*pNfcLegacy HAL implementation added following api to replace the IOCTL's and there wrapper function a) HAL_NFC_IOCTL_NCI_TRANSCEIVE -> nciTransceive(). N*pNfcLegacy HAL implementation added following api to replace the IOCTL's and there warapper functions HAL_NFC_GET_N*P_CONFIG -> getN*pConfig(). N*pNfcLegacy HAL implementation added following api to replace the IOCTL's and there warapper functions a) HAL_NFC_IOCTL_GET_CONFIG_INFO -> getCachedNfccConfig(). HciInitUpdateState null pointer access fixed. N*pNfcLegacy HAL implementation added following api to replace the IOCTL's and there warapper functions a) HAL_NFC_IOCTL_REL_SVDD_WAIT -> spiDwpSync() b) HAL_NFC_IOCTL_REL_DWP_WAIT -> RelForceDwpOnOffWait() c) HAL_NFC_GET_SPM_STATUS -> getSPMStatus() d) HAL_NFC_IOCTL_HCI_INIT_STATUS_UPDATE -> hciInitUpdateState() e) HAL_NFC_IOCTL_HCI_INIT_STATUS_UPDATE_COMPLETE -> hciInitUpdateStateComplete() {R-DP1} Move N*P MIFARE entern to HAL N*pNfcLegacy HAL implementation API added : getEseState -> Replacement of HAL_NFC_IOCTL_P61_PWR_MODE. This API is called for to get ese state getEseState() generates (uint16_t status); N*pNfcLegacy HAL implementation API added : setNfcServicePid -> Replacement of HAL_NFC_IOCTL_SET_NFC_SERVICE_PID. Introducing new app in NfcN*pHalLeagcy.and phN*pNciHal_setNfcServicePid to call Tml N*pNfcLegacy HAL implementation API added : getchipType -> Replacement of HAL_NFC_IOCTL_GET_FEATURE_LIST. getChipType is the api which will take chiptype info at init type and update to update to upper layer after invoking it. unused N*P NFC HAL IOCTL cleanup for HAL_NFC_IOCTL_SPI_DWP_SYNC. There is not caller for this ioctl. So, cleaning this ioctl. {R-DP2} Revert "Phase tirm offset sign bit update" {R-DP2} Do not enable factoryota mode by default N*pNfcLegacy HAL implementation API added : setEseState -> Replacement of HAL_NFC_IOCTL_P61_IDLE_MODE & HAL_NFC_IOCTL_P61_WIRED_MODE. {R-DP2} Update cfg files search rule {R-DP1} Remove libhwbinder/libhidltransport deps {R-DP1} Disable -Wimplicit-fallthrough unless src is fixed. IOCTL call sequence clean up for HAL_NFC_IOCTL_RF_ACTION_NTF and HAL_NFC_IOCTL_RF_STATUS_UPDATE IOCTL call sequence clean up for HAL_ESE_IOCTL_OMAPI_TRY_GET_ESE_SESSION & HAL_ESE_IOCTL_OMAPI_RELEASE_ESE_SESSION] [artf728185][PN8xt]:IOCTL call sequence clean up for HAL_NFC_IOCTL_SET_JCP_DWNLD_ENABLE & HAL_NFC_IOCTL_SET_JCP_DWNLD_DISABLE [artf728187][PN8xt]:IOCTL call sequence clean up for HAL_NFC_IOCTL_NFCEE_SESSION_RESET ... Change-Id: I1da3816ca9e0e8c676cdd82900857dc6a43f9957
2020-04-22Code cleanup on HAL 2.0 implementationYerriswamy
hal_nxpnfc.h file and correspondinig dependencies are removed.
2020-04-22HAL 2.0 implementationYerriswamy
Below are the IOCTL's replaced with new API's HAL_NFC_SET_SPM_PWR HAL_NFC_IOCTL_ESE_JCOP_DWNLD HAL_NFC_ESE_JCOP_UPDATE_COMPLETED HAL_NFC_ESE_LS_UPDATE_COMPLETED HAL_NFC_IOCTL_SET_TRANSIT_CONFIG
2020-04-22NxpNfcLegacy HAL implementation added following api to replace the IOCTL's ↵nxp61433
and there wrapper function a) HAL_NFC_IOCTL_NCI_TRANSCEIVE -> nciTransceive().
2020-04-22NxpNfcLegacy HAL implementation added following api to replace the IOCTL's ↵nxp72559
and there warapper functions HAL_NFC_GET_NXP_CONFIG -> getNxpConfig().
2020-04-22NxpNfcLegacy HAL implementation added following api to replace the IOCTL's ↵nxp61433
and there warapper functions a) HAL_NFC_IOCTL_GET_CONFIG_INFO -> getCachedNfccConfig().
2020-04-22HciInitUpdateState null pointer access fixed.nxp61433
2020-04-22NxpNfcLegacy HAL implementation added following api to replace the IOCTL's ↵nxp61433
and there warapper functions a) HAL_NFC_IOCTL_REL_SVDD_WAIT -> spiDwpSync() b) HAL_NFC_IOCTL_REL_DWP_WAIT -> RelForceDwpOnOffWait() c) HAL_NFC_GET_SPM_STATUS -> getSPMStatus() d) HAL_NFC_IOCTL_HCI_INIT_STATUS_UPDATE -> hciInitUpdateState() e) HAL_NFC_IOCTL_HCI_INIT_STATUS_UPDATE_COMPLETE -> hciInitUpdateStateComplete()
2020-04-22{R-DP1} Move NXP MIFARE entern to HALYerriswamy
Bug: 142625833 Test: Mifare Classic Tag Read/Write/Format Change-Id: Ibb2fba3e801820cc2080e51dc302288b617ea0c1
2020-04-22NxpNfcLegacy HAL implementation API added : getEseState -> Replacement of ↵nxf36763
HAL_NFC_IOCTL_P61_PWR_MODE. This API is called for to get ese state getEseState() generates (uint16_t status);
2020-04-22NxpNfcLegacy HAL implementation API added : setNfcServicePid -> Replacement ↵nxf36763
of HAL_NFC_IOCTL_SET_NFC_SERVICE_PID. Introducing new app in NfcNxpHalLeagcy.and phNxpNciHal_setNfcServicePid to call Tml
2020-04-22NxpNfcLegacy HAL implementation API added : getchipType -> Replacement of ↵nxf36763
HAL_NFC_IOCTL_GET_FEATURE_LIST. getChipType is the api which will take chiptype info at init type and update to update to upper layer after invoking it.
2020-04-22unused NXP NFC HAL IOCTL cleanup for HAL_NFC_IOCTL_SPI_DWP_SYNC. There is ↵nxf36763
not caller for this ioctl. So, cleaning this ioctl.
2020-04-22{R-DP2} Revert "Phase tirm offset sign bit update"Yerriswamy
This reverts commit b08faff9d8aca73f0eb627d3330c840e957441f4. Reason for revert: Removing this special workaround to make mater clean. Change-Id: I4391dada3fcef6a51a318fd4b132750829d076d0
2020-04-22{R-DP2} Do not enable factoryota mode by defaultYerriswamy
Currently factoryota feature is not enabled with this module. Bug: 150511341 Test: no avc denial in nfc Change-Id: I4236c714dbfba528c5e35307809485fadfe708bb
2020-04-22NxpNfcLegacy HAL implementation API added : setEseState -> Replacement of ↵nxf36763
HAL_NFC_IOCTL_P61_IDLE_MODE & HAL_NFC_IOCTL_P61_WIRED_MODE.
2020-04-22{R-DP2} Update cfg files search ruleYerriswamy
1. If prop_config_file_name is defined. (where prop_config_file_name is the value of the property (persist.vendor.nfc.config_file_name) Search a file matches prop_config_file_name. 2. If SKU is defined (where SKU is the value of the property ro.boot.product.hardware.sku) Search a file matches libnfc-nxp-SKU.conf 3. If none of 1,2 is defined, search the default file "libnfc-nxp.conf". Bug: 148056494 Test: load correct cfg Change-Id: Ia9a87ae9964a8c64ff07e51e42c3f6b2801e3c40
2020-04-22IOCTL call sequence clean up for HAL_NFC_IOCTL_RF_ACTION_NTF and ↵nxf36763
HAL_NFC_IOCTL_RF_STATUS_UPDATE we are moving this ioctl to hal_ese.h These ioctl getting called in phNxpEse_spiIoctl(ntfType, &inpOutData); Inroducing HAL_ESE_IOCTL_RF_ACTION_NTF & HAL_ESE_IOCTL_RF_STATUS_UPDATE
2020-04-22IOCTL call sequence clean up for HAL_ESE_IOCTL_OMAPI_TRY_GET_ESE_SESSION & ↵nxf36763
HAL_ESE_IOCTL_OMAPI_RELEASE_ESE_SESSION] [artf728185][PN8xt]:IOCTL call sequence clean up for HAL_NFC_IOCTL_SET_JCP_DWNLD_ENABLE & HAL_NFC_IOCTL_SET_JCP_DWNLD_DISABLE [artf728187][PN8xt]:IOCTL call sequence clean up for HAL_NFC_IOCTL_NFCEE_SESSION_RESET
2020-04-22IOCTL call sequence clean up for HAL_NFC_IOCTL_ESE_CHIP_RSTnxf36763
2020-04-22IOCTL call sequence clean up for HAL_NFC_IOCTL_CHECK_FLASH_REQ & ↵nxf36763
HAL_NFC_IOCTL_FW_DWNLD
2020-04-22unused NXP NFC HAL IOCTL cleanup in ↵nxf36763
nfcandroid_nfc_hidlimplnxp_nci_hal_libnfc-nci
2020-04-22Fix Coverity Warnings (UNUSED VALUE).nxf38293
2020-04-22Treble naming convention correction for vendor persist property.nxf36763
As we have upadted persist.nfc to persist.vendor.nfc in property_contexts file. So, Updating persist.nfc to persist.vendor.nfc.
2020-04-22Fix Coverity Warnings (UNUSED VALUE).Ganesh Deva
2020-04-22Coverity warning fixnxf38293
2020-04-22W-TAG register enable value corrected.Ganesh Deva
2020-04-22W-TAG support addedGanesh Deva
2020-04-22Enable autonomous mode before shutting down the device.nxf38293
2020-04-22Core config command format correction in libnfc-nxp_RF.conf file.nxf38293
2020-04-22Set the default values of A0DD and A0DE to 0. If the second SWP interface is ↵nxf38293
configured in DWP mode.
2020-04-22Default poll discovery duration set to 300ms.nxf38293
2020-03-24NFC: Remove references to libhwbinder & libhidltransportTapas Dey
As per Android-R upgrade contents of libhwbinder and libhidltransport have been moved to libhidlbase & hence no longer required. Change-Id: I3f44d32cc04e078e698a1b4beb108ff2d4d229a6
2019-11-07Symmetric baud rate for UICC's set A086 to 77nxf38293
Core set configuration parameter A086 is added in the RF configuration file for standalone chip sets.
2019-11-06Fix for MW recovery when NFCC was powered on and core reset notification is ↵nxf38293
received.
2019-11-06Corrected DEFAULT_TECH_ABF_PWR_STATE value for NCI1.0Suhas Suresh
2019-11-06Use DEFAULT_TECH_ABF_ROUTE to handle tech route separatelySuhas Suresh
Earlier implementation uses DEFAULT_OFFHOST_ROUTE to update Tech A,B route location and also as route location for payment apps not having route location (secureElementName attribute). Tech F is handled separately using DEFAULT_NFCF_ROUTE. New change introduces DEFAULT_TECH_ABF_ROUTE config which will be used to update Tech A,B,F and DEFAULT_NFCF_ROUTE will not be used anymore. DEFAULT_OFFHOST_ROUTE will be used only to update route location for payment apps not having route location (secureElementName attribute).
2019-11-06Corereset notification Firmware check is updated for PN81T.nxf38293
Firmware version is included in the PN81T corereset notifications along with the error code.
2019-09-27NFC: Remove unused codeTapas Dey
Removed unwanted files from code base as these files no longer needed. Modified makefile to avoid inclusion of HAL library which is no longer needed. Change-Id: Ib4b9205f2133d58b65174e8c9a818ee27c478d33
2019-09-09NFC: Fix firmware download failure issueTapas Dey
Firmware download fails due to incorrect path specified to load the library file. Modify and add correct path to load the library file. Change-Id: If522069f729ac76a373df9d014d7ea36323a43d0
2019-09-05Merge branch 'caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_q' ↵Tapas Dey
into nfc.vendor.lnx.1.1 * caf/nxp-libnfc-nci/github-libnfc-nci/br_android_ncihalx_row_q: Added logic to Enable/Disable SCR mode from Conf file Core standby macro is removed from the config file. Enabling NXP_CORE_STANDBY mode. ][mPOS]: Redesign to make common code base By Default don't add SCBR entry in LMRT. Fix UICC SWP line enable/disable from RF conf file not working Fix for Firmware download when eSE is not present. Code Clean-Up. Update README.md Enable Block Bit routing for PN81T. Update README.md Updated readme for - NFC_AR_00_18C0_10.02.00_OpnSrc Change-Id: I8de29bdc397b475c5868e798f9a68abb4f0fbee2
2019-09-04{android10_r2}: Prevent OOB read in phNxpNciHal_ext_process_nfc_init_rspGanesh Deva