[LG G5 ROMs, Kernels, Recoveries, & Other Developme] darkalexpp:
BUG repoty

nfc not enabled

Device RS988 - bug in all los 18.1

logcat:

h1:/ # logcat | grep -i nfc
01-02 03:42:34.610 0 0 I nfc : nfc_init: NFC Core ver 0.1
01-02 03:42:36.597 0 0 I init : Parsing file /vendor/etc/init/android.hardware.nfc@1.1-service.rc...
01-02 03:42:43.199 0 0 I init : starting service 'vendor.nfc_hal_service'...
01-05 21:24:56.986 1189 1558 I SystemServerTimingAsync: InitThreadPoolExec:Update app-ops uidState in case package com.android.nfc changed
01-05 21:24:58.610 1189 1189 V StorageManagerService: Package com.android.nfc does not have legacy storage
01-05 21:24:58.622 1189 1189 V StorageManagerService: Package com.wakdev.wdnfc does not have legacy storage
01-05 21:25:02.318 1831 1831 D QSTileHost: Creating tile: nfc
01-05 21:25:02.356 1831 1951 E NFC : could not retrieve NFC service
01-05 21:25:02.358 1831 1951 E NFC : could not retrieve NFC service
01-05 21:25:02.636 1831 1951 E NFC : could not retrieve NFC service
01-05 21:25:02.638 1831 1951 E NFC : could not retrieve NFC service
01-05 21:25:11.724 1189 1364 I ActivityManager: Start proc 2879:com.android.nfc/1027 for added application com.android.nfc
01-05 21:25:13.952 2879 2879 I NfcService: Starting NFC service
01-05 21:25:14.003 2879 2879 I com.android.nf: [0105/212514.003573:INFO:NfcJniUtil.cpp(47)] NFC Service: loading nci JNI
01-05 21:25:14.004 2879 2879 I com.android.nf: ConfigFile - Parsing file '/etc/libnfc-nci.conf'
01-05 21:25:14.004 2879 2879 I com.android.nf: ConfigFile - [NFC_DEBUG_ENABLED] = 0
01-05 21:25:14.004 2879 2879 I com.android.nf: ConfigFile - [NFA_STORAGE] = "/data/vendor/nfc"
01-05 21:25:14.004 2879 2879 I com.android.nf: [0105/212514.004819:INFO:NfcAdaptation.cc(516)] NfcAdaptation::InitializeHalDeviceContext: INfc::getService()
01-05 21:25:14.005 465 465 I hwservicemanager: getTransport: Cannot find entry android.hardware.nfc@1.2::INfc/default in either framework or device manifest.
01-05 21:25:14.007 2879 2879 I com.android.nf: [0105/212514.007714:INFO:NfcAdaptation.cc(525)] NfcAdaptation::InitializeHalDeviceContext: INfc::getService() returned 0x73f016d190 (remote)
01-05 21:25:14.294 2879 2879 D RegisteredNfcFServicesCache: Dynamic System Code, NFCID2 file does not exist.
01-05 21:25:14.298 2879 2879 D RegisteredNfcFServicesCache: Service unchanged, not updating
01-05 21:25:14.298 2879 2879 I com.android.nf: [0105/212514.298242:INFO:RoutingManager.cpp(1039)] setNfcSecure NfcService 0
01-05 21:25:14.307 2879 3169 D NfcService: checking on firmware download
01-05 21:25:14.307 2879 3169 D NfcService: NFC is on. Doing normal stuff
01-05 21:25:14.307 2879 3169 I NfcService: Enabling NFC
01-05 21:25:14.315 1189 3102 W ActivityManager: Unable to start service Intent { act=android.nfc.cardemulation.action.HOST_APDU_SERVICE cmp=com.google.android.gms/.tapandpay.hce.service.TpHceService } U=0: not found
01-05 21:25:14.331 2879 3174 E libnfc_nci: [ERROR:gki_ulinux.cc(98)] gki_task task_id=0 terminating
01-05 21:25:14.332 585 585 D android.hardware.nfc@1.1-impl: Nfc::eek:pen Enter
01-05 21:25:14.333 585 585 D NxpExtns: find found NFC_DEBUG_ENABLED=(0x0)
01-05 21:25:14.575 585 585 E NxpHal : FW download denied while SPI in use, Continue NFC init
01-05 21:25:14.593 585 585 E android.hardware.nfc@1.1-service: isModified Unable to open file '/data/vendor/nfc/libnfc-nxpConfigState.bin' - assuming modified
01-05 21:25:14.596 585 585 E android.hardware.nfc@1.1-service: isModified Unable to open file '/data/vendor/nfc/libnfc-nxpConfigState.bin' - assuming modified
01-05 21:25:14.942 585 585 E NxpHal : FW download denied while SPI in use, Continue NFC init
01-05 21:25:17.123 2879 2879 D NfcService: MSG_APPLY_SCREEN_STATE 8
01-05 21:25:44.598 1189 2911 I ActivityTaskManager: START u0 {act=android.settings.NFC_SETTINGS flg=0x14000000 cmp=com.android.settings/.Settings$AdvancedConnectedDeviceActivity} from uid 10150
01-05 21:25:44.936 4671 4671 D PrefCtrlListHelper: Could not find Context-only controller for pref: com.android.settings.connecteddevice.NfcAndPaymentFragmentController
01-05 21:25:44.970 4671 4671 D PrefCtrlListHelper: Could not find Context-only controller for pref: com.android.settings.nfc.AndroidBeamPreferenceController
01-05 21:25:47.513 4671 4671 D SettingsActivity: Switching to fragment com.android.settings.connecteddevice.NfcAndPaymentFragment
01-05 21:25:47.513 4671 4671 D SubSettings: Launching fragment com.android.settings.connecteddevice.NfcAndPaymentFragment
01-05 21:25:47.516 4671 4671 D PrefCtrlListHelper: Could not find Context-only controller for pref: com.android.settings.nfc.NfcDetectionPointController
01-05 21:25:47.516 4671 4671 D PrefCtrlListHelper: Could not find Context-only controller for pref: com.android.settings.nfc.NfcPreferenceController
01-05 21:25:47.517 4671 4671 D PrefCtrlListHelper: Could not find Context-only controller for pref: com.android.settings.nfc.SecureNfcPreferenceController
01-05 21:25:47.543 4671 4671 D NfcAndPaymentFragment: NO dashboard tiles for NfcAndPaymentFragment
01-05 21:25:47.544 4671 4671 D NfcAndPaymentFragment: All preferences added, reporting fully drawn
01-05 21:26:14.896 2879 2879 D RegisteredNfcFServicesCache: Service unchanged, not updating
01-05 21:26:18.442 2879 2879 D NfcService: MSG_APPLY_SCREEN_STATE 1
01-05 21:26:23.900 2879 2879 D NfcService: MSG_APPLY_SCREEN_STATE 8
01-05 21:26:24.338 2879 2879 D NfcService: MSG_APPLY_SCREEN_STATE 8
01-05 21:26:28.331 4671 4671 D SettingsActivity: Switching to fragment com.android.settings.connecteddevice.NfcAndPaymentFragment
01-05 21:26:28.331 4671 4671 D SubSettings: Launching fragment com.android.settings.connecteddevice.NfcAndPaymentFragment
01-05 21:26:28.333 4671 4671 D PrefCtrlListHelper: Could not find Context-only controller for pref: com.android.settings.nfc.NfcDetectionPointController
01-05 21:26:28.333 4671 4671 D PrefCtrlListHelper: Could not find Context-only controller for pref: com.android.settings.nfc.NfcPreferenceController
01-05 21:26:28.334 4671 4671 D PrefCtrlListHelper: Could not find Context-only controller for pref: com.android.settings.nfc.SecureNfcPreferenceController
01-05 21:26:28.340 4671 4671 D NfcAndPaymentFragment: NO dashboard tiles for NfcAndPaymentFragment
01-05 21:26:28.340 4671 4671 D NfcAndPaymentFragment: All preferences added, reporting fully drawn
01-05 21:26:35.291 2879 2879 D RegisteredNfcFServicesCache: Service unchanged, not updating
01-05 21:26:39.812 1189 5900 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.wakdev.wdnfc/com.wakdev.nfctools.free.views.MainActivityFree bnds=[40,1424][312,1794]} from uid 10152
01-05 21:26:39.904 1189 1364 I ActivityManager: Start proc 7095:com.wakdev.wdnfc/u0a196 for pre-top-activity {com.wakdev.wdnfc/com.wakdev.nfctools.free.views.MainActivityFree}
01-05 21:26:41.107 1189 1362 D ArtManagerInternalImpl: /data/misc/iorapd/com.wakdev.wdnfc/133/com.wakdev.nfctools.free.views.MainActivityFree/compiled_traces/compiled_trace.pb doesn't exist
01-05 21:26:41.115 1189 1362 I ActivityTaskManager: Displayed com.wakdev.wdnfc/com.wakdev.nfctools.free.views.MainActivityFree: +1s107ms
01-05 21:26:44.323 2879 3172 E NfcService: Watchdog triggered, release lock before aborting.
01-05 21:26:44.331 2879 3172 E NfcService: Watchdog triggered, aborting.
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] native: #09 pc 000000000003474c /system/lib64/libnfc_nci_jni.so (android::nfcManager_doAbort(_JNIEnv*, _jobject*, _jstring*)+56)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] native: #10 pc 0000000000010dd8 /data/dalvik-cache/arm64/system@app@NfcNci@NfcNci.apk@classes.dex (art_jni_trampoline+152)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] native: #11 pc 0000000000017a74 /data/dalvik-cache/arm64/system@app@NfcNci@NfcNci.apk@classes.dex (com.android.nfc.NfcService$WatchDogThread.run+644)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] at com.android.nfc.dhimpl.NativeNfcManager.doAbort(Native method)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] at com.android.nfc.NfcService$WatchDogThread.run(NfcService.java:1907)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] native: #03 pc 000000000002c234 /system/lib64/libnfc_nci_jni.so (CondVar::wait(Mutex&)+56)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] native: #04 pc 0000000000031f78 /system/lib64/libnfc_nci_jni.so (android::nfcManager_doInitialize(_JNIEnv*, _jobject*)+728)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] native: #05 pc 000000000001026c /data/dalvik-cache/arm64/system@app@NfcNci@NfcNci.apk@classes.dex (art_jni_trampoline+124)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] native: #06 pc 000000000002968c /data/dalvik-cache/arm64/system@app@NfcNci@NfcNci.apk@classes.dex (com.android.nfc.dhimpl.NativeNfcManager.initialize+44)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] native: #07 pc 000000000001417c /data/dalvik-cache/arm64/system@app@NfcNci@NfcNci.apk@classes.dex (com.android.nfc.NfcService$EnableDisableTask.enableInternal+524)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] native: #08 pc 0000000000013cb8 /data/dalvik-cache/arm64/system@app@NfcNci@NfcNci.apk@classes.dex (com.android.nfc.NfcService$EnableDisableTask.doInBackground+776)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] native: #09 pc 0000000000013978 /data/dalvik-cache/arm64/system@app@NfcNci@NfcNci.apk@classes.dex (com.android.nfc.NfcService$EnableDisableTask.doInBackground+72)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] at com.android.nfc.dhimpl.NativeNfcManager.doInitialize(Native method)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] at com.android.nfc.dhimpl.NativeNfcManager.initialize(NativeNfcManager.java:83)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] at com.android.nfc.NfcService$EnableDisableTask.enableInternal(NfcService.java:742)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] at com.android.nfc.NfcService$EnableDisableTask.doInBackground(NfcService.java:707)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] at com.android.nfc.NfcService$EnableDisableTask.doInBackground(NfcService.java:668)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] native: #07 pc 000000000003474c /system/lib64/libnfc_nci_jni.so (android::nfcManager_doAbort(_JNIEnv*, _jobject*, _jstring*)+56)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] native: #08 pc 0000000000010dd8 /data/dalvik-cache/arm64/system@app@NfcNci@NfcNci.apk@classes.dex (art_jni_trampoline+152)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] native: #09 pc 0000000000017a74 /data/dalvik-cache/arm64/system@app@NfcNci@NfcNci.apk@classes.dex (com.android.nfc.NfcService$WatchDogThread.run+644)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] at com.android.nfc.dhimpl.NativeNfcManager.doAbort(Native method)
01-05 21:26:44.621 2879 3172 F com.android.nf: runtime.cc:655] at com.android.nfc.NfcService$WatchDogThread.run(NfcService.java:1907)
01-05 21:26:44.622 2879 3172 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 3172 (enableInternal), pid 2879 (com.android.nfc)
01-05 21:26:45.283 7329 7329 F DEBUG : pid: 2879, tid: 3172, name: enableInternal >>> com.android.nfc <<<
01-05 21:26:45.305 7329 7329 F DEBUG : #05 pc 000000000003474c /system/lib64/libnfc_nci_jni.so (android::nfcManager_doAbort(_JNIEnv*, _jobject*, _jstring*)+56) (BuildId: dfeb288cec8ad2260997a837ea1916e2)
01-05 21:26:45.305 7329 7329 F DEBUG : #06 pc 0000000000010dd8 /data/dalvik-cache/arm64/system@app@NfcNci@NfcNci.apk@classes.dex (art_jni_trampoline+152)
01-05 21:26:45.305 7329 7329 F DEBUG : #07 pc 0000000000017a74 /data/dalvik-cache/arm64/system@app@NfcNci@NfcNci.apk@classes.dex (com.android.nfc.NfcService$WatchDogThread.run+644)
01-05 21:26:45.346 1189 1350 I ActivityManager: Killing 7095:com.wakdev.wdnfc/u0a196 (adj 905): remove task
01-05 21:26:45.953 1189 7336 I WindowManager: WIN DEATH: Window{1d4400f u0 com.wakdev.wdnfc/com.wakdev.nfctools.free.views.MainActivityFree}
01-05 21:26:45.954 1189 7336 W InputDispatcher: Attempted to unregister already unregistered input channel '1d4400f com.wakdev.wdnfc/com.wakdev.nfctools.free.views.MainActivityFree (server)'
01-05 21:26:46.566 1189 3376 I ActivityManager: Process com.android.nfc (pid 2879) has died: pers PER
01-05 21:26:46.568 1189 3376 W ActivityManager: Re-adding persistent process ProcessRecord{eddf1d2 2879:com.android.nfc/1027}
01-05 21:26:46.598 1189 1364 I ActivityManager: Start proc 7403:com.android.nfc/1027 for restart com.android.nfc