yashsingh1/xdaforums huggingface dataset:
[Magisk] 73sydney:
worth pointing out my latest modules set the corretc google apps via magiskhide AND clears Pay cache and storage on install, to make it easier to use, ive tested it on 5 different Pie ROMS and had zero issues......it should be as easy as:

Install SQLite modules

install Gpay SQLite Fix (as mentioned does mgiskhide and Pay cache and storage clear)

Add card

Go shopping

Thats exactly how its worked for me....

Again if people are having issues, try runnin ght ecommand sin the siervice.sh script (or in earlier posts on here which the module is based on) and report which is any lines are not working. I have done my best to update as errors were reported (i.e. different chattr and sqlite paths), if theres somethign out there still causing it not to work for some people, its likely weird. Dont just post "it doesnt work" post some proof of why it doesnt work....wont get fixed wihtout feedback...if youre not prepared to post soem info to help us or me help you, then please dont bother just posting "it doesnt work", its pointless...
[Magisk] SageWilliams:
Hey Sydney,

First of all, thanks for all your work on this! Secondly, can you detail which SQLite Modules are needed? Aside from the fix module, I have 'SQLite for ARM aarch64 devices'. I can't install SQLite3 because, as far as I can see, its only for ARM7. Is there any other magisk module needed?

I should preface, so far its working for me, just want to be sure I am not missing anything else.
[Magisk] skia16:
Sorry but I don't know how can I give you more information
[Magisk] jcmm11:
chattr will be available if you install busybox (Magisk Module recommended)
[Magisk] Nosferatu.:
Go look for posts I've made in this thread. I have Magisk and all running perfectly fine on OxygenOS no SQL hacks. Just set it up right the first time and over 3 months later and plenty of purchases and plenty of updates to ROM, GPay, Play Services, etc. it all works perfectly fine for me.

EDIT: I did the homework for you. I did this back on April 1st. Still works today...

https://xdaforums.com/apps/magisk/d...discussion-t3906703/post79246020#post79246020
[Magisk] micku7zu:
True, it is also installed if you install Termux app, but I wanted to keep my system as clean as possible, and what I wanted to point out is that it works without "chattr". I don't think this commands are needed, or not in my case.

Hi Nosferatu, I tried those steps last month two times but it never worked for me, and I followed them exactly step by step. We don't know exactly what Google does in the background, and how the fact that is Android Q Beta affects this process. Maybe your steps + SafetyPatch (that was crucial for me) works, without SQL steps, but don't have time to try them again :D I'm happy that it works.

Thanks for all the info in this thread! The thread is a mess because the problem doesn't have a simple solution to work for all of us maybe because we have different modifications on the system and they have probably more methods to detect that.
[Magisk] skia16:
So for me there is no solution? I have made all steps of all of your guides with the same error posted before with the screenshot. I Need someone that guide me. I don't know how to execute the magisk module commands manually to check and report errors. The card adding process is ok but not the nfc payment that gives me error as you see in the screenshot. Please help me.
[Magisk] 73sydney:
I didnt make the commands up in the script, theyre from the original author....

Chattr stops the db file from being modified by external commands, i.e. to stop Google from perhaps trying to alter the contents to our fix...the fact that it works wihtout chattr is neither here nor there....i added the posted script line sinto the magisk module i created, and then i added lines to check for chattr and mysql3 in other paths to try and cover non standard paths...that was the limit of me monkeying with the original lines

I will add BusyBox as a requirement...quite why people are playing with custom ROM's without installing a BusyBox is beyond me, and i didnt think it needed spelling out, but ill add it....

If you install BusyBox like a sane person, and then install a SQLite 3 binary (whteher its my arm 7 one or another) and then the Pay SQL fix v1.34 then things do actually work....i wouldnt waste my time if it didnt....install 3 things via magisk, and not have to lift a finger (because my Pay SQL Fix does all the manual fwork for you), then simply add your card, and reboot...it will not get any easier than that....

p.s. Not installing things because youre trying to keep a "clean system" is not a sensible thing to do if one of those things youre resisting installing is needed by other things to provide you a functionaility youre installing other things for, and posting about errors with....just saying...
[Magisk] Nosferatu.:
I'll agree the thread is a mess without a simple solution but I'm talking about Android Pie not Q where mine works without issue.
[Magisk] 73sydney:
Not sure why youve made it harder for yourself than it needs to be, for starters youre doing things manually that the Pay SQL Fix script does automatically (including by the sound of it blanket hiding google things you prolly shouldnt, again the Pay SQL Fix knows and does these automatically), and youre doing it before running the Pay SQL Fix...

I have no idea what SafetyPatch does, never used it, never had to, possibly on Q its need, but then the developer (me) hasnt got a Q device....not many have because its not mainstream...and stil Beta....if im not mistaken.....

I do not only check for termux's chattr...but there is an issue with the login in that fucntion, so i am updating now to fix it and also output some info to a log on the sdcard....

p.s. i wrote the older Automate flow method, base don the same earlier commands....i stoppe dusing that method a while back, and moves to purely magisk...

Will update the thread when the new verison is done and tested
[Magisk] 73sydney:
Im doing my best, as are you, to make it simple

Ive just put in a ton more error checking into the install script and the gpay.sh service.d script...which should write a logfile on first run only, giving people an easier way to provide feedback if theres failures....no more running the commands form the script manually....

Uploading soon...tomorrow, have to get some zzz's its 4:30am here..

[MENTION=3033937]micku7zu[/MENTION]

In the meantime i have corrected the current releases to fix the chattr path issue (i left chattr off the end of the tested for xbin and bin)

i.e in my haste last update to add the extr paths across 3 releases, i forgot to add chatter after the path

so

elif [ -f /system/bin/chattr ]

was actually, by mistake:

elif [ -f /system/bin/ ]

Totally my bad, too much going in my life and missed this obvuius error....

Hopefully tomorrows update will be the last update ....

Im just working out a few bugs in the logging

Too tired to do any more tonight, err, this morning
[Magisk] warrencoakley:
How did you install GPay.SQLite.Fix.v1.3.zip?

It's stating it's not a Magisk module.

Thanks
[Magisk] 73sydney:
Perhaps you got a corrupted download, please try again

New versions (v1.4) coming later today, more logging and install time info/warnings than you can poke a stick at, should be easier to identify any issues

---------- Post added at 09:24 PM ---------- Previous post was at 08:40 PM ----------

Okay, i couldnt rest until i'd gotten at least the main full Pay SQL Fix done, and uploaded

Only the Full Edition (first link) has been updated to v1.4, ill do the others later today

Link(s) in the original post here or in my sig
[Magisk] warrencoakley:
Perfect. That worked. Thanks

Do I need to have these modules install too do you know?

SQLite for Arm & Safety Patch Magisk modules?

I have a Pixel 2 XL

Thanks
[Magisk] 73sydney:
You need an SQLite3 binary for the Full Edition or the Sleep 30 Edition, if you want the full fix (which edits the SQL table), you should find one for armv8-64 (aarch64) on the Magisk Repo, search for: SQLite for ARM aarch64 devices

As for Safety Patch i have never neededor used it...only seen it mentioned in this context once, today, before you mentioned it. Cant hep you there, try without it first....if you can pass safetynet without it, i would assume you dont need it.....
[Magisk] skia16:
SQLite3 binary found in: /system/bin

Chattr binary found in: /system/bin

Google Pay NOT stopped successfully

Chattr -i command completed successfully

Chmod 777 command completed successfully

SQLite3 command completed successfully

Chmod 440 command completed successfully

Chattr +i command completed successfully

Results of payfixfirstrun.log

The error in the activation of nfc payments is still present. Google pay can add my card only for online use and not for nfc use.
[Magisk] zencooler:
Did you try old fashioned method (as a complementary step) of clearing cache and data of GMS (or removing/renaming GMS data folder) and reinstall GPay and then start this full procedure (steps of sqlite etc that you already made)?

It seems your GMS still keeps the error information somewhere else (not only in dg.db) so maybe it will clear it and finish successfully. Worth to try ;)
[Magisk] skia16:
Again no results ???
[Magisk] nexusmaniac:
Anybody tried adding their card to Google Pay today? ?

Pixel 3XL, QPP4.

Magisk: 19.4-05658caf (19305) / 7.33-f1112fdf (228)

Google Pay 2.91.250911885

GPS 17.7.85 (100400-253824076)

I randomly added my card and it seems to have worked!! ??

I'm going to test it to see if it works with terminals, etc. but I'm in awe right now ?
[Magisk] nebula9:
No need for sql method?
[Magisk] nexusmaniac:
That's right ? I'm not sure how much of a fluke this is but I'm yet to test whether it works when I actually pay for something ?
[Magisk] nebula9:
That's Canary I suppose. And does Netflix show up in a play store search? And did you experience the problem before?
[Magisk] 73sydney:
Heres the thing for some people the full method with SQL edit workjs, and for some just setitng the db to 440 works, hence why theres more than one method, and why i have more than one magisk module for it :)

Theres no confirmed 100% single method that works for everyone, yet...
[Magisk] djjohnnyblaze:
Netflix does not show up for me.

Running 19.3 stable with default hide for gms
[Magisk] nexusmaniac:
Never looked for it before but I guess not?
[Magisk] andrewwdai:
safetypatch needs to be installed if Xposed is installed. Otherwise GPay will fail.
[Magisk] 73sydney:
duplicate post due to internet issue my side....apologies
[Magisk] yearn2burn:
Got Google Pay working in simple way

This is a copy of my post from Pixel 3 XL discussions.

Google pay working after months of not working! This is what I did:

-Uninstall Magisk.

-Install the monthly Google update (-w, July)

-Immediately on completion of the update, don't let the phone boot:

-Push and hold the power button until the screen goes blank then immediately hold the power and volume down buttons to go bootloader.

-Use the TWRP img file to boot with the fastboot boot TWRP.img command.

-Install Elemental X kernel.

-Now reboot phone and let Android update finish.

-Test Google Pay and it should be working.

-Now reboot and install Magisk as usual and enable Magisk Hide.

Love to see if this works for others. I think the problem is that when doing the monthly update and then allowing the phone to boot and complete the update, the system makes a note that the bootloader is unlocked. Once that happens, you can't cover it up with a kernel or Magisk hide.
[Magisk] djjohnnyblaze:
I'll try this on my pixel3a and let you know.
[Magisk] nebula9:
I'll try this on my P2XL. This is flashing the factory image or OTA update?
[Magisk] yearn2burn:
Factory image, though I suspect it would work with ota
[Magisk] djjohnnyblaze:
Would this still work if I'm already on July patch? As in just reinstalling the same update?
[Magisk] yearn2burn:
Sure. I would think based on my theory that it would be fine to just redo the update. Uninstall Magisk, reapply the July update, don't allow phone to reboot until you install a kernel that covers up the unlocked bootloader, boot to finish the update then install Magisk as usual.
[Magisk] djjohnnyblaze:
Didn't work for me.

Uninstalled Magisk

installed July update (removed -w from factory image)

interrupted boot and installed elementalx kernel

booted system

google pay didn't work (couldn't even add card)
[Magisk] jcmm11:
Instead of pushing and holding the power button etc. to prevent the phone from rebooting modify the flash-all script and add the --skip-reboot option to the last update command in the script. So

fastboot --skip-reboot -w update <image file name>

OR

fastboot --skip-reboot update <image file name>

Depending on if you want to remove -w or not.

You can even add a line to the end of the script to automatically boot you into TWRP.
[Magisk] lomski:
So I have havoc ROM with sultan kernel and pixel2XL ... How to make Google pay working !?!
[Magisk] yearn2burn:
The key thing is that flashing system and/or boot partition wipes knowledge of alterations. But booting even once with an unmasked unlocked bootloader seems to set a flag that your device is altered. Google Pay then reads that flag and knows the phone is altered no matter what you do until the next flash.

So, if I'm right, never allow the phone to boot until you've masked the unlocked bootloader. So far it's n=1 for success. Love to hear other successes or failures.
[Magisk] SageWilliams:
I have all of the same as you. Sydney's Magisk Module Method works for me: https://xdaforums.com/showpost.php?p=79643248&postcount=176

1) Install an SQLite binary (i offer an armv7 one in my downloads section below)

2) Install a Gpay SQLite Fix zip form below (Full Edition highly recommended for most people)

3) Add card

4) Reboot

If the above does not work for some reason, do the following:

Magisk Hide anything Google Related. Filter for anything that says android, google and gms. This might not be needed. I had these hidden before the module and the module should magisk hide anything that really needs to be hidden.

Step 4 says add your card and it does mean add your card. It does not work for me if I try to turn on in store payment for an already added card. So remove the card, then readd, then enable in store payments.

I have been using it for the last week and I have been able to make instore payments even after dirty flashing from June to July Havoc update.
[Magisk] nexusmaniac:
Google Pay is working on Android Q! ? (For me)

Payment went through with no fuss ?
[Magisk] lomski:
So I have followed the steps ....install everything with magisk manager and still doesn't work
[Magisk] livsey:
73sydneyThanks for the method. Everything turned out and works. Tell me how to act when updating services? I noticed one thing, if after upgrading the services do not let them overwrite the keys, then later comes a strong battery consumption!
[Magisk] SageWilliams:
Which part isnt working, adding the card at all or turning on in store payments?
[Magisk] lomski:
Adding card it's fine but set up contactless it's not possible
[Magisk] skia16:
Same for me
[Magisk] Stiven_Ding:
This works for me on MI MIX 2s with Havoc 9.0 Pie installed — Google Pay no longer states "can't pay in stores because it's rooted." However it's funny that my MasterCard in China doesn't support it. Many thanks for your work and I'll try later as soon as I get my new foreign credit card.
[Magisk] upperbladez:
[MENTION=9317193]73sydney[/MENTION] is amazing! Their fix worked for me!!! I'm so happy.
[Magisk] 73sydney:
Youre welcome, but the real thanks should got to [MENTION=2449699]BostonDan[/MENTION] for the original post, and other suggestions by [MENTION=9244976]braveheartleo[/MENTION] [MENTION=4487388]jcmm11[/MENTION] and [MENTION=4667597]Didgeridoohan[/MENTION], im just the plonker who packaged their work up into a half-assed module...though it has gotten way less half-assed lately thanks to [MENTION=4667597]Didgeridoohan[/MENTION]
[Magisk] thebdl:
Hey ya!

These past days I've been using GPay without any issues but suddenly yesterday I couldn't pay anymore. It's pretty weird because the card is activated and it's say is allow to pay with contactless.

I've installed the SQL fix and also de safety parch.

Is someone else having this problems or it is just me?
[Magisk] Neff_V:
WTF?? No, you are not the only one. I had the exact same issue two days ago.
[Magisk] zencooler:
Guys, but what is your problem exactly? What message are you getting in GPay when you try to pay?
[Magisk] Neff_V:
I did not receive any error message. It appeared as always the check mark. The terminal refused. I was able to successfully pay at the same terminal the day before.
[Magisk] andrewwdai:
Let me guess: GPS version changed? I have not got any problem as GPS version remains at 17.7.85.
[Magisk] adamjmacdonald:
I got the error "you can no longer pay in stores with this card in this device" error today. No issues last week. Card still shows registered in gpay. GPS is v17.7.85
[Magisk] andrewwdai:
Just waved and checked account balance via GPay. So only some devices stopped working.
[Magisk] vonDubenshire:
I have had some weird terminal issues recently on my wife's phone that is stock, unrooted etc.

Also my "tap and pay" card isn't working as much as it used to. Not sure what's going on.
[Magisk] thebdl:
Yes this is the same error that I receive every time I try to pay with gpay
[Magisk] godzulu:
Took this last canary update, and gpay no longer works. Had been working just fine on multiple devices
[Magisk] vonDubenshire:
What error do you get?
[Magisk] GryphonBR:
Getting the same issue, apparently. Error is as in screenshot.

As extra info: GPS 17.7.85, GPay 2.91.250911885, running Magisk 19305. Also used GPay SQLite Fix v1.7 because GPay failed before - assuming I might need to reflash the phone now?
[Magisk] vonDubenshire:
No no need to reflash

I'm going to run another test tomorrow morning and I'll update then!
[Magisk] GryphonBR:
Awesome! I've got a device ready for testing, so just lemme know when you've got it and I'll run the tests you need. Thanks in advance!
[Magisk] G-ThGraf:
I can confirm.

Just received my new S10.

Magisk is set up, magisk hide for Google Services & Pay etc....

It doens't work anymore :(

Still working on my S7...
[Magisk] kluknawa235:
gpay and magisk

for me now google pay and magisk on android 8.1 working.

i only update magisk manager to 7.3.2 and nothin more. then download latest gpay app and all works.
[Magisk] Hekarath:
Doesn't work on Galaxy S9 - detects that the phone is rooted. Everything up to date. Magisk Hide enabled for Google Pay.
[Magisk] zencooler:
That is normal as GPay recognizes unlocked bootloader and this is what this thread is about.

You need to use some method besides Magisk Hide. There is a separate thread about sql patch (blocking dg.db file that stores attestation info).

Regards.
[Magisk] vonDubenshire:
I haven't been able to get out to a store that has NFC payments.

Lot of places around here don't support it yet (they will really)l soon though)
[Magisk] GryphonBR:
If you've got something you wanted tested, just send it to me; I can test it and let you know how it goes.

In the mean time, silly question: does this method require me to use a specific kernel, by any chance?
[Magisk] vonDubenshire:
I just mean I have Google Pay with cards added and haven't had a chance to see if the payment goes through.

As for the kernel, nope! Not needed.
[Magisk] Hekarath:
Thank you - I've followed instructions found here: https://xdaforums.com/apps/magisk/magisk-google-pay-gms-17-1-22-pie-t3929950/page1

I've been able to activate my card with Google Pay using that method.
[Magisk] xdaillum:
I forgot to come back and share that this issue seemed to be a one-off and it worked again either later that day or the day after. Still working for me. Most recent time I've tried this is a few days ago, so still going strong. No need for a new solution for me!
[Magisk] GryphonBR:
Quick update on this: now running Magisk 19307, added MagiskHide Props Config and changed device fingerprint to Pie; still can't add cards with message about rooted or modified device.

To recap, I'm on Android Q PP5.
[Magisk] godzulu:
Just wanted to post that i tried again, without making any changes to my setup and gp worked like a charm. Must have been a glitch the other day when i tried and it failed.
[Magisk] vonDubenshire:
Did you also do the SQL fix?

It takes both.
[Magisk] GryphonBR:
Yeah, I actually had it automatically done via the Magisk module.

Took a couple of reboots but it got around to working, now.
[Magisk] hanschke:
I cannot add paypal to google pay because of the root error message and have hide it
[Magisk] shifty0ne:
Magisk
[Magisk] Olympus593:
Pixel 2, Android Pie with July 2019 updates. Magisk Canary 19.4 (19307) and Manager 7.3.3 (228). Google Play Services 17.7.85. MagiskHide on GPay and GPlayServices.

Today I disabled Google Pay as device administrator and could add card to GPay again, everything looks fine! Will try to pay with it tomorrow.
[Magisk] Shylockus:
Root-unrot-root issue

Samsunf s9+ ...succesfuly rooted then edited and dg.db set to read only..gopay worked but no samsungpass.... then unrooted succesfuly..but not worling properly... so tried to root again AND it was not possible... db.bd was not erased during rooting procedure was not able to rewrite it (it is not in whiped content!) roor stuck in bootloop... so i was able to load to stock rom again but dg.bp is read only and i ca´nt find a way to set it r/w again... root is impossible...funny...factory set phone is not possible connect to samsungpass and gogle pay..... so if you unroot dont forget to set dg.bp to r/w state... it will NOT be rootable again... OR does know a way to set it R/W without rooted system???
[Magisk] kleest:
Just want to chime in and report my experience so far. Mid of February GPay stopped working for me at the payment terminal. This has continued until I gave up trying. Two weeks ago I decided to give it another try. Since then, GPay has worked flawlessly - I did five transactions so far.

Here is my configuration:

Linked PayPal account as payment method

OnePlus 6, OOS 9.0.7, Stock kernel

Magisk 19.3 (19300) in normal mode (not core-only) with repackaged Magisk Manager

Play services 18.3.82

No SQL/database fix, no other hacks

Magisk Hide:

com.google.android.gsf: completely checked

com.google.android.apps.walletnfcrel: checked

com.android.vending: com.android.vending component checked

com.google.android.gms: .gms, .gms.persistent, .gms.unstable, .gms.room, .gms:snet components checked

Setup process (after configuring Magisk Hide):

Disabled in-store payments for old PayPal link (the one that started failing in February)

Enabled in-store payments for PayPal, which performed the complete setup routine including mail from PayPal ("linked PayPal to GPay")

Started paying in-store successfully

Let me now if you have any questions. :)
[Magisk] Optiongeek:
Can someone please help a noob out by ELI5 the following:

Install an SQLite binary - What does this mean? Just grab a SQLite app from Google Store? Where do I find a binary for my Pixel 3a? What process do I go through to "Install" it?

Install a GPay SQLite Fix Zip - I have the zip. No idea what is meant by "install" it. I need to run the gpay.sh somehow, but no idea how to do that.

Thanks!
[Magisk] jcmm11:
Magisk Manager|Downloads

Search for sql, only one result will return. Click the down arrow followed by Install.

To install the GPay fix go to the Modules section, click on the big + in the circle at the bottom, select the zip and let it install.

Reboot. Done.
[Magisk] Nosferatu.:
I think us OOS guys are just lucky. I've posted my setup multiple times. I've been using it since April and it continues to work despite ROM updates, Play Service updates, and GPay updates. 100% no issues no SQL hacks.

I watch this thread should an issue ever arise I"m not totally in the dark but yeah consider the two of us lucky. I never had any failures though. Dig through this thread I'm not digging through it to find my posts about my setup but it's in the April to June time frame so it'll be back a bit. :cool: