Wi-Fi over ADB: pairing, auto-connect, catch-up and reconnect - #6
Merged
Merged
Conversation
- Phones and Wi-Fi panel: pair by QR code or six-digit code (Android 11+), move a cable-connected phone to Wi-Fi (adb tcpip), connect by address, pick or forget a phone - mDNS discovery; paired phones connect by themselves when they show up; the chosen phone is stored by its Wi-Fi id, so a new address after a reconnect keeps the choice - Wi-Fi stream profile: key frame every second, 6 Mbit/s start, steps down on congestion and back up after clean minutes; skips to the next key frame when the picture falls 500 ms behind, so delay never piles up - Reconnect up to 5 times while apps keep the last frame; back-off for sessions that keep failing; stop checks and short timeouts inside the reconnect path - VPN on the phone: after pairing, pre-fill the phone's Wi-Fi IP for connecting by address and retry the same port on known Wi-Fi IPs; drop half-open transports - adb devices -l parsing with spaces in mDNS names; adb's " (2)" name suffix ignored - New strings in all 13 languages; SPEC 2.4 and draft notes for the next release Tested on a OnePlus 11R (Android 15): pairing by code, connect by the VPN address, reconnect, and 5 minutes of streaming over Wi-Fi at 30 fps. Co-Authored-By: Claude <noreply@anthropic.com>
…ction-91d758 # Conflicts: # app/src/lib/api.ts # src-tauri/Cargo.lock # src-tauri/Cargo.toml # src-tauri/src/app/controller.rs # src-tauri/src/app/mod.rs # src-tauri/src/settings.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Wi-Fi over ADB. The phone no longer needs a cable after the first setup.
What's in it
adb tcpip 5555, with a warning that the link isn't encrypted), connecting by address, and picking or forgetting a phone.offlineconnection left behind.Checks
cargo test --lib: 84 passed (after merging main),pnpm check: 0 errors. clippy shows no new warnings.26.26.26.1:portfell back to192.168.3.237:port;adb pair/connect.Known limitations