Gmscore: Unable to add Google account

Created on 22 Jan 2018  ·  10Comments  ·  Source: microg/GmsCore

I'm on LineageOS 14.1. I can log in to a Google account, but then it is eternally stuck at "Your device is connecting to Google to store information in your account. This could take a few minutes". But it doesn't take a few minutes, it never finishes. microG 0.2.4.

👥 Google Accounts

Most helpful comment

@Hattshire sorry for not merging your PR yet. I am currently super-busy with private and work stuff and thus my time to work on microG is very limited.

As many of my other projects conclude the next weeks, I hope to have spare time again in April.

All 10 comments

I might have to add that the exact version I have is 0.2.4-108-g464d45d. All microG packages are installed as root packages using the "inofficial microg installer" via TWRP.

There is an _android.view.ViewRootImpl$CalledFromWrongThreadException_ on https://github.com/microg/android_packages_apps_GmsCore/blob/464d45d552eb7bf075fd19ea1a5e9d8b8e7078b4/play-services-core/src/main/java/org/microg/gms/auth/login/LoginActivity.java#L294

Funny fact, the first time I tried to login it didn't except.

So I got it, more or less.
_accountManager.addAccountExplicitly()_ was returning _false_ apparently (I can't use the android studio to debug due to my crappy computer), but _showError(R.string.auth_general_error_desc);_ is not getting executed due to the thread restriction, so there is no visual feedback from nowhere.
I guess there is also a bug on android, because my account was not on the _Settings>Accounts_ section.

Here some images:
https://imgur.com/a/w9FZj

I was trying to remove my account using _accountmanager.removeAccountExplicitly()_, without results, then I printed out the accounts with _getAccounts()_, and my account was not there. Finally I searched for the _accounts.db_ file and I found 3 system folders on _/data_, 2 of them contained an _accounts.db_ file, and one of them was storing my account while the other stored what was shown on the _System>Accounts_ screen.
I will submit a pull request later with a couple of fixes to display the error screen, so I don't get too much out of topic.

Seems that my issue https://github.com/microg/android_packages_apps_GmsCore/issues/472 is somewhat same here.

So, no life signals from @mar-v-in ?( •̥́ ˍ •̀ू )

Same problem for me.

@Hattshire sorry for not merging your PR yet. I am currently super-busy with private and work stuff and thus my time to work on microG is very limited.

As many of my other projects conclude the next weeks, I hope to have spare time again in April.

@mar-v-in: I (and I think most users) appreciate your work a lot.
It is just that users that come to github just draw conclusions from the apparent quiet of the github page.

The problem should be fixed in recent versions of microG GmsCore, I'm closing this for now.
Please try it and report back.

Was this page helpful?
0 / 5 - 0 ratings