Using Command Line Flags on Android

3,312 views
Skip to first unread message

Isiah Meadows

unread,
Dec 9, 2013, 11:14:23 PM12/9/13
to chromium...@chromium.org
I was wondering if there is any way to pass command line flags to Chrome (or any normal app, for that matter) for Android without doing it through adb. The initial purpose is for Chrome, but I can apply it elsewhere as well.

Philip Rogers

unread,
Dec 10, 2013, 12:38:35 AM12/10/13
to impi...@gmail.com, Chromium-discuss
The instructions are listed here: http://www.chromium.org/developers/how-tos/run-chromium-with-flags.

Pretty hacky, imo.


On Mon, Dec 9, 2013 at 8:14 PM, Isiah Meadows <impi...@gmail.com> wrote:
I was wondering if there is any way to pass command line flags to Chrome (or any normal app, for that matter) for Android without doing it through adb. The initial purpose is for Chrome, but I can apply it elsewhere as well.

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
    http://groups.google.com/a/chromium.org/group/chromium-discuss

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

Isiah Meadows

unread,
Dec 10, 2013, 12:06:04 PM12/10/13
to chromium...@chromium.org
Would it be possible to change that through a text editor? The main purpose of this question was to pass arguments to run it locally on the phone (not through adb).

Torne (Richard Coles)

unread,
Dec 10, 2013, 12:10:41 PM12/10/13
to impi...@gmail.com, Chromium-discuss
It is intentional that only adb can change the command line flags, otherwise apps installed on your phone could mess with Chrome's settings.


On 10 December 2013 17:06, Isiah Meadows <impi...@gmail.com> wrote:
Would it be possible to change that through a text editor? The main purpose of this question was to pass arguments to run it locally on the phone (not through adb).

Isiah Meadows

unread,
Dec 10, 2013, 12:16:32 PM12/10/13
to chromium...@chromium.org
Locally on the device, could it be done with root access? Although it may not prove useful on my phone, it would work on my tablet (which is running CM 10.1 - Android 4.2.2 I think).

Torne (Richard Coles)

unread,
Dec 10, 2013, 12:17:22 PM12/10/13
to impi...@gmail.com, Chromium-discuss
Yes, if you have root you can write to the file that contains the command line flag.


On 10 December 2013 17:16, Isiah Meadows <impi...@gmail.com> wrote:
Locally on the device, could it be done with root access? Although it may not prove useful on my phone, it would work on my tablet (which is running CM 10.1 -  Android 4.2.2 I think).

Isiah Meadows

unread,
Dec 10, 2013, 12:18:42 PM12/10/13
to chromium...@chromium.org
Okay. I understand now.
Reply all
Reply to author
Forward
0 new messages