Chromium Android --no-sandbox option

786 views
Skip to first unread message

Angelo Mantellini

unread,
May 28, 2018, 8:06:11 AM5/28/18
to Chromium-dev

Hi,

Is it possible to run Chromium on android with –no-sandbox  option?

I need to use a library that creates a tcp socket.

Thank you very much

 

Angelo

Primiano Tucci

unread,
May 30, 2018, 2:59:37 PM5/30/18
to amant...@gmail.com, Chromium-dev
On Mon, May 28, 2018 at 1:05 PM Angelo Mantellini <amant...@gmail.com> wrote:

Hi,

Is it possible to run Chromium on android with –no-sandbox  option?

Yes, although might have been easier to try first no?
 

I need to use a library that creates a tcp socket.

That's possible even without --no-sandbox if you want to create a socket from the browser process.
No luck if from the renderer process (but might be just easier to add accept() and bind() in the allowed syscalls list in sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
 

Thank you very much

 

Angelo

--
--
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/03C3E9B8-140A-474B-A565-1411AC28D6FE%40gmail.com.

angelo mantellini

unread,
May 30, 2018, 3:05:04 PM5/30/18
to Primiano Tucci, Chromium-dev
Hi, the problem is that: how can I tell to my phone to use chrome/ium with --no-sandbox option?
the library has to be called inside webrtc part.

Torne (Richard Coles)

unread,
May 30, 2018, 3:24:53 PM5/30/18
to amant...@gmail.com, Primiano Tucci, Chromium-dev
There's a bunch of scripts in build/android called adb_*_command_line for setting the command line flags temporarily for various build targets, on debug devices.

You probably should not actually rely on disabling the sandbox to build whatever you are trying to build. You should move the work that requires network access to the browser process.

Angelo Mantellini

unread,
Jun 29, 2018, 5:50:09 PM6/29/18
to Chromium-dev, amant...@gmail.com, prim...@chromium.org
Hi,
could you explain me how I can move the network call to the browser process?
I need to modify webrtc to use another socket and I want to know how I can create a socket passing through the browser process.
Thank you very much
Reply all
Reply to author
Forward
0 new messages