GmsCore icon indicating copy to clipboard operation
GmsCore copied to clipboard

feat: Support workspace accounts with basic device management

Open pdanek opened this issue 11 months ago • 27 comments

Is there possibility to merge following PR with ReVanced/GmsCore please? https://github.com/microg/GmsCore/pull/2296

I'm trying to use my Workspace account in both Vanced and ReVanced for many years and last year microg/gmsCore finally solved this issue. Unfortunately I can't use microg/gmsCore on non-rooted stock Android, so I need to use ReVanced GmsCore.

Thank you.

pdanek avatar Feb 15 '25 10:02 pdanek

Hi Brother I'm not able to login to my Google account using this lattest version of micro g even i off the play protection but nothing happens give me solution

Image. I just stick on this page where this add account option comes after that nothing happens

SahilSharmaBhardwaj avatar May 11 '25 10:05 SahilSharmaBhardwaj

@SahilSharmaBhardwaj if it's a corporate account it won't work.

Also see https://github.com/ReVanced/GmsCore/issues/183#issuecomment-2708684451

If all that fails, then you may need to make a new Google account. If you need further help visit the Discord or Reddit link found on http://ReVanced.app (GitHub is not for troubleshooting).

LisoUseInAIKyrios avatar May 11 '25 10:05 LisoUseInAIKyrios

Not it's not any corporate account it's my personal account and I forgot to mention if I use any older version of micro g it's worka good but thats not supported by Youtube revance

SahilSharmaBhardwaj avatar May 11 '25 10:05 SahilSharmaBhardwaj

Please make MicroG revanced for Android 15 as it doesn't supports it currently.

harsh4real avatar Jun 10 '25 21:06 harsh4real

MicroG works with Android 15/16.

LisoUseInAIKyrios avatar Jun 10 '25 21:06 LisoUseInAIKyrios

Yea i just unhide microG from settings and resigned in and now it's working perfectly fine.

harsh4real avatar Jun 10 '25 21:06 harsh4real

Please 🥺 back to me

Akram007205 avatar Jun 29 '25 18:06 Akram007205

Good

safoysal210 avatar Jul 02 '25 20:07 safoysal210

Uioo

dasprashantta avatar Jul 16 '25 14:07 dasprashantta

Ydykskysjtsyl

dasprashantta avatar Jul 16 '25 14:07 dasprashantta

This is a blocker for me as well, so I had a go at bringing the Revanced fork up-to-date with GMS Core. I got it building, but the changes to fix device management add a new scope, CRYPTAUTH.

I think it might be an internal / restricted scope, as the OAuth request is rejected when it's included:

08-10 09:24:06.625 30669 30944 W GmsAuthManagerSvc: org.microg.gms.common.NotOkayException: Error=INVALID_SCOPE
08-10 09:24:06.625 30669 30944 W GmsAuthManagerSvc: LoggableAuthErrorMessage=INVALID_SCOPE
08-10 09:24:06.625 30669 30944 W GmsAuthManagerSvc:     at org.microg.gms.common.HttpFormClient.request(HttpFormClient.java:96)
08-10 09:24:06.625 30669 30944 W GmsAuthManagerSvc:     at org.microg.gms.auth.AuthRequest.getResponse(AuthRequest.java:257)
08-10 09:24:06.625 30669 30944 W GmsAuthManagerSvc:     at org.microg.gms.auth.AuthManager.requestAuth(AuthManager.java:360)

I'm not exactly an android dev, so I could have diagnosed this wrong, but it isn't looking like a simple fix.

Fallstop avatar Aug 09 '25 21:08 Fallstop

Did you merge upstream gmscore?

oSumAtrIX avatar Aug 09 '25 21:08 oSumAtrIX

I rebased your changes on top of the latest upstream commit, and then hacked it together just enough to build again over here

Fallstop avatar Aug 09 '25 22:08 Fallstop

https://github.com/ReVanced/GmsCore/tree/upstream-main-update

there is a branch that is a little ahead of main so maybe give that a shot as a base

oSumAtrIX avatar Aug 09 '25 22:08 oSumAtrIX

Gave that one a shot, and merged in upstream just until this commit: 36fedfaf97b6ec7cb4347ce3eb4a3e4dbc95c3f1 (to include the workspace account fix). Quite a bit easier than merging everything in, but still the same result.

I'm still pretty sure it's the CRYPTAUTH scope that's the issue; the only other reference to it is some ChromeOS source code.

Looking at the logs, more things are working, but I've still got the same error in the logs. In terms of UI, the original ReVanced version simply gave the "No Network Connection" error inside of YouTube; now it just infinitely loads.

For a baseline, I made a throwaway Gmail account, which worked perfectly, so nothing else is stopping the new updated version from working.

Fallstop avatar Aug 10 '25 08:08 Fallstop

It would be cool if ReVanced/GmsCore supported Google Workspace accounts. But as temporary solution, if one have access to workspace admin panel, try next setting:

  1. Devices / Mobile and endpoints / Universal Settings / General:
  • Turn off mobile management (Unmanaged).
  1. Security / Less Secure Apps:
  • Allow users to manage their access to less secure apps

Zalohin avatar Aug 11 '25 10:08 Zalohin

It would be cool if ReVanced/GmsCore supported Google Workspace accounts. But as temporary solution, if one have access to workspace admin panel, try next setting:

  1. Devices / Mobile and endpoints / Universal Settings / General:
  • Turn off mobile management (Unmanaged).
  1. Security / Less Secure Apps:
  • Allow users to manage their access to less secure apps

Hello,

Thank you for ideas. I tried this already before I opening this Issue, doesn't help, same error.

I think the only solution could be merging the changes done in upstream gmscore.

pdanek avatar Aug 11 '25 10:08 pdanek

Thank you for ideas. I tried this already before I opening this Issue, doesn't help, same error.

Sad to hear that. I looked for the solution for years too - I have own domain on Google and need non-root version too for one account. I found this thread, and I found pretty old solution with Workspace Admin Settings after. Tried it - worked for me, just now. I have 2S verification off for now too, switched it off some time ago, struggling to login with GmsCore. Will try to switch it on after successful login.

But I will definitely follow this topic. It would be great to have a normal "native" solution without lowering the workspace security level.

Zalohin avatar Aug 11 '25 10:08 Zalohin

I wonder when this would get upstreamed since the latest version is 3.7 and support's work account's and play integrity in case Google goes more locked down

flying-night-slasher avatar Aug 11 '25 13:08 flying-night-slasher

Vari good

turhanhonor-sketch avatar Sep 05 '25 14:09 turhanhonor-sketch

It would be cool if ReVanced/GmsCore supported Google Workspace accounts. But as temporary solution, if one have access to workspace admin panel, try next setting:

  1. Devices / Mobile and endpoints / Universal Settings / General:
  • Turn off mobile management (Unmanaged).
  1. Security / Less Secure Apps:
  • Allow users to manage their access to less secure apps

Turning off mobile management worked for me (before it was just showing "Please check your network... Tap to retry"), thank you so much!

hermangalio avatar Sep 30 '25 14:09 hermangalio

Strange, this never worked for me.

I even trying turning on / off again for both unmanaged and less secure apps. I still get "Please check your network" when signing in via MicroG Revanced.

pdanek avatar Sep 30 '25 14:09 pdanek

To be more specific, my issue was with YouTube ReVanced, are you running into this issue in a different place?

hermangalio avatar Sep 30 '25 14:09 hermangalio

To be more specific, my issue was with YouTube ReVanced, are you running into this issue in a different place?

No, only using Youtube ReVanced. Maybe it's because I'm using 2FA on my Google account, are you?

pdanek avatar Oct 01 '25 14:10 pdanek

No, only using Youtube ReVanced. Maybe it's because I'm using 2FA on my Google account, are you?

Try temporarily disabling 2FA. When I fixed the problem for me, I had 2FA disabled. If you can log in, try enabling 2FA then. And I saw an advice somewhere to switch the 2FA off before using ReVanced GmsCore.

Zalohin avatar Oct 01 '25 17:10 Zalohin

Very good

mistrilalita32-hue avatar Oct 13 '25 03:10 mistrilalita32-hue

Try temporarily disabling 2FA. When I fixed the problem for me, I had 2FA disabled. If you can log in, try enabling 2FA then. And I saw an advice somewhere to switch the 2FA off before using ReVanced GmsCore.

just want to note I was able to sign in with 2FA enabled (after turning off mobile management). Choose 'try another way' and select use code then follow the instructions in an external browser

evant avatar Oct 17 '25 20:10 evant