yashsingh1/xdaforums huggingface dataset:
[Magisk] warrencoakley:
So after nearly a week GPay is still holding with no issues.

The method below worked for me.

Canary build is far better for hiding than the stable.

All modules working. SafteyNet hasn't failed once.

Change stable to custom in settings of 18.1

This will prompt to install the canary build

Installed Magisk Canary 18.2

MagiskHide on GP Services, pay, banking apps etc

SafetyNet Passes but Pay fails to setup an existing card.

Removed app admins.

Rebooted to recovery and deleted "Android/data/com.google.androis.gms" in TWRP. Doing this via a file manager fails as advised.

Cleared GP Service cache

Uninstalled GPay

Installed GPay

Was able to setup my existing cards and authenticate them with the bank again.

I'm on stock with Google Pixel 2 XL.
[Magisk] pr0adam:
do you have core only mode on or are you able to use magisk modules? a lot of these solutions i am seeing are saying to disable modules but that is to big of a thing for me to give up.
[Magisk] warrencoakley:
All module's confirmed working.

Core not enabled.

See attached.
[Magisk] ianrobbie:
Just reinstalled a custom ROM on my S8+ and running the canary version of Magisk v18.2. Disabled auto update on the Google Play store and can confirm Google Pay works perfectly.

Canary v18.2 automatically hides com.google.android gms and seems to fix Google Pay.
[Magisk] c3k:
Same working setup here (note that Google Play Services-Framework == com.google.android.gms)

Perfect for me since I've flashed to system the only module I want.
[Magisk] fido14dido:
Worked for me as well. Used gpay successfully

Magisk 17.3 non core mode

Pixel OG on Oreo 8.1 RR ROM

GPS 15.0.90
[Magisk] joeyddr:
what phone and android/magisk version?
[Magisk] elreydenj:
I can confirm Google pay works with google play services version 15.1.78 beta. It did not with version 16.0.81 beta. I will wait and see if it automatically upgrades to 16.0.81 on its own. If it does then i will just wait for [MENTION=4470081]topjohnwu[/MENTION] do update Magisk.....
[Magisk] joeyddr:
I am on that version and still does not work for me.
[Magisk] PhotoPaul:
OnePlus 5T

Android Pie

Oxygen OS Beta 25.

Magisk 8.1
[Magisk] elreydenj:
Any more info on your setup?
[Magisk] joeyddr:
2xl stock and using the latest canary build of magisk.
[Magisk] elreydenj:
custom kernel?
[Magisk] joeyddr:
yes evira 1.3
[Magisk] Evo_Shift:
I am using a Pixel 2 (on the most recent version of OREO). The root apps I have are titanium backup, adaway and root explorer. Same thing happened to me today. I haven't changed anything on my phone but it can no longer be used to pay for anything. The last time I used it was last Wednesday and it worked then. It still passes safetynet check.
[Magisk] skibijabadibi:
Oneplus 6. Today I couldn't pay with gpay as well. In magisk manager safety net passes.

Last successful payment was made on 28 of February at 13:50

So I was checking what has been updated on my device since 28th. And it was Google Play and Google App.

So I think that Google Play must be the reason, why Google Pay is broken.

I'll try to install older version and verify Google payment.
[Magisk] elreydenj:
Interesting. Im running DU on Pixel 3 XL.
[Magisk] Patamushko:
Same problem for me OnePlus5

Since 1st march unable to use GPay.

OnePlus5 with latest updates + rooted + Magisk 18.1.

Tried multiple solutions described including the Tez Hide module.

The one that worked for me was switching magisk to core only mode (in parameters).

MagiskHide is active for GPay.
[Magisk] mesiu84:
Doesn't work for me since Saturday, strange thing is that I'm passing the SafetyNet check, but when I want to add new card to Google Pay I got an info that my phone is rooted
[Magisk] Patamushko:
Try to put Magisk in Magisk Core only. Worked for me.
[Magisk] sam0056:
Another reason it won't work is if google play becomes uncertified for any reason.
[Magisk] mesiu84:
Doesn't work either, cts profile doesn't pass now

Was anyone successful on making it work with Xiaomi Mi5 on DEV rom?
[Magisk] Dazzel:
Seems to work with the current canary build of magisk and LOS 16 on my Oneplus 5T. Also changing the fingerprint (using the build in oneplus 5t one) with MagsikHidePropsConf module..

Thus said, currently not tested any payment but configuration of Pay works
[Magisk] djide:
Not permanent. Fixed it on Saturday night, can't buy coffee Monday morning; have to get use to taking my wallet around for now.
[Magisk] sam0056:
It often let's you register the card and passes safety but when you go to pay the issue arises. Maybe the fingerprint props thing helps but in not sure. I didn't use in a few days.
[Magisk] 00raq00:
Doesn't work for me :(

Magisk 18.1/18.2

Safetynet pass

MI8

Google pay 2.83

Google play services 15.0.90
[Magisk] dumdidum123:
Actually it's not. There is a little difference.

Google Play Service-Framework is com.google.android.gsf

Google Play Services is com.google.android.gms
[Magisk] wabmorgan:
Deleted
[Magisk] mmf01:
Are you running 100% Stock ROM Except Magisk? (i.e. no custom Kernel, no TWRP installed, etc.)
[Magisk] ledhed:
I followed these directions except I'm running 18.2 Canary and it still get the "rooted" message why I try to add a card.
[Magisk] royhanks3:
100% stock rom (sans magisk)
[Magisk] c3k:
Oh!

I was wondering that gms appears in list after command line add, but I was wrong :)

Thanks!
[Magisk] 73sydney:
This, except i just renamed the /data/data/com.google.androis.gms folder to /data/com.google.androis.gms.bak

Rebooted, the card that had been disconnected from my virtual wallet was re-added with no issues
[Magisk] Senliast:
Hm, i have Galaxy S7 and Pixel 2, Google Play Services are updated on both, on S7 GPay is working but on Pixel 2 not. It is also device depending?
[Magisk] fmc000:
I updated to Canary a few days ago on my test phone (OnePlus One - LineageOS 16 - Android 9 - no SIM card / WiFi only). After that I cleared data of Google Play Services and Google Pay. I was then able to add a credit card and I check every day if Google Pay has warning messages and got none so far.

I did not try to actually pay because I have no SIM card in the phone.

Magisk is not in core mode, I never blocked any kind of Play Services auto update and i haven't removed any directory under /data .
[Magisk] royhanks3:
Hey all, I've deleted the gms folder in TWRP and have hidden pay, play services and Google framework entirely and when I add a card, I get an error saying the card was added successfully, but "added features couldn't be added". I'm at a loss, Google pay was working flawlessly just a week ago and nothing has changed. Can anyone assist in helping me figure out how to fix this madness?
[Magisk] Senliast:
Did you also enabled Core Mode or does it work also without Core Mode?
[Magisk] c3k:
core mode enabeld:
[Magisk] Matrixie:
I'm still running .162, haven't updated yet.

I think I got it working - just need to test a payment in a store. Will report back later on that bit! But no errors when adding a card.

I followed this post: https://xdaforums.com/honor-10/how-to/root-emui-9-0-t3883991 to install the latest Canary. I was going to try renaming the com.google.android.gfs and com.google.android.gms from TWRP, but my /data folder was encrypted so I was unable to find the two folders. So instead, I booted up and using ES File Explorer, I renamed both folders to .bak.

I then rebooted whilst holding vol up to maintain magisk, as described in the post I linked to above.

I have also hidden every single Google package (overkill) with Magisk Hide, plus PayPal, Monzo, and Santander banking apps.

Then I opened Google Pay. I had to re-authorise my cards, but they added without any messages or warnings about root. Fingers crossed it works out. I'll update later after I've tried a contactless payment.

EDIT:

Google contactless payments are working for me! Let's see how long for...
[Magisk] Oggy512:
Thx, that did the magic. Now I have N26 and Revolut working again :)
[Magisk] D-m-x:
This is really starting to piss me off. Why can't they just leave people alone? It was working fine and it didn't bother anyone, why mess with people now?

Not only is this very inconvenient when there's no messages prior to trying to pay but also annoying.

Gesendet von meinem Pixel 2 XL mit Tapatalk
[Magisk] Resync:
yep i noticed that too.

now i tried almost eveything, its now working again, but paypal is completly missing so i cant use google pay now.
[Magisk] fmc000:
Because they cannot guarantee that a rooted device hasn't been tampered with. Therefore they don't trust it and they are doing everything they can to protect themselves from possible lawsuits. Not very different from what many banking apps have been doing for ages, they simply have more opportunities as they control the Play Services.
[Magisk] jcmm11:
Think I saw a post somewhere in this thread that says to add PayPal do it through the PayPal app.
[Magisk] wabmorgan:
Passes safety net but says can no be used for in store payments ? ? ? ?
[Magisk] wieman01:
Thank you, man. Your instructions worked perfectly. I can use Google Pay again with PayPal and Visa. I am on Lineage 15.1, Samsung Galaxy S5.
[Magisk] Freshek:
Let us know tomorrow if it still works.
[Magisk] dyingearth:
How do you delete Data for Google Play Services?
[Magisk] Resync:
holy **** man, it worked, thank you so much.

i hope it works now for a while. i dont get why google kicked us out....
[Magisk] Freshek:
Would anyone be interested in an app which would check if the `fails_attestation` value equals to 1 (altered device detected)?
[Magisk] royhanks3:
Absolutely! Send it our way, we want to test whatever you're willing to build /make to assist us in this very frustrating process
[Magisk] sturmeh:
How does one elevate permissions in terminal these days? su doesn't work, and this command requires escalated privileges.
[Magisk] martyfender:
In a root terminal did you try:

magiskhide --ls

This will list all apps hidden.
[Magisk] wabmorgan:
I just did. Thanks. Initially, I had thought com.google.andriod.gms was suppose to appear in the hide menu. I then realized it is added via terminal.

That being said. It will actually let me add a card, then it goes to verify with band and then returns the device is rooted warning.
[Magisk] martyfender:
On 2 of my devices I checked in the terminal, and I have:

com.google.android.apps.walletnfcrel|com.google.android.apps.walletnfcrel

com.google.android.gms|com.google.android.gms

com.google.android.gms|com.google.android.gms.unstable

org.microg.gms.droidguard|com.google.android.gms.unstable

I am on the latest Canary build with only the default Play Services hidden and Google Pay hidden and my credit card is showing up and I was able to add Visa Checkout. However, my 5 devices are all tablets without nfc, so I can't test the contactless payments feature which many users seem to have trouble with.

Extra entries were recently added in the latest Canary builds. If you are on v18.1 they would not show up by default as checked, as in my screen shot.

(Strange, I keep trying to edit my entries above but keep getting space in some of the entries, even though I don't see them in forum edit mode, here on my Linux desktop. Does anyone know why?)
[Magisk] Perry3D:
[MENTION=8126387]martyfender[/MENTION]: is your core mode enabled?
[Magisk] 73sydney:
Just updating as ive just made my first purchases since renaming /data/data/com.google.android.gms to /data/data/com.google.android.gms.bak

(with all pay/play/services hidden via magisk gui)

All modules enabled

Core only mode...nope
[Magisk] highdiver_2000:
This works perfectly.

I could only add one card. Not sure the second card had any bank related restrictions on enrollment. I need to switch around the card registration to confirm if I am limited to only 1 card.
[Magisk] prot-:
Yep been working for me 1.5 weeks no issue since the same
[Magisk] mioodzio:
Im on Mi MIX 2S - miui 10 from xiaomi eu - android pie and i just tried everything, Magisk Canary, Hide for every single process (screenshot), clean data for gms, reinstal gpay, Magisk Core and still cant manage to make it work... Banking app is not working also, when im trying to add phone to account its loading forever.
[Magisk] martyfender:
No, core only mode is not enabled. See the screenshot for the modules I use. I use my default devices fingerprint in Magisk Hide Props config. I don't need that module, I just test it, installed with it's default settings. I systemize Greenify, only, as a system priv-app. In addition I am enrolled in the beta programs for Google Play Services, Google App and Android System Web View.

Nextbook Ares 8A, x86, Android 6.0.1, Magisk Canary 18122 and [MENTION=7187684]ianmacd[/MENTION] unofficial builds on 5 of these devices. I have Google Pay setup on 3 of these devices.
[Magisk] Senliast:
i tried to resign Play Services, and then replace the file, hoping that he will be unable to update it because of signature missmatch,

but then he didnt recognized Services at all :laugh: i was spammed from all apps that i had installed that i must install Play Services)
[Magisk] joeyddr:
annnnnd.... it's broke again for me after working since last friday, latest canary and did the gms rename.
[Magisk] D-m-x:
Yes, this is not a reliable solution. I've tried the whole morning to fix this with renaming the folder and so on. It worked once, however after everything was set up GPay wouldn't open again because of some Error - detected root i presume. Imho don't bother to fix this as of right now, it will detect root again eventually at any given time.

As this is not working for quite some time now my hopes are kind of low that it will ever work properly again, I must say.
[Magisk] pr0adam:
Im sure there will be a more permanent solution to this soon, I dont think devs here will just simply give up.
[Magisk] dumdidum123:
Settings > Apps > App-list > Google Play-Services > Storage > Manage Storage > Erase all data. I translated this by myself since my device is set to german and not to english. But this is the general procedure, to delete the data of apps. Basically the way to "reset" an app.

I just typed in su and this worked perfect. I used "Terminal Emulator" for this. But you may also try this via the adb shell on a pc. Should work if root is installed properly.
[Magisk] dyingearth:
I have to go back to Magisk and authorize terminal after trying to su while on adb shell. That works for me.
[Magisk] Freshek:
So here's the app to check fails_attestation value. The source code is available here. I may also implement a quick way to delete the gms data folder if you want.
[Magisk] Pommefrais3:
Attestation failed...

Is masgisk the problem ?
[Magisk] TI.:
Did anyone already update to Google Pay version 2.85.xx? I'm currently on 2.84 and don't want to mess it up again, as adding cards and paying in store contactless works for me right now.

The method I used on Oneplus 3 with Lineage 16 & Magisk 18.1:

- Set Magisk to core mode and repacked with other packagename

- Adding com.google.android.gsf, com.google.android.ext.services and Google Pay on MagiskHide (don't know if all are needed)

Regards

TI.
[Magisk] davall:
Thank you, very convenient. No i can remove the sqlite viewer from my phone and easily check the attestation status just before a payment.
[Magisk] wabmorgan:
Mine failed... Which is not surprising considering I can't use contactless payments. Safety net passes every time but contactless payment fails.
[Magisk] royhanks3:
Mine says passed but I still can't add a card to GPay [emoji22]
[Magisk] warrencoakley:
New Google Pay app just released in the Play store.

My GPay is working perfectly on Canary. Is it as easy to just update this in playstore or will I loose my access to my cards?

Has anyone update yet to confirm?

Thanks.

UPDATE:

Can confirm update does not stop the use of the cards or GPay. Pheeeew!
[Magisk] ekraboubou:
GPay was failing at payment transaction. But you can check it also by removing the card and trying to re-add and re-enable "in store payment", this will give you the real status (working or not)

Confirm that: it is now working on play services 16.0.89:

- hide magisk app and package (from magisk app settings)

- hide root to GPay

- enable magisk setting "magisk core module only"

Reboot then GPay is ok.

OnePlus 6.

Thanks.
[Magisk] PhotoPaul:
[MENTION=9372079]Freshe[/MENTION]ck: I'm getting an "App not installed" installation failure message on my Android P OnePlus 5T.
[Magisk] warrencoakley:
Can confirm updating to new version does not effect your cards or usage of GPay.
[Magisk] wabmorgan:
Don't ask me to explain it, and it might not hold.

But I updated Gpay. Renamed data/data/com.google.andriod.gsm to .bak with root explorer.

Rebooted.

Then opened Gpay. I then activated card for contactless payments. Which was successful this time. I then went and made a purchase. It worked. ?

Pixel 2 XL core only not active but I do have the magisk package hidden.

Magisk 18.1 with hide com.google.andriod.gsm added via terminal. Only active module tethering.
[Magisk] dyingearth:
Just install Canary 18.2 still didn't work. I even went out of my way to disable com.google.android.gms and no go.
[Magisk] warrencoakley:
Try this:

Change stable to custom in settings of 18.1

This will prompt to install the canary build

Installed Magisk Canary 18.2

MagiskHide on GP Services, pay, banking apps etc

SafetyNet Passes but Pay fails to setup an existing card.

Removed app admins.

Rebooted to recovery and deleted "Android/data/com.google.android.gms" in TWRP. Doing this via a file manager fails as advised.

Cleared GP Service cache

Uninstalled GPay

Installed GPay

Was able to setup my existing cards and authenticate them with the bank again.
[Magisk] Sky Forever:
working!

I think the key is

-Magisk Hide via Terminal for Google Play Service (magiskhide --add com.google.android.gms)
[Magisk] Windroid-user:
Looks like the terminal thing is only required with magisk 18.1 and (probably) lower.

IMO installing Magisk 18.2 seems like the better option since you can still use your modules, I'm pretty sure you can on 18.1 because I could (before it eventually failed) but from what some people are saying it may not work (anymore?).

Also didn't do terminal thingy, back when I did it on 18.1

1 week with GPay on canary magisk 18.2
[Magisk] martyfender:
The new version of gpay is working for me as well, on Canary.
[Magisk] CSX321:
It seems like almost everyone's experience is different, but here's mine on a basically stock Pixel 3 with 18.1:

Used the terminal command for .gms and added Play Services Framework to MagiskHide

Renamed .gms folder and rebooted

Getting rid of that data was troublesome, because I had to re-pair my watch and re-setup several things in Android after that.

And Pay still didn't work

Lastly I set the option to randomize the MM package name, cleared only the cache for Play Services and rebooted and...

Success!

Not in core-only mode, but the only module I have is the built-in systemless hosts one.
[Magisk] martyfender:
On the last Canary build:

topjohnwu has already realized that there are issues for some users doing this and has reverted that in a commit today, but has not released a new Canary build yet:

https://github.com/topjohnwu/Magisk/commit/d08b1a6639d3569eb1533e85cbe958743eedef97
[Magisk] Snuuuuupy:
This worked for me! Thank you!

Just to confirm for everyone else in here, I did the following:

On magisk 18.1

Opened up terminal emulator, entered the following commands:

su
magiskhide --add com.google.android.gms

magisk hide for only Google Pay

Randomize magisk manager app package name

I did rename the root/root/com.google.android.gms folder to com.google.android.gms.bak, but I suspect that may be unnecessary. If this doesn't work, then rename it.

I was then able to add my cards again. I'll test it at a point of sales location for NFC payment but I suspect this will work since before I had an error message that I couldn't add a card because it was rooted/modified. If it passed that check, this *should* work.

---------- Post added at 01:25 AM ---------- Previous post was at 01:22 AM ----------

You can fix this by uninstalling magisk manager via adb.

adb uninstall com.topjohnwu.magisk

should fix it. Reinstall magisk manager and everything should be working.

Looks like the cat/mouse game is back on! :)

Edit: tested paying, works
[Magisk] jjk_droid:
This worked for me too ..using Google pay India on PocoF1. No need to delete the folder via file file manager or anything.

I noticed that the above Workaround fails if magisk is not in 'core mode' so, as stated in the quote, tick that option in settings -> reboot -> clear data for Google play services (not just play store) -> reboot ...payments work fine

Note: Core mode gets rid of any modules but I only had intune hider and that seems to be working for now so also good for now at least.
[Magisk] c3k:
let me know, I did the same steps, I can re-add the card too, but when I try to pay was blocked again and I have to set the core mode
[Magisk] t0m2k:
if i do this method, im not able to re-add paypal. only credit cards
[Magisk] highdiver_2000:
Please note if you hide Google Services Framework, you will break Pokemon Go
[Magisk] Darkestnoir:
Hey,

i have tested all fixes of the last pages and i can't add my PP account to GPay anymore. I could already pay with GPay, but since few weeks it's broken.

Also i couldn't find the "root/root/com.google.android.gms" folder on my device.

My device:

OP3T@ stock rom/kernel last version non beta

Magisk 18.1

GPay: 2.85.239456103

GPlayServices: 16.0.86 (040400-237483552)

GFramework: 8.0.0-4147944

Edit1: Now is the whole PP add button disappeared in GPay...

Edit2: Reinstalled GPay, PP button is back, but still cant add PP to GPay, says its rooted...
[Magisk] zencooler:
That's because you are looking for the wrong path.

The correct path is /data/data/com.google.android.gms

I am pretty sure that your Google Pay will work if you remove the content of this folder and reinstall Google Pay (with removing its data).

Please remember to update your Magisk to 18.2.x or switch current Magisk to core mode.

Just follow the steps explained in this thread before.

_______________________________

Just for information to the rest of subscribers of this thread. I am 5 days after the cleaning GMS (ver. 16.0.86) and reinstallation of Google Pay (2.82.231680166) with the Magisk canary 18.2 (18114).

No random name of MM and no core mode. My cards work fine and payment via NFC also works with no problem at all, so I am really happy :)

BTW: I know some of you changed the MM name to some random one to hide it from new google method of root detecting. I am not sure it is neccessary (as I didn't change it). But any suggestion how to do this in the easiest way will be appreciated.
[Magisk] jcmm11:
https://xdaforums.com/apps/magisk/discussion-google-pay-magisk-discussion-t3906703/post79204793

---------- Post added at 12:41 PM ---------- Previous post was at 12:38 PM ----------

Magisk Manager|Settings|Hide Magisk Manager
[Magisk] fw85:
No you will not break it. I have it on my Magisk Hide list, together with the game, and I can play it just fine.
[Magisk] Donald Nice:
Magisk 19 is released. I could add my card without problems. Only gpay and gms in magisk hide. No renaming or any other workarounds.

Edit: paying also works.
[Magisk] jsylvia007:
Using the app posted in this thread, my attestation is failing. I upgraded to Magisk 19, and it still shows failed. Do I need to delete gms and re-add my cards? Are we thinking that this might stop the continual failures every few days?
[Magisk] Donald Nice:
I didn't. Never used the app. Just updated magisk, re-added my card (Germany N26) and used my phone to pay.
[Magisk] zencooler:
To get rid this failed attestation you definitely need to remove GMS folder content. Changing Magisk has nothing to do with failed payment.
[Magisk] Freshek:
I think it's worth mentioning that John removed com.google.android.gms from the default hide list in Magisk 19.0. So you should ensure you've added it to the list if you happen to have Google Pay problems.
[Magisk] ThatFluxNerd:
Deleting the /data/data/com.google.gms folder fixed it, was able to add my card, gonna try payment tomorrow.