0

I'm trying to understand what is the difference & the purpose of two lines in /data/system/sync/accounts.xml which relate to Chrome app.

<authority id="101" user="0" enabled="true" account="email@gmail.com" type="com.google" authority="com.android.chrome" syncable="true" />

<authority id="202" user="0" enabled="true" account="email@gmail.com" type="com.google" authority="com.google.android.gms.chromesync" syncable="true">

When I turn off sync in device Chrome app will (only) switch the boolean flag sync_switch inside the following file /data/data/com.android.chrome/shared_prefs/com.android.chrome_preferences.xml which also has the lines:

  • <string name="sync_acct_type">com.google</string> which means I logged in to a google account

  • <string name="sync_acct_name">my_gmail@gmail.com</string> represent my email to sync with

Why do I have two lines related to chrome com.google.android.gms.chromesync & com.android.chrome? Assuming com.android.chrome is the Chrome app, what is chromesync ? what will happen for multiple users ? I have two accounts (my work & my personal) but in Chrome I'm logged to my personal, will it sync both?

Related references https://chromium.googlesource.com/chromium/src.git/+/lkcr/chrome/android/java/src/org/chromium/chrome/browser/sync/ui/SyncCustomizationFragment.java#189

https://chromium.googlesource.com/chromium/src.git/+/lkcr/chrome/android/java/src/org/chromium/chrome/browser/sync/ui/SyncCustomizationFragment.java#325

https://chromium.googlesource.com/chromium/src.git/+/lkcr/chrome/android/java/src/org/chromium/chrome/browser/sync/ui/SyncCustomizationFragment.java#351

0

com.android.chrome is Google Chrome's package name.

enter image description here

com.google.android.gms.chromesync is part of Google Play Services used to sync Chrome's bookmarks, history and password. It's part of Chrome Sync that was made available for use via Google Play Service a few years back as stated in this article:

If you've ever used Google Chrome on Android –let's be honest, you probably have– then you've probably signed into your account and activated Chrome Sync to have things like bookmarks, history, and passwords in constant harmony across all of your devices. While this works really well, the setup process gets a little redundant for users that install all three variants of Chrome (Stable, Beta, and Dev). However, it looks like Chrome Sync is going to move, or at least become available directly through Google Play Services. Several activities and providers have been added, along with some of the necessary strings to implement the same functionality in the GMS package.


what will happen for multiple users ? I have two accounts (my work & my personal) but in Chrome I'm logged to my personal, will it sync both?

If you are logged to Chrome with only your personal account, then only your personal account should be synced.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.