Open NFC Simulator not working for Android emulato

2020-02-28 18:31发布

问题:

I'm trying to emulate NFC card reading in Android Emulator, using Open NFC v4.5.2 for that purpose.

I have followed all steps indicated here:

HOWTO use the NFC Simulator with the Open NFC add-on included in the delivery

I have also tried with insturctions from other StackOverflow posts such this or this, with no success.

When I start the emulator I'm not able to turn-on NFC in Settings->Wireless & networks->NFC, and NFC Controller Simulator doesn't show any activity:

Following is the capture of the Connection Center:

Any hints on how can I make this to work?

EDIT: Following is the output I get from adb logcat:

W/Settings(  381): Setting airplane_mode_on has moved from android.provider.Sett
ings.System to android.provider.Settings.Global, returning read-only value.
W/Trace   (  447): Unexpected value from nativeGetEnabledTags: 0
W/Trace   (  447): Unexpected value from nativeGetEnabledTags: 0
I/NfcService(  381): Enabling NFC
I/packages/apps/Nfc/nxp/jni/com_android_nfc_NativeNfcManager.cpp(  381): com_and
roid_nfc_NfcManager_initialize
E/packages/apps/Nfc/nxp/jni/com_android_nfc_NativeNfcManager.cpp(  381): can't i
nitialize NFC Manager
W/NfcService(  381): Error enabling NFC

I'm working on a Windows 8 Pro machine.

回答1:

I have suspicion that it might depend on versions of image of Android inside the emulator, have you used the image (or whole set) from:

http://open-nfc.org/wp/home/downloads/

or from Google distribution?