Skip to content
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

Can't log in to google account already added in system settings. #363

Open
ghost opened this issue May 1, 2017 · 10 comments
Open

Can't log in to google account already added in system settings. #363

ghost opened this issue May 1, 2017 · 10 comments

Comments

@ghost
Copy link

ghost commented May 1, 2017

Apps such as chrome and calendar try to log me in, but if I put in my credentials it will say that the account is already on the device, and there is no option to select an account already on the device.

@mar-v-in
Copy link
Member

mar-v-in commented May 2, 2017

You need to grant contacts permission manually to Google apps (via system settings) so that they can see the account.

@ghost
Copy link
Author

ghost commented May 2, 2017

Already granted all permissions to AOSP calendar and Etar, no change

@mar-v-in
Copy link
Member

mar-v-in commented May 2, 2017

Ah. microG does not provide contact/calendar data to the relevant system services. If you want to use your Google calendar/contacts, read about it in #222, if you want to use offline or CalDAV calendars, there are separate apps for this in F-Droid.

@ghost
Copy link
Author

ghost commented May 2, 2017

Ok thanks. Where can I get the GoogleContactsSyncAdapter.apk?

@ale5000-git
Copy link
Member

@mirh
Copy link

mirh commented Oct 7, 2017

http://www.apkmirror.com/apk/google-inc/google-contacts-sync/

4.0.4 version crashes for me on sync, complaining about

W/AccountManagerService( 1877):   caller uid 10047 lacks any of android.permission.GET_ACCOUNTS
W/dalvikvm( 2930): threadid=13: thread exiting with uncaught exception (group=0x40a6c1f8)
E/AndroidRuntime( 2930): FATAL EXCEPTION: SyncAdapterThread-1
E/AndroidRuntime( 2930): java.lang.SecurityException: caller uid 10047 lacks any of android.permission.GET_ACCOUNTS
E/AndroidRuntime( 2930):        at android.os.Parcel.readException(Parcel.java:1327)
E/AndroidRuntime( 2930):        at android.os.Parcel.readException(Parcel.java:1281)
E/AndroidRuntime( 2930):        at android.accounts.IAccountManager$Stub$Proxy.getAccounts(IAccountManager.java:475)
E/AndroidRuntime( 2930):        at android.accounts.AccountManager.getAccountsByType(AccountManager.java:400)
E/AndroidRuntime( 2930):        at com.google.android.syncadapters.contacts.ContactsSyncAdapter.innerPerformSync(ContactsSyncAdapter.java:236)
E/AndroidRuntime( 2930):        at com.google.android.syncadapters.contacts.ContactsSyncAdapter.onPerformLoggedSync(ContactsSyncAdapter.java:180)
E/AndroidRuntime( 2930):        at com.google.android.common.LoggingThreadedSyncAdapter.onPerformSync(LoggingThreadedSyncAdapter.java:33)
E/AndroidRuntime( 2930):        at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:247)

@ale5000-git
Copy link
Member

ale5000-git commented Oct 7, 2017

@mirh: Probably you have missed something (it is easy to miss something by installing it manually) but you could try to use my installers (microG unofficial installer and Google Sync Add-on) that setup everything automatically.

@mirh
Copy link

mirh commented Oct 7, 2017

Microg self-check gave me ok to everything but unifiednlp (fairly since I hadn't installed it)
Then, I guess like google sync add-on could help in this regard, but it definitively isn't going to work on ics.

@ale5000-git
Copy link
Member

ale5000-git commented Oct 7, 2017

microG unofficial installer should already support ICS (I haven't tested it but it should work) and setup everything including UnifiedNlp.

About Google Sync Add-on: unfortunately now I can't try ICS (because I don't have any device with it) but if I find an emulator with it then I can discover the problem and fix it.

@AzzyC
Copy link

AzzyC commented Mar 31, 2018

I had this exact problem and I had fixed it by pushing a contacts-calenderssync.xml file (you may find a similar file) and pushing it to system/etc/permissions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants