How do I set up adb on Chromium?

314 views
Skip to first unread message

Philip Z

unread,
Aug 9, 2017, 9:54:34 PM8/9/17
to Chromium OS dev
Hi Chromium experts,
I build a Chromium test image and launched it with KVM.
I'm following this guide to set up adb: https://developer.android.com/topic/arc/index.html
However, I'm not able to switch to developer mode. I clicked "About Chromium OS" -> "Detailed build information" and the Channel says "Currently on stable" and the "CHANGE CHANNEL" button is greyed out.
How can I change to developer mode?

Thanks,

Philip

Keith I Myers

unread,
Aug 9, 2017, 9:58:54 PM8/9/17
to Chromium OS dev
I think you are confusing ChromiumOS with Android

To put ChromiumOS into a developer mode, simply build an image with the "dev" flag on and it will produce a build with the developer tools active. When you boot into the image and start the first use wizard, there will be an option to enable the devloper tools and set a root password. 

You will use ssh, not adb for ChromiumOS 

Philip Z

unread,
Aug 9, 2017, 10:04:19 PM8/9/17
to Chromium OS dev
Do you mean the "Enable debugging features" button on the Welcome screen for the first time?
I tried to enable it, but it says "Debugging features were not completely enabled on this Chromium device".
I would like to test an Android app on Chromium OS, so that's why I would like to have adb available.

Thanks,

Philip

Keith I Myers

unread,
Aug 9, 2017, 10:13:57 PM8/9/17
to Chromium OS dev
Yes - it is the Enable Debugging Features that activates the full developer mode on ChromiumOS, this will only work if you pass the "dev" flag to the build though when building it.

As far as Android Support, this is a bit of a tough one as the Google Play Store/Android implementation is not included in ChromiumOS - it is reserved for select ChromeOS devices. ADB can be enabled on those devices via the Android Settings Menu. 

You may be able to use ARChon if you want to run an Android Application on ChromiumOS - I have never tested this so I am not sure if it will work. 

Mike Frysinger

unread,
Aug 9, 2017, 10:14:02 PM8/9/17
to Philip Z, Chromium OS dev
Chromium OS images booted through qemu are usually in dev mode by default.  don't confuse this with dev channel as the two are unrelated.

if you can open crosh (ctrl+alt+t) and run "shell", you're in dev mode.

that said, ARC++ isn't included w/Chromium OS, so if your goal is to develop an Android app against ARC++, Chromium OS won't help.  sorry.
-mike

--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en


Philip Z

unread,
Aug 9, 2017, 11:24:50 PM8/9/17
to Chromium OS dev, zz...@cornell.edu
Got it. Thanks!

Philip
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages