yashsingh1/xdaforums huggingface dataset:
[Verizon Samsung Galaxy S 4] ct_tec313:
OP, you change the part where it only works on deodexed roms, i have successfully set tap and pay on stock rooted odexed rom....heres what :(you need

1. root explorer to extract the zip file

2. after zip is extracted copy all of contents over to system/apps folders

3 change permissions for every single floder or app( if you don't know how to change permissions you probably shouldn't be attempting this mod)

4 change your NfcNci.apk to NfcNci.apk.bak if not you will have nfc services force closes

5 follow instructions very cafefully if you dont you can bork your phone.....you have been warned!!!!!!!!!!!!!!!!:D
[Verizon Samsung Galaxy S 4] nujackk:
I can confirm works on Stock odex MJ7 rooted via vroot. I changed names of all the files this replaced. to bak just incase so I could fix if borked.

and the NfcNci has odex file i changed name on as well.

My only problem is wifi is acting funny now and not sure of the cause since i updated xposed framework and couple modules while i was doing this.

(Anyone know if any of the files replaced would have anything to do with wifi?)
[Verizon Samsung Galaxy S 4] k1mu:
If you're really running stock MJ7 and have TWRP installed, you need to tell us how and claim the bounty for unlocking the bootloader.

What you probably have is MDK bootloader and a ROM built from the MJ7 base. That's not "stock MJ7".

Please prove me wrong - I'd love to have TWRP on my factory stock MJ7.
[Verizon Samsung Galaxy S 4] zapote21:
I said mj7 rom.

Of course its mdk bootloader.
[Verizon Samsung Galaxy S 4] dannyben:
The mod obviously has nothing to do with wifi as you don't even need to have a data connection to use it to make a transaction.

And... Same question as to [MENTION=3402724]ct_tec313[/MENTION] below. I know tap & pay will setup fine, but have you made a successful transaction?
[Verizon Samsung Galaxy S 4] dannyben:
Nice find!!! Thanks.

So you overwrote the original NfcNci.apk with mine and then changed it to a .bak? Did the OS then automatically create a new NfcNci.apk or do you simply NOT have a NfcNci.apk anymore?

Also..... have you tested to see if a transaction has successfully went through?

Thanks again. :good:

EDIT: Wait..... Im confused (unless you made a typo???) According to your post, you put all my libfix files and folders into your /system/app folder or did you move each individual file of my .zip into the /system folder into the correct subdirectories?
[Verizon Samsung Galaxy S 4] ct_tec313:
I over wrote my NciNfc.apk with yours witch is deodexed since you're is deodexed you have to back up the odex file sorry.....for that oversight.....moved all each file into its correct subdirectory and change permissions. ....
[Verizon Samsung Galaxy S 4] ct_tec313:
I can confirm that tap and pay is working......:D
[Verizon Samsung Galaxy S 4] swordmastr54:
How can I get tap and pay on 4.3 aosp ROM to work when I open up Google wallet it doesn't show me that?
[Verizon Samsung Galaxy S 4] psu90:
In your OP you mentioned a the fix for 4.2.2 based ROMs could be found "HERE", but there was no link. The other threads I could find didn't have R141 V14 of the Wallet APK included. Do you know of another thread that includes the latest version?

Thanks.
[Verizon Samsung Galaxy S 4] ct_tec313:
This what NciNfc.apk should look like
[Verizon Samsung Galaxy S 4] zapote21:
Just used it at CVS. Success
[Verizon Samsung Galaxy S 4] Kchitown1977:
This what I got this what I got after changing permissions moving all files from extracted zip now no tap and pay within wallet app after reboot
[Verizon Samsung Galaxy S 4] nujackk:
Actually you seem to be incorrect. I have odin'd twice and everytime I install this mod borks my wifi. May be because I am not overwriting any file simple changing all to .bak but definitely this mod causing problem. Just unable to track down which file. Reverting all the files back to original does not fix ( damage is done with reboot and does not seem to be reversible) May have something to do with wallet using the wifi to constantly track location
[Verizon Samsung Galaxy S 4] dannyben:
LOL. Come on...

A. changing a file to .bak is as if it NOT even there.

B. you see the exact files that are in the mod. If you delete them and replace that back with the originals that you did a .bak it's like you never did anything to begin with.

Why dont you "odin again". And this time dont install my mod. While youre doing that, READ some threads on your devices forum about what you're actually odin'ing (baseband, modem, bootloader, complete firmware -- one or all, not sure what you're odin'ing) and then see if thats compatible with the ROM/firmware you're using. This mod is lib files. Nothing to do with a modem. Thats your issue.
[Verizon Samsung Galaxy S 4] dannyben:
AOSP Roms should work out of the box. Dont install the libfix's but just push the modded wallet to the system/app folder and change permissions.

Make sure you reset, clear, remove the original first and reboot before starting.
[Verizon Samsung Galaxy S 4] dannyben:
Turn your NFC on. ;)
[Verizon Samsung Galaxy S 4] Kchitown1977:
Did I have all files named correctly.... wouldn't let me turn nfc on ill try fresh install and try again. Thanks for help
[Verizon Samsung Galaxy S 4] dannyben:
http://xdaforums.com/showthread.php?t=2457569
[Verizon Samsung Galaxy S 4] nujackk:
No need for the hostility, I know very well what I am doing and as I said changing every single file back to the original without doing an odin does not solve the problem even after multiple reboots. I am using the no wipe odin and it work fine wifi immediately fires up and connects, And again as I said have no problem until I install this mod. I'm sure its a single file somewhere. I suspected the wallet apk itself since it is reporting i9505 but removing it and reverting all other files did not resolve the problem.

Again I am using the Stock OTA rooted via vroot. Not able to flash so installing by hand. I may be making a mistake but the same mistake 3 times in a row is highly unlikely especially since i am looking for it.

Not saying you mod is bad simple that it is not playing nice on my phone. It works i used at 7eleven until i noticed the problem with wifi.

Now to be helpful can you tell me are we sure that every single one of these files are necessary for it to work, I don't remember having to change so many files with the s3?

Can you tell me what changes are being made to the LIb files if any does it just use the 9505 libs ?

Thank you for any assistance.
[Verizon Samsung Galaxy S 4] sonnycohopie:
Just used it at Mcdonalds. Tap n pay is confirmed. Thank you!!!
[Verizon Samsung Galaxy S 4] ct_tec313:
you have too delete the original NciNfc.apk file and turn the odexed file to .bak

---------- Post added at 05:05 PM ---------- Previous post was at 05:04 PM ----------

my wifi works fine after the mod havent had any issues so far.....
[Verizon Samsung Galaxy S 4] dannyben:
Not being hostile, but you're coming into a thread about an NFC fix, one that youre even stating WORKS on your phone, but somehow despite hundreds of downloads on ATT, Verizon and T-mobile your phone is the ONLY one that it borks the wifi on??? This despite the wallet apk (nor any of the lib files for that matter) have anything to do with wifi?!?! And you're not even flashing my mod... Youre manually changing files and then manually changing them back. And it still doesnt work after that -- despite again removing all traces of my mod and returning your phone to the EXACT state it was prior?!?!? Sorry, but thats impossible!

Yes, not as many files were needed on the S3. But even more files were needed on the 4.2.2 fix vs. 4.3 on the S4. And.....there are NO (ZERO) changes being made to ANY of those lib files. They are simply pulled from a variant that ATT/Verizon/TMobile didnt block and wallet works out of the box.

There are KNOWN issues with the 4.3 OTA or even odin'ing the bootloader alone and wifi. They're all over xda for every variant of the S4. Im sorry you're taking it as hostility, but blaming this file for your issues (and NOT ONE other of over the 300+ other people having the problem)??? Im just stating the facts, so that others dont lose out because of something you might not have done correctly. In fact I was simply trying to help and point you in the right direction....

Anyway, hope you discover what the problem your having is actually from. But.... it'll still be there without this mod.
[Verizon Samsung Galaxy S 4] ct_tec313:
Side note.... this app works like old Google wallet did before they updated the application snappy and responsive, don't have to wave the phone over the terminal five times for it to work.... and the Google wallet card works great too.. .
[Verizon Samsung Galaxy S 4] nujackk:
Thats just it, it not there or at least does happen until i install this mod. And that is why if you look at my original post I merely asked if there where any files in this mod that would modify wifi I was not and still do not believe it is this mod alone. Thats why i am trying to track down the specific file in this mod that is interacting with something else to cause me to end up with borked wifi.

either way I will no longer post in your thread as it does neither of us any good at this point. ( may post back if I track down the file)

Thank you for the assistance
[Verizon Samsung Galaxy S 4] Kchitown1977:
thanks ...:fingers-crossed:was finally able to set up tap and pay, ill be able to test and report back within the hour
[Verizon Samsung Galaxy S 4] ct_tec313:
Glad it worked don't forget to hit the thanks button If I have helped
[Verizon Samsung Galaxy S 4] Kchitown1977:
Tap and pay successful one gas station, one more store 2 try...

Edit: 2 for 2. Only thing I can't get to work is take picture of card to add other than that"no biggie" thanks to everyone involved making app use able for us
[Verizon Samsung Galaxy S 4] ct_tec313:
+1 on that
[Verizon Samsung Galaxy S 4] dannyben:
Did it connect to the secured wifi @ the gas station? :silly: :angel:
[Verizon Samsung Galaxy S 4] Kchitown1977:
My gas station no wifi. In country middle nowhere closest house 8 miles away:sly::cool:
[Verizon Samsung Galaxy S 4] xM Minton Mx:
Could this be possible on a note 3 just curious. Thanks

If I helped don't forget to hit that thanks button.

Sent from my Hyperdrive S4
[Verizon Samsung Galaxy S 4] ct_tec313:
I don't think so my friend if I'm not mistaken the s3 didn't ship with a secure element ,so its kit kat or bust for you note 3 folks.....
[Verizon Samsung Galaxy S 4] dannyben:
As ct_tec313 said, this mod....no. It is still based on allowing google wallet to communicate with the secured element which the carriers have blocked.

I was working on one however that allowed wallet to work as it does on kitkat. Using the HCE with no need for a modded wallet or xPosed and obviously working on phones without a SE. It was utilizing the necessary files from 4.4. which has it build in.

Unfortunately, I don't have a Note 3 to test it on, and quite frankly.... KitKat TW is "rumored" to be releasing in January -- making the mod pretty useless.
[Verizon Samsung Galaxy S 4] ct_tec313:
i just want to come back to report that i don't have any issues with this app, i have a 100% tap and pay success rate so who ever did this its working perfectly ....THANKS!!!!!!!:good:
[Verizon Samsung Galaxy S 4] dannyben:
Question? Since you're on an odexed Rom, do you get the "android is upgrading" your apps on each reboot?

Some people using AT&T odexed roms have reported that. Still works fine, and a small price to pay for working wallet ;)
[Verizon Samsung Galaxy S 4] djsnake210:
Hmmm... I tried to pay at best buy and got "unknown error. Ask cashier if transaction was successful". I asked the cashier and he said that it showed "contactless transaction was unavailable for my device."

I did everything in the directions... Any advice?

Edit: I included a screenshot of my setup in case it helps.
[Verizon Samsung Galaxy S 4] dannyben:
I never heard of that one before?????

But.... It does sound like the tap & pay did communicate with the reader so you should be all good!

Im guessing the cashier just did something wrong on his end. Try again someplace else & i bet it'll go through fine.
[Verizon Samsung Galaxy S 4] djsnake210:
Shall do... thanks for the help! I'll report back when I can.
[Verizon Samsung Galaxy S 4] ct_tec313:
Yep I get it on each reboot but it doesn't bother me. ...
[Verizon Samsung Galaxy S 4] psu90:
I've been told by the manager at my local Best Buy that most stores don't have the software installed on the register side for tap & pay trsnssctions.

Sent from my Samsung Galaxy 4 using Taptalk 4.
[Verizon Samsung Galaxy S 4] lilzone:
Tap to pay doesn't work at best buy even with a nexus.
[Verizon Samsung Galaxy S 4] djsnake210:
Wonder why that would be... They have the lil symbol and... Well... They are supposed to be all about technology. lol.

Thank you for the input though. I'll test other places.
[Verizon Samsung Galaxy S 4] psu90:
For those interested, I can verify that the install in the OP worked for me including Tap and Pay (verified at my favorite test McDonalds) on the new Hyperdrive R11 using the stock kernel.
[Verizon Samsung Galaxy S 4] Obsidian_soul:
This also works with the KToons kernel

Sent from RSL 11 Hyperdriven , Ktoons powered Galaxy
[Verizon Samsung Galaxy S 4] Stam2000:
I can second this. Just bought a pack of smokes from 7-11

Sent from my Hyperdrive Infused Galaxy S4
[Verizon Samsung Galaxy S 4] Jerryatric:
This guy is right. They aren't active for some reason.
[Verizon Samsung Galaxy S 4] dannyben:
Hey [MENTION=3402724]ct_tec313[/MENTION] (or anyone else running an odexed rom) I just made a new 'ODEXED' version if you'd like to try. Should get rid of that optimizing on boot.

Just make sure you have a nandroid to restore back to.

You'll need to start over. Reset wallet and remove. Make sure you dont have my deodexed fix installed. Might need to start with a 'clean rom'

But..... here's the complete zip. Should work fine on ALL 'ODEXED' roms --- I repeat, NOT for Deodexed roms.

Flash in recovery

Fix Permissions

Reboot

Setup wallet.
[Verizon Samsung Galaxy S 4] ct_tec313:
will do bro thank you a bunch....will test back and let you know....
[Verizon Samsung Galaxy S 4] ct_tec313:
hey bro its causing boot loops...did it manually and used flash gordon
[Verizon Samsung Galaxy S 4] dannyben:
Sorry about that. Was doing it blind. Only time I ever had an odexed rom on my phone was when I first booted it up out of the box ;)

Will download one and test it out myself first this time.
[Verizon Samsung Galaxy S 4] dannyben:
OK.... here's the issue with odex.

There doesnt seem to be any odexed 4.3 roms with wallet working....

I looked through Sprint first, and the odexed roms there dont have wallet

And there doesnt seem to be any zipped GPe roms anywhere that are odexed. Where I pulled the deodex fix from.

So I tried to do various combos of my files along with odexed files. Either got the "android is updating" on boot or a bootloop -- caused by the odexed jar framework.

I think the workaround would be to actually take my files and convert them to odexed. I saw a few apps to do that, but they require a windows computer (and Im on a mac).
[Verizon Samsung Galaxy S 4] ct_tec313:
Well I have a windows computer if you give me the steps maybe I can do it.....
[Verizon Samsung Galaxy S 4] dannyben:
There are a few apps here on xda that I found by searching "converting deodexed files to odex" but I just found something that might work better/easier/faster for you.

http://xdaforums.com/showthread.php?t=2092154

You 'should' be able to simply run that apk on your phone and it will automatically convert my files for you.

Just make sure you have a nandroid done first. LOL.

Good luck. Let me know if it works.
[Verizon Samsung Galaxy S 4] k1mu:
I tried this on a Stock MJ7 4.3 device, and it broke wifi. After a bit of checking, the first problem is it's because the recommended permissions of "0644" don't allow the /system/bin/secure_storage_daemon to run. Wifi uses the secure storage daemon during supplicant startup, so wifi can't turn on.

I changed the permissions on that to "755" and the daemon starts up, but wifi still doesn't work. The supplicant is getting "connection refused".

So, while it may work for lots of people, this doesn't work for us running factory stock 4.3 ROMs on the I545 at the very least.

It's probably something simple, but it's beyond me what triggers the failure. However, it's real. Maybe still some permission problem - I'll look into that once I'm done re-flashing yet again. :)
[Verizon Samsung Galaxy S 4] dannyben:
Sounds like you're running an odexed system if you're on factory stock. This mod is deodexed.
[Verizon Samsung Galaxy S 4] k1mu:
Yup, my device is odexed. No apparent permission problems other than what I found. Fortunately, easily re-flashed and re-rooted.

So, can the OP be changed from ALL VARIANTS to ALL DEODEXED VARIANTS, please? This doesn't work on odexed ROMs.
[Verizon Samsung Galaxy S 4] dannyben:
Lol. All variants refers to ALL carriers. It only says about THREE times in the OP that this mod is for deodexed roms. - - even though there are users reporting it works perfectly fine on odexed too.
[Verizon Samsung Galaxy S 4] ct_tec313:
well it works sort of, my wifi works but it wont keep the wifi passwords and i have to type them in but its a sacrifice i have to make to have google wallet, for some people it might be deal breaker but when you root this is what you get sometimes:o
[Verizon Samsung Galaxy S 4] k1mu:
Yup, I know. The reports that it worked on odexed ROMS is what caused me to try it.

I should have taken the advice in the OP, but I figured it was worth a try. Tap-and-pay did get enabled, so it's clearly working on stock other than whatever it does to confuse wifi.

No harm done, just wanted to confirm that it does break the wifi on the stock ROM.
[Verizon Samsung Galaxy S 4] dannyben:
Well.... You can always switch over to Hyperdrive. I certainly would if I was on Verizon.
[Verizon Samsung Galaxy S 4] rudyp9:
Help i did flash the mod following all the steps, but now my wifi is broken im on Tmobile 4.3 what can i do:crying:
[Verizon Samsung Galaxy S 4] ct_tec313:
That's weird, as I stated earlier I have wifi so I'm wondering what in doing different than other people.....
[Verizon Samsung Galaxy S 4] dannyben:
He was on t-mobile with a stock rooted rom. No recovery and didnt fix permisions.

I think the issue with wifi for the people trying to install this on their ODEXED roms is that they arent doing it in recovery or if they are/arent they arent fixing the permissions properly of the files.

Specifically, the /system/bin/secure_storage_daemon file needs to be set to 0755 (-rwxr-xr-x) , while all other files need to be set to 0644 (-rw-r--r--)

Its simple if you're using TWRP and click the 'fix permissions' button after flash (before reboot) as instructed in the OP, but they're either copying the files over manually not fixing, or not doing so in recovery.

Anyway.... as I stated, this is really for DEODEXED roms. It's bug free and works perfectly if you're DEODEXED. Yes, it still works on odexed too, as you reported, but with certain issues -- The files would need to be pulled from an odexed Google Play Edition 4.3 rom with a working wallet (for which I couldnt find).

I just created a new flashable zip. This will AUTOMATICALLY fix the permissions (to ensure completely WORKING wifi) as well as:

A. remove the SecWalletManager.apk (if youre flashing this mod on a i9505 based rom) ,and

B. remove NfcNci.odex and com.android.nfc_extras.odex (if you're on an odexed rom).

It therefore gets rid of any NFC error popups, as well as the 'Android is Upgrading' on boot if you're odexed.

I have installed MODIFIED_STOCK_MK2_ODEX_V1.4 from t-mobile and installed my MOD to that to CONFIRM everything INCLUDING wifi is working perfectly. Now if you dont have a recovery, try to copy the files over manually & cant follow directions.... Dont come here blaming me that something didnt go right. It's solely a result of user error.

You now have a single zip file for either DEODEXED or ODEXED roms

Enjoy!
[Verizon Samsung Galaxy S 4] dannyben:
OP Updated with new version for BOTH DEODEXED and ODEXED roms.

Enjoy!
[Verizon Samsung Galaxy S 4] k1mu:
This still fails and causes Wifi to be disabled on my phone. However, there's

nothing whatsoever

wrong with your files. It's the stupid enforcing mode SELinux getting in the way.

The relevant error is:

E/secure_storage_api_full.c, ln. 747( 7854): Client SS library: connect: Connection refused

It's trying to open the secure storage socket at /dev/.secure_storage/ssd_socket

The permissions allow it - the socket is 755, the .secure_storage directory is 711, which should allow the socket to be opened. Since it can't, the supplicant can't run and wifi is disabled. Since the permissions are correct, this must be SELinux blocking it. :mad:

I'll re-flash, check the context of the various files, and see if I can make it work. However, this isn't any indication of anything wrong with your zip file, it's our stupid Verizon stock ROM being annoying. Sorry for wasting your time.

Update: definitely SELinux. It wants /system/bin/secure_storage_daemon to have context "u: object_r: secure_storage_exec: s0" and without that "secure_storage_exec" connections won't work.

Unless someone figures out how to set SElinux to permissive mode on MJ7 and later, then this won't work, unfortunately.
[Verizon Samsung Galaxy S 4] nnbengboy2:
As others have said, I can confirm that tap and pay does not work at best buy. The best buy help desk doesn't even know what it is... This is from my numerous experiences calling them to "fix" NFC payments when I worked there. So much for a tech store eh?
[Verizon Samsung Galaxy S 4] dannyben:
LOL. Walgreens is the same. They have the readers there, but not the software to accept it.

Oh well..... will just need to stick to MickyD's, 7-11 and CVS.
[Verizon Samsung Galaxy S 4] jmackr13:
I had this work at my local New York State dmv today as well as while Christmas shopping at toys r us.
[Verizon Samsung Galaxy S 4] Shaftamle:
Has anyone had issues with NFC payment force closing? Sometime it does and sometimes it don't. Can't figure it out. Wish I could find a tap and pay vending machine so I could stand there until I got it to work... With out looking like a complete jack@$$. Lol. I'm on mdk, 4.3 fox hound version 3.2. And NO WiFi issues. Tap and pay is set up, its the NFC that's causing me headaches!:banghead:

Sent from a Shaftamle Galaxy S4

"Thanks Button" is always appreciated!

http://mycolorscreen.com/Shaftamle/

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

Scratch that. I forgot to clear old wallet data. Cleared it all, uninstall and reinstall. Confirmed working on fox hound 3.2 on verizon gs4!!

Now the only thing that sucks is making small talk with EVERY sales person. When they ask how I did that, you think "Magic" is an acceptable answer? Haha! Thanks boss! Awesome MOD!!

Sent from a Shaftamle Galaxy S4

"Thanks Button" is always appreciated!

http://mycolorscreen.com/Shaftamle/
[Verizon Samsung Galaxy S 4] dannyben:
Yes... On I9505 based roms there is a file in there for the European community that caused the NFC Payment FC's. So in the version I uploaded about a week ago I added code to remove that file (only if your rom has it). Fixed the FC issues.

Glad its working for you now!

Enjoy!
[Verizon Samsung Galaxy S 4] tsadev:
No **** caught in the ceiling fan gifs? Lol
[Verizon Samsung Galaxy S 4] rsalas187:
Does this work on MK2 stock, rooted with safestrap?
[Verizon Samsung Galaxy S 4] dannyben:
Merry Christmas