yashsingh1/xdaforums huggingface dataset:
[Magisk] fightinfilipino:
i am completely unable to add cards or get Google Pay to work now with Magisk installed after trying to follow the steps here.

Pixel 3XL on March update

Google Pay version 2.85.239456103

Google Play Services version 16.0.89

Magisk v.19 with Magisk Manager 7.1.1 Canary channel.

have tried clearing Google Play Services data and then deleting the data/data/com.google.android.gms folder multiple times. have tried repacking the Magisk Manager to re-hide it. have checked to make sure Safety Net is being passed. have uninstalled and reinstalled Google Pay. every time i still get the "Couldn't finish setup to pay in stores". i have no idea what to do here other than give up and uninstall Magisk, and even then i don't know if things will work.

this is a bummer...
[Magisk] alibob911:
Thanks for offering to help but I think I sorted it out. I uninstalled Magisk via twrp and then reinstalled it after a complete boot cycle. Everything seems to be working now. I hope I haven't spoken too soon lol!
[Magisk] highdiver_2000:
On Magisk 19 with Magisk hide module, I have managed to add a second card. Untested.

The first card, so far so good. Paid for food, groceries, services. etc.
[Magisk] zetsui:
Soem combination of this AND OR / discovering the system apps tick in the magisk hide(that's not a feature that should be that well hidden) got me my google pay. will it go away now?

That's annoying they make a lockscreen pin. I rather have no lockscreen and just erase the phone remotely. not a magisk problem and happy my transit has its own app now, can just scan the ticket in
[Magisk] Tuxedo.Bond:
I was able to add my cards with the latest Magisk builds, but upon checkout the process is rejected. Google still knows.
[Magisk] ajm786:
Did you try the process I listed above? I was able to pay in 3 different stores with GPay.
[Magisk] skejpa:
Get it working is not a problem. To maintain it working, thats the issue :D

Odesláno z mého MI 8 pomocí Tapatalk
[Magisk] ajm786:
I hear you, but so far it's been working for me for now four days.

Attempting it using any other method than mine ended up with it breaking/getting flagged by Google within 24 hours. With my method, it's been working for four days now. It's worth a try.
[Magisk] jasonvxs4:
the only thing that worked for me was completely disabling google play (store) and downgrading play services to 14.xx. every combination of disabling background data and auto update worked for about two days at best. its' a bit unnerving to see google so aggressively and clandestinely push these updates to your phone although you've limited background and auto updates.
[Magisk] tinuthir:
With the V19 beta, Google Pay works again completely. I just cleared the data for the Play Store and Google Pay, and was able to re-authorize my existing cards with no issue. So many thanks to [MENTION=4470081]topjohnwu[/MENTION] :)
[Magisk] zencooler:
In my case it is working eight days for now. Of course after removing all GMS and GPay cache and data and hiding GMS and GPay in Magisk Hide. Before this I tried many times with stopping update of GMS on elder versions etc. and issue went back. Now it seems like a permament solution. In the meantime I upgraded Magisk from 18.2 to 19.0 and my GMS has been autoupdated from 16.0.86 to 16.0.89 and GPay still works. I added six cards and all of them works like a charm.
[Magisk] elreydenj:
Try 15.1.78 . May work. Either way I think we will need a magisk update soon.
[Magisk] sam0056:
I'm going to the petrol station in 30min and then I'll update on here if it worked.

I just paid for fuel and it worked fine. One plus 5t latest Google play services and not hiding anything.
[Magisk] joeyddr:
Google pay up just updated but have no where to try atm
[Magisk] beatschubser:
This thread is a mess. Hopefully John will have a look at the GPay-issue soon.

Btw., a non-certified Play Store does NOT break GPay.
[Magisk] usman14:
Pixel 3 XL -- Magisk installed/uninstalled GPay was not working on. Disable face unlock (custom rom) and it worked
[Magisk] Droiderat:
What is the "latest Google Play Services" for you? 15.0.90, 15.1.78, 15.1.79 or 16.0.81 (the last 3 are beta) ???
[Magisk] sam00561:
mine is 16.0.81
[Magisk] kleest:
After installing Play services 16.0.81, GPay let me setup my card, which failed previously (was on 15.0.90). Will try paying in-store in the coming days.

Info: OnePlus 6, Stock 9.0.4, Magisk 18.1 (with enabled modules), GPay 2.83.235070858.

Random interesting thing: The "confirm card details" is now in dark mode, whereas everything else in GPay is white as always with no option for toggle.:confused:
[Magisk] gregwee:
I followed the temp work around listed early in this thread and down graded Google Play Services to 14.7.99 and GPay worked yesterday while paying in the store. I've disabled background data for Google Play Services and removed admin from both Google Play Services and GPay... I rebooted the phone yesterday evening, and found this morning that Google Play Services has updated itself to 15.0.9 and admin has been turned on for both Google Play Services and Gpay...

My credit card listed in Gpay can no longer pay with contactless...

--edit--

I just down graded Google Play Services again this morning, and have my credit card setup in GPay.. However, taking a look a few hours later, I found that Google Play Services has updated itself and turned on admin services again, even after I've removed admin rights to Gpay and Google Play Services and turned off background data for Google Play Services.. I'm giving this up until Magisk has a new update that will take care of this issue..
[Magisk] rogeriskira:
You need to reinstall GPay or clear all of it's data. Then it'll work.
[Magisk] 00raq00:
doesn't work :( i'll try install google play services 15.1 or 16 beta

works with google play services 15.1.78
[Magisk] m4rcs90:
Just to give another data point:

OnePlus 6 (OOS 9.0.4)

Rooted with Magisk v18.1 (repacked)

Hidden to Google Pay

SafetyNet passes

blu_spark r72 Kernel

Google Play Services 16.0.81

Google Pay 2.83.235070858

Google Pay doesn't work.
[Magisk] PhotoPaul:
It would be interesting if a second person whose Google Pay has stopped working in stores could do a factory reset and see if they have the same results with me (it's the second day now and it's still working without any workarounds).

If you're afraid of loosing your setup for nothing, you can always keep a full backup and restore it right after doing the test...
[Magisk] 00raq00:
For me working configuration looks like:

-google play services 15.1.78

-magisk 18.2 (with hide for GPay, Google Play Services ang Google Store)

-hide magisk manager with random app name
[Magisk] qriozum:
After reading this thread and attempts, the GPService downgrade to v14.7.99 is checked as described by the [MENTION=9506129]JarlPenguin[/MENTION], but for this service not to perform a silent update, I blocked its access to the Internet via NetGuard.

For now, I made two payments and it's ok
[Magisk] tlf55:
How did you hide Google play services ? i can't find it even with "show system app"
[Magisk] sisqoboy:
What phone do you have?
[Magisk] gregwee:
Specs as follows:

OnePlus 6T, OOS9.0.7 rooted

Magisk v18.1, Magisk Manager v7.0.0(185)

Magisk hide: Google Seach, Google Pay, Google Play Store, Pokemon Go

Magisk Manager package hidden/repackaged
[Magisk] 00raq00:
With magisk manager 7.0(193) canary after press "Show system app" i can find it.
[Magisk] beatschubser:
Just paid successfully again in a store. I haven't tested any of the workarounds in this thread.
[Magisk] ajm786:
Do you recall when doing any of this if you had WiFi turned off? Because in my case, this was the deciding factor.
[Magisk] fightinfilipino:
anyone know if it is possible for Google to permanently block a phone from using Google Pay?
[Magisk] zencooler:
Yes. I set up all my cards being on mobile data as I was out of my home then :)

---------- Post added at 03:47 PM ---------- Previous post was at 03:40 PM ----------

Why? If they allow to unlock bootloader and root the smartphone so you're a God of your device and it's your decision what you want to do. They can disallow to use their tool and this is what they try to do :)
[Magisk] ajm786:
Exactly my point. Same deal for me. I was out while I was doing this, so I was on mobile data. When I got home and tried to add a card when my phone was connected to WiFi, BAM, root detected. Backed out, repeated the entire process on mobile data, and bingo, everything worked.
[Magisk] D-m-x:
Technically? Sure, just block the Google Account, the Credit Card/PayPal, if that's not enough use the Device ID or MAC Adress. Sure there's ways around even that but who would waste time defeating this.

However, in my opininion what they are doing right now comes close. Downgrading Play Services, block every App from detecting root, deleting Play Services, not using WiFi and constantly fearing that your Card is blocked while you want to pay for food, at least for me isn't a comfortable usage of this services. And that is mainly what it should be - paying with your phone while you forgot your wallet at home. The time I put into this already to fix that **** most likely outweighs every time combined I would have spent pulling out my credit card from my wallet until the end of time.

Right now GPay is completely useless for me while my phone is rooted. Even if it's working for some people here using tricks, the track record shows that it will fail eventually. For now I'm going to stay put. If this can't be resolved by some smart Dev or becomes to much of a hassle to work, I'm gonna have to decide, root and unlocked BL or Gpay, altough I would find that pretty stupid, especially the locked BL part.
[Magisk] fmc000:
I set up my card on Wi-Fi as I don't even have a sim card in my phone. Worked fine and so far it's been like that for at least a week. Play services updated to the largest release and gpay still looks good. Please note that I never tried to actually pay, I only setup my credit card and check every day that it stills says that everything is fine.

I have the latest release of everything, Google play services, play store, pay and so on. Largest magisk and magisk manager too, in normal mode with a few modules activated.
[Magisk] ajm786:
Well, unfortunately that is really the only way you can tell it will work. You can set up the cards successfully, and then when you get in the store and try to pay, that's when you get the error, usually something like "You can no longer pay in stores using GPay."

I can pretty much guarantee that if you do get a SIM and try to pay using your phone, it will fail.
[Magisk] TerrorApple:
I setup my card 2 days ago on wifi and payed today at the store without a problem. I haven't tried any fixes from this thread, I just updated Magisk to v19 beta, hid Play services + Gpay and re-added my card and it works for now. All a bit random, for some mobile data may be the solution, for me it didn't make a difference.
[Magisk] Cowbell_Guy:
I am in the EXACT same boat as you. have done everything. Am on Pixel 2XL
[Magisk] johnlgalt:
FWIW, I used my GPay this morning, after having updated to all the latest (canary) builds over the weekend. Still no issues since following mmf01's post.
[Magisk] ajm786:
Yeah, looks to be random, but I literally just tried it again for the heck of it. Cleared out Play Services, tried adding cards with WiFi enabled, got the "Couldn't finish setup to pay in stores because this device is rooted or altered in some way."

Cleared everything out, followed all my posted steps with WiFi off, and bingo, works great. Added all the cards successfully.
[Magisk] Nosferatu.:
My credit card shipped me a new card so I figured I'll delete the old card and try this method out.

Followed directions as listed above. I then used GMS Toolbox app and instead of saying "fails" it says "ok" now. I guess that means I'm good to go? I don't use GPay much but I'll keep an eye on the toolbox status and next time I'm out and about I'll give it a try.

I'm on the latest OxygenOS with a OnePlus 6T.
[Magisk] Chamelleon:
Just updated Magisk to 19.0. So far so good. I was able to add all my 4 cards, but didn't test payments yet. I see new Magisk Hide list. Should I hide all Play Services records or just com.google.gms.unstable? I read few post ago that it's not recommended to hide more than it's needed. For now I marked only com.google.gms.unstable and all seems to be working but I just want to make sure.
[Magisk] ajm786:
I'm not sure the GMS Toolbox app referenced earlier in this thread is of much help. For me, it was saying "ok" for passing attestation...yet I was still unable to pay in stores. Only until I happened upon the steps I listed would it work for me on any newer Play Services version.

I guess the fact it says "ok" for you now is good news though.
[Magisk] warrencoakley:
10 days and counting. Over 39 contactless transactions with ease. Still holding. Magisk Canary as mentioned before is far better for hiding root detection. Not just for GPay but for banking apps etc. So can confirm it works flawlessly on stock Pixel 2 XL.
[Magisk] Nosferatu.:
Time will tell. I followed your directions. Gave you thank in said post. Not looking to just spend money un-necessarily but I'll give this a try next time I hit up a place with contact-less payment. :good:
[Magisk] hanneshoch3:
Finally solved my issue with PayPal being declined at the terminal, even though I was able to add it with no problem. I had to unlink gpay within the PayPal app and then relink PayPal, which gave me a new virtual card number and thus fixed the issue - so far.
[Magisk] Adreaver:
Quoting this again to note it is still working for me. I have taken the Magisk and Magisk Manager auto updates, and made no other changes.
[Magisk] jlebowski79:
Same here. Only .unstable and everything works well. We wait for the stable release ;)
[Magisk] raginginferno:
Gotta say been a very strange experience with Google pay. Updated to version 19. Cleared services and pay like in previous posts. Got my MasterCard that I use all the time with Google pay re-added like normal. Couldn't get my newer visa added... Maybe I tried too many times before? Strange.

Tried it out today. Works! Awesome. Went next door and paid for again in like 5 min... "You can no longer pay in stores with Google Pay". Wtf... That was fast...

At least my Android Wear isn't rooted. That's always been my failsafe. I have always managed to pay with that even though my Pixel 2 has been rooted. It's an expensive alternative... But it works.

(Clearing Google play services also disconnected my Android Wear. . But I got both my of my credit cards added there no problem. And did two transactions already with my mastercard)
[Magisk] amaruk27:
Nexus 6

Lineage 16

1. Uninstall Google Pay

2. Install latest Magisk Manager

3. Reboot to recovery

4. Rename com.android.google.gms to come.android.google.gms.bak

5. Flash Magisk 19

6. Reboot

7. In Magisk Manager hide com.google.android.gms.setup, Google Play Services, Google Play Store, Google Services Framework. Also hide any banking or financial apps that are tied to the cards you want to add.

8. Hide Magisk Manager (random package name).

9. Install Google Pay, but hide it in Magisk Manager BEFORE you open it for the first time.

Successfully added credit card and debit card on 3/31. Successful transaction tonight with debit card.

*THIS IS NOT AN APRIL FOOLS POST*

Though maybe the joke's on Google *LOL*

FYI Magisk Manager is in normal (not core only) mode.
[Magisk] Incognito777:
1- clear Google play cache and storage

2- Clear Google pay cache and storage

3-In Magisk hide Google pay, make sure you pass the safety net test.

4- Go to app setting,, from there to Google play services and in permissions disable sms, call logs, contacts, location, phone! Voila!!

This worked fore after a lot of struggle! Hope it does for you guys too! Let me know in the comments!:good:

:good:
[Magisk] martyfender:
That is strange for me, as I am on 5 tablets which can only use wifi and I have no problems adding one Chase debit card and my PayPal card. 2 devices are on the latest Canary and 3 on an unoffical build. Of course, since the devices don't have nfc, I can't test that, but I have Visa Checkout added. I only hide gpay and use the default gms.unstable hidden. MM is not hidden. This has persisted for quite a few days.
[Magisk] irony_delerium:
Visa Checkout and the like are functionally card not present transactions - it might be simpler and more frictionless to have the card information on your device, and if it can be locked up appropriately, it's less of an issue. (There's still the issue of compromised cards, but seeing as card not present transactions are validated more heavily at the time of the transaction...)

An NFC transaction runs as card present - subject to less scrutiny at the time of the transaction (on the network) because the physical card is (supposedly) there, and can be validated by an actual person. As such, it's subject to stricter security requirements on the device hosting a virtual card - if the token can be copied to another device, as could hypothetically be done by someone with root-level access, the target device now has the necessary credentials to run a transaction against the same card, and since in the case of an NFC transaction, it's authenticated by your device credentials, maybe including a PIN depending on where you're at, the device card token is all you need to run card present transactions.

One of these days I'll set up Magisk 19 on my backup device, get GMS up to date and see how it all goes. At the moment, I've stuck to making sure GMS 14.7.99 is the version installed, with automatic updates disabled. We'll see how long that lasts. (It's held out for a week or so now.)
[Magisk] Freshek:
For me it's been working for a week with no problems. All I did was deleting com.google.android.gms and installing Magisk 19. Am I the only lucky guy here? :P
[Magisk] ajm786:
Just bought a bottle of water with GPay. Looks like mine is holding up with the steps I discovered. :)
[Magisk] LLStarks:
No but Samsung phones can be permanently altered during bootloader unlocks that makes them unusable for Samsung Pay.
[Magisk] mztq:
Hi!

which Magisk version is used?
[Magisk] wbedard:
I don't know about lucky. I got Google pay working on my phone without even renaming the Google Play Services data folder or clearing it's data. All I did after installing magisk 18.2 (Canary build) was wait a week for GPS to re-evaluate my phone. The next time I attempted to pay with my phone it worked. It's been two weeks since installing Magisk 18.2 (and hiding all the GPS services...) and Google Pay has been working fine.

R/

wbedard
[Magisk] Incognito777:
18.1
[Magisk] rogerinnyc:
On a Huawei Mate 10 running 9.0.0.0 with March security update. Steps above with Magisk 18.1 allowed me to add cards, but not actually use to pay. Updated to 19.0 and all has been good for multiple purchases over three days. Not running in Core mode. Did not rename or delete com.google.android.gms. Added two credit cards. Did clear cache and data for Google Pay and Google Framework Services, uninstalled Google Pay, rebooted, reinstalled Google Pay. Magisk, upon upgrading, already had checkmarks for hiding next to com.google.android.gms and com.google.android.gms.unstable; also next to com.android.vending under Google Play Store. Simply added Google Pay to the Magisk hidden apps/services. Wi-Fi on the entire time. Fingers crossed it all persists. Thanks topjohnwu!
[Magisk] vMAC:
Anyone happen to try this below on a Pixel 3XL?

For whatever reason my GPAY has not been working for a couple weeks. Keeps telling me it is rooted or altered. I just loaded the April OTA, and then reflashed system.img still not working.

Couple things that I did different:

Google Play Services from Google Store is version: 15.1.80. It appears that is the latest for my phone.

Conflicting information on if I need to hide all of com.google.android.gms options? I only left unstable blocked.....

Please advise if anyone has had any success otherwise with this phone.
[Magisk] Tr4sHCr4fT:
Shouldn't turn off WiFi and then clearing above apps data have the same effect?
[Magisk] JaylanPHNX:
Haven't had the time to mess with this in a bit. Play store says my device is not certified. Does this mean there are additional steps I should go through to fix it? Resetting play services messes so much stuff up (have to reset my watch) that I don't want to if it won't work.
[Magisk] ajm786:
Not sure, but just following the way I have it listed works out great for me. Just bought a bunch of donuts from Dunkin Donuts with GPay.
[Magisk] dbareis:
So the solution is bad for your health?
[Magisk] ajm786:
Donuts are good if not eaten often. GPay works.
[Magisk] fightinfilipino:
i am on a Pixel 3XL and am having the same problem. have tried ajm786's steps but no joy.

i am considering doing a complete wipe this weekend to see if i can get it working again. it does seem like the Pixel has some sort of trigger permanently marking the device as rooted...maybe seeing the unlocked bootloader?
[Magisk] 73sydney:
Ive only ever been on mobile data when ive added my card

Still, as ive pointed out many times, within days, with all the "tricks" posted on here, within 4 or 5 days, my bank will snd me a message saying the card linked to my virtual wallet has been disabled

Ive wiped my device, and added the card again after i enabled everything needed in magisk hide, rebooted and renamed gms directory, and i know within days it will be detected and disabeld by Google....

So please dont claim you have the magical unicorn fix until its actually true, because at the moment, no one does....

No one has invented anything new, people are just rehashing earlier "tricks" with slight variations in steps

The end result is all that matters, and at the moment, theres no 100% fix...
[Magisk] Tr4sHCr4fT:
yeah the current situation is very unsatisfying . GPay was meant to make you not worry leaving your wallet at home, but if every payment becomes lottery...

unrooting and give up true backups, ad blocking, app freezing... nope, not gonna happen.

i'm gonna return to 'proprietary' app-based HCE, like iCard does or Fidor Bank and so on...
[Magisk] highdiver_2000:
OT

The only good thing in a donut is the hole

/OT
[Magisk] auggie2k:
ROM: PE Pixel Experience

Phone: Xiaomi Mi Mix 2S

Was running Play Services v.14.7.99 for a few weeks with background data disabled - all 100% working. Wanted root again (I had removed Magisk) and the latest version v.16.0.89 since it is spidered into everything so I enabled background data and let it update - it worked once until the next day and it stopped me with the usually "you cannot use Google Pay in shops" message. So I following the simple steps in this thread and was sorted in 5 minutes max. Here is my simple guide:

1. Uninstall Google Pay - then clear cache / data for Google Play Services

2. Reboot to Recovery and install Magisk v.19 Beta for this download link

3. While in Recovery, go to Advanced > File Manager. Browse to /data/data/com.google.android.gms and rename it to com.google.android.gms.bak - then reboot.

4. Now open Magisk (make sure both are up to date) and Magisk Hide the following:

- Google Play Services

- Google Play Store

- Google Services Framework

- All Bank Apps (N26, PayPal etc)

5. Reinstall Google Pay from the Play Store (dont launch), go also hide that in Magisk

6. You are done - open Google Pay and add your card - it should work just fine now.

Screenshots:

[IMG="Magisk1"]https://i.imgur.com/CAYijLJ.png[/IMG] [IMG="Magisk2"]https://i.imgur.com/CFW2sQs.png[/IMG] [IMG="Google Pay"]https://i.imgur.com/bzlACRf.png[/IMG]

Cheers! ;)
[Magisk] highdiver_2000:
My sympathies on your experience. I just followed the steps here and it works. Honestly, I can't remember if my WiFi was on or not.

My theory is that different banks in different countries may require different checks performed Google Pay app.
[Magisk] Dark_AssassinUA:
ROM: Pixel Dust ,Device Pixel XL,Ukraine,PrivatBank and Monobank = ur solution worked, on mobile data Google Pay worked, tryed to pay 2 hours ago.Thank u!