Enabling command line arguments for chrome on android

4,447 views
Skip to first unread message

Bravo Ellios

unread,
Jul 24, 2012, 2:46:31 AM7/24/12
to Chromium-dev
Hi All, 

I  want to provide command line arguments while running chrome browser.
Now, as chrome is GMS java app, I am not sure how to enable command line arguments.
To be specific i want to enable VLOG/DLOGs for debugging.
I have built libchromeview.so and running GMS app chrome which is downloaded from google play.

Thanks,
-Bravo

Sanjoy Pal

unread,
Jul 24, 2012, 3:09:23 AM7/24/12
to bravo....@gmail.com, Chromium-dev
We can set command line flags for chrome in a file at /data/local/chrome-command-line. Here's an adb one-liner:


adb shell 'echo '\''chrome --user-agent="[YOUR FAVORITE USER AGENT HERE]"'\'' > /data/local/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

Torne (Richard Coles)

unread,
Jul 24, 2012, 4:11:01 AM7/24/12
to bravo....@gmail.com, Chromium-dev

Note that chrome for android binaries are release/official builds and therefore DLOGs are compiled out. Not sure that VLOGs are present either...

--
Reply all
Reply to author
Forward
0 new messages