Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Pay Support #361

Open
ShapeShifter499 opened this issue Apr 15, 2017 · 89 comments
Open

Android Pay Support #361

ShapeShifter499 opened this issue Apr 15, 2017 · 89 comments

Comments

@ShapeShifter499
Copy link

ShapeShifter499 commented Apr 15, 2017

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

@mar-v-in
Copy link
Member

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 mar-v-in changed the title Android Pay Support? Android Pay Support Apr 15, 2017
@ShapeShifter499
Copy link
Author

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

@mar-v-in mar-v-in changed the title Android Pay Support Android Pay Support [$5] Apr 30, 2017
@ShapeShifter499
Copy link
Author

@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
Copy link
Author

Any potential updates on this?

@mar-v-in mar-v-in changed the title Android Pay Support [$5] Android Pay Support [$10] Jun 6, 2017
@ShapeShifter499
Copy link
Author

ShapeShifter499 commented Jun 6, 2017

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

@ShapeShifter499
Copy link
Author

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

@ShapeShifter499
Copy link
Author

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

@youcanaddthenameofyourorganizationlater

I too would like to see support for this.

@ale5000-git
Copy link
Member

ale5000-git commented Nov 6, 2017

@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.

@ShapeShifter499
Copy link
Author

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

@sjug
Copy link

sjug commented Mar 31, 2018

How do we add money to a bounty?

@ale5000-git
Copy link
Member

ale5000-git commented Mar 31, 2018

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

@ShapeShifter499 ShapeShifter499 changed the title Android Pay Support [$10] Android Pay Support [$25] Jan 9, 2019
@ShapeShifter499
Copy link
Author

I bumped up the bounty to a total of $25

@repomaa
Copy link

repomaa commented Jan 17, 2019

Bumped to $50

@ShapeShifter499 ShapeShifter499 changed the title Android Pay Support [$25] Android Pay Support [$50] Jan 17, 2019
@jacen05
Copy link

jacen05 commented Apr 10, 2019

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

@c0d3x27
Copy link

c0d3x27 commented Apr 10, 2019

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

@ShapeShifter499 ShapeShifter499 changed the title Android Pay Support [$50] Android Pay Support [$100] Apr 11, 2019
@ShapeShifter499
Copy link
Author

ShapeShifter499 commented Apr 11, 2019

@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.

@c0d3x27
Copy link

c0d3x27 commented Apr 11, 2019

@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.

@Axolord
Copy link

Axolord commented Apr 23, 2020

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

@notpushkin
Copy link

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.

@TheOneWithTheBraid
Copy link

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.

@LeVraiRoiDHyrule
Copy link

I would be very interested in any progression made on this, it probably is one of the biggest challenges for microg

@Iey4iej3
Copy link

There was some progress: 91e830b

@KCGD
Copy link

KCGD commented Dec 27, 2023

There was some progress: 91e830b

Yay!! It looks like they're laying the groundwork for pay support. It isn't close to functional yet though.

@Revyrun607
Copy link

Any way we can still add money to the bounty thing? I'd really appreciate this being available HW devices

@notpushkin
Copy link

I'm afraid Bountysource has scammed everybody: bountysource/core#1539

My $500 offer still stands though :-)

@ignisf
Copy link

ignisf commented Feb 6, 2024

Guys, would you genuinely risk something automatically flagging your Google account for fraud because of using payments without Google's blessing?

I mean, the rest of microg they may be OK with ignoring... However when payments are concerned, there might be risk of outside regulators having an issue with Google, which I expect would warrant a swift reaction.

And while microg may not be affected by direct legal action or could be protected by interoperability clauses, if Google bans all microg users that dare to use payments and word goes out, that's it with the project...

@KCGD
Copy link

KCGD commented Feb 6, 2024

Personally, I don't think this would be an issue. All payments would still go through Google and be appropriately charged to whatever account they're linked to. MicroG's implementation will allow Google pay to work as intended.

I don't believe any sort of fraud would be possible either, as Googles servers would still need to process and approve this request before any charges are made.

What I'm trying to say is that MicroG's implementation would not undercut or circumvent google pays's security. It will do exactly what play services would do and allow the app to function normally.

Also, even if payment does not work for some reason, Google pay is still used for other things like nfc based ID cards, which would also be awesome to have work.

If microG runs into legal trouble down the road, we can revert pay support and be back where we are now, but I'd say it's worth a shot.

@CutestNekoAqua
Copy link

How can we contribute to this? I'd like to help where I can, cause this is the only thing which will make me need to switch back to normal google services for the time being, cause I need google pay :p

Might also be interesting for other people looking to help, so just pop some info here if you have it ;)

@Kaydax
Copy link

Kaydax commented Apr 22, 2024

I opened up a new bounty for this issue if anyone is interested in helping fund this: https://gitpay.me/#/task/797

@rugk
Copy link

rugk commented Apr 22, 2024

@Kaydax Yet on another platform that may inevitable scam you? (or be bought etc.) After the bountysource issue, I am not sure people will built trust in such platforms again.

@ale5000-git ale5000-git changed the title Android Pay Support [$135] Android Pay Support Apr 23, 2024
@alexanmtz
Copy link

@rugk @Kaydax I'm a maintainer of Gitpay, which is entirely Open Source, and I've been supporting the project for more than six years. I can assure you we are not a scam, and we're not under any big company umbrella to dictate our direction; it is made by developers for developers, helping developers receive bounties across the globe, and we do not retain the funds who merge A PR to this issue can claim the bounty from your payments.

I would love to have you on board, and any feedback is very welcomed 🙏

@knocte
Copy link

knocte commented Jun 27, 2024

I opened up a new bounty for this issue if anyone is interested in helping fund this: https://gitpay.me/#/task/797

Hey @Kaydax did you add any amount to it? It looks empty.
With regards to funding options, I'm very sad about BountySource's rugpull, but happy that there are still offers here from some comments, such as @notpushkin's. As for me, I'd be willing to contribute money too, but only with crypto. To this end, I think the platform that may take BountySource/Gitcoin's baton might be SphinxBounties system: https://community.sphinx.chat/bounties But I haven't tested it yet (I don't see that GitPay supports crypto btw, that's why I'm discarding it as an idea)

With regards to this issue itself, I guess its title should be renamed? AndroidPay was the name of Google's Android's option to pay, but that changed to GooglePay as far as I understand, and these days it's Google Wallet actually.

In fact, to share my 2 sats, I bought a Murena phone recently (hardware: Fairphone5) that has e/OS 2.0 pre-installed (in particular, 2.0-t-20240506399547-stable-FP5) and this was the result when trying to run GoogleWallet:

  • Had microG with no Google accounts.
  • Installed Google Wallet from AppLounge.
  • Run Google Wallet: it asks me to log in into my Google account.
  • I log into my Google Account after passing the 2FA test(s).
  • If I enter microG settings I can see now that my google account is listed in the Accounts section.
  • Running GoogleWallet seems to sort of work, however when I click on the button "+ Add to Wallet", I get this error message:
    "Not yet supported: com.google.android.gms.pay.homescreen.additem.ADD_ITEM"

My microG version is: 0.3.1.240913-10 (0ade9a9)

Regards to all, especially opensource supporters&contributors.

@CutestNekoAqua
Copy link

Anything we can help to get this to work?

@knocte
Copy link

knocte commented Jun 29, 2024

Anything we can help to get this to work?

Hi @CutestNekoAqua: no idea, I'm a dev but not Android dev. From what I can see, there's a new linked issue to this issue: #2086 where someone claims that their microG version is not new enough. I myself have checked in my phone (e/OS 2.1-t-xyz) and I have a version that is too old as well (0.3.1.x). Apparently 0.3.2.y may improve things. Are you able to test on your end and try to upgrade to that microG version?

@Iey4iej3
Copy link

The MicroG (0.3.2.240913) that I installed does not seem to have anything working about Google Pay as well.

@knocte
Copy link

knocte commented Jun 30, 2024

@Iey4iej3 please report that in #2086

@nociza
Copy link

nociza commented Jul 3, 2024

Mostly wondering if this will support for hw pay as well? Microg is already a godsend for making hw's useable right now

@knocte
Copy link

knocte commented Jul 3, 2024

Mostly wondering if this will support for hw pay as well? Microg is already a godsend for making hw's useable right now

Excuse me, what does 'hw' mean exactly?

@notpushkin
Copy link

Excuse me, what does 'hw' mean exactly?

Huawei, perhaps?

@LeVraiRoiDHyrule
Copy link

Hi,
I guess that Google Pay/Wallet is the final boss of microG's journey, and that it will probably take a lot of time before someone has the ressources and time to invest in this.

While we wait, I wonder if there would be a way to have google pay on a microG phone by having a containerized version of the official Google Play Services. Would there be a way to have a container / virtual machine or similar, on the phone, that would contain only Google Wallet and official Google Play Services ? That way, maybe we could limit Play Services tracking while allowing to use Google Wallet.

Is there such thing as a containerized Play Services that could be installed along microG ?

Thanks in advance for any answer.

@Weissnix4711
Copy link

Hi, I guess that Google Pay/Wallet is the final boss of microG's journey, and that it will probably take a lot of time before someone has the ressources and time to invest in this.

While we wait, I wonder if there would be a way to have google pay on a microG phone by having a containerized version of the official Google Play Services. Would there be a way to have a container / virtual machine or similar, on the phone, that would contain only Google Wallet and official Google Play Services ? That way, maybe we could limit Play Services tracking while allowing to use Google Wallet.

Is there such thing as a containerized Play Services that could be installed along microG ?

Thanks in advance for any answer.

GrapheneOS does this, though I've never tried it because I don't have a supported device. I don't think any other ROM does a similar thing.

@notpushkin
Copy link

DivestOS used to do this for both Google Play and microG, although nowadays I think they support microG only.

Offtop rant I'm using this now and while it's neat and secure, it doesn't support UnifiedNlp at all for political reasons (“The primary reason for not supporting network location providers is that they effectively divulge your location to third-parties (eg. Google/Qualcomm/Apple/Mozilla) every time they are used”). Then again, they are working on [an UnifiedNlp backend](https://codeberg.org/divested-mobile/wlanbackend), too, so maybe that won't always be the case.

@yangyang628
Copy link

Is there any new progress on how to use Google Wallet?

@znbaboy
Copy link

znbaboy commented Jul 21, 2024

hopefully this is solved soon. this is the only thing holding me back from switching to MicroG permanently

@robog-two
Copy link

Even if it's not possible to get say, debit cards to work, due to the restrictions on SafetyNet. I would appreciate if it were possible to get loyalty cards (A great example would be a CVS card) or other passes that are just a number & barcode. I don't expect 100% compatibility with normal play services, but I think the basic framework/UI for the card system would be really nice.

@brennoflavio
Copy link

Even if it's not possible to get say, debit cards to work, due to the restrictions on SafetyNet. I would appreciate if it were possible to get loyalty cards (A great example would be a CVS card) or other passes that are just a number & barcode. I don't expect 100% compatibility with normal play services, but I think the basic framework/UI for the card system would be really nice.

Have you tried Catima? Its a free app that should cover this use case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests