1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 05:58:14 +03:00

vpn service sync

This commit is contained in:
Anton Afanasyeu
2026-06-11 13:43:15 +02:00
parent 6ed53e80ab
commit 8735fe4177
43 changed files with 1185 additions and 181 deletions

14
third-party/README.md vendored
View File

@@ -1,19 +1,21 @@
# Third-party vendored dependencies
## wireguard-android (git submodule)
## wireguard-android (required git submodule)
Listed in `.gitmodules` like libvpx/opus/speex. Initialize after clone:
Listed in `.gitmodules` like libvpx/opus/speex. **Required for Gradle**`:tunnel` is always included. Initialize after clone:
```bash
git submodule update --init third-party/wireguard-android
# or:
bash scripts/init-third-party-submodules.sh
# wireguard only:
bash scripts/init-wireguard-submodule.sh
```
Build with the `:tunnel` module (auto-included when present):
`rebuild.sh` and `scripts/ci-build.sh` run the init script automatically.
Build links the `:tunnel` module via `gradle/wireguard-tunnel/` (sources from this submodule):
- Submodule path: `third-party/wireguard-android/`
- Gradle module: `third-party/wireguard-android/tunnel`
- License: MIT / Apache-2.0 (see upstream `COPYING`)
`WireGuardTunnelBridge` loads `com.wireguard.android.backend.GoBackend` via reflection when the module is on the classpath.
`WireGuardVpnEngine` (in `:vpn` process) links `GoBackend` from `:tunnel` (native `libwg-go.so` built from this tree); main app uses `VpnServiceClient` AIDL.