Here is the description and XML for import to Tasker:
(I use the TitaniumBackup's sqlite3 binary as suggested by @ Karpfenhai, you could edit it if you use other sqlite3)
A1: Run Shell [ Command:chmod 777 /data/data/com.google.android.gms/databases/dg.db
/data/data/com.keramidas.TitaniumBackup/files/sqlite3 /data/data/com.google.android.gms/databases/dg.db "update main set c='0' where a like '%attest%';"
chmod 444 /data/data/com.google.android.gms/databases/dg.db Timeout (Seconds):0 Use Rootn Store Output In: Store Errors In:%DebugMsg Store Result In: ]
Just wondering...whether we need to chmod 777 instead of chmod 660 as the orginal dg.db having permission of 660
Hello i have problem, I could have add a credit card to my android pay.
But when Im trying to pay at shop, nothing happens like I wouldnt turn on nfc.
Anyone had same issue?
I just added a MasterCard after following the full method and changing permissions to 440. As an extra piece of info, the card I added had never been present on my GPay account since this bank was only recently added to the list of participating banks.you guys are able to setup your cards for contactless payment in google pay after setting the file permissions to 440? I can not add any of my Master or Visacards. I get an error message everytime. Only PayPal works.
Has anyone installed the latest gpay update ?
Yes, my cards are still intact. Need to try paying to see if it still works.
All the atest database values still say 0 so I'm sure it'll work.
Edit: still works, paid earlier.
chattr +i dg.db
chattr -i dg.db
Many thanks @BostonDan for this. I was able to track down why my system fails at CTSprofile check, and at the same time make Google Pay work again. ?
Regarding chmod-ing dg.db to prevent overwriting the changed attestation values brought about by future gms updates, perhaps a more permanent solution to this would be to . This makes the file immutable (-i) or non modifiable, even to root. To reverse the change, should do.
just as an information to who is running into a similar situation:
I had this module running for quite a while on my Pixel 3a. Yesterday I updated to the 2021-04 version ... suddenly GPay noticed "your device is no longer certified" ... :-(
So I made the database dg.db writeable again, flashed Magisk and the SafetyNet-Fix module, cleaned data for Play-Services and Play-Store ... and after that I was able to use GPay normally without applying any additional patch or module. I only had to re-register my cards.
SQLite3 binary not found, please install a SQLite3 binary, without this the fix *may* not work
I provide an SQLite3 Universal Binary Magisk Module, and links to SQLite3 binaries for other architectures
su chattr -i /data/data/com.google.android.gms/databases/dg.db