I attach the patches I have created and that should be applied to stock AOSP 2.3.4_r1.
The patches enable card emulation mode on Nexus S (original credit goes to Nemik, who posted the first working patches on Android Developers Group). They are basically a rewrite of my own patches but allowing also SWP mode for UICC sporting a SE.
I modified the Settings application to add a pair of options related to NFC:
To test card emulation, just approach your Nexus S to a Mifare compatible card reader. Embedded element (SmartMX) has a 4K Mifare card with stock keys (all FF).
As a bonus I also modified Bluetooth settings so discoverable option makes phone discoverable without stupid time limits.
Important BUGFIX Update 01/05/2012
The patch was not well created, since NFC was not enabled in building process. You could see NFC Settings but options were not enabled. The corrected version has date of today.
The patches enable card emulation mode on Nexus S (original credit goes to Nemik, who posted the first working patches on Android Developers Group). They are basically a rewrite of my own patches but allowing also SWP mode for UICC sporting a SE.
I modified the Settings application to add a pair of options related to NFC:
- Card Emulation Only Mode. This disables reader function. Card emulation mode is always enabled. Be careful because P2P mode may not work (not tested)
- Use External Secure Element if Available. This makes the phone to use the SE of the UICC if available instead of embedded one.
To test card emulation, just approach your Nexus S to a Mifare compatible card reader. Embedded element (SmartMX) has a 4K Mifare card with stock keys (all FF).
As a bonus I also modified Bluetooth settings so discoverable option makes phone discoverable without stupid time limits.
Important BUGFIX Update 01/05/2012
The patch was not well created, since NFC was not enabled in building process. You could see NFC Settings but options were not enabled. The corrected version has date of today.
Attachments
Last edited: