Run one agent for all joined networks behind Android's VPN service. Share transport registration and reporting with the CLI, and move the tray's egui forms into a Rust UI crate. Phones use compact device rows and a full-width exit picker with RTT and data path. All four transports retain their per-network selection and priority. The phone consumes remote IPv4 exits and keeps the existing desktop identity and wire protocols. Send discovery and transport traffic over the physical network and bind VIP TCP health checks to the mesh. Build local DNS zones from the same signed membership and VIP records on desktop and Android. Answer UDP and TCP queries on the VPN, keep unknown mesh names local, and resolve public names through Android's underlying resolver, including with an exit. Show an ongoing notification for the selected exit. Guard its disconnect action against a stale selection and keep mesh routing and DNS alive when it removes the default route. Remove the app notification in mesh-only mode. Document Android 14's unlocked-device swipe behavior. Checked formatting and ran locked all-target workspace Clippy with warnings denied and tests on macOS (547 passed, 2 ignored). Built the arm64 debug APK. A physical Pixel resolved a mesh member and a Kubernetes VIP, answered UDP and TCP DNS, and reached the API over TLS (HTTP 401 without credentials). On a separate Android emulator the notification action removed the default route and notice while mesh DNS still worked.
43 lines
1.1 KiB
TOML
43 lines
1.1 KiB
TOML
[package]
|
|
name = "tsunagi-android"
|
|
version = "1.0.0"
|
|
description = "Android VPN client and egui views for tsunagi."
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
publish = false
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
tsunagi-runtime = { path = "../tsunagi-runtime", version = "1.0.0" }
|
|
tsunagi-ui = { path = "../tsunagi-ui" }
|
|
tsunagi-core = { path = "../tsunagi-core" }
|
|
tsunagi-wg-quic = { path = "../tsunagi-wg-quic" }
|
|
egui = "0.31"
|
|
egui-phosphor = "0.9"
|
|
tokio.workspace = true
|
|
bytes.workspace = true
|
|
zeroize = "1.9"
|
|
simple-dns = "0.12"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
rand = "0.10"
|
|
smoltcp = { version = "0.12", default-features = false, features = ["std", "medium-ip", "proto-ipv4", "socket-tcp", "socket-udp"] }
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
egui_glow = { version = "0.31", default-features = false }
|
|
jni = "0.21"
|
|
iroh.workspace = true
|
|
jni-verifier = { package = "jni", version = "0.22" }
|
|
rustls-platform-verifier = "0.7"
|
|
|
|
[dev-dependencies]
|
|
tempfile.workspace = true
|
|
tsunagi-core = { path = "../tsunagi-core", features = ["testing"] }
|
|
|
|
[lints]
|
|
workspace = true
|