-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Token request fails with DeviceManagementScreenlockRequired #896
Comments
I am getting this same error with GMail and FairEmail, on GmsCore 0.2.10.19420 |
Bump please, its a 4 year old bug that renders custom ROMs useless for Google Workspace businesses. |
|
Does anyone know where to look into? Is this just an argument missing (somewhere we need to pass something like |
Not a useful comment, I am not my company's Google admin. This needs to be fixed, its a dumb issue. Disabling screen lock checks is stupid, and your admin should scold you for even suggesting it. |
Since nobody answered my questions above, I spent some time to see what is missing. Same as for #1726. The original GMS app also gets these mentioned
These requests repeat themselves more often afterwards with different data (always first What is also very interesting is that once these requests have been done for one Workspace account once on the device, they DO NOT need to be repeated. The account can be removed and a totally different Workspace account can be added. The requests above are not needed anymore. They are really only required once per device to register. That also makes debugging hard because you need to totally reset the device to provoke the error again. |
Thanks a lot for having a look @aximut. I'm currently having a very intense look at resolving this issue; here's some information about the
The above proto files are a bit hard to use because field 6 of
|
Thanks for sharing and putting everything in a useful file! That is very interesting that the protobufs are part of the chromium repo. I did not find any references when I searched it back in the day. In terms of complexity it is as I suspected, lot's of crypto going on. Especially parts like |
@aximut It's not really as complex, many of the intimidating fields can be removed and the
With that, you have a file I'll be working on a microG implementation next. |
Not necessarily. The script is here: https://github.com/micro5k/microg-unofficial-installer/blob/main/zip-content/files/bin/minutil.sh |
You can simply set On Google Play services devices, the query does happen after each account setup. |
That is good news. Didn't expect Google to be that lax on the requirements.
Ok, that means next to the Android ID we only need to get the other headers (
Yes, I saw it but it stays already authenticated even before the call hits first time. The calls are going on in quite an async manner in the official implementation. |
Thanks a lot for making this happen @fynngodau ! |
@aximut @fynngodau may I ask when this fix is merged ? Tks Seems to affect the ability to sync with Business Google email |
@simzen85 The PR can be merged only after it is working. See the PR for details. |
As the title states, when GmsAuthManagerSvc tries to make a request for a new token it fails.
This is the stacktrace:
My first hunch was to check that I had my screen lock PIN enabled, and it was. Other than that I tried finding other issues/information but it seems that I'm the only one with this problem.
I am currently using LineageOS 16 with microg, and have manually updated GmsCore to version 0.2.8.17785-4 (06c8b76)
The text was updated successfully, but these errors were encountered: