[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] duament:
NFC crashes when reading a MIFARE Classic 1K card.

09-27 16:32:34.890 17654 17676 E libnfc_nci: [ERROR:NfcTag.cpp(385)] NfcTag::discoverTechnologies (activation): unknown protocol ????
09-27 16:32:34.905 17654 17676 E libnfc_nci: [ERROR:rw_t4t.cc(1924)] Unable to start command at state (0x0)
09-27 16:32:34.918 17654 17654 E AndroidRuntime: Process: com.android.nfc, PID: 17654
09-27 16:32:34.918 17654 17654 E AndroidRuntime: at android.nfc.Tag.generateTechStringList(Tag.java:193)
09-27 16:32:34.918 17654 17654 E AndroidRuntime: at android.nfc.Tag.<init>(Tag.java:133)
09-27 16:32:34.918 17654 17654 E AndroidRuntime: at com.android.nfc.NfcService$NfcServiceHandler.dispatchTagEndpoint(NfcService.java:2420)
09-27 16:32:34.918 17654 17654 E AndroidRuntime: at com.android.nfc.NfcService$NfcServiceHandler.handleMessage(NfcService.java:2120)
09-27 16:32:34.998 577 577 I ServiceManager: service 'nfc' died
09-27 16:32:34.999 1400 3437 I ActivityManager: Process com.android.nfc (pid 17654) has died: pers PER
09-27 16:32:35.000 1400 3437 W ActivityManager: Re-adding persistent process ProcessRecord{d7481b0 17654:com.android.nfc/1027}
09-27 16:32:35.025 720 17684 W android.hardware.nfc@1.1-impl: failed to send event!!!
09-27 16:32:35.026 720 720 I nfc@1.1-service: type=1400 audit(0.0:40471): avc: denied { ioctl } for path="/dev/nq-nci" dev="tmpfs" ino=4302 ioctlcmd=e901 scontext=u:r:hal_nfc_default:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
09-27 16:32:35.035 1400 1424 I ActivityManager: Start proc 18857:com.android.nfc/1027 for restart com.android.nfc
09-27 16:32:35.115 18857 18857 I com.android.nf: ConfigFile - Parsing file '/vendor/etc/libnfc-nci.conf'
09-27 16:32:35.115 18857 18857 I com.android.nf: ConfigFile - [NFA_STORAGE] = "/data/nfc"
09-27 16:32:35.193 18857 18857 W RegisteredServicesCache: at android.nfc.cardemulation.ApduServiceInfo.<init>(ApduServiceInfo.java:149)
09-27 16:32:35.193 18857 18857 W RegisteredServicesCache: at com.android.nfc.cardemulation.RegisteredServicesCache.getInstalledServices(RegisteredServicesCache.java:257)
09-27 16:32:35.193 18857 18857 W RegisteredServicesCache: at com.android.nfc.cardemulation.RegisteredServicesCache.invalidateCache(RegisteredServicesCache.java:272)
09-27 16:32:35.193 18857 18857 W RegisteredServicesCache: at com.android.nfc.cardemulation.RegisteredServicesCache.initialize(RegisteredServicesCache.java:169)
09-27 16:32:35.193 18857 18857 W RegisteredServicesCache: at com.android.nfc.cardemulation.CardEmulationManager.<init>(CardEmulationManager.java:95)
09-27 16:32:35.193 18857 18857 W RegisteredServicesCache: at com.android.nfc.NfcService.<init>(NfcService.java:492)
09-27 16:32:35.193 18857 18857 W RegisteredServicesCache: at com.android.nfc.NfcApplication.onCreate(NfcApplication.java:66)
09-27 16:32:35.295 2495 2495 E NFC : at android.nfc.INfcAdapter$Stub$Proxy.getState(INfcAdapter.java:411)
09-27 16:32:35.295 2495 2495 E NFC : at android.nfc.NfcAdapter.isEnabled(NfcAdapter.java:729)
09-27 16:32:35.313 18857 18876 E libnfc_nci: [ERROR:gki_ulinux.cc(98)] gki_task task_id=0 terminating
09-27 16:32:35.316 720 720 I nfc@1.1-service: type=1400 audit(0.0:40472): avc: denied { read write } for name="nq-nci" dev="tmpfs" ino=4302 scontext=u:r:hal_nfc_default:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
09-27 16:32:35.436 720 720 I nfc@1.1-service: type=1400 audit(0.0:40474): avc: denied { read write } for name="libnfc-nxpConfigState.bin" dev="sda13" ino=1978793 scontext=u:r:hal_nfc_default:s0 tcontext=u:object_r:vendor_data_file:s0 tclass=file permissive=1
09-27 16:32:35.436 720 720 I nfc@1.1-service: type=1400 audit(0.0:40475): avc: denied { open } for path="/data/vendor/nfc/libnfc-nxpConfigState.bin" dev="sda13" ino=1978793 scontext=u:r:hal_nfc_default:s0 tcontext=u:object_r:vendor_data_file:s0 tclass=file permissive=1
09-27 16:32:35.561 18857 18877 E libnfc_nci: [ERROR:nfa_ee_act.cc(1980)] nfa_ee_nci_mode_set_rsp p_rsp->status:0x00