Skip to content

v1.2: show real Android VPN RX/TX counters - #33

Merged
man612 merged 6 commits into
mainfrom
feat/v1.2-traffic-counters
Oct 7, 2026
Merged

man612 merged 6 commits into
mainfrom
feat/v1.2-traffic-counters

Conversation

@man612

@man612 man612 commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Summary

Adds real per-device traffic counters for connected Gnirehtet sessions without estimating usage.

Data source

  • reads Android kernel network counters from /proc/net/dev through ADB
  • considers only TUN interfaces
  • if more than one TUN interface is visible, uses the one carrying the most traffic
  • collects counters only for devices whose Gnirehtet client is actually active
  • if the device/ROM does not expose usable TUN counters, Wirebound shows -- instead of fabricating values

UI

  • adds a Traffic column with raw RX and TX byte totals formatted as B/KB/MB/GB
  • exposes the underlying interface name in the cell tooltip

Tests

  • covers /proc/net/dev parsing
  • covers multiple TUN interfaces
  • verifies the unavailable case remains undefined

These are kernel interface byte counters, not speed-test estimates.

Notes

This PR is stacked on #24 because both touch the device table. It will be retargeted to main after the multi-device control PR merges.

@man612
man612 force-pushed the feat/v1.2-traffic-counters branch from d324ff5 to bef64e7 Compare October 7, 2026 07:11
@man612
man612 changed the base branch from feat/v1.2-multidevice-controls to main October 7, 2026 07:11
@man612 man612 closed this Oct 7, 2026
@man612 man612 reopened this Oct 7, 2026
@man612
man612 merged commit 2461df7 into main Oct 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant