Which flags do you use on Android?
Run google-chrome with flags on Android - Stack Overflow
Share your favorite Google chrome flags for Android, with explanations
What all chrome flags do you guys use on android?
Videos
My choice for Android:
enable-new-contacts-picker
enable-new-photo-picker
disable-pull-to-refresh-effect (disable vertical overscrolling for refresh - I always hated that!)
enable-chrome-duet - love that new design
enable-scroll-anchor-serialization (not sure if it's working on mobile, but on desktop a nice feature)
autoplay-policy (document user activation as requirement for autoplay - but for some reason, it is not always working, I wish that autoplay can be disabled entirely)
download-home-v2 (more UI customization)
stop-in-background (prevents scheduled tasks in background, thus reduces battery usage)
enable-horizontal-tab-switcher (UI customization, I prefer this horizontal tab switching)
upcoming-ui-features (general opt-in for UI flags)
android-site-settings-ui-refresh (more UI customization)
New method added in Chrome 661 that works for a production build on unrooted devices.
Using
adb, write the flags to/data/local/tmp/chrome-command-line.For example:
~$ adb shell 'echo --unsafely-treat-insecure-origin-as-secure=http://a.test > /data/local/tmp/chrome-command-line'In
chrome://flags, turn onenable-command-line-on-non-rooted-devices.Force stop Chrome (the relaunch now button will not trigger the reading of the flags file, even though the danger snackbar will disagree).
Verify in chrome://version that this worked.
https://www.chromium.org/developers/how-tos/run-chromium-with-flags#TOC-Android
What you're doing is correct, but seems like you're writing the switches to the wrong file for Chrome (and note that the file that you write the switches to may vary based on the OS version [or maybe phone?] ).
I tried this on two different phones, and had to write to two different files! Hopefully one of them will work for you:
Phone 1: Nexus 6 with Android 6.0.1
Simply do the following in adb shell:
echo "chrome --sync-url" > /data/local/tmp/chrome-command-line'
Phone 2: MotoG with Android 4.4.4
This is a bit trickier. It turned out that Chrome actually reads the switches from /data/local/chrome-command-line (not in the tmp subdirectory!). Now the issue is that on an unrooted phone you won't have permission to write to this file! So I had to root my phone* and use su to write to the file:
adb shellsuecho "chrome --sync-url" > /data/local/chrome-command-line
*Rooting an Android phone is actually very easy and takes only a few minutes. There are a number of one click apps for rooting your phone (e.g. KingoRoot). For the case of MotoG, I had to do a few more steps to root, following this)