GrapheneOS / os-issue-tracker

Issue tracker for GrapheneOS Android Open Source Project hardening work. Standalone projects like Auditor, AttestationServer and hardened_malloc have their own dedicated trackers.
https://grapheneos.org/
339 stars 18 forks source link

Can't make any purchases in sandboxed Google play #2112

Open o-kotb opened 1 year ago

o-kotb commented 1 year ago

I'm unable to make any purchase in either Google play store itself or other in-app purchases. The former isn't an issue as I can buy apps from the website (also no problem with payment info), but there's no getting around latter afaik.

It always says "Something went wrong" after I authenticate the purchase. I gave it the necessary permissions as well. I also switched to the alpha channel to try the newly released gmscompat, but the issue persists.

Screenshot_20230413-073946s

Btw, that link goes to https://support.google.com/googleplay/answer/1050566 for both in-app and play store for some reason.

thestinger commented 1 year ago

I gave it the necessary permissions as well

Not clear what you mean by this. No permissions need to be granted.

o-kotb commented 1 year ago

It asked for unrestricted battery usage for push or something like that the first time I installed it. Other than that, I left everything as is including network permissions.

thestinger commented 1 year ago

Which version of Play Store and Play services do you have?

o-kotb commented 1 year ago

Currently I have the latest from the alpha channel, so:

GmsCompatConfig 48 Google Play services 23.14.13 (190400-522407179) Google Play Store 34.9.16-21 [0] [PR] 518042857 Google Services Framework 13

The issue was present in stable channel as well. I think one time Play Store updated itself and Play services (another permission it asked me for), but I reinstalled them from apps to try to see if the issue would be resolved. That means it happens on both the version from Apps and the versions it tries to install by itself.

muhomorr commented 1 year ago

Need to see the logcat. Can you capture it after reproducing this issue?

o-kotb commented 1 year ago

Sorry for the delay, was trying to figure out why my phone wasn't connecting to the computer.

Here it is: logcat.txt

muhomorr commented 1 year ago

Are you blocking connections to Google servers at the network level?

o-kotb commented 1 year ago

Nope, but my home network is a bit unreliable and sometimes just doesn't connect to certain websites.

Here is the output of me trying to buy the same app but routing the connection to tailscale on my server, which usually always works when I'm having trouble with connections. logcat2.txt

But I don't have anything blocked.

muhomorr commented 1 year ago

Not clear from the logs why this issue is happening.

o-kotb commented 1 year ago

That's unfortunate. Would other logging types like bug report in developer settings provide more relevant info? I can dm or email you if it has sensitive info... or is this a dead end for me anyways :/

Also, I tried adding other google accounts and nothing changed. It only happens on this phone, and not other android devices.

muhomorr commented 1 year ago

When did this start happening? Yesterday?

o-kotb commented 1 year ago

The first time I tried purchasing something was 3 weeks ago. I didn’t think much of it then because google play wasn’t the only payment method available, but I’m kinda in a pinch now. I bought this pixel only a few months ago where I installed GOS the same day, and I installed sandboxed google play about a month or so ago. So it could’ve possibly not been working from the beginning.

muhomorr commented 1 year ago

Downgrade GmsCompatConfig to version 47 (it's currently in stable channel) and then reboot the device. See if it helps.

o-kotb commented 1 year ago

Same result. (Well, I started this issue when I was in stable.) I also tried version 46 which is installed when I uninstall updates… also same result.

I might have to use stock pixel os temporarily to get around this :(

thestinger commented 1 year ago

@o-kotb Have you tried clearing data for Play services and Play Store already?

muhomorr commented 1 year ago

Also, I tried adding other google accounts and nothing changed. It only happens on this phone, and not other android devices.

Do your other devices that don't have this problem use the same network setup?

o-kotb commented 1 year ago

@o-kotb Have you tried clearing data for Play services and Play Store already?

Just tried that now, but nothing changed. I also tried clearing the storage and then restarting, nothing happened either.

Do your other devices that don't have this problem use the same network setup?

Yep, it’s my brother’s samsung a13, connected to the same exact network. I just tried buying something now and it worked there.

Btw, every time I generate a bug report from developer options, I get a notification from gmscompatconfig GmsCompat saying that sandboxed google play crashed when the bug report generation finishes. Is this normal? It doesn’t happen when I use logcat from adb like I did before here.

muhomorr commented 1 year ago

Btw, every time I generate a bug report from developer options, I get a notification from gmscompatconfig saying that sandboxed google play crashed when the bug report generation finishes

I assume you mean notification from GmsCompat. GmsCompatConfig doesn't show any notifications. It's unrelated to this issue.