Question [SOLVED] Gpay NFC not working on AOSP custom ROMs - Xiaomi Poco X3 Pro

On my Poco X3 pro global, Gpay doesn't work with NFC payments when using AOSP custom ROMs A12.1, instead it works flawlessly in the same conditions with any fastboot or recovery MIUI roms.
I tried with or without magisk (obviously with safety net always passing and certified device on play store and google pay app, hiding play store, play services and google pay with zygisk), I tried deleting all data in play store, play services and gpay and trying again.
I tried with different custom aosp roms and gapps packages but nothing changed, when i try to pay the POS retrives an error and the transaction fails (nothing pops up on the phone).
The NFC chip works perfectly so it's not a hardware problem (I also said it works perfectly on MIUI).
I've got 13.0.4 firmware on.
Any ideas? Thanks to everyone who will answer

Gpay NFC payments worked for me on every ROM i tried, but i never rooted or modified them in any way (no mods, custom kernel etc) so that might be an answer.

The solution to this problem can be found to this link! Just swap your SIMs (or remove one and swap the other one), reboot your phone and you're good to go!
NFC doesn't working (unique mysterious problem)
Good day! Poco X3 Pro 8/256 does not want to pay for NFC in any way. What is the problem? When paying, any terminal beeps 2 times and issues an "equipment error". I studied a lot of information on XDA/4PDA, I didn't find anything similar to my...
forum.xda-developers.com

Related

PayGo and root - let's figure out how to make it work while the OS is rooted

Hello folks of XDA, especially the Italians one since i'm creating this thread to address one of the most wanted feature of the Italian Intesa San Paolo home banking mobile application for Android, that is making PayGo work with a custom ROM, rooted phone, ecc....
Now let's first state what PayGo is and what's the problem:
PayGo it's a feature of the application that allows you to emulate the contactless chip of one of you credit/debit card through NFC.
PayGo requires your phone to be unrooted and unmodified.
Every attempt to hide the modifications through Magisk Hide allows you to pass the initial warning of the application about Root and Custom ROM but the feature then fails to start with an unknown error.
So, summing up, PayGo won't work even if you pass SafetyNet checks and no one seems to understand what it checks.
Now, I'm a developer but I'm not even close to understand how security checks and stuff works under the hood in Android but my guess is that PayGo checks somehow if the bootloader is unlocked or not. Following this intuition I Googled how to check from application code if the bootloader is unlocked or not. One answer on Andorid Stack Exchange seemed to be really useful: it states that from a dialer app you can check if the bootloader is unlocked or not. Now, that answer reminded me that I was always wondering why Intesa San Paolo app was asking for phone permissions even if it never used them (at least apparently) and an idea popped to my mind:
what if the app asks for phone permissions only to check as dialer if the phone has unlocked bootloader or not?
Well, I revoked phone permission to the app and tried to open PayGo and guess what, it asks phone permissions right away! If you deny them and check "don't ask me again" it won't even open anymore, so my guess may be right.
The problem now is to understand what values is returned to the dialer and how to modify it so that we can test it.
Any good soul that can offer a solution through, i don't know, a Magisk module or something?
Thank you for your time in reading this, I hope it helps someone
@Diomorgan, @Errtu73, @olivercervera may find this thread useful
Have you tried disabling ADB debugging? I have personally tested PayGo and works
olivercervera said:
Have you tried disabling ADB debugging? I have personally tested PayGo and works
Click to expand...
Click to collapse
Yes, it passes the first warning but then fails to start with unknown error
You are lucky because I'm customer of the Intesa group (although I usually don't use this app)
As I said earlier, it works perfectly on my device. The issue is specific to your ROM/device.
I just activated the App and PayGo right now...
olivercervera said:
You are lucky because I'm customer of the Intesa group (although I usually don't use this app)
As I said earlier, it works perfectly on my device. The issue is specific to your ROM/device.
I just activated the App and PayGo right now...
Click to expand...
Click to collapse
Well I tried it on a OnePlus One with Sultanxda LOS but no luck, same on LG G4 with official LOS. Which phone and ROM are you using?
I'll try with my OnePlus 5 keeping the stock ROM, hoping it will work
Lamba92 said:
Well I tried it on a OnePlus One with Sultanxda LOS but no luck, same on LG G4 with official LOS. Which phone and ROM are you using?
I'll try with my OnePlus 5 keeping the stock ROM, hoping it will work
Click to expand...
Click to collapse
I'm on Xiaomi Mi5 and LOS 15.1 (Android 8.1)
LOS is not the problem, probably there was something weird in the ROMs you tried. Some old ROMs are implemented in a way that Magisk can't really work/hide everything, most of them before SafetyNet/Magisk era.
Try with stock ROM and Magisk, you should be fine.

google pay not working with magisk hide

Hi, recently Google pay stopped working for me.
I get "you can no longer use Google pay to pay in shops" error. I was on magisk 17.1 and it worked fine for some time then after few weeks it stopped working for no apparent reason.
I updated to magisk 18.1 hoping it would fix it, but the issue still persists.
Before anyone asks, yes I did tick google pay in magisk hide menu.
Does anyone have any ideas?
Edit:
I pass safety net and other apps that don't work with root work without any problem.
https://forum.xda-developers.com/apps/magisk/discussion-google-pay-magisk-discussion-t3906703
try with magisk canary build 18.2 and tez Hider, clean cache of google pay first:
https://forum.xda-developers.com/apps/magisk/module-tez-hider-t3796567
mati11233 said:
Hi, recently Google pay stopped working for me.
I get "you can no longer use Google pay to pay in shops" error. I was on magisk 17.1 and it worked fine for some time then after few weeks it stopped working for no apparent reason.
I updated to magisk 18.1 hoping it would fix it, but the issue still persists.
Before anyone asks, yes I did tick google pay in magisk hide menu.
Does anyone have any ideas?
Edit:
I pass safety net and other apps that don't work with root work without any problem.
Click to expand...
Click to collapse
Magisk Canary works good, tested it like 6 hours ago
Please follow the discussion of the same issue on the Magisk subforum. As posted by @add_pl the link is
https://forum.xda-developers.com/apps/magisk/discussion-google-pay-magisk-discussion-t3906703
Keeping the discussion in one place would mean that we arent restarting the discussion numerous times. It would also mean that you would get the solution quicker.
Thanks for the help. I downloaded magisk canary and everything is working fine. I thought it was some issue with my phone not a global issue.
With stable magisk version (current 18.1), you can try revoking Telephone permission from Google Play Services whenever you want to use Google Pay. You need to reassign this permission in order to be able to use other Google applications like Android Auto, Youtube, but revoking Telephone permission from GPS just works fine.
panchaln said:
With stable magisk version (current 18.1), you can try revoking Telephone permission from Google Play Services whenever you want to use Google Pay. You need to reassign this permission in order to be able to use other Google applications like Android Auto, Youtube, but revoking Telephone permission from GPS just works fine.
Click to expand...
Click to collapse
I find revoking telephone permissions from Play services to not work as when you try to run GPay, it will require enabling or else it wont run.
18.2 is the only solution i have found that worked for me.
tofuboi01 said:
I find revoking telephone permissions from Play services to not work as when you try to run GPay, it will require enabling or else it wont run.
18.2 is the only solution i have found that worked for me.
Click to expand...
Click to collapse
Can you check once by clearing cache of GPay and GPS? Also, play protect certification in Play store settings should show 'Device is certified' and safety net check in magisk should pass. Need to select GPay in magisk hide as well. This is working fine for me but yes, It requires enabling/disabling Telephone permission from Google Pay Services (not from Google pay actually) every now and then.
If it is working fine with Magisk 18.2 (that too without doing any manual steps as above), that is better than above

Magisk Rooted + Barclays App, can't use fingerprint authentication

OnePlus 7 , OOS 10.0.7 GM57BA
- rooted with Magisk
- busybox installed
- NO Xposed!!
- magisk package name changed
- magisk Hide enabled in settings
- safetyNet passed
- packages hidden: Barclays and com.anfroid.phone
Issue: cannot set up fingerprint authentication in Barclays app. It works well in any other apps. When following the procedure, the app throws an error T0009 and the message "Error during fingerprint authentication/registration"
I contacted the Barclays team, they don't seem to have the error in their errors list. Possibly to be forwarded from the system?
I also tried to hidein magisk the fingerprint authentication services com.qualcomm.qti.biometrics.fingerprint.service
Maybe I didn't hide all services involved in fingerprint authentication? What else should I try to hide from root?
I'm looking for suggestions.
Hi,
i've got the same issue for ages (with my previous OP6 too) and it's the same with the BA Amex app.
I think it's just an issue of these apps with our OP7 phone?
Have you ever been able to make it work with the phone un-rooted?
bay12 said:
Hi,
i've got the same issue for ages (with my previous OP6 too) and it's the same with the BA Amex app.
I think it's just an issue of these apps with our OP7 phone?
Have you ever been able to make it work with the phone un-rooted?
Click to expand...
Click to collapse
Yes, my wife's phone (also OP) was never rooted and it worked just fine. OP5T, then OP7 and now OP8. And yes, the OP7 Which is mine now,was hers before.
On the default phone configuration it seems to be working just fine.
derei said:
Yes, my wife's phone (also OP) was never rooted and it worked just fine. OP5T, then OP7 and now OP8. And yes, the OP7 Which is mine now,was hers before.
On the default phone configuration it seems to be working just fine.
Click to expand...
Click to collapse
oh interesting! i don't think i've ever tried to used these apps with an unrooted phone.
Please let me know if you manage to solve this issue
Same problem forever with Barclays and OP6
I have the same issue with my OP8T, rooted with patched Magisk image, MagiskHide, but otherwise stock OS. I'm also unable to get any useful information out of Barclays.
This worked fine on my OP3T so it seems to be something with the newer phones.
Hello guys,
I have the same issue with my OP8P, magisk hide,safety net passed. I have another banking app which is working perfect but this for some reason it is not working
I've just had my S9+ replaced on insurance. However I've had to have the phone replaced again as the first replacement they sent had an issue with the touchscreen.
My original phone worked fine with fingerprint authentication in banking apps.
The first replacement I rooted with Magisk and both my banking apps worked OK, but the newest replacement doesn't work with either banking app and just errors when trying to enable fingerprint authentication.
All phones were running the same Alexis ROM, same configuration with Magisk and same kernel.
Really weird.

NFC not working properly

I cant get NFC to work properly. My phone is able to read cards and tags in NFC mode but it doesnt emit anything. E.g. google pay is not working.
I have ArrowOS 11 with latest MIUI firmware.
I tried with my wifes NFC phone and my Poco can register signal from her phone but not the other way around.
Im thinking firmware issues or something with ArrowOS?
Any ideas?
I've got a similar issue, I can't get NFC payments to work. Also using Arrow OS 11 (latest release) with the newest miui firmware. Tried to root my phone with Magisk 24 to see if this works but until now without any success. Any help would be great.
I was able to get mine to work yesterday using an apple 12 as reciever.
The signal is insanely weak, i literally had to use a precise angle at a certain spot on the iphone to get a registration.
There is no way to get a card terminal to register anything this NFC emits. Seems it has to be closer than a few millimeters apart to get any registration.
Which is strange because i can scan tags/cards that are a few cm away without issue..
Im thinking this is a hardware issue
ndb055 said:
I've got a similar issue, I can't get NFC payments to work. Also using Arrow OS 11 (latest release) with the newest miui firmware. Tried to root my phone with Magisk 24 to see if this works but until now without any success. Any help would be great.
Click to expand...
Click to collapse
Install Magisk 23, hide the Magisk app (it will get a different icon and a different package name), hide Magisk from Google Play, Google Pay and your banking apps, install GPay SQLite Fix v2.6 from here:
Releases ยท stylemessiah/GPay-SQLite-Fix
A magisk module that ONCE allowed Google Pay to work on rooted phones - stylemessiah/GPay-SQLite-Fix
github.com

Question Google Wallet on MIUI 14?

Anyone got Google Wallet with NFC working on MIUI 14? I previously had it working on MIUI 13 but not since I upgraded.
Ok solved my own problem. In case anyone might be interested, my problem was that one of the Magisk modules (i.e. AndroPlus's Google Assistant module) was "disabling" my NFC. Once I turned off that module, it all worked again.
Hello i can't paying with m'y phone because my phone IS rooted
issa033 said:
Hello i can't paying with m'y phone because my phone IS rooted
Click to expand...
Click to collapse
Since your phone is rooted it should be no problems. Make sure you have the magisk module "universal safety net fix" and don't use AndroPlus's Google Assistant magisk module. It should work, if not then disable all other modules and see if it works. If it does, then its one of the modules causing the problem. That was the issue with mine.
FYI in case anyone is interested, I have a Mix fold 2, MIUI 14, unrooted, and I finally worked out how to get Google Pay/wallet working on it without rooting.
Instead of adding the card from the Google Pay app which would give me an error every single time, I went into my internet banking app on the fold 2 and started digging through my banking app settings. In those settings, I found a "cards" section, and, 'lo and behold, there beside my regular card was a little G pay icon. After clicking the icon, my banking app downloaded google pay onto the fold for me, sent me confirmation code by text and this time, NO ERRORS! It all went smoothly. I have used my phone to pay 4 times today and it's working like a charm.
I'm in Australia, using National Australia Bank.
I'm so thrilled, as it's been a couple of years since I rooted anything, and I didn't want to do it on something as nice or expensive as the fold (not for some time yet anyway).
bunnigrrl said:
FYI in case anyone is interested, I have a Mix fold 2, MIUI 14, unrooted, and I finally worked out how to get Google Pay/wallet working on it without rooting.
Instead of adding the card from the Google Pay app which would give me an error every single time, I went into my internet banking app on the fold 2 and started digging through my banking app settings. In those settings, I found a "cards" section, and, 'lo and behold, there beside my regular card was a little G pay icon. After clicking the icon, my banking app downloaded google pay onto the fold for me, sent me confirmation code by text and this time, NO ERRORS! It all went smoothly. I have used my phone to pay 4 times today and it's working like a charm.
I'm in Australia, using National Australia Bank.
I'm so thrilled, as it's been a couple of years since I rooted anything, and I didn't want to do it on something as nice or expensive as the fold (not for some time yet anyway).
Click to expand...
Click to collapse
Wohooo!!! Just discovered another Aussie Mix Fold 2 user!!! Yeah! Our numbers are growing ;-P
Anyone have wallet working it complains about root even though I have magisk hide + safety net fix. miui 13

Categories

Resources