yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] davidukfl:
So I decided to test out using wallet on a few roms to verify what others have been saying about using TI backups.

I have an extra GSM Galaxy Nexus so I decided to test on that. I am using an old verizon/vodaphone sim and market enabler. This was my exact process:

1. Rooted the stock rom ITL41F 4.0.1

2. Installed wallet and activated it on the device. Activated a google prepaid card and got the $10.

3. Installed Titanium backup and made a backup of the wallet app+data

4. Tested NFC by using android beam to send something to my LTE Nexus (doesn't relate to secure element, but I wanted to make sure NFC was working properly to begin with)

5. Installed CWR and flashed Android Open Kang Project - maguro build (20)12

6. Booted into new rom, logged into my google account.

7. Installed titanium backup and restored my backup of the wallet app+data

8. Opened wallet, typed in my pin and verified it still showed my prepaid card and had the same User ID... which it did

9. Rebooted phone and opened up wallet to verify it was still working.

10. Rebooted the phone again, opened wallet, then logged out, then opened 3 more times to verify it continued to work.

I did the same test on 2 more roms:

CM9 Skankwich Kang 12312011-0951

GSM AOSP IML74K Android 4.0.3 Build 5

On all roms restoring the TI backup of the wallet app+data the app still kept working. I didn't make any purchases using wallet however so I'm not sure if this will have any bearing on the secure element lock.

I don't know if anyone else wants to give this a shot that hasn't already had their secure element locked. This may or may not work for someone else so it's your risk if you try it.

I was debating on trying to see if I could intentionally lock the secure element on my GSM Nexus by installing a new rom, then installing a fresh wallet apk and trying to use that. But I just can't bring myself to do that yet :)
[Samsung Galaxy Nexus] biggiephat:
Not correct. Ive flashed about 10 roms since first activating my google wallet on 4.0.2 stock. Every time the rom has had GW baked in, I've never deleted it and just restore my TiBu backup opened it up and i was good to go. Just recently i forgot to restore the GW backup and juts opened up the one baked in, it just linked my google account and returned my prepaid card to the balance remaining on it.
[Samsung Galaxy Nexus] mohitrocks:
Thanks so much for testing this! I might just go ahead and restore my titanium backup on AOKP and see if that does anything. If I do, I'll let you know :)
[Samsung Galaxy Nexus] beng2k:
I have tried everything. As stated above the safest way would be for from developers to EXCLUDE the wallet apk for everyone's safety and everyone restore your titanium backup.

y'all been warned now but I'm still left with no wallet yet.

PS lukegb..I'm available tonight if you need to try anything new
[Samsung Galaxy Nexus] pedxing:
After researching the tech specs of the secure element itself, I'd agree the safe way to flash new roms is to first make a ti backup of your existing wallet install with data. Here's why:

First off the secure element is an integrated circuit on the galaxy nexus with some specialized storage used to store special apps. It is not a partition on the regular storage of the phone. This explains why a nandroid backup has no effect on fixing a locked down element. The apps are completely locked down with full on encryption with private keys protected by a third party, not even Google. From a technical perspective, Verizon's beef with this approach is that they feel (rightly so in my opinion) the secure element should be stored in the sim card instead of the phone itself. There may be other reasons (Isis) but this one seems reasonable.

The secure element has self defense built in that will permanently disable it self if the element password is entered incorrectly too many times. I haven't been able to find what the cutoff is.

So if you flash new roms and try to reinit the wallet and the secure element as if for the first time it will be entering an incorrect password multiple times.

If you restore the app and data before running wallet then it should not try to init the wallet again and will use the same password key as set up originally.

There are other ways to locked yourself out however. Apparently the element password has to be entered when certain things happen. These things include but are not limited to changing batteries which effects the nfc antenna as well as simply turning on or off the nfc function from the settings menu. No idea why this requires a reauthorization to the element but it seems to.
[Samsung Galaxy Nexus] beng2k:
I hope you mean semi-permanent lol otherwise this one is going up for sale.
[Samsung Galaxy Nexus] bengals1975:
Wallet is currently working for me right now but all this SE stuff has me a little freaked out about switching to CM9 when it comes out or what in the world happens when google updates the Wallet app (i'm going to hope nothing for the latter since you would retain the same data?).
[Samsung Galaxy Nexus] biggiephat:
Disagree. Ive disable/enabled nfc NUMEROUS times on many roms. Ive also installed google wallet from my backup and switched batteries numerous times.
[Samsung Galaxy Nexus] sunnyismyname:
APK works!

Just installed the APK for the first time on my GSM Galaxy Nexus. It works well! Just had dinner on Google at McDonalds. Thanks! :)
[Samsung Galaxy Nexus] pedxing:
Dunno. For this part I'm going off reports of people who have done one of the above things and it locked them out right afterwards. So you're mileage may vary. Personally I don't see the relationship for the battery thing since it only involves the antennae.

Until this is figured out 100 percent, the main thing is looking like the backup and restore option with a product like titanium is the best bet.
[Samsung Galaxy Nexus] 9kracing:
I also installed the APK on the stock rom, used it a few times, backed it up with titanium , then wiped and flashed gummy nex. I restored the backup data, but it didn't work when I tried it, so I cleared the data in settings. Re logged in, it showed my old balance and worked at rite aid today. So it definitely isn't flashing roms that causes this. Its something else.
[Samsung Galaxy Nexus] mohitrocks:
It apparently happens if you go from one rom with wallet installed to another using a pre-installed app or the apk method, but doesn't occur when you restore a titanium backup. See this post.
[Samsung Galaxy Nexus] jtambis6:
I am so ready to root my phone but I also don't want to risk getting the dreaded Secure Element lock. What do I do? Should I wait until Google irons out all the glitches or just say screw it and jump head in first.
[Samsung Galaxy Nexus] mohitrocks:
If I were you I'd wait until the Secure Element issue is all sorted out. I mean, you could always root and restore the Titanium Backup, but there's no guarantee that it'll work. At least on stock you can be sure that it'll work.
[Samsung Galaxy Nexus] Man_Utd:
I had a question for the people who are using Titanium Backup. After you guys flash a new ROM, do you boot up then restore the GW data through Ti Backup? I've never used Ti Backup, so I want to get it right the first time. Thanks.
[Samsung Galaxy Nexus] 9kracing:
Yep, exactly. I backup the GW data, flash the rom, restore the data, open the app and then immediately close it, wipe data in settings, then sign into GW and it auto restores my total and transactions.

I updated Gummy Nex tonight and had to reflash gapps. Everything went fine again, although this time it signed me out when I first logged in. That's why I wiped the data and relogged.
[Samsung Galaxy Nexus] mohitrocks:
Thanks for this, trying to restore my titanium backup right now, will post back with results.

EDIT:Thank god. Worked perfectly :D Just restored App + Data and it worked! :D

EDIT2: Clicked "Add Google Prepaid card", will post back with results.

EDIT3: Seems to be frozen at "Verifying your account with Money Network"

EDIT4: Took a long time, but worked perfectly!! Thanks so much guys!
[Samsung Galaxy Nexus] helifrek:
After many force closes (using aokp) I put revolution HD back on wiped everything and downloaded the apk and it worked! Got my $10 from Google and can't wait to try it out. Going to put it on the wife's phone next. Not blaming aokp. I liked the layout a lot more but rev HD has been more stable for me. Thanks for your hard work on this.
[Samsung Galaxy Nexus] korkie:
is there a solution for non-US to run wallet without the marketenabler?

Its working fine for with the marketenabler, but this change my apn and i cant go online unless i change it back. so another solution would be great. :)
[Samsung Galaxy Nexus] lukegb:
It's possible, even likely, that the NFC libraries have changed in 4.0.3 from 4.0.2 in an incompatible way. I can't currently check this, as I don't have a Linux system up (nor a VM) to check the Android code out on, but I will be doing this ASAP.

On a side note: before changing ROMs, reset Google Wallet from within the app (this also removes the applet from the SE).

I'm having fun with am broadcast -a android.intent.action.MASTER_CLEAR_NOTIFICATION (as root) ;) - it causes the NFC library to remove all applets from the secure element.

Side note: I still haven't been able to cause the secure element to lock me out.
[Samsung Galaxy Nexus] beng2k:
trade ya phones lol

I wonder if my adding funds to the google card made a difference?
[Samsung Galaxy Nexus] karnaj:
When I was on stock 4.0.2 the install method didn't matter. It wouldn't run.. When I went to P3Droid's Tranquil Ice 4.0.3 and Gw comes preinstalled GW has worked perfectly ever since.

Karnaj
[Samsung Galaxy Nexus] beng2k:
Change to AOKP and dont restore any backups, see what happens

at your own risk of course
[Samsung Galaxy Nexus] lukegb:
I don't really like the look of AOKP/4.0.3; hence why I've never run it. I've only used 4.0.0/4.0.1/4.0.2 ROMs :P
[Samsung Galaxy Nexus] Royal2000H:
People have been trying to figure out why some methods lock the Secure Element on some phones and others don't... and why those methods that do lock some phones don't lock other phones

I noticed a lot of discussion on the method of installing and changing ROMs and what was done with the Wallet APK... but no one mentioned really whether they are on LTE or GSM Gnex. This could be part of it. Maybe the LTE permanently disables the SE after loading the app on a new ROM while the GSM doesn't.. or vice-versa
[Samsung Galaxy Nexus] aznxk3vi17:
Does this mean you're pinpointing the cause/solution? I personally don't have the issue yet, but it's preventing me from trying out any other roms (I've only gone from stock to ARHD and nothing else).

Are you also suggesting that resetting Wallet from within the app guarantees secure element preservation? I suppose you can't guarantee anything at all, considering you haven't been able to repo this issue.

Perhaps this is the key? It seems most people who move onto 4.0.3 are the ones with issues, thus your astute observation that the libraries have changed.
[Samsung Galaxy Nexus] beng2k:
Wonder if I should revert to 4.0.2 and see if it can be cleared?

On a GSM version
[Samsung Galaxy Nexus] 9kracing:
Just to dispel any 4.0.3 rumors, I installed the APK on a stock (albeit unlocked) version of 4.0.2. Then I flashed Gummy Nex 4.0.3. Then I flashed the newer version of GN.

Still no issues.
[Samsung Galaxy Nexus] ScarcelyAware:
I can comfirm that Google Wallet works after flashing a new ROM. I went from an early version of the same ROM to the latest one. Im using an LTE Nexus. I followed the instructions from another post and did a Titanium Backup before i flashed a Superwipe zip. After flashing the ROM, I restored the app and data, installed GW, immediately Force Stopped the app, reopened, GW, went through the set up, and presto, GW up and running! Took the risk and it was worth it.

Can everyone who is locked out post whther they have the gsm or lte?
[Samsung Galaxy Nexus] helifrek:
Google bought my wife and I lunch at mcdonalds and some snacks from BP! The guy at BP seemed pretty confused!
[Samsung Galaxy Nexus] hanschke:
i try to install it after flashing a custom rom with 4.03. i have before stock but never run it on my gsm phone.

now always the wallet.apk crash if i want to run it :(
[Samsung Galaxy Nexus] Protocol 7:
I'm getting "funds not added -- please try adding funds again" when I now try to add funds for the third time. I was prompted for my SSN, which I entered (I am a US resident), and when I continue, a notification just comes up saying what was mentioned previously. Is there anyone else getting this issue/know any fixes? Am I completely locked out now?

EDIT: I am using the same card I've used to refill my wallet the last two times.
[Samsung Galaxy Nexus] martyotaku:
mine stopped working today after flashing a rom that had it cooked in...flashed back to stock and still wont work?

used to work fine ...bunch of different roms never had a problem but now it when i try to open up its a black screen that i have to force close

btw verizon lte nexus
[Samsung Galaxy Nexus] mobilehavoc:
Are you on custom rom or flashing anything? You got me worried so I just topped up my Google card the 3rd time with no issues. Not sure what could be causing this issue for you.
[Samsung Galaxy Nexus] lukegb:
Sounds like a Money Network issue - give them a friendly phone call. You may need to... Manipulate the truth a little, if they ask about your device and/or carrier. They undoubtedly have the information anyway.

They didn't really even seem to care when I phoned them from my Gmail account with my blatantly British accent, so you should be okay.
[Samsung Galaxy Nexus] gckorn:
Used up my $10 from Google Prepaid at CVS. Awesome. Then went to add funds and it repeatedly said unable to add funds. Tried AMEX, M/C and a Visa debit card. All failed.

I live in the US and tried to use US based cards to replenish the Google Prepaid Card. Phone is Galaxy Nexus running 4.0.2. Wallet installed via apk. Unrooted phone.

Help. Thanks!
[Samsung Galaxy Nexus] lordloki77:
spoke with google wallet rep

I just spoke tonight with a rep from Google Wallet who said that the only modifications that irreversibly screw up google wallet are hardware. He's aware of the nexus issue, and not yet aware of a problem that can't be fixed when caused by software with it.

So, hope, at least, for those with the problem!
[Samsung Galaxy Nexus] :
you got this issue before you opened wallet? or as soon as you flashed rom?
[Samsung Galaxy Nexus] martyotaku:
no after i flashed tried to activate card (which i never had a problem before on many rom stock and custom)...but this time screen goes black and doesnt respond till i kill app
[Samsung Galaxy Nexus] lukegb:
Try clearing data and cache for GW from Manage Apps.
[Samsung Galaxy Nexus] unknownkwita:
has any one used the adb backup command instead of TI or NAND?

just want to know if it backs it up sufficiently to avoid the SE errors

command in this thread: http://xdaforums.com/showthread.php?t=1420351
[Samsung Galaxy Nexus] mohitrocks:
Still working perfectly for me - AOKP Build 11, 4.0.3, GSM, Franco kernel. Just bought a Vanilla MasterCard yesterday, signed up on a US zip code (on their website) and finally, went to add funds and it worked. There's also a great tutorial online but I'm on my phone right now, so I don't have it. I'm in Canada if that makes any difference. Note: I think the Vanilla prepaid MasterCard is only available in North America.
[Samsung Galaxy Nexus] aznxk3vi17:
Well it looks like LTE vs GSM isn't the issue. However, perhaps another survey would be informational? Perhaps those with the LTE Nexus running unofficial 4.0.3 are getting locked out, due to the aforementioned NFC changes?
[Samsung Galaxy Nexus] martyotaku:
done that
[Samsung Galaxy Nexus] beng2k:
also not a 4.0.3 problem either then?

I'm on whatever kernel comes with aokp m1 otherwise I just used super boot for su & cwm recovery
[Samsung Galaxy Nexus] beng2k:
android beam turned off

Trying to open menu to clear data
[Samsung Galaxy Nexus] aznxk3vi17:
At this stage, are you able to try resetting Google Wallet from the settings menu?
[Samsung Galaxy Nexus] EvanVanVan:
I think that was the last picture he posted?
[Samsung Galaxy Nexus] beng2k:
Nope when I tried to push menu its crashed out.

On a recreation of the above events (in that it was reproduceable ) I was able to view the full cars number which was right but it crashed right after. It also has some transaction showing in that part of the app.

Lukegb...I will email you some different log files.
[Samsung Galaxy Nexus] lukegb:
Bingo.

I think I found the commit where it all changes, but I'm going to need beng2k's help to have a look at this again. A lot has changed for NFC between 4.0.3 and 4.0.2, particularly regarding access to the secure element.

In particular, it is no longer regulated by an Android permission. It is now regulated by a static XML file containing the package names and signatures allowed to access the SE. NfcGoogle.apk now no longer exists and has been replaced by Nfc.apk
[Samsung Galaxy Nexus] beng2k:
That's what I was gonna try when I get home was replace my old nfcee access XML file with keys and see if that would initialize it...if they exist in my nandroid
[Samsung Galaxy Nexus] lukegb:
Can you send me a copy of your current one? Thanks.
[Samsung Galaxy Nexus] budmannxx:
I'm having the issue too, stock 4.0.2, Verizon LTE, unlocked boot loader but no custom ROMs installed.

I used up my free $10, was able to reload the prepaid card with my credit card maybe 2-3 times, but now I get a "funds not added" notification when I try to add more. I have in installed and reinstalled the app (.apk) and cleared the cache and all of the app's data.
[Samsung Galaxy Nexus] mobilehavoc:
Anybody having issues who DO NOT have an unlocked bootloader? I am completely stock 4.0.2 GSM and so far Wallet has been working perfectly. Worked everywhere I have tried and I just added a Citicard M/C I got just for Wallet - that went fine too! :)
[Samsung Galaxy Nexus] martyotaku:
Mines unlocked now doesn't even open the app up anymore ...just black screen till gives option to kill app....also noticed after that that the settings app under more where nfc is doesn't respond? U think its hardware? But if I dont install wallet after flash its fine..

.strange wallet worked for a while till a flash on a custom rom
[Samsung Galaxy Nexus] inline6power:
so here is the error i am getting. i had google wallet working great on a 4.0.3 based rom. decided to update to his newer rom for bug fixes and i had to reinstall the google apk. did so, reactivated my account but now when i try to add the google prepaid card, it gives me an error and says error adding card, please try later. no matter what i do, its the same error when trying to add the prepaid card. and no i didnt look threw all 117 pages because i did not see this error in the op.
[Samsung Galaxy Nexus] gregvfx:
Funds not added after 2-3 fund loads

This is normal. I was in NY for the Holidays, and tried to add funds a third (or fourth time) and was presented with the "funds not added". I was then presented with a new screen to enter some information; my address and social security number.

I called the money network that handles the Google card (phone number is available in the e-mails from them when you load the card), and was told that this is normal. That upon the third or so fund load, they require a identity verification.

They were very helpful, added my information into their system. After they verified my address and other personal information in a matter of a minute or two while I was on hold, I was able to load funds without a problem.

Hope this helps.
[Samsung Galaxy Nexus] inline6power:
anyone else with this errror?
[Samsung Galaxy Nexus] Royal2000H:
Sorry if this doesn't help, but the title of this thread is the error you are getting:

http://xdaforums.com/showthread.php?t=1401822
[Samsung Galaxy Nexus] pandafloski:
4.0.3 POSSIBLE fix for payment error

The Problem

So I have my galaxy nexus on CM9 builds, and I was getting that read error (different than the secure element error) where everything would work right up until it said error after sending payment and the cashier looks at you funny.

The Crap I Went Through

So I had a lot of fun tonight speaking with both google's support, money network, and whatever that 3rd company is that does the wallet service itself. Long story short, if you utter anything other than "nexus S 4G", they will latch onto it and tell you they can't help you. After being given several excuses ("doesn't have the technology", "unsupported", "only sprint network", "There's a special imaginary program that doesn't let you", etc), a guy from the wallet department let slip this bit and it WORKED.

THE (possible) FIX

He said that your account really gets set-up after you add funds and subsequently give it your information. I imagine it's not the way it's intended since google gives you $10 up front, but none-the-less I added the smallest amount possible ($20), did the whole setup for transferring funds, went out and tested it, and bam. I haven't tested this on another galaxy nexus, but if you're willing to pony up the $20 and do it, maybe it'll work. Unfortunately you have to be lucky to just call and give them your info instead of paying the $20, because like I said they'll jump at the first chance to dump you. You can try saying you have a Nexus S, but they wizened up and asked me for some unique number in the "About Phone" section.

Phone info:
Galaxy Nexus LTE
JDKernel 1.1.2
CM9 Kang 1/2/12
[Samsung Galaxy Nexus] chandlerweb:
I am in the UK and installed the Google Wallet APK before knowing about the issues in this thread. It registered fine and I have my $10 but I have not used it at all yet. Given the issues described here, I think i'll not bother using the app. However, my question is...

What is the best way to remove the app, unregister, clear the Secure Element etc so that I can just wait for the GW to arrive in a formally supported update? Also, am I likely to encounter any issues when trying to use the same GMail account to register the new/supported GW when it comes out - do you think I'll need to register it with a different gmail account?
[Samsung Galaxy Nexus] lukegb:
I don't believe you're likely to have any issues just removing the app. This should automatically remove the applet from the secure element.
[Samsung Galaxy Nexus] chandlerweb:
Thanks!

Is there a recommended removal process?

...and do you think i'll still be able to use my primary GMail account for the supported GW even though I have already used it to register on the existing GW?
[Samsung Galaxy Nexus] AndyCr15:
Still no good for me. I get this every time :(

**EDIT**

Sorry, I posted before reading this page.

Is this quoted action the fix to the error I have posted an image of? If so, us UK folk need to focus on finding a way to top up our Wallet accounts. Is there any way to top up with a pre-paid card that we could buy from someone on eBay for example.
[Samsung Galaxy Nexus] pandafloski:
Yup, exact same error. Can you not add a google pre-paid card within the app?
[Samsung Galaxy Nexus] AndyCr15:
Yeah, thanks, that's what I was checking. If you were saying adding funds should clear this.

I wouldn't mind sending someone in the US money to put funds onto my account, but the issue I see is it can be done either -

a) I send money, I give my Google Log-in details and someone tops it up.

b) I send money, someone gives me their card details so I can top up.

Either require's a HUGE amount of trust by one of the parties. Unless anyone can think of a different way.
[Samsung Galaxy Nexus] droid_does:
how about contacting one of the US based mods? I'm sure they'll be happy to help?