[MOD] NFC SWP SIM Enabler for OnePlus 3/3T and OnePlus 5

snowwolf725

Senior Member
Mar 23, 2010
138
369
103
Taipei
[Download]
OnePlus 5
Magisk version:
https://www.androidfilehost.com/?fid=962021903579500366
Magisk version (Oreo):
https://www.androidfilehost.com/?fid=817906626617954510
OR
TWRP version:
https://www.androidfilehost.com/?fid=889764386195920245
TWRP version (Oreo):
https://www.androidfilehost.com/?fid=889964283620774120

OnePlus 3/3T
Magisk version: https://www.androidfilehost.com/?fid=962021903579500365
OR
TWRP version: https://www.androidfilehost.com/?fid=673368273298976012

[Install]
1. You need have a NFC Sim card
2. Download and flash zip file
3. Turn on "org.simalliance.openmobileapi.SMARTCARD" in app permissions

Ref (Chinese version):
http://blog.snowwolf725.jjvk.com/2017/07/10/658/

[Credits]
johnzweng and seek-for-android @ GitHub for SmartcardService.apk
https://github.com/johnzweng/platform_packages_apps_SmartCardService
@topjohnwu for Magisk

[How it work?]
There are some difficulties at enabling NFC SWP feature.
Firstly, the default security element of NFC is eSE(embedded Secure Element), you need change it from eSE to UICC(Universal Integrated Circuit Card).
So you should modify the NFC config file at /system/libnfc-nxp.conf

Secondly, mobile app can't grant NFC permission (org.simalliance.openmobileapi.SMARTCARD) from stock Oxygen rom.
App needs this permission to access NFC Sim, however it got security exception.

In order to fix it, we need replaces SmartcardService.apk with "normal" version.

Created 2017-08-02
Last Updated 2017-08-02
 

Attachments

Last edited:

Denkai

Senior Member
May 25, 2009
431
57
0
Seattle, WA
Certain countries use a different standard for NFCs. China uses SWP. They are able to swipe their phones at train stations and different credit card apps. Unneeded if you don't use it. Tested it in USA, it works but disables internet..
 
  • Like
Reactions: snowwolf725

snowwolf725

Senior Member
Mar 23, 2010
138
369
103
Taipei
Certain countries use a different standard for NFCs. China uses SWP. They are able to swipe their phones at train stations and different credit card apps. Unneeded if you don't use it. Tested it in USA, it works but disables internet..
Sorry, it's my mistake.
You should try this file:
Magisk version: v1.5a
https://www.androidfilehost.com/?fid=745425885120754291

Can you elaborate more on this? What does it do and why would one want or need it
Ref:
http://www.gemalto.com/brochures-site/download-site/Documents/tel-mobile-NFC-TSM.pdf
https://www.extremetech.com/mobile/105683-nfc-enabled-sim-cards-to-become-a-worldwide-standard
 
  • Like
Reactions: Denkai

Tiegui13

New member
Dec 23, 2017
2
0
0
Thanks,It's better, I can activate NFC, I added the autorisation to my mobile payment app but my it still says my phone is not compatible, I don't know how to test if it's an issue with the app I use or if the mod doesn't work.
 

Wagner.B

Member
May 13, 2016
44
4
0
just the SWP is not recconized by the OP5.

Edit - found this awesome developer @androcheck
he had a problem with the dual sim fom LeEco LEX720

https://forum.xda-developers.com/le-pro3/development/mod-patch-smartcardservice-sim-card-t3502369
The problem:
The LEX720 is a dual-sim phone, and so the (banking) apps could read SIM-cards from either SIM1 or SIM2 slot (I tested, SmartcardService works with both). But if you also want to use NFC for payment it has to be inserted into SIM1 (as it seems that only the SIM1 slot ist connected over an SWP line to the NFC chipset). Unfortunately the Austrian banking apps don't seem to handle the dual-SIM situation correctly and only try to read SIM2 (which is empty for me) and therefore don't work.
 
Last edited:

Haxor31

New member
Jan 17, 2018
1
0
0
I can't find "org.simalliance.openmobileapi.SMARTCARD" in my apps. (System processes showed). OP5, Oxygen 5.0 stable, Magisk 15.3. Help me please :crying:
 

EpicGtab

Senior Member
Sep 7, 2012
114
11
0
I can't find "org.simalliance.openmobileapi.SMARTCARD" in my apps. (System processes showed). OP5, Oxygen 5.0 stable, Magisk 15.3. Help me please :crying:
Same here can't find the file to edit. But my nfc sim seems to work but my app can't detect it.

Sent from my ONEPLUS A5010 using Tapatalk
 

app13

Member
Sep 27, 2012
38
9
0
Thanks for your work! It works fine on my OP3T running H2OS android 7.1. But after I upgrade to oreo, it doesn't work.
I have flashed the magisk version of mod through twrp, and tried to set permission using "pm grant xxxxxxx org.simalliance.openmobileapi.SMARTCARD", but it seems that this permission does not exist now.
I tried to download the OP5 version of mod to find the difference between normal version and oreo version. I looked into the /dev folder on my device, found pn544 exists, but I can't understand what's the meaning of changed numbers in libnfc-nxp.conf...
May I know how to fix the module to make it works on oreo? Thanks!


Sorry to trouble you, it does work on OP3T running H2OS android 8.0.
I don't know what's the point, but after a factory reset, and reinstall the app which using nfc-sim, it can works perfectly. Just wipe the data of the app is not useful, a reinstall is needed
I upgraded to 8.0 from 7.0 by a dirty flash, it may be the cause.
 
Last edited: