|Mod|How-To| Patched Google Wallet |28 Jan 2014|

upndwn4par

Inactive Recognized Developer
Jan 22, 2012
3,640
10,375
0
New Jersey
This is a guide for patching Google Wallet for the S4, which is based off the original work (here and here) by @loserskater. There is also a flashable zip linked below.

This mod is really simple actually. You just need to grab some files from the GT-I9505G and change some CSC code.

You will need the following files from the GT-I9505G:
Code:
/system/app/NfcNci.apk
/system/etc/nfcee_access.xml
/system/lib/hw/nfc_nci.MSM8960.so
/system/lib/libnfc_nci_jni.so
/system/lib/libnfc-nci.so
You will also need to grab the most recent app from loserskater's thread.

Now just place all the above files in the appropriate locations in your ROM.

In your ROM, navigate to /system/csc/feature.xml and open that document with a text editor.

Find the NFC code and replace with the following from the GT-I9505G:
Code:
<!-- NFC -->
<CscFeature_NFC_SetSecureEventType>GOOGLE</CscFeature_NFC_SetSecureEventType>
<CscFeature_SmartcardSvc_SetAccessControlType>NONE</CscFeature_SmartcardSvc_SetAccessControlType>
<CscFeature_NFC_DefaultCardModeConfig>ESE</CscFeature_NFC_DefaultCardModeConfig>
<CscFeature_NFC_EmbeddedSEType>TypeA</CscFeature_NFC_EmbeddedSEType>
<CscFeature_NFC_DefStatus>ON</CscFeature_NFC_DefStatus>

Notes:
If you flash the zip below Google Wallet will work, but some of your ROM features may change due to the included CSC file. If so, simply ask you ROM dev to update their CSC file with the code above.

If you are modding a TW 4.3 ROM, you will need to use files from a GT-I9505G 4.3 ROM. The same applies for 4.4 when we eventually get the update.

Do not install wallet updates from the Play Store. This will most likely break the patch.

Lot's of additional info available on loser's thread.

If you are outside of the US, you may need the disable device/network check Xposed module by entropy512 (also see post #8).


Download (Wallet version 2.0-R141-v14):
As with anything on xda, flash at your own risk.
GoogleWallet_jflteatt_TW4.3_v2


Donate to loserskater if you like this mod. Hit the thanks button on his thread as well.

*****
 
Last edited:

upndwn4par

Inactive Recognized Developer
Jan 22, 2012
3,640
10,375
0
New Jersey
Tried this on Att mk2 stock, and I get "tap and pay setup failed" in wallet

Sent from my Nexus 7 using Tapatalk
I had it working fine, played around a little more, then I got the same error as you. I thought I had broke my secure element, but I guess that didn't happen.

I'll try and get this fixed tonight.
 

camsurf

Senior Member
Jun 21, 2012
110
5
0
So in my feature.xml I don't have nfc. Looked and looked. Also I can't find the system/lib/ect. .... I have a i377m. Any ideas

Sent from my SGH-I337M using XDA Premium 4 mobile app
 

camsurf

Senior Member
Jun 21, 2012
110
5
0
So I tried this method and the source method and both times I got a nfc has stop over and over till my phone rebooted and same thing. Would really like to get wallet working

Sent from my SGH-I337M using XDA Premium 4 mobile app
 

camsurf

Senior Member
Jun 21, 2012
110
5
0
So I got it working. Just get the X posed mod google wallet root and region check remover. Then download the Google wallet apk. Then go to Google wallet on your browser and change your Addy to any US address. Worked for me after all that. Make sure to change your address before opening google wallet app.

Sent from my SGH-I337M using XDA Premium 4 mobile app
 
  • Like
Reactions: upndwn4par

upndwn4par

Inactive Recognized Developer
Jan 22, 2012
3,640
10,375
0
New Jersey
I updated the DL link in the OP with what should be a fully working version (didn't make a transaction yet).

If you installed the previous version you will need to clear Wallet cache and data before flashing the new version.
 

upndwn4par

Inactive Recognized Developer
Jan 22, 2012
3,640
10,375
0
New Jersey
So I got it working. Just get the X posed mod google wallet root and region check remover. Then download the Google wallet apk. Then go to Google wallet on your browser and change your Addy to any US address. Worked for me after all that. Make sure to change your address before opening google wallet app.

Sent from my SGH-I337M using XDA Premium 4 mobile app
Nice find. I'll direct non-US users to your post.
 
  • Like
Reactions: camsurf

lanimul

Senior Member
Nov 2, 2012
91
41
0
Salt Lake City
I went in this order, over wrote files from 19505 rom, placed latest mod from other thread, flashed zip from here and Nfc crashes. Is there a particular order I should be doing? I even tried a variant of editing the build.prop

Sent from my Galaxy Nexus using Tapatalk
 

upndwn4par

Inactive Recognized Developer
Jan 22, 2012
3,640
10,375
0
New Jersey
I went in this order, over wrote files from 19505 rom, placed latest mod from other thread, flashed zip from here and Nfc crashes. Is there a particular order I should be doing? I even tried a variant of editing the build.prop

Sent from my Galaxy Nexus using Tapatalk
What device do you have?

There is no proper order, and nothing else besides the zip in the OP should be needed (except for possibly the Xposed module).

I suggest re-flashing your ROM, then flashing only the zip in the OP.
 

ssn713

Senior Member
Dec 8, 2011
99
21
0
Honolulu, HI
This is a guide for patching Google Wallet for the S4, which is based off the original work (here and here) by @loserskater. There is also a flashable zip linked below.

This mod is really simple actually. You just need to grab some files from the GT-I9505G and change some CSC code...
... If you are modding a TW 4.3 ROM, you will need to use files from a GT-I9505G 4.3 ROM...
Sounds like a lot of work. :p

There may be an easier way to get wallet working on 4.3. @loserskater posted a flashable zip that included his modded wallet along with the necessary files/edits from the S4 Google Play Edition in the Verizon forums. Not positive this will work on the AT&T version but this is the same approach @dannyben used to get wallet working for us on 4.3 before he locked his thread and pulled the files.

Check out this thread for the zip.

Also take a look at dannyben's thread. Even though it's locked down, it still has some good info including stuff specific to AT&T ROMs and a patch for a couple of issues for those of us running Golden Eye.

Assuming everything else works, if you're running a ROM with an international base you may get fc's for NFC Payment. You can just freeze/delete that app without any issues.
 
Last edited:

viper_insane

Senior Member
May 28, 2013
63
8
0
Thank you!!! I have tried everything on my MDOB v20 (4.3) ROM, old versions, many many mods, and this one fixed it! I haven't tried it yet, but says tap and pay ready, which is the farthest along I have gotten (before it wouldn't even load).

Thanks!!
UPdate- Well I have access to Tap to Pay, but it simply doesn't work at a shop. I guess I need to try another route... So frustrating!
 
Last edited: