microg / GmsCore

Free implementation of Play Services
https://microg.org
Apache License 2.0
8.2k stars 1.69k forks source link

[com.openai.chatgpt] Something went wrong. Please make sure your device has the latest version of Google Play. #2108

Open RusticCraftsman opened 9 months ago

RusticCraftsman commented 9 months ago

Affected app Name: chatgpt Package id: [com.openai.chatgpt]

Describe the bug After starting the app, the app will ask for an account, pressing any avaliable button will show up the following error on the top of the screen in a text box:

Something went wrong. Please make sure your device has the latest version of Google Play.
6947e67b-ec3d-4adf-9a92-2cdb41534e56, (-9)

To Reproduce Steps to reproduce the behavior:

  1. Start the app
  2. Press any of the avaliable buttons in order to create or enter an existing account

Expected behavior proceed with the login or sign up process

Screenshots image

System Android Version: [13] Custom ROM: [20-20230904-microG-devon] (lineageos microg rom for moto g32)

microG microG Core version: [0.2.27.223616] microG Self-Check results: [All ticked]

ale5000-git commented 9 months ago

When microG is installed the "version of Google Play" is the version of microG; so just do it: update microG :-)

RusticCraftsman commented 9 months ago

When microG is installed the "version of Google Play" is the version of microG; so just do it: update microG :-)

Forgot to mention that this error happens regardless of the version of microg, it has been happening for months now, just updated microg to 3.0 and still happens, the behaviour and error are always the same.

ale5000-git commented 9 months ago

The error message is generic, to discover the real issue please post a logcat (sometime it is really the version but the other times it may be a missing feature).

RusticCraftsman commented 9 months ago

The error message is generic, to discover the real issue please post a logcat (sometime it is really the version but the other times it may be a missing feature).

https://paste.c-net.org/HandlesStranger

Timestamp 11:34:43.212 i start pushing the buttons in order, from top to bottom, in the following order: Google, Apple, Sign up, Log in.

I have no idea when com.openai.chatgpt starts, there are lines everywhere. The logcat starts just before i open the app from the app searcher and ends after pushing the buttons

ale5000-git commented 9 months ago

I'm not completely sure but proably the problem is related to this: 12-05 11:34:43.217 1686 3781 W ActivityManager: Unable to start service Intent { act=com.google.android.play.core.integrityservice.BIND_INTEGRITY_SERVICE pkg=com.android.vending } U=0: not found

In the log there is also this issue: 12-05 10:48:18.500 1686 1834 W BroadcastQueue: Target SDK mismatch: receiver ActivityInfo{bd367b1 org.microg.gms.gcm.TriggerReceiver} targets 29 but delivery restricted to [0, 23] broadcasting Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4200010 (has extras) } from android (pid=1686, uid=1000) to com.google.android.gms/org.microg.gms.gcm.TriggerReceiver

And also some microG crashes.

@mar-v-in

Wizit38 commented 8 months ago

This issue also happens with the latest version of lighthouse for huawei ie 0.3.0.233516-lh

Piervit commented 8 months ago

I reproduced the problem on my e/Os phone. Same error message.

From my understanding, the issue is that microG doesn't handle com.google.android.play:integrity : https://maven.google.com/web/index.html#com.google.android.play:integrity:1.3.0 .

Can someone confirm this should be integrated?

mityax commented 6 months ago

I get the same error when trying to use my banking app on a Pixel 5.

02-25 17:48:15.151  1861  2589 W ActivityManager: Unable to start service Intent { act=com.google.android.play.core.integrityservice.BIND_INTEGRITY_SERVICE pkg=com.android.vending } U=0: not found
BurhanBudak commented 6 months ago

Try disabling the companion app.

mityax commented 6 months ago

Try disabling the companion app.

Doesn't seem to make a difference :/

BurhanBudak commented 6 months ago

Try disabling the companion app.

Doesn't seem to make a difference :/

It was worth a try, because the companion vending app doesn't emulate Play store that well. I had to downgrade some apps to work with or without companion.

Try the oldest ChatGPT app, the API should be 3.5

kv9898 commented 5 months ago

Same issue here

fairkid commented 5 months ago

There is a way to fix this. 1. download the latest version of google play store apk 2. uninstall the google play store in your phone 3.install the downloaded the lastest google play store apk to your android phone, and waiting the play app finish the update, then should be ok. just success and verified on my huawei mate series phone. hope it helps. (note: this way is just after all the other steps using mircog to finish the previous intall and find warning that "Something went wrong. Please make sure your device has the latest version of Google Play/ service" when you want to use chatgpt)

fairkid commented 5 months ago

There is a way to fix this. 1. download the latest version of google play store apk 2. uninstall the google play store in your phone 3.install the downloaded the lastest google play store apk to your android phone, and waiting the play app finish the update, then should be ok. just success and verified on my huawei mate series phone. hope it helps.有一种方法可以解决这个问题。 1.下载最新版本的google play store apk 2.卸载手机中的google play store 3.将下载的最新google play store apk安装到您的android手机上,等待play应用程序完成更新,然后就可以了。刚刚成功并在我的华为mate系列手机上验证。希望能帮助到你。 (note: this way is just after all the other steps using mircog to finish the previous intall and find warning that "Something went wrong. Please make sure your device has the latest version of Google Play/ service" when you want to use chatgpt) (注意:这种方式是在使用mircog完成之前的所有其他步骤之后,当您想使用chatgpt时,会发现警告“出现问题。请确保您的设备有最新版本的Google Play/服务”)

the link to download latest google play apk for now here: https://www.huaweicentral.com/download-latest-google-play-store-application-apk/

Lenni-builder commented 4 months ago

I think most microG users don't want to use the official Play Store since that would basically make microG useless in terms of privacy

kv9898 commented 4 months ago

There is a way to fix this. 1. download the latest version of google play store apk 2. uninstall the google play store in your phone 3.install the downloaded the lastest google play store apk to your android phone, and waiting the play app finish the update, then should be ok. just success and verified on my huawei mate series phone. hope it helps. (note: this way is just after all the other steps using mircog to finish the previous intall and find warning that "Something went wrong. Please make sure your device has the latest version of Google Play/ service" when you want to use chatgpt)

play store crashes on my device tho. Mine is a matepad 11 with microg

BurhanBudak commented 4 months ago

I think most microG users don't want to use the official Play Store since that would basically make microG useless in terms of privacy

True but microG Companion doesnt spoof the Play İntegrity part. There has been shell versions of Play Store for basic usage that fakestore couldnt cover.

BurhanBudak commented 4 months ago

If people want "a Play Store", fork this repo and continue the work:

https://github.com/sn-00-x/fakestore2playstore

It worked when we had fakestore but not with Companion. But the issue here is that it emulates a very old PlayStore and does some Play Integrity stuff.

The " Play Store" targets Android 10.

wki1 commented 4 months ago

if you're still facing the problem, Go to app info of Play store and stop the uninstall the updated version. It worked for and i hope it'll work for you too.

kingwe-stack commented 4 months ago

actually maybe your goole version is not the latest,even though you check ot.in google player.you can use apkmirro to install the latest one.i tried it.And sucessed

Lenni-builder commented 4 months ago

I think we should stop discussing how to install the Play Store here, since many people use microG to get rid of Play services

xNeonHD commented 3 months ago

I'm quite surprised how no one here has ever arrived at the conclusion that an unlocked bootloader may be the reason for this error. Because from my observations, all clues lead to an unlocked bootloader being the culprit.

Why I know this:

Therefore, I can only conclude that an unlocked bootloader may very likely be the reason, and that Google play integrity logcat snippet might just be connected to all this.

D3SOX commented 3 months ago

@xNeonHD I'm using a Pixel 8 Pro with CalyxOS and I also can't use the app so only an unlocked bootloader can't be the culprit

Lenni-builder commented 3 months ago

@xNeonHD @D3SOX I think the reason might be )lay Integrity (or SafetyNet?)

xNeonHD commented 3 months ago

@xNeonHD @D3SOX I think the reason might be )lay Integrity (or SafetyNet?)

That's exactly what I'm thinking. It's the same measures deployed by banking apps.

D3SOX commented 3 months ago

Yes, I don't get any Play Integrity or SafetyNet validation as of now. I don't think that's possible with a custom ROM without Rooting and using Magisk modules. (I don't have problems with any banking apps I use though lol)

kaduvert commented 3 months ago

I'm quite surprised how no one here has ever arrived at the conclusion that an unlocked bootloader may be the reason for this error. Because from my observations, all clues lead to an unlocked bootloader being the culprit.

Why I know this:

  • I own several various Android phones, of different "states".
  • My OnePlus 7 Pro running a custom A13 ROM, gives this error
  • My Pixel 4 running stock, but fully rooted and unlocked, gives this error
  • my LG G7, unrooted but unlocked, gives this error
  • my LG G8, unrooted and locked, does NOT give this error.

Therefore, I can only conclude that an unlocked bootloader may very likely be the reason, and that Google play integrity logcat snippet might just be connected to all this.

you're right.

Play Intergrity (previously SafetyNet) is a service by google built into the play store, which allows apps to attestate your device. because of some cryptographic signature android verified boot stuff, your bootloader has to be locked AND you have to use the stock rom in order for play integrity to return a MEETS_STRONG_INTEGRITY verdict. this verdict is probably what the chatgpt app wants.

microg hasn't implemented play integrity (and probably never will, because it can't spoof MEETS_STRONG_INTEGRITY because of cryptographic signatures) and thus it doesn't give back any verdict at all. in fact the service handling these request is simply missing, that's why the app reports that it failed to bind to service.

so what's the solution?

D3SOX commented 3 months ago

@kaduvert I don't think MEETS_STRONG_INTEGRITY is required for a lot of apps. I know Magisk modules that can bypass it so it should somehow be possible with microG too

kaduvert commented 3 months ago

@kaduvert I don't think MEETS_STRONG_INTEGRITY is required for a lot of apps. I know Magisk modules that can bypass it so it should somehow be possible with microG too

PlayIntegrityFix by chiteroman, which is what i think you're referring to, can get your bootloader-unlocked device the MEETS_BASIC_INTEGRITY verdict. from what the people are describing here, it seems as though this isn't enough and even if it would be, you can't get MEETS_BASIC_INTEGRITY on microG devices. you could at best get the SafetyNet equivalent (which this app doesn't care about)

but even if your device could get a MEETS_STRONG_INTEGRITY with some Magisk module, it still wouldn't be possible because microG has not implemented the Play Integrity API. (you know, the part that actually does the Integrity Checking)

my solutions outlined before are really the only ones there are. maybe you can find an alternative front-end app for ChatGPT, like gptAssist which does not check Integrity, but that's about it

D3SOX commented 3 months ago

I don't need such an app, I can use the website. But the official app has more features and runs smoother.

dragnev-dev commented 2 months ago

Not getting the "Advanced voice mode" is actually disappointing. Is there a way to use that through the web interface?

AwakeMidway485 commented 1 month ago

As an alternative, I can tell you that Claude works very well on a phone with microG

Sapiosenses commented 1 month ago

I don't think that's possible with a custom ROM without Rooting and using Magisk modules.

Some custom ROMs include some mitigation measures in the ROM's native code, and the result is you can pass Play Integrity without having to root the device or install any modules. But passing Play Integrity still relies on the official Play Store to be installed.

One such ROM I know of that can do this is crDroid. Tested on latest 10.6. (I don't run crDroid personally, this report is from other maintainers and users of crDroid)

Re: official Play Store - to mitigate some of its bad behaviour on the one device I have that I run it on, I freeze/disable it with App Manager when it's not actively being used. (Some paid apps want to periodically do Play Store license checks, for those you may need to enable it before opening such apps)

Lenni-builder commented 1 month ago

This is kind of off-topic, but regarding license checks: MicroG itself can do this now.

leozhang007 commented 1 month ago

Guys, is there a solution to this problem now?

xomarnd commented 3 weeks ago

On v0.3.2.240913 Latest does not work

sneakyx commented 3 weeks ago

Same here. It works with lineageos with gapps, but not on eos with microg.

xNeonHD commented 3 weeks ago

It works with lineageos with gapps

What? How is that possible?

Update 1: Okay, I actually do have LOS 21 running on a phone and you're right, it does work.

Update 2: Wait, I'm now using the app on a phone that previously didn't work, and now it works. Wow what a miracle.

mnikpro commented 2 weeks ago

Has anybody found a solution to this?

sneakyx commented 1 week ago

I thought I had a solution.... I installed lineageos with gapps. There, ChatGPT seems to run smootly. Then i made a seedvault backup (including chatgpt login settings). When I restored the seedvault-backup in eos, the app starts finally. I was happy, because I can see all the chats that I made, but I can't start a new chat. Someone has an idea?