NFC HAL crash loop on OnePlus 7 Pro (guacamole): nfc_write -107 → vendor.nfc_hal_service SIGABRT
NFC repeatedly stops working during normal use. Toggling NFC sometimes restores functionality temporarily, but in many cases this is not sufficient and the device must be rebooted to recover. This occurs roughly twice per day in regular usage. As a result, contactless payments at terminals are unreliable, as NFC may become unavailable without warning and cannot always be restored without a full reboot. ## Expected Behavior NFC should remain stable after enabling and allow continuous tag reading without crashes or service restarts. ## Current Behavior NFC is unstable and frequently crashes. Behavior is intermittent: * NFC sometimes works briefly after boot or after toggling * then fails and stops detecting tags * `vendor.nfc_hal_service` enters a crash/restart loop * NFC becomes unusable until reboot or toggle Kernel logs (attached) show repeated transport errors: ``` nq-nci 4-0028: nfc_write: failed to write -107 ``` Userspace crash: ``` vendor.nfc_hal_service received SIGABRT ``` Backtrace indicates crash during write: ``` phNxpNciHal_write_unlocked() phNxpNciHal_write_internal() phNxpNciHal_write() aidl::android::hardware::nfc::Nfc::write() ``` This suggests failure in communication between HAL and NFC controller. ## Possible Solution Likely related to instability in NFC HAL / driver interaction. Observed that failure occurs at transport level (`-107 ENOTCONN`), indicating the NFC controller becomes unavailable after initialization. Possible causes: * HAL / firmware interaction issue * controller reset / power / timing instability * incompatibility between vendor NFC blobs and current LineageOS NFC stack ## Steps to Reproduce 1. Boot device 2. Enable NFC 3. Scan NFC tag repeatedly or wait 4. After some time (usually after a few hours max, definitely same day): * NFC stops responding * service crashes and restarts repeatedly * tag detection no longer works <!--THIS SECTION IS MANDATORY. If it is not filled out correctly, your issue will be marked as invalid.--> /codename guacamole /version lineage-23.2-20260309-NIGHTLY-guacamole /date 2026-04-03 /kernel 4.14.356-openela-rc1-perf-g519973973269 #1 SMP PREEMPT Mon Mar 9 05:35:14 UTC 2026 aarch64 Toybox /baseband Q_V1_P14 /mods MindTheGapps-16.0.0-arm64-20250812_214353 [nfc.log](/uploads/77f007c360bb1a315d1a89e6d6db83b1/nfc.log) <!--Replace the following line with "I have read the directions"--> I have read the directions.
issue