Development discussion of WireGuard
 help / color / mirror / Atom feed
* Easily adding WireGuard to Android ROMs
@ 2017-11-25 14:23 Jason A. Donenfeld
  2017-11-25 15:38 ` Daniel McCarney
  0 siblings, 1 reply; 2+ messages in thread
From: Jason A. Donenfeld @ 2017-11-25 14:23 UTC (permalink / raw)
  To: WireGuard mailing list; +Cc: Sultan XDA

Hey folks,

Work continues on making a userspace version of WireGuard that will
allow us to run on normal Play Store/App Store apps on Android and
iOS. The work is coming along nicely, and we have some wind on our
sails thanks to the recent submission on this mailing list. This email
isn't about that, however. It's about the WireGuard kernel module and
CLI components on Android.

Custom ROM integrators have expressed interest in shipping the kernel
component of WireGuard with their Android ROMs, in order to have the
best possible WireGuard experience. No matter how good we make the
userspace implementation, a kernel implementation will inherently
always be faster, more power efficient, and better integrated into the
deepest mechanics of the operating system. That's just how it works.
Thus, in addition to the userspace work we're doing for global
compatibility, we're also very interested in providing a viable path
for ROM integrators to use the kernel module.

Currently the kernel component ships on Sultan's ROMs, and next week
after some other things happen, I expect for it to be picked up by a
few other ROM builders as well.

In order to make this as easy as possible, I've made a repository to
which ROM builders can link via their local_manifest.xml file by
simply adding these two lines:

  <remote name="zx2c4" fetch="https://git.zx2c4.com/" />
  <project remote="zx2c4" name="android_kernel_wireguard"
path="kernel/wireguard" revision="master" sync-s="true" />

Documentation is available here:
https://git.zx2c4.com/android_kernel_wireguard/about/

This automatically patches the kernel component directly into the
Android kernel at build time, and also includes wg(8) and wg-quick(8)
in /system/xbin. It will stay up to date via `repo sync`, so as we
roll out new snapshots, ROM integrators will pick up those changes
naturally on their next rebuild.

The Android GUI app, which is currently in development, will
opportunistically use the kernel component if it's available, and will
then fall back to the userspace implementation otherwise.

So, if any of you on this list are into building your own Android ROMs
and would like to give this a try, don't hesitate to see what happens
when you link to that repo via the manifest xml. Let me know how it
goes.

Enjoy!
Jason

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Easily adding WireGuard to Android ROMs
  2017-11-25 14:23 Easily adding WireGuard to Android ROMs Jason A. Donenfeld
@ 2017-11-25 15:38 ` Daniel McCarney
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel McCarney @ 2017-11-25 15:38 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: Sultan XDA, WireGuard mailing list

Hi Folks,

On 25/11, Jason A. Donenfeld wrote:
>So, if any of you on this list are into building your own Android ROMs
>and would like to give this a try, don't hesitate to see what happens
>when you link to that repo via the manifest xml. Let me know how it
>goes.

Jason asked me to chime in with my experience running the kernel module
on an Android ROM so far.

I've been running the WG kernel module in a self-built LineageOS 14.1
ROM for a LeEco LePro3 (zl1) device for about a month now. I haven't
been using the GUI userland tool, just the wg/wg-quick command line
tools.

Very pleased so far! Both the performance & battery life are markedly
better than with OpenVPN (no surprises there). No stability problems or
other weirdness to report.

Looking forward to trying out the manifest approach to building a WG
ROM.

Thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-25 15:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-25 14:23 Easily adding WireGuard to Android ROMs Jason A. Donenfeld
2017-11-25 15:38 ` Daniel McCarney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).