GmsCore icon indicating copy to clipboard operation
GmsCore copied to clipboard

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

Open RokeJulianLockhart opened this issue 2 years ago • 16 comments

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

RokeJulianLockhart avatar Dec 12 '22 17:12 RokeJulianLockhart

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.

TheHighGroundWins avatar Dec 20 '22 04:12 TheHighGroundWins

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

ildar avatar Dec 20 '22 09:12 ildar

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

RokeJulianLockhart avatar Dec 21 '22 12:12 RokeJulianLockhart

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

RokeJulianLockhart avatar Dec 21 '22 12:12 RokeJulianLockhart

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

ale5000-git avatar Dec 21 '22 13:12 ale5000-git

@ale5000-git, the undermentioned do not authenticate:

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

Additionally, 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.

Lastly, the undermentioned do not even invoke:

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

RokeJulianLockhart avatar Dec 21 '22 13:12 RokeJulianLockhart

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

TheHighGroundWins avatar Dec 21 '22 17:12 TheHighGroundWins

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.

RokeJulianLockhart avatar Dec 24 '22 01:12 RokeJulianLockhart

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.

TheHighGroundWins avatar Dec 24 '22 17:12 TheHighGroundWins

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.

ildar avatar Dec 24 '22 18:12 ildar

@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

Sapiosenses avatar Dec 25 '22 16:12 Sapiosenses

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.

Sense101 avatar Feb 08 '23 10:02 Sense101

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

Iey4iej3 avatar Feb 22 '23 10:02 Iey4iej3

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

trunksn1 avatar Jul 30 '23 10:07 trunksn1

So this is still very much an issue and no recommended fix in this issue either works or is feasible for me since I fully need G-suite apps to do college work, specifically I need Google Drive and Google Classroom to fully function.

Google Drive shows the exact behavior the issue describes, even with every single toggle I could find about letting apps do things turned on.

Google Classroom opens an accounts dialog that has no accounts in it, attempting to add my account will have microg tell me it's already added.

This is with the contacts sync adapter and calendar sync adapter installed as system apps and (provably) fully functional.

I hope this is fixed soon because this is a pretty big deal breaker for me.

george2781 avatar Dec 15 '24 02:12 george2781

@george2781 you are probably running into issue #2680 right now. Give it a few days/weeks for ROMs to update accordingly (some will be faster and some slower depends on what you're using)

mar-v-in avatar Dec 15 '24 07:12 mar-v-in

I have a similar (/same?) issue: https://play.google.com/store/apps/details?id=cz.mafra.jizdnirady has a google login method that shows me the microg account selector. Although it is populated with the one account I have logged in, selecting it just closes the dialog and the requesting app prints an error translatable as "Connecting via external service failed."

litoj avatar Jan 23 '25 10:01 litoj

@litoj , per s.e. it's a different issue.

ildar avatar Jan 23 '25 11:01 ildar