Android chrome won't pick command line flags from /data/local/chrome-command-line

1,027 views
Skip to first unread message

goe...@umich.edu

unread,
Nov 17, 2017, 2:46:06 PM11/17/17
to Chromium-dev
I have some runtime flags like "--no-first-run --ignore-certificate-errors" inside a file /data/local/chrome-command-line. 
The file contents look like:

chrome --ignore-certificate-errors
chrome --no-first-run


I have also enabled the chrome application's storage permission on my rooted Pixel 2. 
However when I verify the flags using chrome://version, it doesn't read those flags. 

Been fiddling with this for over 2 days now and any help will be sincerely appreciated. 

Sunny Sachanandani

unread,
Nov 17, 2017, 4:02:52 PM11/17/17
to goe...@umich.edu, Chromium-dev
Isn't it /data/local/tmp/chrome-command-line?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/54c1aaaa-e19e-4956-833a-3e25d406974a%40chromium.org.

goe...@umich.edu

unread,
Nov 17, 2017, 4:10:51 PM11/17/17
to Chromium-dev, goe...@umich.edu
As per their source code, it reads from both the files. 
And I tried both of them, still doesn't work. 
Wondering if there is any way to figure out what's going wrong?
Any specific file permission settings for the chrome-command-line , or user:group ownership changes?

Dmitry Skiba

unread,
Nov 17, 2017, 6:43:05 PM11/17/17
to goe...@umich.edu, Chromium-dev
Try installing with build/android/adb_install_apk.py - it assigns several useful permissions during the process.

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/2cfcad08-5015-4a0d-bb50-3f526cf18f55%40chromium.org.

Andrew Grieve

unread,
Nov 17, 2017, 8:27:22 PM11/17/17
to Dmitry Skiba, goe...@umich.edu, Chromium-dev
Perhaps you've tried this as well, but I think the format for the file should be:

chrome --ignore-certificate-errors --no-first-run

(both on the same line). For non-debug builds, I believe we only check /data/local/chrome-command-line. 

Pcpllxx

unread,
Aug 9, 2018, 5:37:35 PM8/9/18
to Chromium-dev, dsk...@google.com, goe...@umich.edu
Yes this is the correct format. Remember to fix the files permissions also. 
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
Reply all
Reply to author
Forward
0 new messages