GmsCore icon indicating copy to clipboard operation
GmsCore copied to clipboard

Android Pay Support

Open ShapeShifter499 opened this issue 8 years ago • 101 comments

I'm trying to use Android Pay but it constantly crashes with the following error message. "Android Pay is unavailable. Android Pay isn't available" I know I pass SafetyNet because I'm able to play Pokemon Go without issue. Is it possible to add in support for Android Pay?

I've taken a logcat during the crash. android_pay_logcat.txt [Removed for privacy]

System Moto X Pure LineageOS 14.1 Magisk 12 microG 0.2.4-81-gb1e98ea

ShapeShifter499 avatar Apr 15 '17 09:04 ShapeShifter499

The service bound by com.google.android.gms.tapandpay.service.BIND is not yet implemented and likely required for Android Pay to work.

mar-v-in avatar Apr 15 '17 10:04 mar-v-in

@mar-v-in Would this be hard to implement? Or even legal since this is a payment service?

ShapeShifter499 avatar Apr 15 '17 11:04 ShapeShifter499

@mar-v-in I use microG for a mix of security, privacy, and battery saving so I'd like to see support for Android Pay implemented. I've added $5 to a bounty

ShapeShifter499 avatar Apr 30 '17 03:04 ShapeShifter499

Any potential updates on this?

ShapeShifter499 avatar May 25 '17 09:05 ShapeShifter499

Added another $5 to this in hope someone can add support for this.

ShapeShifter499 avatar Jun 06 '17 08:06 ShapeShifter499

@mar-v-in any chance of Android Pay support ever being implemented?

ShapeShifter499 avatar Oct 20 '17 10:10 ShapeShifter499

Is this being ignored for some reason? Will this be hard to implement?

ShapeShifter499 avatar Oct 21 '17 23:10 ShapeShifter499

I too would like to see support for this.

@ShapeShifter499: He is only one developer so if he work on one thing all others are ignored, development will be faster if there will be more contributors.

ale5000-git avatar Nov 06 '17 12:11 ale5000-git

@ale5000-git I wish I knew more to help with the code but I barely know code at all, just simple scripts.

ShapeShifter499 avatar Nov 06 '17 12:11 ShapeShifter499

How do we add money to a bounty?

sjug avatar Mar 31 '18 02:03 sjug

To add money for this specific issue the link is this.

ale5000-git avatar Mar 31 '18 02:03 ale5000-git

I bumped up the bounty to a total of $25

ShapeShifter499 avatar Jan 09 '19 16:01 ShapeShifter499

Bumped to $50

repomaa avatar Jan 17 '19 00:01 repomaa

Bumped to 100$. This feature would be very useful indeed.

jacen05 avatar Apr 10 '19 19:04 jacen05

i could try to help but to be honest i dont have an idea of what ya trying to get done here.

c0d3x27 avatar Apr 10 '19 21:04 c0d3x27

@Banginpadr @mar-v-in suggested that Google Pay might work if a few things were implemented in microG. It would be nice to have some control over what Google does with the device by installing microG but then allow some aspects to work like tap-to-pay with Google Pay.

It's likely your transactions are heavily tracked as it is. Some people, such as I, may not care if Google knows they brought groceries somewhere at sometime. Cash is the only way to go if you're really paranoid.

ShapeShifter499 avatar Apr 11 '19 17:04 ShapeShifter499

@Banginpadr @mar-v-in suggested that Google Pay might work if a few things were implemented in microG. It would be nice to have some control over what Google does with the device by installing microG but then allow some aspects to work like tap-to-pay with Google Pay.

It's likely your transactions are heavily tracked as it is. Some people, such as I, may not care if Google knows they brought groceries somewhere at sometime. Cash is the only way to go if you're really paranoid.

i guess you need to use api for that to work.

c0d3x27 avatar Apr 11 '19 17:04 c0d3x27

This issue can't be fixed, because SafetyNet does not pass in more modern devices, if the bootloader is unlocked. Furthermore, SafetyNet itself is not passable in microG at the moment, like at all. Even the older devices (that do pass SafetyNet with unlocked booloader under Gapps) do not pass.

It is only a matter of time until SafetyNet won't be passable on every device with an unlocked bootloader. Source: https://www.xda-developers.com/magisk-no-longer-hide-bootloader-unlock-status/

So in my opinion it would be a waste of time to implement Android Pay, just to have it not working again in a year or less time - again.

correct me if I'm wrong, cheers

Axolord avatar Apr 23 '20 19:04 Axolord

SafetyNet does not pass in more modern devices, if the bootloader is unlocked

Can't we simulate an older device instead? I know all the dance around SafetyNet is tricky and will continue to become even trickier over years, but still.

notpushkin avatar Aug 31 '20 13:08 notpushkin

Well, isn't it possible to hide both unlocked bootloader and root using Magisk and the Riru EdXposed HiddenCore module? I tried so on Android 11. At least, using the proprietary GApps, Google Pay works this way. This should hence similarly work with proper microG implementations too.

TheOneWithTheBraid avatar Jan 03 '21 09:01 TheOneWithTheBraid

The new flutter based google pay app does not check for safetynet, it runs fine on another device I own with broken safetynet and normal google services. So it should be possible to make it work with microg.

CaramelFur avatar Oct 14 '21 13:10 CaramelFur

Can confirm: just installed Google Pay on an old phone with GApps and Magisk, SafetyNet fails, but Google Pay seems to be happy with that. :eyes:

notpushkin avatar Oct 14 '21 16:10 notpushkin

@notpushkin I have it on a root note 8 and is working

c0d3x27 avatar Oct 14 '21 17:10 c0d3x27

I am not sure that I am understanding this correctly. Let's say I have a device like one of the newer Redmi's from Xiaomi, with MicroG, Magisk (magisk hide), but without any GAPPS, Will I be able to use Google Pay with it? Now with the new flutter based Google Pay app.

Kranzes avatar Nov 13 '21 20:11 Kranzes

Hi there! My banking app (mBank, pl.mbank) recently added their own nfc payemnts (without google pay) - it looks like everything is going well, and the app even opens when I touch terminal with my phone (!!!) but then it fails

(I can provide more details later of course)

Would com.google.android.gms.tapandpay.service.BIND be hard to implement? Is it just some "launch X when Y intent received" or some more API logic etc? If I got some guidance, I could try...

TheLastGimbus avatar Dec 14 '21 14:12 TheLastGimbus

I've recently tried a similar feature by Sberbank of Russia (ru.sberbankmobile), with a similar result (the app asks for device PIN confirmation, then crashes). I'll try to get more details next time I try it (I don't really use it for anything other than metro rides, and I don't want to experiment with a 5+ people queue behind me so it can take a while).

notpushkin avatar Dec 14 '21 16:12 notpushkin

I have to add that I am using tap-and-pay (contact-less payment via NFC) using my bank's app (Leumi Bank). I also only have MicroG without any GAPPS, everything in the app works fine.

Kranzes avatar Dec 14 '21 17:12 Kranzes

Some Belarus banks have dedicated apps that also work pretty well with tap and pay.

In Russia, we also have an app called Wallet (called Koshelek in Russian; not to be confused with Apple Wallet) which many different banks (in both 🇷🇺 and 🇧🇾, and they plan on expanding to 🇪🇺 next year I think) support in addition to Google Pay. Sadly, it doesn't seem work on my microG setup, but it might be interesting to explore.

notpushkin avatar Dec 15 '21 09:12 notpushkin

Making Google Pay work with MicroG would be fantastic, though, I don't know if it will work because of SafetyNet.

Kranzes avatar Dec 15 '21 09:12 Kranzes