electronicstoday
Posts: 41
Joined: Fri Nov 15, 2019 4:02 am

How to RE-ENABLE Google sync on "Chromium"

Thu Jun 24, 2021 12:54 am

How to RE-ENABLE Google's syncing of history, passwords, credit cards, logins etc, on Chromium, FOR NOW, after they so kindly decided to remove it for no sane reason (Google can be quite infuriating at times):

# Tested only on my Raspberry Pi 400, fully up to date; I am sure this method is platform agnostic, ergo should work on most *nix systems #

1:

Code: Select all

sudo nano /etc/chromium-browser/customizations/00-rpi-vars
2:
Paste in the red parts AS IS, in that file (green parts are the existing content of that file - make a backup if needed):
CHROMIUM_FLAGS="${CHROMIUM_FLAGS} --force-renderer-accessibility --disable-quic --enable-tcp-fast-open --oauth2-client-id=77185425430.apps.googleusercontent.com --oauth2-client-secret=OTJgUOQcT7lO7GsGZq2G4IlT"

Et voila! It works! Tested on my Pi 400 as below:

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Last edited by electronicstoday on Sun Jul 11, 2021 3:34 am, edited 1 time in total.

Heater
Posts: 18373
Joined: Tue Jul 17, 2012 3:02 pm

Re: How to RE-ENABLE Google sync on "Chromium"

Thu Jun 24, 2021 2:45 am

electronicstoday wrote:
Thu Jun 24, 2021 12:54 am
Paste in the red parts AS IS, in that file (green parts are the existing content of that file - make a backup if needed):
CHROMIUM_FLAGS="${CHROMIUM_FLAGS} --force-renderer-accessibility --disable-quic --enable-tcp-fast-open [


Et voila! It works! Tested on my Pi 400 as below:

Looks like you have just published your google account client ID and password to the entire internet.
https://developers.google.com/identity/protocols/oauth2

Now we can all share your history, passwords, credit cards, logins etc.

Thanks.
Memory in C++ is a leaky abstraction .

electronicstoday
Posts: 41
Joined: Fri Nov 15, 2019 4:02 am

Re: How to RE-ENABLE Google sync on "Chromium"

Thu Jun 24, 2021 3:21 am

Heater wrote:
Thu Jun 24, 2021 2:45 am
electronicstoday wrote:
Thu Jun 24, 2021 12:54 am
Paste in the red parts AS IS, in that file (green parts are the existing content of that file - make a backup if needed):
CHROMIUM_FLAGS="${CHROMIUM_FLAGS} --force-renderer-accessibility --disable-quic --enable-tcp-fast-open
Et voila! It works! Tested on my Pi 400 as below:

Looks like you have just published your google account client ID and password to the entire internet.
https://developers.google.com/identity/protocols/oauth2

Now we can all share your history, passwords, credit cards, logins etc.

Thanks.


Looks like you can’t, actually. You’d need to have my Google login. Let me ask - did you think to do a cursory, basic Google of the info I posted, before submitting your reply?

Look here: https://stackoverflow.com/questions/674 ... le-account

A quick Google of both those values shows they are seen in Chromium source code: https://chromium.googlesource.com/exper ... pi_keys.cc

Heater
Posts: 18373
Joined: Tue Jul 17, 2012 3:02 pm

Re: How to RE-ENABLE Google sync on "Chromium"

Thu Jun 24, 2021 4:36 am

electronicstoday wrote:
Thu Jun 24, 2021 3:21 am

Looks like you can’t, actually. You’d need to have my Google login.
That is good to hear.

Still looks pretty scary to see anything called "secret" published.
electronicstoday wrote:
Thu Jun 24, 2021 3:21 am
Let me ask - did you think to do a cursory, basic Google of the info I posted, before submitting your reply?
No. I had only just woken up and read that before going to put the morning coffee on and have breakfast.

Let me ask - is it expected that one double check everything read here?
Memory in C++ is a leaky abstraction .

electronicstoday
Posts: 41
Joined: Fri Nov 15, 2019 4:02 am

Re: How to RE-ENABLE Google sync on "Chromium"

Thu Jun 24, 2021 4:42 am

Heater wrote:
Thu Jun 24, 2021 4:36 am
electronicstoday wrote:
Thu Jun 24, 2021 3:21 am

Looks like you can’t, actually. You’d need to have my Google login.
That is good to hear.

Still looks pretty scary to see anything called "secret" published.
electronicstoday wrote:
Thu Jun 24, 2021 3:21 am
Let me ask - did you think to do a cursory, basic Google of the info I posted, before submitting your reply?
No. I had only just woken up and read that before going to put the morning coffee on and have breakfast.

Let me ask - is it expected that one double check everything read here?
I shall hope that you meant your post in good will and in an attempt to protect me, so thank you - no harm done. :)

User avatar
Imperf3kt
Posts: 4587
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia
Contact: Twitter

Re: How to RE-ENABLE Google sync on "Chromium"

Thu Jun 24, 2021 4:55 am

I'm still confused as to how Google had a feature removed from an unrelated browser in the first place.
55:55:44:44:4C
52:4C:52:42:41

Rose tinted glasses are difficult to see through.

electronicstoday
Posts: 41
Joined: Fri Nov 15, 2019 4:02 am

Re: How to RE-ENABLE Google sync on "Chromium"

Thu Jun 24, 2021 5:01 am

Imperf3kt wrote:
Thu Jun 24, 2021 4:55 am
I'm still confused as to how Google had a feature removed from an unrelated browser in the first place.
Google and their "products", and their sheer arrogance, are a mystery to everyone. One day they will do something which backfires upon them, irreversibly... or they will be shut down for something they didn't see coming. Not one solitary tear, nor moment of sleep will be lost for their demise.

memjr
Posts: 160
Joined: Fri Aug 21, 2020 5:59 pm

Re: How to RE-ENABLE Google sync on "Chromium"

Thu Jun 24, 2021 5:25 am

Imperf3kt wrote:
Thu Jun 24, 2021 4:55 am
I'm still confused as to how Google had a feature removed from an unrelated browser in the first place.
They had previously added and their sync stuff to chromium's code. As others started to use chromium for their own browsers, i.e. Microsoft Edge, these other browsers also had the ability to sync like chrome. They decided that code should be restricted to Google's browsers only admit exposed apis only google was supposed to use. So they pulled the sync stuff back out from the chromium's code.

Not a huge deal. I have not tried on the pi yet, but if you really want the sync to work with your Google account. You can install chrome if you're running Debian amd-64/x64

electronicstoday
Posts: 41
Joined: Fri Nov 15, 2019 4:02 am

Re: How to RE-ENABLE Google sync on "Chromium"

Thu Jun 24, 2021 7:28 am

memjr wrote:
Thu Jun 24, 2021 5:25 am
Imperf3kt wrote:
Thu Jun 24, 2021 4:55 am
I'm still confused as to how Google had a feature removed from an unrelated browser in the first place.
They had previously added and their sync stuff to chromium's code. As others started to use chromium for their own browsers, i.e. Microsoft Edge, these other browsers also had the ability to sync like chrome. They decided that code should be restricted to Google's browsers only admit exposed apis only google was supposed to use. So they pulled the sync stuff back out from the chromium's code.

Not a huge deal. I have not tried on the pi yet, but if you really want the sync to work with your Google account. You can install chrome if you're running Debian amd-64/x64
It’s pretty obvious that’s the case. The very reason for this topic is that Raspberry Pi OS *cannot* run Chrome, and comes with Chromium, hence the workaround. I don’t think I’d have bothered going to this effort, had Chrome ARMHF been available.




LOL.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 14058
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: How to RE-ENABLE Google sync on "Chromium"

Thu Jun 24, 2021 12:14 pm

for what its worth, I removed the secret password from some posts, (but as they say the internet never forgets).

P.S. for what its worth, I CANNOT undelete a deleted text. Only the original poster knows what was once there and HE can put it back if he wants to.

cleverca22
Posts: 4008
Joined: Sat Aug 18, 2012 2:33 pm

Re: How to RE-ENABLE Google sync on "Chromium"

Thu Jun 24, 2021 12:48 pm

Imperf3kt wrote:
Thu Jun 24, 2021 4:55 am
I'm still confused as to how Google had a feature removed from an unrelated browser in the first place.
the code for sync was in the base chromium
and the hosting for all of that data was on google servers
memjr wrote:
Thu Jun 24, 2021 5:25 am
As others started to use chromium for their own browsers, i.e. Microsoft Edge, these other browsers also had the ability to sync like chrome.
and now google is having to pay storage costs for microsoft edge sync!!

so they changed the rules, so that only the official chrome build, and low-usage user-created keys can do sync

User avatar
craigevil
Posts: 218
Joined: Wed Jan 27, 2021 5:22 am
Location: OZ

Re: How to RE-ENABLE Google sync on "Chromium"

Thu Jun 24, 2021 3:22 pm

The actual steps to get Sync back in Chromium:
How to enable Chromium sync on Twister/RPiOS

1. Go to https://www.chromium.org/developers/how-tos/api-keys and follow the instructions to join the groups (https://groups.google.com/u/0/a/chromiu ... unts?pli=1 and https://groups.google.com/a/chromium.or ... romium-dev) and such in order to enable all APIs with "chrome" in their name, and to generate a:
- API key
- OAuth client id
- OAuth client secret

2. nano ~/.profile, then paste in the following:

env GOOGLE_API_KEY="API_key"
env GOOGLE_DEFAULT_CLIENT_ID="client_id"
env GOOGLE_DEFAULT_CLIENT_SECRET="client_secret"

Replace all the fields with your credentials you generated.

Run ctrl+x, then press y and enter to exit nano.

3. Just logout, then log back into your account. Run Chromium and sign in to enable sync!
Raspberry PI 400 Raspberry Pi OS (Unstable) Kernel: 5.10.17-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"

electronicstoday
Posts: 41
Joined: Fri Nov 15, 2019 4:02 am

Re: How to RE-ENABLE Google sync on "Chromium"

Thu Jun 24, 2021 6:38 pm

mahjongg wrote:
Thu Jun 24, 2021 12:14 pm
for what its worth, I removed the secret password from some posts, (but as they say the internet never forgets).
It's "secret" by name, it's not actually a secret. The whole point of the topic pivots around that data, so it would be remiss of you to leave it obscured; were it actually a secret, I don't think it would be wide open and visible in Google source. This speaks of ignorance towards how API keys work.
Last edited by electronicstoday on Sun Jul 11, 2021 3:31 am, edited 1 time in total.

electronicstoday
Posts: 41
Joined: Fri Nov 15, 2019 4:02 am

Re: How to RE-ENABLE Google sync on "Chromium"

Thu Jun 24, 2021 6:45 pm

craigevil wrote:
Thu Jun 24, 2021 3:22 pm
The actual steps to get Sync back in Chromium:
How to enable Chromium sync on Twister/RPiOS

1. Go to https://www.chromium.org/developers/how-tos/api-keys and follow the instructions to join the groups (https://groups.google.com/u/0/a/chromiu ... unts?pli=1 and https://groups.google.com/a/chromium.or ... romium-dev) and such in order to enable all APIs with "chrome" in their name, and to generate a:
- API key
- OAuth client id
- OAuth client secret

2. nano ~/.profile, then paste in the following:

env GOOGLE_API_KEY="API_key"
env GOOGLE_DEFAULT_CLIENT_ID="client_id"
env GOOGLE_DEFAULT_CLIENT_SECRET="client_secret"

Replace all the fields with your credentials you generated.

Run ctrl+x, then press y and enter to exit nano.

3. Just logout, then log back into your account. Run Chromium and sign in to enable sync!
Thanks

User avatar
CaptainMidnight
Posts: 240
Joined: Sun Nov 03, 2019 4:32 pm
Location: UK

Re: How to RE-ENABLE Google sync on "Chromium"

Fri Jun 25, 2021 3:55 am

electronicstoday and craigevil thank you my friends for providing this information, I haven't tried the 2nd method yet due to time constraints, but the 1st certainly works.

I know what I like and I like what I see ;)
"Never get out of the boat." Absolutely goddamn right!
Unless you were goin' all the way...

Return to “General discussion”