Reduce idle mesh traffic and Android background work for 1.0.4
A phone keeping its mesh online was paying for two data-path probe exchanges per WG or AWG link, repeated control snapshots, and a full Android status and DNS rebuild every two seconds while the activity was closed. Let a timely, authenticated reply of the requested size on the physical carrier satisfy its native delivery check. Keep the full-sized probe, RTT window, loss thresholds, roaming, and independent silence detection. Resume native probes when shared confirmations go stale and answer both probe formats throughout the lifetime of the pair. Index the latest signed objects once per network. Each reliable session sends a full snapshot on connect and advances its cursor only when a frame enters its send queue. Reopen the affected stream if a replica cannot persist a received update. Send canonical peer hints in bounded batches, publish changed edges immediately, and refresh reachability ahead of its 90-second expiry. The scheduling revisions live in memory and peers use the existing wire formats and database schema. Drive Android DNS and selected-exit notifications from coalesced roster changes. The visible activity requests fresh counters, reusing the current DNS zones. Set the workspace, Android, and Nix package versions to 1.0.4. Formatting and strict workspace Clippy passed on macOS arm64. The locked workspace suite passed 594 tests with four opt-in checks ignored. Both Android instrumentation tests passed on an API 37 arm64 emulator. Tested mixed 1.0.3/1.0.4 pairs on WG and AWG. In a 30-second idle WG comparison, one endpoint's combined UDP bytes fell from 220950 to 138596 and its control messages from 24 to 2. Physical phone discharge and native Linux and Windows runs remain unverified.
This commit is contained in:
1 parent
8c4c2fa34e
commit
50c0ecea45
33 files changed
+781
-294
No files matched your search
+1
-1
@@ -16,7 +16,7 @@ cd android
|
||||
adb install -r app/build/outputs/apk/debug/app-debug.apk
|
||||
```
|
||||
|
||||
Open **tsunagi** to start the agent. On first launch, accept Android’s VPN permission prompt so the agent can create its mesh interface. Join with the existing network name and secret. The service continues when the activity closes. **About → Stop Tsunagi Agent** keeps it stopped across launches. After stopping or declining consent, tap **Start Tsunagi Agent** to enable automatic startup again. The app-private state directory holds the device identity and its saved networks.
|
||||
Open **tsunagi** to start the agent. On first launch, accept Android’s VPN permission prompt so the agent can create its mesh interface. Join with the existing network name and secret. The service continues when the activity closes. Mesh changes update split DNS and the selected-exit notification in the background. Opening the activity also requests live traffic counters. **About → Stop Tsunagi Agent** keeps it stopped across launches. After stopping or declining consent, tap **Start Tsunagi Agent** to enable automatic startup again. The app-private state directory holds the device identity and its saved networks.
|
||||
|
||||
The Rust agent owns one interface across the active networks. The Android service establishes the TUN and supplies its descriptor when addresses or exit routes change. Discovery and transport sockets use the selected physical network. TCP health checks bind to the VPN and the address of their own mesh network. The per-network transport selector offers `wg`, `awg`, `wg-quic` and `tcp-tls` in the same default order as the desktop. Each network retains its saved selection and priority. An advertised remote exit can carry the phone’s IPv4 internet traffic.
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ android {
|
||||
targetSdk 35
|
||||
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||||
versionCode providers.gradleProperty('tsunagiVersionCode').getOrElse('1').toInteger()
|
||||
versionName providers.gradleProperty('tsunagiVersionName').getOrElse('1.0.3')
|
||||
versionName providers.gradleProperty('tsunagiVersionName').getOrElse('1.0.4')
|
||||
ndk { abiFilters abi }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user