Skip to main content

One post tagged with "google"

View All Tags

启用 Chromium 与 Google 账户同步 [已关闭]

· One min read
Wayne
Wayne

ref: https://stackoverflow.com/questions/67459316/enabling-chromium-to-sync-with-google-account

warning

已过时,不可靠的解决办法。
Still working as of July 2025 (Chromium 138)
Closed. This question is not about programming or software development. It is not currently accepting answers.

Google 宣布,从 2021 年 3 月 15 日起, Chrome 浏览器的开源版本 Chromium 将限制私人 API 的可用性。

变通办法:

使用设置了 oauth2 ID 和密码的标志启动 Chromium,可以重新启用 Chromium 与 Google 账户的同步。

例如,在 Arch Linux 上,可以创建内容为 ~/.config/chromium-flags.conf 的文件:

--oauth2-client-id=77185425430.apps.googleusercontent.com
--oauth2-client-secret=OTJgUOQcT7lO7GsGZq2G4IlT

也可以命令中传递标志。这应该适用于任何操作系统。(macOS未能同步)

Conclusion

这种方式不能保证未来的可靠性:

It looks like this id and secret come from sourcecode :

https://chromium.googlesource.com/experimental/chromium/src/+/b08bf82b0df37d15a822b478e23ce633616ed959/google_apis/google_api_keys.cc

ref