Skip to Navigation Skip to Main Content

CalyxOS

microG Google Account Login fix, take two

CalyxOS includes microG by default, and you get three choices. You can either keep it enabled (the default), disable it, or login with a Google account.

The latter has been reported to have some issues. We tried to include a potential fix with the April build, but that didn’t work for everyone.

We have been testing a bunch of fixes and finally have something that should hopefully work for everyone. It’s based on code from Vanced microG, which from what we’ve heard seems to work for everyone.

It is now available for testing in our device-specific test F-Droid repos.

These F-Droid repositories get app updates as soon as they’re available, you can add this if you want to help us test them out.

To add it and install the update, simply add the right URL for your device to F-Droid -> Settings -> Repositories -> Plus sign at the top right

You can then try to sign-in to microG by launching it and tapping “Add Account”, and then choosing “Alt Sign in” - that will use this new method to login.

If you want to help, you can let us know what worked for you and what didn’t, through Reddit or Matrix. For more details, see Community.


F-Droid test repos:

DeviceURLQR Code
Pixel 4a (5G) (bramble) https://calyxos.gitlab.io/calyx-fdroid-repo-bramble/fdroid/repo Click to view
Pixel 5 (redfin) https://calyxos.gitlab.io/calyx-fdroid-repo-redfin/fdroid/repo Click to view
Pixel 4a (sunfish) https://calyxos.gitlab.io/calyx-fdroid-repo-sunfish/fdroid/repo Click to view
Pixel 4 XL (coral) https://calyxos.gitlab.io/calyx-fdroid-repo-coral/fdroid/repo Click to view
Pixel 4 (flame) https://calyxos.gitlab.io/calyx-fdroid-repo-flame/fdroid/repo Click to view
Pixel 3a XL (bonito) https://calyxos.gitlab.io/calyx-fdroid-repo-bonito/fdroid/repo Click to view
Pixel 3a (sargo) https://calyxos.gitlab.io/calyx-fdroid-repo-sargo/fdroid/repo Click to view
Pixel 3 XL (crosshatch) https://calyxos.gitlab.io/calyx-fdroid-repo-crosshatch/fdroid/repo Click to view
Pixel 3 (blueline) https://calyxos.gitlab.io/calyx-fdroid-repo-blueline/fdroid/repo Click to view
Pixel 2 XL (taimen) https://calyxos.gitlab.io/calyx-fdroid-repo-taimen/fdroid/repo Click to view
Pixel 2 (walleye) https://calyxos.gitlab.io/calyx-fdroid-repo-walleye/fdroid/repo Click to view
Xiaomi Mi A2 (jasmine_sprout) https://calyxos.gitlab.io/calyx-fdroid-repo-jasmine_sprout/fdroid/repo Click to view


Technical:

We enable device registration and cloud messaging for microG by default to make sure that notifications work out of the box.

The fix included in the [April build](/news/2021/04/08/big-april-update/ tried to disable those two before login, and then re-enable them after login. It seemed to work in some cases, not all.

At the same time, we had heard that Vanced microG had this Huawei login button which seemed to work for everyone. We had already looked at that code once, so we decided to try that approach.

At first, we tried to spoof just the ‘brand’ reported. AOSP sets it to Android, Google sets it to Google. Didn’t work.

Next, we thought it might be the fingerprint (which contains the build info). Both brand and fingerprint are usually spoofed on custom ROMs for Google Play compatiblity, so we thought that might be it. Tried, didn’t work.

After that we decided trying to spoof all of the device details like microG does, didn’t work.

Finally, we settled on just pulling in the full code from Vanced (something we wanted to do at first but decided to see if the other approaches worked.). This is what is being shipped in the APK now.

Note: If you take a brief look at the code, it may seem like microG is sending a lot of details about your device to Google. However, if you look closer, it spoofs a lot of that (it doesn’t even have access to things like the serial number), which means most of the data it sends to Google would match exactly with other devices, making it hard to pick you out.