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.
com.android.nfc
package) is added to the scopeYou 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.
id.my.pjm.toys.nfcnci_patience
Release Type: Stable
9/2/2024, 10:42:37 AM
Remember to reboot the device after activating/updating this module
Source code for this release is available at: https://github.com/rmnscnce/NfcNci_Patience/tree/dceaae6