8000 GitHub - wgtunnel/android: An advanced, open-source client for WireGuard and AmneziaWG on Android. · GitHub
[go: up one dir, main page]

Skip to content
wgtunnelPublic

Repository files navigation

WG Tunnel logo

WG Tunnel Android

An advanced, open-source client for WireGuard and AmneziaWG on Android.

Auto-tunneling, tunnel-in-a-tunnel multihop, a tunnel-independent kill switch, local SOCKS5/HTTP proxying and much more, inspired by the official WireGuard app.

Zapstore Google Play IzzyOnDroid WG Tunnel F-Droid Obtainium GitHub

Latest release Reproducible build License

Website · Docs · Telegram · Matrix · Sponsor

Sponsored by

BlancVPN

Screenshots

Main Config Settings Auto-tunnel

Features

  • Auto-Tunneling: Automatically activate tunnels based on your device's active network details.
  • Deferred Endpoint Bootstrapping: Safely resolves endpoints and updates peers after the tunnel is up for better reliability and leak protection on startup.
  • Multihop: Tunnel through another tunnel so traffic passes through more than one hop.
  • Handshake Monitoring: Real-time handshake monitoring for tunnel health feedback.
  • AmneziaWG Support: Full support for AmneziaWG 2.0 through 3.1, providing robust censorship protection.
  • Split Tunneling: Flexible support for routing specific apps or traffic through the VPN.
  • Split & Encrypted DNS: Resolve DNS through the tunnel using plain DNS, DoT, or DoH, and optionally split by domain suffix (tunnel or system).
  • Local Proxy Mode: Expose WireGuard tunnels over a local SOCKS5 or HTTP proxy to browsers or firewall apps (like AdGuard).
  • Lockdown Mode: Advanced in-app kill switch that blocks all traffic while the tunnel is down.
  • Quick Controls: Quick Settings tile and home screen shortcuts for easy toggling.
  • Remote Control Support: Intent-based automation for controlling tunnels and auto-tunneling from automation apps (like Tasker).
  • Dynamic DNS Handling: Automatically detect and update endpoints on server IP changes without requiring a restart.
  • IPv6 Endpoints: Automatically upgrade to IPv6 endpoints or fall back to IPv4 based on network conditions without requiring a restart.
  • Android TV Support: Full support for nearly all features on Android TV.

Building

App build

git clone https://github.com/wgtunnel/android
cd android
./gradlew assembleDebug

Full build (app + core)

To build against a local core (native JNI, backend, parser, hevtunnel), clone core next to this repo:

parent/
  android/    # this repository
  core/       # https://github.com/wgtunnel/core
cd /path/to/parent
git clone https://github.com/wgtunnel/android
git clone https://github.com/wgtunnel/core
cd android

You also need the core build requirements (JDK 21, Android NDK, make, a C toolchain).

Then switch Gradle from Maven Central to the composite build:

  1. In settings.gradle.kts, uncomment the local-dev includeBuild:
// Local dev
includeBuild("../core") {
	dependencySubstitution {
		substitute(module("com.wgtunnel:backend"))
			.using(project(":backend"))
		substitute(module("com.wgtunnel:backend-android"))
			.using(project(":backend"))
		substitute(module("com.wgtunnel:backend-android-jni"))
			.using(project(":backend-android-jni"))
		substitute(module("com.wgtunnel:hevtunnel"))
			.using(project(":hevtunnel"))
		substitute(module("com.wgtunnel:parser"))
			.using(project(":parser"))
	}
}
  1. Build from android/:
./gradlew assembleDebug

Please restore the commented includeBuild before opening a PR.

Sponsors

WG Tunnel would not be possible without the sponsors that keep it going. Thank you so much to everyone below, and to everyone who supports the project privately. ❤️

If WG Tunnel is useful to you, please consider sponsoring the project.

WG Tunnel sponsors

Translation

Help translate WG Tunnel on Crowdin.

logo
Zane Schepke
(zaneschepke)

249913 words
logo
Gustavo Rocha
(gustvroch)

5408 words
logo
Marco Martinelli
(martinellimarco)

4911 words
logo
Matthaiks

2241 words
logo
Petr Sedl
(Pida88)

2211 words
logo
HIDE
(sosboy-san)

2168 words
logo
Surfoo

1984 words
logo
CyanWolf
(cyanwolfg)

1306 words
logo
solokot

1254 words
logo
Evan Huang
(EvanTechDev)

1120 words
logo
Kachelkaiser

1058 words
logo
Ali Saeedi
(alis36)

1050 words
logo
그냥기여자
(justcontributor)

965 words
logo
LEDPixel

950 words
logo
Den
(tehb29)

460 words
logo
pixnet

378 words
logo
ron
(zlronron159)

320 words
logo
Philip
(ppac)

273 words
logo
YuryKomar

271 words
logo
TrainsLater

265 words
logo
georgybog

257 words
logo
Ufuk Baser
(ufukart)

187 words
logo
noname000

131 words
logo
Dariusz
(darbrzozo)

125 words
Translate in Crowdin 🚀

Acknowledgements

Thank you to the following:

Contributing

Any contributions in the form of feedback, issues, code, or translations are welcome and much appreciated!

For PRs, please make sure to format before submitting.

./gradlew format

CI runs ./gradlew formatCheck, which uses the same files and style as format. If that job fails, run ./gradlew format and commit the result.

If your PR requires core changes, please link the associated PR.

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

0