Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.4k
ContactSyncService: Implement related functions#2733
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Conversation
Sense101 commentedFeb 25, 2025
@DaVinci9196 so can people api not be made to work with MicroG? This is critical, as since a few weeks ago all requests made to the old apis return: This includes the google contacts sync adapter |
Sense101 commentedFeb 27, 2025
@DaVinci9196 I would like to help to finish implementing this. Please respond. |
DaVinci9196 commentedFeb 28, 2025
Sorry, I just noticed today that I used OauthToken generated based on GMS and Google Contacts app when verifying whether PeopleApi is available. Unfortunately, errors such as unable to access the API and no contacts permission appeared. You can try to see if there are other ways to solve these errors. |
Sense101 commentedMar 6, 2025
I am looking into this |
Sense101 commentedMar 19, 2025
I am still looking into this, as the entire structure of the api has changed this is not as simple as I thought. |
000exploit commentedApr 16, 2025
@Sense101 sorry for bothering, but what have you discovered? |
Sense101 commentedApr 16, 2025
No problem, took a break from this although I will be returning to it. Part of what I was working on is that the format of the .proto files (which define data sent between the client and server) must include specific annotations to link up correctly with the new google api's. This required different dependencies to the ones used right now in MicroG, which was a whole mess to sort out. Still lots of work to do, but that's part of what I discovered :) |
Sense101 commentedJun 19, 2025
Just noting I had some incorrect assumptions about this. |
Sense101 commentedSep 10, 2025
@DaVinci9196 I have been working on this, and have replicated calling the People api using an oauth generated based on GMS. I got the following error messsage back from google:
Was this the same error that you saw? If not, what error did you see? I tried generating oauth token based on the old contacts sync adapter id but couldn't get an auth token. I think this is a crucial feature for microg to have so it should be a priority to fix. The only next step I see from here is reverse engineering how play services does it, which I have no experience with. If anyone else is willing to help with this it would also be appreciated. |
DaVinci9196 commentedSep 11, 2025
@Sense101 Yes, we have encountered this problem since the beginning. This is a configuration behavior of GMS itself and there is no way to bypass or fix it. The current solution was adopted as the last resort to sync contacts. |
Sense101 commentedSep 11, 2025
@DaVinci9196 so to clarify, you're saying there is no way to now include contacts sync within MicroG? |
DaVinci9196 commentedSep 12, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@Sense101 At least not yet, maybe Marvin is considering other options. |
ale5000-git commentedSep 12, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Before implementing the contact sync part have you tried to implement the backup transport part? On Android 4.4 (Kitkat) the Google Contact Sync Adapter behave in this way:
Before Android 6 (Marshmallow) all Google Backup Transports include the service: On Android 7.1.2 (Nougat) Google Contact Sync Adapter say this: So if we implement the missing parts in microG Services (possibly service |
DaVinci9196 commentedSep 15, 2025
@ale5000-git Compared to implementing another larger function, I prefer the current PR solution :) |
ale5000-git commentedSep 15, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The whole file is 0.17 MB, I wouldn't say it is big. Also the current PR don't work, or I'm wrong? |
Sense101 commentedSep 15, 2025
As@ale5000-git said, this PR doesn't work anymore, and there isn't any way to get it working. However, I don't think relying on Google Contacts sync apk is a good solution because Google clearly stopped producing further versions and there's no way it will work long term. The idea with backup transport may be a good try though for a short term solution, although I don't like the idea of adding old code |
DaVinci9196 commentedSep 16, 2025
After verification, this PR still works to obtain contact data. However, additional steps are required. After granting microG permission to read your address book, select your Google account on the Accounts page in System Settings and click Sync Now. |
ildar commentedSep 16, 2025
This is awesome! Is there an early build for alpha-testing? thanks. P.S. I see that CI doesn't leave artifacts, sadly |
Sense101 commentedSep 16, 2025
Hmm so it seems the shutdown of the old api for contacts sync didn't yet impact when play services is asking for sync? That's unusual as it is shut down for all other apps |
Includes:
Note:
Tried to use PeopleApi, but did not have access to the interface.