NfcNci Patience

Add a delay (1000ms by default) to the NFC presence check to accommodate longer NFC smart card operations in AOSP NfcNci implementation on certain devices (see LineageOS issue #7268)

This bug —which may sound obscure at first, plagues several apps e.g. the German eID app and most of Indonesian electronic pass (Mandiri e-money, BCA Flazz, etc) recharge apps (failure upon balance update) due to those apps not having sufficient EXTRA_READER_PRESENCE_CHECK_DELAY value, which results in the NFC service's assumption that the smart card has been lost.

Setup

  • Install this module
  • Enable this module and ensure that "Nfc Service" (the com.android.nfc package) is added to the scope
  • Reboot the device for the module to take effect

Configuration

You can use the provided settings interface to tune the presence check timeout to your needs, provided that they're a whole number ranging from 125 to 5000. You do not need to reboot your device for the change to take effect.

Package

id.my.pjm.toys.nfcnci_patience

Authors

rmnscnce

Releases

v0.2.0

Release type: Stable

9/2/2024, 10:42:37 AM

v0.1.0

Release type: Stable

8/29/2024, 9:14:13 AM

v0.0.1

Release type: Stable

8/23/2024, 7:14:44 PM

v0.0.0

Release type: Stable

8/23/2024, 2:14:20 PM

  • Initial release

Source code will be published soon, up and coming issues may be reported there

v0.2.0~beta0

Release type: Pre-release

8/29/2024, 10:30:52 PM