yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] Lister Of Smeg:
Hi [MENTION=4560679]jthatch12[/MENTION] / All,

Can someone explain where I am going wrong please...? I've tried all the patches so far, from JellyBean 4.3, to KitKat and Marshmallow... and despite NFC showing up in all versions of Android, with it's relevant patches. None seem to work with the App I am testing it with...?

I've found a Credit Card reading app, that picks up NFC contactless payment on the debit cards. I've tried it on an a debit card i no longer use... The App doesn't use any other permissions other than NFC, so its safe there, plus I don't let any data out otherwise.

I don't have anything else NFC based to test it on at the moment???

Interestingly enough, I can flash the KitKat NFC on Marshmallow roms, and it the NFC shows up in the setting there too...? ;)

I have the i9100P, should I be seeing a NFC logo in status bar if installed correctly and enabled....??

- did I see somewhere that you have to MOUNT the system partition before flashing the patch??

Thanks, Lister
[Galaxy S II Android Development] Viper The Ripper:
Tried with my daily driver (RR 5.5.9 LP) installing the patch manually, setting the correct permissions and remplacing default Cyanogenmod's nfclibs, located in system/lib for your patch libs. Booted into CWM and wioed cache and "dalvik-cache". Apps were updated with my new start... it doesn't work. NFC couldn't be able to turn on from settings menu
[Galaxy S II Android Development] Lister Of Smeg:
Hi [MENTION=4938641]Viper The Ripper[/MENTION],

I don't have a problem with installing the files, or them showing up in the relevant Settings of each build of Android. I see the NFC settings within each build of Android after flashing, they are already enabled by default... But don't see any NFC icon in status bar, along with WiFi and Cellular signal... like in the stock 4.1.2 OS.

However, no matter if I switch it off and on again... It re-acts how I would expect it to do, by switch off and on again. However testing with a couple of Apps on my Contactless Debit Card. Nothing is being scanned/detected???

I noticed the icon for the NFC.apk file shows a Bluetooth symbol... Is Bluetooth supposed to be enabled when attempting to scan...?

... and I've already read on the internet somewhere (and someone said in an EE store to my friend about NFC, that you need an NFC sim) that you need an NFC battery, for it to work?? Is this true...? Or is that if you don't have NFC in your phone...?

Cheers, Lister
[Galaxy S II Android Development] Draky50110:
The NFC antenna for the I9100P is located in the battery.

If your battery have no antenna, then it have not NFC.
[Galaxy S II Android Development] Lister Of Smeg:
Hi [MENTION=3582785]Draky50110[/MENTION],

Ah cool, nice one Draky.... Thank you... Yeah, just checked my battery (as I bought this phone off eBay like a couple of weeks back) and thought perhaps they put a compatible battery in if the NFC isnt working on these roms... But just checked, and its a Samsung battery... And just under the name Samsung at the top of the battery, it says "Near Field Communication" so yeah, thankfully have a compatible battery... :)

NFC appeared to be working under stock rom, as I had always the NFC logo in the status bar... However, Ive tried 4.1.2, 4.3, 4.4.4. and Marshmallow roms... And despite NFC showing in all builds of Android, in the Settings. No matter how many times i disable and enable it. I never see the NFC logo in Status bar, and not had any joy with any Apps and my Contactless cash card...?

Am I doing something wrong...?

Thanks, Lister
[Galaxy S II Android Development] Viper The Ripper:
Exactly... as mine ;) but no luck :(

---------- Post added at 06:15 AM ---------- Previous post was at 06:05 AM ----------

I didn't try to flash it :) I know how the updater-script works when the files are flashed :) I chose the manual method because of our mate [MENTION=3582785]Draky50110[/MENTION] faced some troubles during flashing the zip file with TWRP, anyway the NFC option was always visible in settings before I had installed correctly the apps, permissions and libs :eek:
[Galaxy S II Android Development] Draky50110:
So [MENTION=4938641]Viper The Ripper[/MENTION] does the NFC works for you now with your method ?
[Galaxy S II Android Development] jthatch12:
Yeah sorry guys, I can't update the .zip yet... Busy with work and grad school. If you manually set the permissions to -0655 it should work
[Galaxy S II Android Development] jthatch12:
For every file in the .zip
[Galaxy S II Android Development] Viper The Ripper:
Nope :(

---------- Post added at 06:26 AM ---------- Previous post was at 06:18 AM ----------

Are U meaning 755? :eek:

The first time, I setted the permissions as default system apps and libs (644) but it didn't work, the second one 755... the same result :(
[Galaxy S II Android Development] jthatch12:
Meant 644, give me a few days though. I'll figure it out :)
[Galaxy S II Android Development] TSHIP:
It works for Motorola Moto X

Thanks jthatch12 for the solution and burngraf for the idea about other phones,

I did the same for Moto X, at ROM MIUI v5

I took NFC Enabler version 10 KK,

replaced /system/lib/hw/nfc.exynos4.so

with motorola's

/system/lib/hw/nfc.MSM8960.so, that I copy from stock XT1052 firmware (with renaming to nfc.exynos4.so)

and install this zip.

Now Moto X MIUI has NFC support.
[Galaxy S II Android Development] Lister Of Smeg:
Hi [MENTION=4560679]jthatch12[/MENTION],

Been a while since I posted here in NFC thread, so just throught I'd just drop in... ;) Heeeeeya... lol

Just wish to say THANKS for the Marshmallow patch, that works beautifully on my i9100P.... :) I did try the other patches on the relevant firmwares, but not been so lucky...??? :( / Will give them another bash later....

However, I have all your patches from ICS, JB, KK and MM.... but wondered if you'd be making a Lollipop LP patch for NFC too...?? / no rush on this at all... just if ya get some spare time, just to complete the family of patches... ;) :D lol Tnx...

Cheers, Lister
[Galaxy S II Android Development] Draky50110:
So which zip file should we use with CM13 / Android 6 / MM now ?
[Galaxy S II Android Development] C.Z.O:
Hi I have Korean version galaxy s2 shw-m250s this model have nfc in official Korean firmware. I am converted to gt-i9100 is this mod work for this plz help
[Galaxy S II Android Development] Lister Of Smeg:
Hi [MENTION=6639926]Muhammadsoli[/MENTION] & [MENTION=7749783]paulseguin95[/MENTION] & Everyone else,

Apparently the MM NFC patch link has died, and is no longer available... So please feel free to download from this link....

I am NOT the developer behind this patch, all credit to OP for making all these patches available too us.

http://www.filedropper.com/nfcmm-alphaenabler-jthatch12

** Click [Download This File] in the grey box, the rest is self explanatory...

Many thanks, Lister
[Galaxy S II Android Development] paulseguin95:
Thank you Lister :D

I'll try to make it work on my device ah ah
[Galaxy S II Android Development] Lister Of Smeg:
Hi [MENTION=4560679]jthatch12[/MENTION],

How are you, hope you're well... :)

- sorry to keep dragging you out from retirement over this aging, but still much loved and developed device....

You've worked your magic on it before, time and time again... Wondered if you'd be so kind as to make you NFC patch available for Android Nougat (7.0 / 7.1.1) roms please. And if its not too much trouble, to add support for Lollipop (5.0 / 5.1.x) too please, as this appears to be missing from the VAST line up you have supported... :)

There is absolutely no rush, and of course no obligation to oblige and fully understand if you wish not to endure the pains of the i9100 all over again.. :P

Thanking you in advance.... Lister
[Galaxy S II Android Development] Ham1do:
Hi [MENTION=3582785]Draky50110[/MENTION]

v10 seems to be working on latest cm13 by markox89 ( tested with nfc tester from playstore ) , you can test it
[Galaxy S II Android Development] Ham1do:
Sorry .. I have uploaded the file because original link is broken
[Galaxy S II Android Development] Draky50110:
Flashed but, as option is present in settings, I can't activate it :/

How do you activate it ? Just tap on it ?

EDIT : ok succeed enabled it.

Long time.

No "hosted card emulation" and no "mifare classic" though...
[Galaxy S II Android Development] Lister Of Smeg:
Tried the MM version in N, and as expected (lots of changes in 7.x) , it didn't appear to work... :(
[Galaxy S II Android Development] lorn10:
Kernel requirements?

Even this thread here is quite old I want to say a BIG thanks for this amazing NFC Enabler! :good:

I have the following question. Can I use this NFC enabler at a CM11 build with Kernel 3.4.x? Exist there a specific Kernel requirements? I want to try this patch at a Samsung Galaxy mini 2 phone which uses the same NXP PN544 NFC controller like the Samsung Galaxy S II. This chip is usually labeled as NXP 44501, - so far I know this was the first version of that NFC controller, PN544 C1 . (http://www.nfc.cc/nfc-phones/samsung-galaxy-s-ii-nfc-i9100/) (Because of a driver problem the CM11 ROM for the mini 2 do not contains any NFC support.)

Interestingly the Moto X has a different, more recent NFC controller NXP 44701. Nevertheless this patch seems to work fine, - fascinating... :)

Little addition, a working download link for Version 10 (build for KitKat 4.4.x) of this NFC Enabler can be found here (I get this from page 54 of this thread):

https://redirect.viglink.com/?forma...www.dropbox.com/s/m07am8cchd...81%29.zip?dl=0
[Galaxy S II Android Development] lorn10:
nfc.msm7x27a.so file

Hello burngraf, - sorry to bother. I want to ask where I can find yours compatible nfc.msm7x27a.so file. I have also a Snapdragon S1 based phone (Samsung Galaxy mini 2 S6500) with the same chipset. Maybe this will work also in my case. :)
[Galaxy S II Android Development] Lister Of Smeg:
Hi [MENTION=4560679]jthatch12[/MENTION],

Sorry to bother you, and not sure if you're still active in dabbling with Android or indeed the S2 (i9100P). Guessing not, by the looks of things, last posting was about 6x months ago.

If you do see this, and have any spare time... would be grateful :good: if you could look to update your brilliant NFC Enabler for Android 7.x (Nougat), also if poss to support Android 5.x too.

Many thanks, and much appreciated...

Lister
[Galaxy S II Android Development] danieldeng2:
@jthatch12, please update for nougat

[MENTION=4560679]jthatch12[/MENTION], please update for nougat
[Galaxy S II Android Development] jthatch12:
My i777 is long dead! I will however release some test releases for the brave to try out. Pm me if you're interested... I'd also consider updating to a newer phone!!!! Hell, if anyone is interested in my HTC M7 or OPPO Find7a let me know haha.

Nonetheless, I'm shocked people are still using this mod some years later. Much more popular than I could've ever anticipated
[Galaxy S II Android Development] stridger:
I have a UK 9100P (O2 originally, I think). I mounted system, then flashed the patch (V3), then rebooted twice and it started working without issues.
[Galaxy S II Android Development] jthatch12:
Glad to hear the patch is working for 19100p users :D.
[Galaxy S II Android Development] RedWave31:
Yep, TYVM!

And btw, u can remove that red on the OP, options DO show on i9100p :p

If you ever need a challenge : Patch the NFC Icon that's missing from the framework ;)
[Galaxy S II Android Development] jthatch12:
I'll look into the NFC Icon and I'll remove the red now in the OP :highfive:

Also, has anyone successfully got any of the patches up and running on ICS yet?
[Galaxy S II Android Development] laraz:
OK back flashed v3 mounted/ system .bingo it all works. nice one on i9100p thanks
[Galaxy S II Android Development] jthatch12:
Glad to hear I could help
[Galaxy S II Android Development] Holdo:
What would happen if I flashed this on my Korean 250K with non-NFC battery? I know NFC wouldn't work, but I am using 3 batteries from which only one is NFC compatible. Just saying, last time I tried to flash some NFC enabler I had to reflash the ROM because when I turned the phone on, NFC force close popped out and everytime I pressed the OK button the FC poppup popped again. It was this patch:

http://xdaforums.com/showpost.php?p=24439878&postcount=102
[Galaxy S II Android Development] jthatch12:
It should work but to be able to use NFC you need a battery that has the chip in it
[Galaxy S II Android Development] jthatch12:
Hope this is working out well for everyone. I'm going to try to see if I can implement some fixes and push a release next week or so. I've been busy with work
[Galaxy S II Android Development] behemot24:
Hello jthatch12.

I flashed "NFCICS Enabler-jthatch12v1.zip" over wanam LPT 4.0.4 ROM and the NFC doesn't appear in the wireless and network options.

I also cleared the cache and the dalvik cache manually but it won't help.

Can you please have a look into it?

Thanks.
[Galaxy S II Android Development] jthatch12:
Yeah, I'm going to look into it today. After all week I finally don't have anything to do tonight! Just gonna grab a 6 pack and look into the issues. :highfive:
[Galaxy S II Android Development] Product F(RED):
Totally random but I remember typing this up in another thread. Not asking for anything, just thought it was random to bump into it. Well the i777 part is different from what I typed:
[Galaxy S II Android Development] jthatch12:
Someone had posted it on this thread, I'll give you the proper credit in the OP. I didn't know who wrote it until now. I changed the i777 part to clarify things a bit more.:D

OP updated, thanks for the good list explaining everything.
[Galaxy S II Android Development] Product F(RED):
You didn't have to but thanks lol.
[Galaxy S II Android Development] jthatch12:
It's only the right thing to do ;)
[Galaxy S II Android Development] shoman94:
I added this to my ICS ROM back in April... :D

Good job though!
[Galaxy S II Android Development] jthatch12:
This is for the roms that don't already have it ;)
[Galaxy S II Android Development] shoman94:
I gothya.... for reference... this is where I got mine.

http://xdaforums.com/showpost.php?p=24439878&postcount=102
[Galaxy S II Android Development] jthatch12:
I need testers for a 4.0.3 patch
[Galaxy S II Android Development] frossie:
In my xwlpm rom it doesn t works.

Inviato dal mio GT-I9100 con Tapatalk 2
[Galaxy S II Android Development] Draky50110:
i9100 is still used ;)
[Galaxy S II Android Development] zedkey1:
guys. do you know does it work with xperia sola, an Android 4.4 or newer version?

Anyway, can you renew a link - it is dead.
[Galaxy S II Android Development] Lister Of Smeg:
Hi [MENTION=4560679]jthatch12[/MENTION],

Heeey fella, are you still around... and still active in the community??

I understand your -I777 is long time dead, sadly... :( However, I wonder you're able to try a couple of blind builds... which I'd be willing to test. To bring your super cool mod/patch bang up to date with the likes of Nougat / Oreo / Pie (Android 7, 8 and 9), oh and I think Lollipop too... (Android 5.x)

We got a Marshmallow (Android 6) patch, which worked very well... :) "THANK YOU" :good:

If you have any time, and are able too... Would be very much appreciated!!! :good::good:

Cheers, Lister
[Galaxy S II Android Development] D_Saint:
NFC on S3 Mini with CM13

Does the patch work on Samsung S3 MINI GT-i8190n (NFC) version with CM13 installed?

Thank you.

Regards

Tied to flash... ZIP gave error, did not flash, so doen't work.
[Galaxy S II Android Development] Bhasith:
hey bro, did you tried in S3 mini? does it worked?
[Galaxy S II Android Development] Bhasith:
hey man, can give me the patch for nougat rom?

and does it work for S3 mini too?
[Galaxy S II Android Development] jthatch12:
OP updated with 4.0.3 test version..
[Galaxy S II Android Development] jthatch12:
been a busy busy man... still looking for a fix when I get free time.
[Galaxy S II Android Development] testicaltroy:
So does any one know if this supports/works with the Galaxy s2 (i9100t) ?

Cheers,
[Galaxy S II Android Development] jthatch12:
Does that phone have nfc? Have you tried flashing the zip? These are questions you can answer yourself
[Galaxy S II Android Development] merlin051:
Tested this on Samsung i9100p (Orange)

Currently running RR Jelly Bean V3.0.6 AOKP 4.1.1 (SGS2) The zip flashed ok, checked the settings and can see the options for NFC, but somethings not right.

I keep getting messages saying 'NFC has stopped working'

Currently I'm rolling phone to the backup I took before I flashed the patch, any ideas?
[Galaxy S II Android Development] jthatch12:
Something in the permissions didn't set right. When I was making and testing the patch, that's What ended up happening
[Galaxy S II Android Development] testicaltroy:
Yeah but what happens if it doesn't work, will it screw up my phone?
[Galaxy S II Android Development] jthatch12:
It can't screw up your phone. If it doesn't work, when you boot, the nfc program will keep force closing. If that happens you have to restore the nandroid backup or do a full wipe and reflash whatever rom
[Galaxy S II Android Development] merlin051:
do you have a workaround or something I can try to resolve this?
[Galaxy S II Android Development] jthatch12:
which file did you flash?
[Galaxy S II Android Development] merlin051:
I flashed this:

JB - VERSION 3

http://db.tt/1R5azjNd
[Galaxy S II Android Development] jthatch12:
Interesting, I haven't had anyone run into this issue. Also for people wanting the ICS patch , it should work on AOKP and AOSP roms. The issue for it not showing seems to be related with sammy roms
[Galaxy S II Android Development] jthatch12:
I think I have found the source of the problem. I'll be posting an update later
[Galaxy S II Android Development] therethere:
hey ya,

im having some problems on my phone i9210 with NFC too.

I installed CM10 rom and the NFC option is greyed out (but checkmark is activated) and android beam option too.

so, this mod will make that work?

thanks in advance.
[Galaxy S II Android Development] jthatch12:
Have you rebooted?
[Galaxy S II Android Development] AtomicAardvark:
Hi,

I'm running cMiui as a second rom on Dorimanx V5.78. kernel. As per the attached screenshot, NFC looks activated but I can not use the on/off toggle (grayed out). Also, "Android Beam" is also grayed out. I'm not sure yet if it works (yet), but I hope to see my friend tonight with a SGS3 that I believe have NFC.

Thank you for all the hard work on this. :)
[Galaxy S II Android Development] jthatch12:
As i just stated have you rebooted since the install? Fixed permissions? etc?

**Normally on first install of the mod, when you boot up you will see NFC in the mobile networks menu(if it worked correctly). Like you stated, it will be grayed out. Upon reboot you should be able to toggle NFC on and off.
[Galaxy S II Android Development] AtomicAardvark:
Hi jthatch,

Sorry, I forgot to mention I rebooted.

This morning I cleared the Dalvik and fixed permissions, then I booted up and rebooted with no change. I then flashed the NFC mod again, cleared the Dalvik and fixed permissions. Then booted up and rebooted. And no change.

I think the main question would be to figure out if my phone and Miui is compatible with NFC. I will be upgrading cMiui some time this morning and try your mod on the newest cMiui. I'll also flash Sapir's CM10 nightly and try it on that rom. I'll give you feedback when I have done so.

T'nx
[Galaxy S II Android Development] AtomicAardvark:
Sorry for the late response.

I flashed the above mentioned rom's and then the NFC Enabler with all cleared and fixed and rebooted. I had no luck. :( After some reading on-line it looks that the South African S2 was not NFC enabled at the time I got my S2. I will have to look at some batteries or SD cards that might be able to give me the ability.

T'nx for the help and info.
[Galaxy S II Android Development] jthatch12:
Well that makes sense then lol
[Galaxy S II Android Development] therethere:
im wondering if i can try this mod on my cm10 on i9210...

got all my option greyed out, but checkmark activated....but nfc not working.

---------- Post added at 10:39 AM ---------- Previous post was at 10:27 AM ----------

i tested, and it's working!!!

i am with the unoficial cm10 for i9210 and the options were greyed out.

Now, i flashed this mod, and all the options avaiable and working, including android beam.

thanks for the mod!
[Galaxy S II Android Development] jthatch12:
Nice to hear! I'll add it to the OP
[Galaxy S II Android Development] therethere:
nice,

the processor is not the same, but seems that the other files appear to fix my problem.
[Galaxy S II Android Development] RM57380:
It doesnt work on my phone. I'm on RR 3.0.6 JB with 9100P
[Galaxy S II Android Development] jthatch12:
That is interesting

Have you tired mounting the system in CWM Recovery before installing? Seemed to fix issues with i9100 users
[Galaxy S II Android Development] therethere:
It seems that the other files, maybe references or something fixed my problem. not the lib of processor ofc.
[Galaxy S II Android Development] RM57380:
I watch, apps, libs.... are installed and I see 'NFC Parameters' in Settrings.

Envoyé depuis mon GT-I9100P sous la Space & Time 0.5 avec Tapatalk
[Galaxy S II Android Development] jthatch12:
If you see it in the settings? Then what's the issue
[Galaxy S II Android Development] RM57380:
Also, i try with a 'car card', but.... m'y phone doesnt detect the NFC of this....

Envoyé depuis mon GT-I9100P sous la Space & Time 0.5 avec Tapatalk
[Galaxy S II Android Development] merlin051:
I have the same problem on the 9100P using the exact same ROM as you, RR 3.0.6

I see the params then start to get NFC force close issues.
[Galaxy S II Android Development] RM57380:
Oh: D I feel myself now.
[Galaxy S II Android Development] wicozani:
This worked on my Samsung Galaxy Nexus (GT-i9250), which is running Paranoid Android Jelly Bean v2.13 (based on CM10). It originally had no NFC or Android Beam settings in Wireless > More, but your app put them there and the NFC linked to Google Wallet! Thank you so much!
[Galaxy S II Android Development] jthatch12:
Thanks for the feedback! Glad I could help you out!
[Galaxy S II Android Development] gringocol:
I'm using i9100 (UK) not sure whether or not it supports NFC any ideas? or shed I just try do a nandroid and try anyways? :)
[Galaxy S II Android Development] jthatch12:
i9100 isn't supported. Take a look at your battery. if it doesn't say near field communication then it doesn't support NFC
[Galaxy S II Android Development] jthatch12:
I got word that this is working for the tmobile variant also. T989
[Galaxy S II Android Development] Kigsuha:
Well... It not work on my i9100p on pFittech sammy rom 4.0.4
[Galaxy S II Android Development] hp8050:
Hi jtatch

i have I9100P from sfr

i switch to the I9100 stock rom with the good kernel (LPW)

it's not working on stock rom LQ6 (ICS 4.0.4)

even after a reset factory and two boots like you said in the french site galaxy s2 team

please update it thanks in advance!
[Galaxy S II Android Development] aliishere:
not working on Neat rom Lite

not working on neat rom lite but it is working on Mystic glory....can u look into it plz...i really need it on neat rom
[Galaxy S II Android Development] h.nocturna:
Installed on a T989 Hercules running AOKP nightlies and still can't read NFC tags. Android Beam seems to work, but I use that less than I use my NFC tags. Anyone else have better luck getting NFC tags to read/write?
[Galaxy S II Android Development] jthatch12:
I'll look into it, keep in mind my device is an i777 so it may be hard to troubleshoot things I cannot test
[Galaxy S II Android Development] jthatch12:
what issue are you having? is it in the menu? please elaborate
[Galaxy S II Android Development] Galaxysm:
Would this fix the problem about sending pics to another phone that has nfc I think only some things do nfc and some don't...thanks.
[Galaxy S II Android Development] jthatch12:
No, I don't believe so. For doing that I recommend "Bump", both phones need the app installed
[Galaxy S II Android Development] jthatch12:
Need my testers soon