Some difficulties to initiate a simple tunnel with Android

Jason A. Donenfeld Jason at
Mon Apr 6 07:11:49 CEST 2020

On Sun, Apr 5, 2020 at 11:03 PM Alexy-Rousseau
<contact at> wrote:
> Hello everyone,
> I want to create a very simple app where the user can connect itself to the VPN without any configuration.
> If I understand everything clearly I just have to use the tunnel module who implements the wireguard-go version.
> I’m a little bit confused :
> - I read the source code of the tunnel path and the ui module and it seems that there is some dependencies between ui and tunnel.
> I have some questions :
> - Is it possible to use very simply the tunnel module, without ui and initiate very simply a VPN connection?
> - Do I have a good idea by using now the tunnel? Will the compatibility of the library be maintained with updates?
> - If the main difference between the Android & iOS app is the implementation of the tunnel module, is it a good idea to create a flutter UI with two different ways to communicate with the library for each OS?
> Thanks in advance for your help!
>> Kind regards, Alexy ROUSSEAU

Things are now nicely modularized. Include this in your gradle:

dependencies {
    implementation ''

And then you'll be able to embed a tunnel in your Android app.

Documentation is available at:

We're working on improving these docs, but here's a small sample
project that might help:

More information about the WireGuard mailing list