Hi,
the mod threads for the various cm12 builds claim that NFC is working, and there are also several user replies with reports that it works fine. Yet it doesn't work for me, and at least some others: The device reports that NFC is working, I can activate and deactivate it, but neither Beam nor reading NFC tags works. The funny thing is that after flashing cm12, restoring an old cm11 nandroid backup does not restore NFC functionality. It doesn't matter if I do a clean install/full wipe. With Lollipop TW roms (I've tried XtreStoLite), NFC works fine. I have the ANK1 modem and ANK7 bootloader installed.
Things I've tried so far:
There's nothing that looks particularly interesting in logcat, with the possible exception of these lines:
There's nothing interesting in dmesg, as far as I can see.
Has anyone solved this problem, or another idea how this could be solved? Also, if others here are affected as well, maybe we can pinpoint why some of us are affected and others aren't.
the mod threads for the various cm12 builds claim that NFC is working, and there are also several user replies with reports that it works fine. Yet it doesn't work for me, and at least some others: The device reports that NFC is working, I can activate and deactivate it, but neither Beam nor reading NFC tags works. The funny thing is that after flashing cm12, restoring an old cm11 nandroid backup does not restore NFC functionality. It doesn't matter if I do a clean install/full wipe. With Lollipop TW roms (I've tried XtreStoLite), NFC works fine. I have the ANK1 modem and ANK7 bootloader installed.
Things I've tried so far:
- Using Samsung's nfc libs from XtreStoLite (They don't work; the NFC app just keeps crashing, probably because they require a tw kernel)
- Using the g900i NFC fix (I don't know how to check which NFC chip is installed and thought that maybe they use different ones among different g900f devices)
- Manually updating the NFC configuration files (because I've noticed that despite running the latest nightly at that time, the files in /etc/libnfc* did not include the commit that updated them for Lollipop. This, however, does not seem to be the case with current nightlies anymore.)
- Using different kernels
- Using Temasek's hlte-based CM12 build and the unofficial builds from cm's repo that are posted in the unified forum
There's nothing that looks particularly interesting in logcat, with the possible exception of these lines:
Code:
# Just after enabling NFC
E/BrcmNfcJni( 2220): nfaConnectionCallback: unknown event ????
E/BrcmNfcJni( 2220): nfaConnectionCallback: unknown event ????
# When starting an NFC test app
I/Timeline( 2314): Timeline: Activity_launch_request id:com.nxp.taginfolite time:1175958
I/ActivityManager( 683): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.nxp.taginfolite/.activities.MainView bnds=[857,362][1044,608]} from uid 10160 on display 0
I/MicrophoneInputStream( 2682): mic_close gzi@dd3f2d7
D/audio_hw_primary( 271): in_standby: enter: stream (0xb34a20c0) usecase(7: audio-record)
E/BrcmNfcJni( 2220): nfaConnectionCallback: unknown event ????
E/BrcmNfcJni( 2220): nfaConnectionCallback: unknown event ????
D/BrcmNfcJni( 2220): RoutingManager::nfaEeCallback: NFA_EE_SET_TECH_CFG_EVT; status=0x0
D/BrcmNfcJni( 2220): RoutingManager::nfaEeCallback: NFA_EE_SET_PROTO_CFG_EVT; status=0x0
D/BrcmNfcJni( 2220): RoutingManager::commitRouting
D/BrcmNfcJni( 2220): RoutingManager::nfaEeCallback: NFA_EE_UPDATED_EVT
# When trying to disable NFC
I/NfcP2pLinkManager( 2220): Duplicate onLlcpDectivated()
E/BrcmNfcJni( 2220): nativeLlcpServiceSocket_doAccept: fail accept
D/NdefPushServer( 2220): stop, thread = Thread[Thread-91,5,main]
D/NdefPushServer( 2220): shuting down server thread
E/SnepServer( 2220): IO error
E/SnepServer( 2220): java.io.IOException
E/SnepServer( 2220): at com.android.nfc.dhimpl.NativeLlcpServiceSocket.accept(NativeLlcpServiceSocket.java:42)
E/SnepServer( 2220): at com.android.nfc.snep.SnepServer$ServerThread.run(SnepServer.java:211)
E/BrcmNfcJni( 2220): nativeLlcpServiceSocket_doAccept: fail accept
E/NdefPushServer( 2220): IO error
E/NdefPushServer( 2220): java.io.IOException
E/NdefPushServer( 2220): at com.android.nfc.dhimpl.NativeLlcpServiceSocket.accept(NativeLlcpServiceSocket.java:42)
E/NdefPushServer( 2220): at com.android.nfc.ndefpush.NdefPushServer$ServerThread.run(NdefPushServer.java:154)
E/BrcmNfcJni( 2220): nativeLlcpServiceSocket_doAccept: fail accept
E/HandoverServer( 2220): IO error
E/HandoverServer( 2220): java.io.IOException
E/HandoverServer( 2220): at com.android.nfc.dhimpl.NativeLlcpServiceSocket.accept(NativeLlcpServiceSocket.java:42)
E/HandoverServer( 2220): at com.android.nfc.handover.HandoverServer$ServerThread.run(HandoverServer.java:108)
E/BrcmNfcJni( 2220): RoutingManager::nfaEeCallback: unknown event=2 ????
Has anyone solved this problem, or another idea how this could be solved? Also, if others here are affected as well, maybe we can pinpoint why some of us are affected and others aren't.