yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] lukegb:
Sorry, but this is incorrect at least for GSM ROMs - I have freely switched between the zip and the apk as well as switching several times between different roms and I have never had any issues. I have 14 copies of the 'Welcome to Google Wallet' email in my Google Apps account and each time I haven't had the SE issue.
[Samsung Galaxy Nexus] beng2k:
Not sure why you are having no problems.

If it makes any difference, I started with yakjuux from Bell, flashed to plain yakju 4.0.1 then flashed 4.0.2.

I was so afraid of changing roms because of this wallet issue, ****.

The only advice i can say is dont change roms, and if you do, delete the wallet apk and restore your backup, while this is not tested.

I dont see how the OP has had no issues changing roms and builds and has had no wallet issues.

I even flashed the package for 4.0.3 for the Nexus S, quite possiblly made by the OP with no effect. Flashing the zip again did give me the "Android is Upgrading" message at boot
[Samsung Galaxy Nexus] Highland3r:
Probably been answered in a post between this and the end - didn't see one on a skim read but meh :P

Pretty sure this isn't a hardware issue - I managed (with a little work following instructions in this thread) to get Wallet working again fine after secure element issues. Looks like others have managed to do the same too...

** Note - I had secure element errors on an earlier Modaco build and recently got wallet working on the latest release - I didn't re-test wallet after the upgrade so it's possible the ROM change helped but it hasn't for others so I'm assuming it wouldn't in this case either. No wipe of data between rom flashes either. **

Original wallet install was via the zip method, using the APK method gave me the secure elements error.

Using the zip remove posts (there's 2 in this thread) I completely removed wallet and "fixed" packages.xml.

The provided NfcGoogle.apk and .jar file were pushed back to phone.

Downloaded the wallet apk and re-installed (using market switcher to remove country related errors).

Wallet now loading, no secure elements errors. Yet to attempt a purchase but beer is on the cards later!

<edit> Links to two threads used:

http://xdaforums.com/showpost.php?p=20444729&postcount=556

http://xdaforums.com/showpost.php?p=20489481&postcount=687

They're both pretty much the same - I ended up using the files from the second post though.

</edit>
[Samsung Galaxy Nexus] drPheta:
Actually, I only have two now (one is my girl's and the other is mine). One has been returned due to speaker problem. Personally, I'd rather have this investigation proceed with some backtracking first. I'd rather not brick my Secure Element purposefully in the event a patch is never released to unlock it.
[Samsung Galaxy Nexus] beng2k:
I wonder if the wipe has something to do with it
[Samsung Galaxy Nexus] Highland3r:
No wipe here (unless I've mis-understood you)

Updated previous post with a link to the instructions followed.
[Samsung Galaxy Nexus] mohitrocks:
Woahh sounds like it could work @bengm2k could you try this?

EDIT: You never wiped when you switched roms? It may not work in our case then, but if people are willing to, please give it a try and post back with info
[Samsung Galaxy Nexus] dwang:
Same thing for me. Switched roms and wiped for the fourth time and Google wallet has worked every time. Didn't restore from titanium backup.

I'm on T-Mobile usa.

One thing to note is that google wallet has been a system apk on all the roms I've used so I haven't had to install it manually.
[Samsung Galaxy Nexus] drPheta:
When you do this, is your cash card the same as before or do you have to activate a new cash card?
[Samsung Galaxy Nexus] dwang:
Same cash card.
[Samsung Galaxy Nexus] drPheta:
OK, this confirms the GW is married to the NFC chip or ESN/IMEID. I had to exchange a phone that had GW activated and installed ($10 free cash card only on it). Activating the new phone didn't bring up the already activated cash card. I had to have a new card registered instead. Login and PIN numbers were the same.

Something you guys probably already knew, but this confirms that bit of info.
[Samsung Galaxy Nexus] mohitrocks:
@drPheta

So, theoretically if I go from one rom with Wallet installed via the apk method to another rom and remove the built in wallet.apk I should be good to go if I restore the nandroid of the first rom?
[Samsung Galaxy Nexus] AndyCr15:
As no-one else has commented, should I assume me and Biggie are the only ones to have this error? :(

Anyone know what we might be able to do to get it working again? (It worked the week before, but I changed ROM and got this, restored Nandroid and got this)
[Samsung Galaxy Nexus] mohitrocks:
Never had the issue so I don't exactly know what to say... Maybe wipe the app? (Go into settings within the app and wipe) Not sure though..

Note: I'm not responsible for anything that happens to your device.
[Samsung Galaxy Nexus] chantheman525:
i got this too

I got this same thing twice too at a gas station i went to. the application also stopped responding after the error and i had to restart my phone completely. I have stock 4.0.2 though, apk method.

Then I went to a Mcdonalds and it worked perfectly fine. Payment went through and everything worked great. Maybe it is a problem with the NFC reader at some locations thats the problem and not our phone/GW. just a thought.
[Samsung Galaxy Nexus] mohitrocks:
That's what I thought too... It worked fine when I used it at Timmy's
[Samsung Galaxy Nexus] AndyCr15:
Yeah, fair point, although I have a feeling it was the same point that worked the week before.

I work in a shop with around 17 contactless payment points, so I'll try testing a few on Monday if I can.
[Samsung Galaxy Nexus] drPheta:
I don't know, actually. All I know is that I've updated ROMs and merely reinstalled the .apk file and went about my business with no error message.

The one thing I do know is that if I go into a different phone that has never had GW installed, it will not pull up my info if I log in with my Gmail account. I did that for my girl's phone (first phone had GW, speaker died, exchanged for new phone). When I installed GW and logged into her Gmail/GW account, it asked us to activate a new cash card. Something must be linked to the old ESN for GW not to show up with the already activated $10 cash card on the new phone.
[Samsung Galaxy Nexus] jimmy-buffett:
For everybody getting the "Unfortunately, Wallet has stopped" error:

I have a Verizon Galaxy Nexus, ICS 4.0.2, unrooted, Google Wallet installed using the APK method.

When I launched the app and went into "Payment Cards", it would churn on the Google prepaid card for a bit and then crash the app with this message. The app would run for 10-15 seconds before crashing.

To fix this on mine, I loaded up Google Wallet, and at the main page I hit the Settings button at the bottom and hit "Reset Google Wallet". It had me log in again, enter all my info and then the Google prepaid card was authorized in about ~20 seconds.

Thanks for this site and this thread as a resource, it was very helpful.

Good luck!

p.s. screw you Verizon it's my phone
[Samsung Galaxy Nexus] drPheta:
Did you have to authorize a new card or did it just reload your old card in there?
[Samsung Galaxy Nexus] Highland3r:
No - I've managed to use wallet today (second attempt, first attempt was succesful on phone, but rejected by credit card machine) so once credit has gone I'll be willing to play around a bit with various options if needed.

I'm interested to know if people with the error are those who originally used the flash/zip version to get wallet working. If you guys are, try following the steps to TOTALLY REMOVE wallet & fix the .xml file (via recovery) then re-install wallet as per the new steps from lukeGB.

When I first moved to the APK version (from zip) I didn't bother fully removing wallet & associated files - just uninstalled the app (via titanium or something, can't remember tbh). Installing the new version then gave the secure elements error.

I'll have a go at restoring back to an old nand taken before the recent re-flash to MCR 8 and see what errors (if any) appear....
[Samsung Galaxy Nexus] biggiephat:
I was told by the clerk at 7-11 that the "new" paypass readers seems to accept the nfc in our phones better.

He said if you notice which way the strip of your credit card goes if you swipe through the terminal, that will tell you if its the new or old version of the paypass machine. Although it was 2 am and i dont remember which is which lol.
[Samsung Galaxy Nexus] itch808:
So there's still no general consensus about what causes the security element problem?

Here's my story before I even was aware of this problem.

1) Started with LTE GNex on OTA 4.0.2 and installed via .apk, loaded fine.

2) Unlocked boatloader and rooted. Complete wipe and install of RootBoatz 4.0.3, re-activated using pre-installed .apk of Wallet. Worked fine!

3) Now on Axi0m 2.1, but haven't risked even touching wallet now that I'm aware what can happen. I have a nandroid of my install back on RootBoatz.

I would love to use Wallet again, but I don't want to lock myself out!
[Samsung Galaxy Nexus] Highland3r:
Restored old NAND backup (pre LR8 rom) - In this version zip was previously applied before ROM upgrade. App was then un-installed and apk version installed.

APK version gave secure elements error message when loaded.

Followed instructions to FULLY remove all the zip related files (see links in my previous post). Rebooted and re-installed EXACTLY the same APK file which previously gave Secure Elements errors.

Loading this version worked fine. I've just re-setup my account and it's pulled through the same pre-pay card used on my previously working LR8 build.

<edit>

Just played a bit more - pulled the NfcGoogle.apk & com.android.nfc_extras.jar file from previously broken nand backup and pushed them back to the relevant locations. Also replaced the packages.xml file with the pre-fix version. Rebooted phone and wallet worked without any issues.

One thing I noticed was that first boot after fixing wallet on pre lr8 ICS did it's "preparing apps" thing. Didn't get that after replacing the apk/jar this time around.

</edit>
[Samsung Galaxy Nexus] beng2k:
Tried this, no luck. Heres is what else I have tried today

1) Undid the flash mod following the instructions...Nope Secure Element Not Responding

2) Reflashed yakju ICF53L with fastboot -w (for full wipe incliding SD card) including recoveries, baseband and system image to stock...Nope Secure Element Not Responding

3) Flash CWM, wiped, installed MCR latest version (as someone said it might work) Used the provided com.google.wallet.whatever apk...Nope Secure Elemenet Not Responding.

Gonna revert back to AOKP since I much prefer it to MCR...since I have no Wallet might as well flash what I like best.
[Samsung Galaxy Nexus] karey43:
I had that problem at a gas station, my phone vibrated and said it sent payment but the cashier didn't get it. I think it froze and i had to restart the app. We tried it a second time and it worked, and I only got charged once. I figured it was something on the cashiers end, since he was more prepared the second time. It's worked all other times. I assumed the freezing was the app getting confused waiting for a confirmation from the nfc reader that never came or something. I don't think it's the installation of GW.
[Samsung Galaxy Nexus] lukegb:
If you're having issues switching to apk from zip, try resetting your Google Wallet data from within the app before switching and tell me how that goes.
[Samsung Galaxy Nexus] beng2k:
I thought about doing that but was not sure if that would erase the funds...ultimately either way its worth the risk since the $26 i had left was worth less then my phone.

Since I used a second different email from my primary gmail account on the phone I thought factory resetting and using that email would change things, but it didnt.

From my experience, I will always get the SE Not Responding unless i restore my app and data from Tibackup, at such point it will actually stay on the intializing screen for abit before failing with the "Insufficient Priviledges" error
[Samsung Galaxy Nexus] Highland3r:
May not help, but tried manually setting perms on NfcGoogle.apk & com.android.nfc_extras.jar?

<edit> Anyone with secure element errors able to pull a logcat covering the wallet app being opened and error displayed please?

</edit>
[Samsung Galaxy Nexus] AndyCr15:
It may well be I'm just doing it wrong. Is there a specific screen we should be in when we tap the phone on the reader?
[Samsung Galaxy Nexus] PaulG1488:
No the app doesn't need to be opened

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] mohitrocks:
@beng2k did you try doing what @Highland3r posted above?
[Samsung Galaxy Nexus] StormCell:
What did you do prior to getting the secure element error? Thanks.
[Samsung Galaxy Nexus] AndyCr15:
Oh, ok. Does it ask for your PIN at any point if you don't open the app?
[Samsung Galaxy Nexus] Shawn_230:
Thanks for this, just tried it in Canada and it works.

Although ultimately it's not very useful aside from the free $10. The only credit card of your own you can add is a Citi Mastecard, and the prepaid card can only be filled using a US credit card...

So I think for most Nexus owners it will just be a thing to show off and use up the free credit, thankfully PayPass is already nicely rolled out across Canada unlike in the US where any NFC payment is rare. ;)
[Samsung Galaxy Nexus] mohitrocks:
That's because it isn't officially rolled out in Canada yet, it will be in the beginning of next year and there will probably be a lot more support then. Also, I would advise that you don't switch roms as you might encounter the Secure Element as many of us have
[Samsung Galaxy Nexus] Shawn_230:
I think even in the US you can only either add a Citi MasterCard or fill up the prepaid card.

For Americans or people like me who have a US credit card it's not too much hassle, but I think Wallet would be amazing when you it replaced the cards you have instead of giving you something else to fill up on.

So which ROMs do I stay away from? I was just planning on staying with the yakju official build.
[Samsung Galaxy Nexus] jimmy-buffett:
I think it never finished authenticating my first card, so the second time around it gave me a new card.
[Samsung Galaxy Nexus] lukegb:
I'm looking over the (obfuscated) code which performs secure element resets at the moment. I'll let you know if I find something useful.

(notes so far: there seem to be three separate requests to reset which can be made over cloud to device messaging in the backend: WALLET_RESET, MASTER_RESET, FACTORY_RESET - but only FACTORY_RESET is actually available to be called.)

I'll let you know if I figure something out.

Also, would a one-click Market Enabler-type app which autolaunches Google Wallet instead of the Market be useful to anybody? I've got a personal one - might release my "Wallet Tools" app that's sitting about on my phone...

We'll see.
[Samsung Galaxy Nexus] bengals1975:
I had to open it to get it to work. Played around for a few minutes with a patient clerk at CVS and it wouldn't work unless it was open. I know it's not supposed to be like that, but it was.
[Samsung Galaxy Nexus] mohitrocks:
In the US its only on Sprint and Nexus S officially so there aren't many options in terms of wallet-enabled phones in the US. Since this is the only phone that officially supports Google Wallet, a lot of banks dont support it yet. I'm sure its still in the works. Even Verizon said they would implement it in the future.

As per the roms: you shouldn't download any unless you have a titanium backup of your current phone with wallet installed as well as a nandroid backup. If you do decide to flash a new rom, ensure that you don't install wallet via the APk or zip method or open it if it is pre-installed in the rom. If it is pre installed, delete it by using an app such as root explorer and going to /system/app and deleting wallet from there. If you wish you can restore the titanium backup at this stage but it may not work. You can always restore your nandroid and resume using wallet.

Note: This hasn't been tested by me and I'm not responsible for any damage caused to your device

EDIT: I'm about to pull the trigger and install AOKP (deleted wallet.apk from the far already), then restore my nandroid backup of 4.0.2 and post the results. If someone knows of some issues with this process, please notify me now.

EDIT2: Worked perfectly. Flashed AOKP with Franco's kernel without google wallet (downloaded the rom, used winrar and opened it, navigated to the directory where the apps are -sorry don't know what the exact directory is-, wiped data + cache, flashed it, then restored a nandroid of my old rom with google wallet -Android Revolution HD- and after it went through the initial process again in Google wallet, it worked perfectly) I plan to only revert back to the backup when I need to buy something via Wallet. I know it is extremely inefficient to do this, but until this Secure Element issue is resolved, I don't want to take any chances.
[Samsung Galaxy Nexus] woldy2:
I am on stock 4.0.2 currently. I am using wallet now. been wanting to try out SOLO but don't want to take any chances work Google wallet...what do you guys suggest I do. also....I installed it using the apk not the zip
[Samsung Galaxy Nexus] AndyCr15:
So we run this app, it changes Market settings (temporarily) to the US ones needed, then opens Wallet? Yeah, I'd like that if you have it :)
[Samsung Galaxy Nexus] Shawn_230:
Same here. I use MarketAccess which can do fakeOnBoot but would feel more comfortable with this as everything else is available in my own local market.
[Samsung Galaxy Nexus] lukegb:
Can someone experiencing the SE issue please contact me (by replying to this post) ASAP - I need to be able to walk through stuff with you in real time (via IM) so you need to meet the following requirements:

* Able to type english

* Able to execute adb shell commands from their PC/Mac/toaster

* Have the full Android SDK (or at least the Dalvik Debug Monitor) installed

* Have a bit (maybe 10 minutes?) of free time at some point soon

* Trust me enough to use TeamViewer (while IM is great and I hope to be able to resolve issues using it, if push comes to shove it would be amazing if I could view exactly what was going on!)

I might have a solution for you, or at least be able to gather more information.

I would really appreciate a fast response to this!
[Samsung Galaxy Nexus] doodoostains:
Has anyone be able to go from wallet being a system app to it not being a system app without getting the error?
[Samsung Galaxy Nexus] lukegb:
I have, but since I appear to be a unique case, that's not much to go by.
[Samsung Galaxy Nexus] beng2k:
Pm sent
[Samsung Galaxy Nexus] mohitrocks:
Sounds awesome! Anyone want to go for this?
[Samsung Galaxy Nexus] beng2k:
I have tried everything listed in this thread...my conclusions are

1. Everything will give me the secure element not responding EXCEPT restoring my Titanium Backup at which point it attempts to communicate because I see my data change to H and it sits on initializing the errors out with Insufficient Privilege error.
[Samsung Galaxy Nexus] mohitrocks:
Did you talk with @lukegb?
[Samsung Galaxy Nexus] lukegb:
After much ado with beng2k, I found the following:

http://code.google.com/p/android/issues/detail?id=23749

I'm suspicious of the "NFC-EE off" lines - whether these are part of the NFC routing system or the entire NFC system in general is suspicious and needs further enquiry.
[Samsung Galaxy Nexus] beng2k:
I have starred the issue to follow it and maybe more people can to increase googles awareness?

I have left my services opened for further troubleshooting.

Heres hoping!
[Samsung Galaxy Nexus] Shawn_230:
Hey guys, MarketEnabler doesn't work for me anymore...

I can't seem to switch back to my home market at all, the SIM numeric value changes but I'm still always seeing T-Mobile apps.

Edit: Nevermind, just had to clear the data for Market as well.
[Samsung Galaxy Nexus] davidukfl:
Just did A LOT of reading about this secure element lockout thing and i think the common scenarios are these:

Process for getting locked out:

1. Install wallet for the first time on stock or custom rom - open and authorize wallet on current rom.

2. Change rom and install a new copy of wallet (either baked into the rom, or installing a new apk with no previous data)

3. You open the new wallet app and try to authorize and get the secure element lockout.

Failed recovery attemps:

1. Restore a TI backup of wallet after already installing and opening a new wallet app with no previous data.

2. Restore previous nandroid backup after already installing and opening a new wallet app with no previous data.

To Avoid the issue altogether:

1. Only install and authorize wallet on one rom (stock or custom), and do not flash any new roms afterwards.

2. If flashing a new rom delete wallet apk out of zip prior to install. Do not install a new apk. Instead restore TI backup of wallet app incl. data from original rom wallet was installed and authorized on. - POSSIBLE, not 100% confirmed.

I'm certainly no expert, but from what i see there is something written to the NFC chip & app data once the app is first authorized that relates to the rom it is currently on. Once a new rom is installed and a new app installed, the info from the NFC chip doesn't match up with the app data and the NFC locks the secure element because it sees this as an unauthorized access attempt.

When restoring the TI backup of the originally installed apk onto the new rom, the app data still contains something related to the old rom, so the NFC chip may still see it as being authorized. This is just based on seeing reports of a couple of people being able to restore TI backups without ever installing a new wallet apk first and is not confirmed as working.

I may be completely wrong and clearly I don't know the technical aspect of what is actually going on, so feel free to tell me to STFU. This is just my attempt to try and sum up the issue based on what I've been reading all over the internet.

Right now I have wallet installed on android revolution 4.0.2 - CDMA. I have never installed it on any other rom. I have uninstalled the app, and re-installed the app on the same rom. I have flashed a new rom without installing wallet, then restored my nandroid backup of the old rom with wallet installed. I have made 3 purchases using the app. I have NO ISSUES at all, and everything is working fine.