CLAUDE.md: record the beacon's resolve-once rule and verified rotation behavior

Re-resolving adbd's own mDNS advertisement is what caused the notification
spam; resolving once per service instance (guard cleared on loss) keeps
rotation tracking intact — verified live, a 37089->33667 rotation was
reported 6s later and reconnected.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
mrambossek
2026-08-01 08:50:48 +02:00
co-authored by Claude Opus 5
parent b751ca771e
commit 68a6bcb9e3
+5
View File
@@ -89,6 +89,11 @@ First build downloads AGP/Compose/Shizuku from Google Maven + Maven Central.
it to fmr:443 (cleartext allowed; over a validated net); a PC connector polls and reconnects. it to fmr:443 (cleartext allowed; over a validated net); a PC connector polls and reconnects.
Bootstrap needs one manual adb connection to install it, then it self-heals. Existing adb Bootstrap needs one manual adb connection to install it, then it self-heals. Existing adb
connections survive port rotation — only fresh connects need the new port. connections survive port rotation — only fresh connects need the new port.
**Resolve adbd's mDNS advertisement exactly ONCE per service instance** (re-resolving makes
adbd re-arm the connection, which spams "wireless debugging connected" notifications); the
periodic heartbeat only re-POSTs the cached port. Rotation is still caught: onServiceLost
clears the guard, so the new advertisement is resolved once and reported within seconds
(verified: 37089 -> 33667 reported 6 s after rotation).
- **Shizuku start kills the adb bridge and the beacon can't auto-recover it.** Shizuku's non-root - **Shizuku start kills the adb bridge and the beacon can't auto-recover it.** Shizuku's non-root
start pairs over wireless debugging and runs its starter through adb, hijacking the channel: start pairs over wireless debugging and runs its starter through adb, hijacking the channel:
adb goes device→offline→refused, and adbd keeps advertising the now-dead port over mDNS (stale), adb goes device→offline→refused, and adbd keeps advertising the now-dead port over mDNS (stale),