yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Themes and Apps] SDA1979:
Hi guys,

same question for me..

i have an i9505 with 4.4.2 and CP I9505XXUFNB8 and i'd like to use NFC with screen of and locked.

which file do i have to download.

thank you so much for taking care of this requests.

regards
[Galaxy S 4 Themes and Apps] Atomregen:
And again, use xposed framework with NFC Modul.
[Galaxy S 4 Themes and Apps] losthorizon21:
LG G2

Hi there!

I wondering if there is any version of this app available for LG G2 D802 (ROOTED) running OFW 4.4.2?

Thank in advance for your help 'n reply!
[Galaxy S 4 Themes and Apps] mikejclark:
Hi all

I have echo v20 installed on my s4 with baseband i9095xxufnc4. Is this compatible?

Many thanks!
[Galaxy S 4 Themes and Apps] Atomregen:
With xposed it should go.
[Galaxy S 4 Themes and Apps] Ry WI:
will this work with SCH-R970?

this is exactly what I've been looking for. wondering if this would work on the USCC R970 rooted, stock 4.3 rom?

if so, is there a particular file that would be best? and is there a way to back up my current configuration? guessing the proper file to restore my model isn't listed here.

Thanks!
[Galaxy S 4 Themes and Apps] Atomregen:
Check over your post.
[Galaxy S 4 Themes and Apps] mikejclark:
Really missing this now I'm on lollipop. I used to use a tag in the car to enable Bluetooth and portable hotspot without taking my phone out of my pocket. Has anyone found an alternative to this without xposed?
[Galaxy S 4 Themes and Apps] tdunham:
I know this is an older post but I'm working at getting it working natively on lollipop with screen off. I'll post the fix for android L when I can confirm its working, there is an additional edit.
[Galaxy S 4 Themes and Apps] mikejclark:
Great looking forward to it
[Galaxy S 4 Themes and Apps] mikejclark:
Any joy with this?
[Galaxy S 4 Themes and Apps] tdunham:
Yes, I posted a guide for this. Pm me so I don't forget and I'll post a link.
[Galaxy S 4 Themes and Apps] tdunham:
A guide for this is posted here:

http://xdaforums.com/showthread.php?t=2799050
[Galaxy S 4 Themes and Apps] AussieRoss:
Core Prime

Does anyone have a NFC On while Screen off working on a rooted Samsung Core Prime running Lollipop?
[Galaxy S 4 Themes and Apps] sh3vik:
Hey!

Is it a similar solution for Nexus 5 with Android 7.1.1?

Thanks!
[Galaxy S 4 Themes and Apps] kantjer:
Same here no issues or extra battery drain at all :good:

I'm very happy with this mod.
[Galaxy S 4 Themes and Apps] ozkaya:
For anyone interested in the same mod for 9500, please try and report here:

http://xdaforums.com/showthread.php?p=41925895#post41925895
[Galaxy S 4 Themes and Apps] fmark:
Just wanted to let everybody interested know that I successfully tested this mod on my Canadian SGH-I337M version with rooted stock I337MUMUAMDJ rom.

1. Back up /system/app/NfcNci.apk and NfcNci.odex files.

2. Extract NfcNci.apk from XXUAME2-ODEX+DEODEX-NFC-Screenoff.zip (from the first post)

3. Copy extracted NfcNci.apk to /system/app/

4. Change NfcNci.apk permissions to 644

5. Reboot into Recover and clear Cache and Dalvik cache

6. Reboot the phone

Thanks to the OP ! I just hope this mod does not kill the battery. Now NFC is a real joy in the car :)
[Galaxy S 4 Themes and Apps] OptimalKiller:
Nice one fmark,

Glad its working on your phone, I doubt you will notice any battery drain, but you also could you the lockscreen version if you do experience any issues.

If you are happy that its working please feel free to post a link to this thread for other users as well

Many Thanks

Optimal
[Galaxy S 4 Themes and Apps] Franqy:
hello I have a question this mod also serves to the MDN version I'm very interesadoen the.
[Galaxy S 4 Themes and Apps] OptimalKiller:
It should be fine make a backup of the nfcnci.apk and nfcnci.ofex if it exists which is located in the /system/app folder and flash the mod.

If it does not work let me know.

Cheers

Optimal
[Galaxy S 4 Themes and Apps] quack3d:
I flashed XXUAME2-ODEX+DEODEX-NFC-Lockscreen.zip with CWM, but I still have to unlock the device before NFC works.

I have XXUAME2 rooted with CF-Auto-Root, odexed. That should be enough, right?
[Galaxy S 4 Themes and Apps] OptimalKiller:
Hi quack3d. Can you check the screen off version to see if that works. Let me know how it goes.

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] quack3d:
No go that either. :rolleyes:
[Galaxy S 4 Themes and Apps] OptimalKiller:
Ok can you try this version for me fist

Main OP updated the CWM script, to remove the odex files if using an odex rom

if that fails try the manual method.

COPY & PASTE PROCEDURE from @fmark post

1. Back up /system/app/NfcNci.apk and NfcNci.odex files.

2. Extract NfcNci.apk from XXUAME2-ODEX+DEODEX-NFC-Lockscreen.zip

3. Copy extracted NfcNci.apk to /system/app/

4. delete NfcNci.odex from the /system/app if it exists

5. Change NfcNci.apk permissions to 644 change owner to root and root if using root explorer

6. Reboot into Recover and clear Cache and Dalvik cache

7. Reboot the phone

Sent from my GT-I9505

Let me know which method worked for you if it does.
[Galaxy S 4 Themes and Apps] quack3d:
Yeah, new version worked. :good: I see now that the old tried to delete the wrong files.
[Galaxy S 4 Themes and Apps] OptimalKiller:
Yes, it would not have been an issue, if you was using deodex rom the file would have been replaced. but becuase your using an odex rom the odex file was not deleted.

I have updated the two versions on the main posts with the correct files to remove, it was an old hang up from SGS3.

Glad you got it working/

Optimal
[Galaxy S 4 Themes and Apps] quack3d:
That makes sense.

However, I'm getting a bunch of "NFC payment failed" just from reading a NFC chip that's set to read out the time loud. It also doesn't read it out when screen is locked (only the NFC sound plays) and freezes the device when I unlock.

EDIT: In NFC Retag I changed it to starting an app instead, but I get errors saying "Unexpected error..." and it sometimes freezes the device.

EDIT2: Cannot reproduce the error nor the freeze anymore. Not sure what happened. Everything looks to be OK now. A bit worried about the "NFC payment failed" that showed up a few times though. Any chance the NfcNci.apk you used could contain some naughty code?
[Galaxy S 4 Themes and Apps] OptimalKiller:
Hi quack3

No chance of any naughty code. The most common problem is that you have 2 programs conflicting each other. Look for a program called tags.apk and tags.odex back them up first then delete them. I cant help with the nfc payment as its not available in the uk.

But as you can see the program works. If you feel uncomfortable using the program. Please remove it.

The choice is yours.

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] quack3d:
Ok. Thanks for the help. :good:
[Galaxy S 4 Themes and Apps] flash3d:
Sorry for the delay but I promised to report back :).

Mod is working perfect and there is no noticeable battery drain (using the always on version).

Thanks again.
[Galaxy S 4 Themes and Apps] OptimalKiller:
Hi fladh3d

All feedback is very much appreciated glad its working well for you.

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] jhonm6060:
Its working great man...well done
[Galaxy S 4 Themes and Apps] gege0202:
great job

can we have the	XXUAME2 stock nfc?
[Galaxy S 4 Themes and Apps] OptimalKiller:
OP has been updated to include the stock nfc.

Optimal
[Galaxy S 4 Themes and Apps] gege0202:
great!

thanks
[Galaxy S 4 Themes and Apps] kantjer:
[MENTION=2722698]OptimalKiller[/MENTION]

Can the XXUAMEA version be used on Omega 5.0 or are you going to release an XXUBMEA version of this great mod?

Thanks :good:
[Galaxy S 4 Themes and Apps] OptimalKiller:
Hi kantjer,

The mod has been released and fully tested on Omega Rom 5

download either one of these. for [XXUBMEA] Omega build

XXUAMEA-ODEX+DEODEX-NFC-Lockscreen.zip

XXUAMEA-ODEX+DEODEX-NFC-Screenoff.zip

XXUAMEA-ODEX+DEODEX-NFC-Stock.zip)

I made a typo error the filename it should be called XXUBMEA

I have updated the OP with the correct names. :)

But all fully tested
[Galaxy S 4 Themes and Apps] Inrego:
This did the trick for me! First I followed fmark's instructions, but they did not include removing the odex file, so it didn't work for me. After several tries with no success I read through your instructions and that worked. As I don't have a custom recovery, I couldn't clear the dalvik cache from there, so I got an app from play store that could do it for me, and now it works. Now I just need to figure out something to turn on the screen / unlock it when I scan the tag. Should be possible with Tasker I suppose.
[Galaxy S 4 Themes and Apps] OptimalKiller:
Hi Inrego

Thanks for the update, I am using tasker to do exactly that. it unlocks shows the screen turn on bluetooth etc etc. Its such a handy mod.

Optimal
[Galaxy S 4 Themes and Apps] kiwimalayalee:
thank u BOSS....!!
[Galaxy S 4 Themes and Apps] giospecial:
screenshot please?
[Galaxy S 4 Themes and Apps] OptimalKiller:
There is no screenshot. As there is nothing to show.

Its a mod. Of the nfc function.

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] kantjer:
Is it posible to ad this mod, so we can detect NFC Tag removal?
[Galaxy S 4 Themes and Apps] OptimalKiller:
Nice find kantjer quite an interesting mod. I will look at it this weekend should be straight forward. I'll see if I can get it done. You fancy beta testing for me?

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] kantjer:
I requested it so of course I will beta test it:)

I will start thinking about a few Tasker task to make full use of it.
[Galaxy S 4 Themes and Apps] danielps23:
My NFC Payment keeps force closing after applying XXUBMEA ScreenOff mod. Anyone else with the same problem?
[Galaxy S 4 Themes and Apps] kiwimalayalee:
hi there, been using this mod since XXUAME2, can you make one for the new XXUBMF2 build?
[Galaxy S 4 Themes and Apps] OptimalKiller:
Hi kiwimalayalee

I have looked at the BMF2 and there is no difference or any code enhancements. Therefore I will not be creating a BMF2 Build. I recommend you install the XXUBMEA as its exactly the same in terms of code etc etc.

If there was any code enhancements rest assured I will make the mod for it.

Optimal
[Galaxy S 4 Themes and Apps] OptimalKiller:
I wish I could help but I cant as we dont have NFC payment in the UK yet. However have you tried wiping your cache and dalvik cache. You can do this by using CWM recovery

Optimal
[Galaxy S 4 Themes and Apps] danielps23:
We don't have NFC Payment neither. But after applying the mod, sometimes I get message stating that the NFC Payment force closed. And I can't access the NFC Payment setting, force closes. Could you try it?
[Galaxy S 4 Themes and Apps] OptimalKiller:
Yep I also get that too. I also got that error on the stock rom aswell. Without the modded nfc applied so I can definitely say it has nothing to do with the modded nfc.

Have you flashed back the stock nfc? To see if the error goes away

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] quack3d:
The app that crashes with the NFC payment error message is com.samsung.android.walletmanager with a SecurityException: Client module is tampered.

This happens when it tries to start receiver com.samsung.android.walletmanager.receiver.NfcStateChangedReceiver.

Will test if flashing to the stock NFC helps.
[Galaxy S 4 Themes and Apps] OptimalKiller:
Hi quack

Can you also test if you rename secwallet.apk to secwallet.org reboot phone. The error will go.

Please report back your findings.

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] flash3d:
Thanks for the updated version, going to install Omega 6.0 now and after that your new NFC mod.
[Galaxy S 4 Themes and Apps] OptimalKiller:
I have been checking the coding, I think I have found the problem, but on how to resolve it I am playing around still, Looks like dear old samsung has introduced lots of security features on the wallet and NFC modules.

A couple of things I have noticed that is different compared to SGS 3.

They have started to use signatures and to see if the rom has been tampered with, so the signature checks to see if the nfc has been modded, but not also that, it also checks to see if the files have been deodex or odex. It looks for particular odex files, if they are missing or the signature does not match it will classify the nfc and wallet as tampered, therefore I think it blocks the wallet from working. I think its more to do with payment transactions.

Since we don't have it in the UK it has not been an issue, As I only use nfc to do other stuff not payment transactions.

I will try to play with the coding to remove the check, but my skills are limited in terms of smali, but I will give it a shot.

Optimal
[Galaxy S 4 Themes and Apps] kantjer:
[MENTION=2722698]OptimalKiller[/MENTION] Thanx for the XXUBMF8 files, all prepared for Omega v7 now:good:
[Galaxy S 4 Themes and Apps] OptimalKiller:
[MENTION=3306843]kantjer[/MENTION]

Yep another great release cant wait to get it :D

btw still working on the mod, but I have got side tracked into trying to resolve some other issues that's been identified re NFC. But I have not forgotten.

Just seems not enough time in the day. btw you will soon run out of signature space, I just don't know how you get the time to do all the great support your offer.

Optimal
[Galaxy S 4 Themes and Apps] kantjer:
Take your time, no rush. I'm also juggling with time and so much I need to do and want to do ;)
[Galaxy S 4 Themes and Apps] MVKA:
Hello

Just installed and tested with NFC ReTag. Works like a charm now i only have to figure out where im going to place all those old ski tickets ;)

Great job bro

-MVKA

Sent From My Pink & Xparent GT-I9505
[Galaxy S 4 Themes and Apps] R4NDR01D:
Can you please make a mod for the VRUAMDK? I'd happily pay you for your troubles.
[Galaxy S 4 Themes and Apps] hisname:
could you make a mod for AOSP based rom? or if it's inconvenient for you to port to AOSP, maybe you could make a porting guide so I can have a hands on?
[Galaxy S 4 Themes and Apps] R4NDR01D:
OK, so I'm anxious to use this mod. Could I safely flash your latest MF8 mod to my stock, rooted MDK?
[Galaxy S 4 Themes and Apps] OptimalKiller:
Sorry folks. Been busy last couple of days work and all that.

Mf8 should work fine. Just make sure you have a backup of the files before replacing.

Nfcnci.apk

NfcNci.odex

Also just for your information if you use Google Wallet, this mod will stop it from working. In fact any deodex rom will break Google wallet on the sg4.

Let me know how you get on.

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] R4NDR01D:
THank you! Just backed up NFC, flashed your latest mod via CM Recovery and voila! NFC w/ Screen off! Thank you so much! This is a huge deal for me.
[Galaxy S 4 Themes and Apps] OptimalKiller:
Update.

Going to be releasing a new version of nfc mod which will hopefully will resolve the nfc payment issue.

It's being tested. Hopefully might be able to release it tonight on this thtead as a beta release.

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] OptimalKiller:
Hi folks.

This mod is a beta release screenoff version. Nfc payment Would be great to have feedback on it. As in the uk we dont use it yet. So anyone that. Does use nfc payment would be great to hear from.

http://db.tt/bcY84Ilz

Based on bmf8 build.

Once all confirmed working I will release all future version with the mod applied.

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] danielps23:
Just installed this beta version and it seems to be working fine... Thanks!!! No more force closes until now, although I can't test the NFC payment feature here in Brazil.
[Galaxy S 4 Themes and Apps] flash3d:
Optimal,

Would a Google Edition NFC mod be possible? Thinking of installing the GE but I will be missing your MOD :).
[Galaxy S 4 Themes and Apps] OptimalKiller:
Yes can you please upload the nfcnci.apk and I'll do the mod. This weekend.

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] flash3d:
Thanks, don't have my S4 atm (in repairs), if somebody else could do this :good:.

Otherwise we have to wait till my S4 is back, about 2/3 weeks.
[Galaxy S 4 Themes and Apps] OptimalKiller:
Dont worry I will take it from the omega google build version ;)

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] cathpah:
Apologies in advance for my ignorance, but will any of these mods work on the stock (rooted) rom?
[Galaxy S 4 Themes and Apps] OptimalKiller:
Yes it will it. As long as you download the correct version. For your phone

Dont forget to make a backup of your existing nfcnci.apk and NfcNci.odex using root explorer or something similar.

Also Are you any nfc payment on your phone like google wallet?

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] cathpah:
That's great news. I've been trying different methods today, all to no avail.

I've already backed up both nfcnci.apk and nfcnci.odex, so I'm all set there.

Mind telling me which one I'd need to use? I'm on a Verizon (CDMA) GS4 with stock rom. I'm hoping to get the version that allows NFCs to be recognized with the screen off.

Nope...no google wallet for me right now. The opportunities to use that for payment are significantly rarer than how often I'll be using NFC tags, so if I have to sacrifice google wallet in order to make the NFCs recognize while the screen is off, then so be it.

Thanks so much for the quick reply and all the work that you've done. I can't wait to get this up and running!
[Galaxy S 4 Themes and Apps] OptimalKiller:
Try this version

http://db.tt/bcY84Ilz

Reboot into recovery and install the zip file. If you dont use recovery. You will need to replace the files manually.

By deleting the existing NfcNci.odex and replace the existing nfcnci.apk with the modded version.

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] cathpah:
Perfect, thanks so much. It's "optimizing apps" (rebuilding dalvik cache?) right now.

I'll report back just as soon as I've tested it. Either way, thanks again.
[Galaxy S 4 Themes and Apps] OptimalKiller:
Cool it should be fine. Now you need a decent nfc tag program or profiler to utilise the tags.

I dont bother using the stock nfc tag program. Just found it to be of no real help.

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] cathpah:
It works perfectly! I cannot tell you how much I (and my wife) appreciate this. This makes the NFC functionality *so* much more useful.

For future reference, should/could I have known which version would've been correct for my phone, or did you just know that "XXUBMF8" happened to work with stock? In my cursory googling it seems that "XXUBMF8" applies to a custom rom (which I certainly don't have), but I imagine I may be missing some crucial information that would've helped me decide which would've been the correct choice. If you have any insight to share, I'd certainly welcome it...if for no other reason than to save other XDAers from having to hold my hand through other hurdles.

I'm using NFC Task Launcher and will eventually link in some tasker strings as well.

Again, my most sincere thanks.
[Galaxy S 4 Themes and Apps] OptimalKiller:
Well for this particular mod. I knew bfm8 would work. But for other mods I always try to stick to the same version. For simplicity and compatibility sake.

Especially when it comes down to replacing framework files. As replacing diffrent version could cause compatibility issues or FC.

The risk is small but it can happen. It's always best to read and ask questions, than blindly install the mod.

There is always someone willing to help. On xda

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] Aldideos:
Hi [MENTION=2722698]OptimalKiller[/MENTION], I love this mod but I have a problem since I installed xposed and google wallet.... I installed the google mod wallet, but I lost the nfc when the screen is off, I checked in the zip file and it install a nfcnfi.apk file on system...., Now trying to install your mod again, with this mod, google wallet break, so I reinstalled the google wallet mod...

Could you fix it?
[Galaxy S 4 Themes and Apps] OptimalKiller:
So just for clarity. Your have installed xposed framework, then the google wallet addon which is using the xposed framework?

Can you provide me the links you used to download the google wallet mod?, I suspect it replaces the nfcnci.apk.

Can you try this version for me as a test?

http://db.tt/bcY84Ilz

Optimal
[Galaxy S 4 Themes and Apps] kantjer:
I guess this one
[Galaxy S 4 Themes and Apps] Aldideos:
I used this tutorial.

However now google wallet seems to work... I'll try today to use sBeam and tomorrow for the google wallet payment, thanks

---------- Post added at 01:06 PM ---------- Previous post was at 01:01 PM ----------

One question if you know, nfc payment in i9505 with custom rom doesn't work, now if i want to do a payment with google wallet what must I do?

I must open the google wallet app manually or it opens automatically?

Ah, One problem, now the NFC payment, I think SecWalletManager, crash, why it is in the zip that you sent me?

Thanks
[Galaxy S 4 Themes and Apps] OptimalKiller:
Just remove the secwallet.apk thats just a sim pre payment. Some providers use that.

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] kantjer:
Use NFC TAGS to simplify life, nice post by [MENTION=4663337]Tha TechnoCrat[/MENTION] for those who what to start using NFC Tags.
[Galaxy S 4 Themes and Apps] OptimalKiller:
OP updated to include bmg3 build nfc. Fully tested on Omega Rom.

Enjoy

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] Cataligh:
NFC payment force closes on every reboot. Running Omega 8.0 with latest KT kernel on my I337 device.

This only happens after installing this Google Wallet fix...

http://xdaforums.com/showthread.php?t=2282892
[Galaxy S 4 Themes and Apps] OptimalKiller:
Ok at what point do you get the FC.

Is it when your running google wallet or before hand.

Have u been running google wallet before?

I may have a fix but I need your help on this one. Im currently running the screenoff version. With google wallet. I get no FC but I cant use it as im in the uk.

So if your willing to help it would be great.

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] Cataligh:
After rebooting, about 5 seconds in I get the tiny "w" icon in the top left corner of my notification bar. Shortly after I get NFC payment has stopped responding. This did not happen before I did the Google Wallet fix in my link above. Stock Omega 8.0 install everything was fine, of course I could not use Google Wallet though due to unsupported device/carrier.

I was running this exact same Google Wallet fix on Omega 7.0 with no problems at all. I tried installing your MG3 stock mod but I got the same problem. Thanks for your time!
[Galaxy S 4 Themes and Apps] OptimalKiller:
Ok cool. Would you be willing to be a beta tester for me I may have a fix. But never been able to fully test the google wallet.

If you are great. I would need the following from you.

I take it you recently installed omega 8?

I would need the following from your phone.

Build.prop which is located in the /system folder. You can get this using root explorer or similar.

Also did you change your csc code on Omega or have you left it at stock.

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] Cataligh:
Fresh install of Omega 8. Not sure what csc code is but I have not changed it lol. PM'ed you my build.prop. If that link does not work let me know, first time using Dropbox. Note I changed my build.prop in order to do the Google Wallet fix then changed it back.
[Galaxy S 4 Themes and Apps] OptimalKiller:
Ok well its 3:49am uk time. I will make a fix for you to test. And pm you the link.

The csc code is carrier specific. So it configures the phone for certain things. Nothing for you to worry about. I just wanted to make sure the potential fix does not overwrite your settings.

Should be ready for you tomorrow night.

Optimal

Sent from my GT-I9505
[Galaxy S 4 Themes and Apps] Cataligh:
Thanks again for your time :)
[Galaxy S 4 Themes and Apps] OptimalKiller:
PM sent to you. please post on this thread of any issues.

Optimak