microg / GmsCore

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

MicroG acts as if I haven't added my Google account. #1847

Open RokeJulianLockhart opened 1 year ago

RokeJulianLockhart commented 1 year ago

Describe the bug

As https://github.com/microg/GmsCore/issues/1403#issue-814126841 explains, I am unable to proceed past the add account screen even after properly authenticating. It acts as if I never added an account to MicroG. When I try again, I get the

This account already exists on your device.

  1. Screenshot_20221212-170552

  2. Screenshot_20221212-170619

To Reproduce

Steps to reproduce the behavior: (Please wait a moment for some demonstration to be uploaded – I appear to need my PC to upload MP4 files to GitHub 🤷 – but it doesn't really require explanation.)

Expected behavior

All software should automatically detect the present account, and consequently not necessitate manual authentication.

Screenshots

  1. Screenshot_20221212-165921

  2. Screenshot_20221212-165933

  3. Screenshot_20221212-165943

System

Android Version: 13 CalyxOS version: 4.4.0 Build number: TQ1A.221205.011.22404000

Additional context

https://github.com/microg/GmsCore/issues/1403#issuecomment-1346588225

TheHighGroundWins commented 1 year ago

The add account button on microg just adds an account wether or not it already exists. If your phone says your account is there then it's there.

If your account doesn't show in google apps, then open something like google drive that detects your google account then go to your profile and manage google account. There you should see options to allow google apps to see your google account. Enable that and you should be good to go.

ildar commented 1 year ago

Manually allow the apps in trouble to read Contacts. (workaround)

RokeJulianLockhart commented 1 year ago

@ildar, that doesn't allow Google Fit to work, not least because it doesn't request that permission.

RokeJulianLockhart commented 1 year ago

@TheHighGroundWins, the screenshots posted demonstrate that I have already enabled those options. That was why I filed this report – very few applications are able to access my Google account despite that being enabled.

ale5000-git commented 1 year ago

@rokejulianlockhart: Please specify all apps where you have this issue.

RokeJulianLockhart commented 1 year ago

@ale5000-git,

https://play.google.com/store/apps/details?id=com.chrome.canary
https://play.google.com/store/apps/details?id=com.google.android.apps.fitness
https://play.google.com/store/apps/details?id=com.google.android.apps.walletnfcrel
https://play.google.com/store/apps/details?id=com.google.android.apps.recorder
https://play.google.com/store/apps/details?id=ninja.sesame.app.edge
https://play.google.com/store/apps/details?id=com.shazam.android

don't authenticate;

https://play.google.com/store/apps/details?id=com.google.android.apps.googleassistant simply doesn't work even when https://play.google.com/store/apps/details?id=com.google.android.googlequicksearchbox has been installed; and

https://play.google.com/store/apps/details?id=com.google.android.apps.healthdata
https://play.google.com/store/apps/details?id=com.google.android.apps.safetyhub
https://play.google.com/store/apps/details?id=com.google.android.accessibility.soundamplifier
https://play.google.com/store/apps/details?id=com.google.android.googlequicksearchbox

don't even open.

TheHighGroundWins commented 1 year ago

@rokejulianlockhart sorry man theres nothing more I can do. maybe the app is more reliant google services that microg doesn't have. Google contacts wouldn't sync for me and I had to manually import my contacts. It seems that your account is detected but just not connecting to be online.

RokeJulianLockhart commented 1 year ago

Indeed, contacts synchronize via https://www.apkmirror.com/apk/google-inc/google-contacts-sync, so that problem is mostly separate, although I am surprised that the relevant APK is not provided by MicroG, as I am surprised that the Trichrome library is not.

The rest of the problems are, however, severe bugs in MicroG, and why I never choose it over 1st-party implementation of the Play Services Framework if possible.

TheHighGroundWins commented 1 year ago

I tried google contacts sync before but it didn't work maybe that's just me.

I understand why microg is like this tho. It's basically porting google features without using closed source stuff. Reminds me of wine, like how if you want a feature you need to build something that acts as an interface.

Still waiting for nearby share to become a thing on microg. I'd like to work on it myself but it seems too advanced for me to even know where to start with it.

ildar commented 1 year ago

Answered many times: GoogleContactsSyncAdapter works only when installed as a system app (best into /system/priv-app/).

And you still may consider alternatives: NextCloud or any other CardDav server.

Sapiosenses commented 1 year ago

@ildar, that doesn't allow Google Fit to work, not least because it doesn't request that permission.

As far as I know, Google Fitness (same as Google Fit?) was never supported on microG, this is known and intentional.

It's possible it may be implemented at some time in the future, cannot say.

If you want to see which GMS/Gplay APIs are working, not working or will never work (eg because they are needlessly snoopery and the project founder doesn't want to facilitate that), please see the following page:

https://github.com/microg/GmsCore/wiki/Implementation-Status

Sense101 commented 1 year ago

I tried google contacts sync before but it didn't work maybe that's just me.

I understand why microg is like this tho. It's basically porting google features without using closed source stuff. Reminds me of wine, like how if you want a feature you need to build something that acts as an interface.

Still waiting for nearby share to become a thing on microg. I'd like to work on it myself but it seems too advanced for me to even know where to start with it.

I'd also like to work on fixing google contacts sync. From what I can see in the code, the method to sync contacts has simply not been implemented, which is a bit ridiculous.

I'm sure there are other people out there who'd like to fix these issues so they can use microg properly. But in order for anyone else to make changes like that they would need to understand how the code works! And there is no guide or anything on this.

I would be more than happy to work on adding these missing methods to microg. But I (and probably others) just don't know where to start.

Iey4iej3 commented 1 year ago

Right now, you might use an FOSS alternative as well, such as DAVx5.

trunksn1 commented 1 year ago

I stumbled upon this issue while having the same exact problem trying to sign in on ReVanced.

To solve that i just went into settings -> applications -> microG -> storage space and clicked on the two buttons to empty the cache and the data.

Hope this can help