Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

PROMPT: what to do when the TV only offers Wireless debugging

מקס חיים58eb71e426bf
diff --git a/PROMPT.md b/PROMPT.md
index 9faec58c9..b63013538 100644
--- a/PROMPT.md
+++ b/PROMPT.md
@@ -23,6 +23,10 @@ Connect
macOS Local Network privacy blocking adb. Don't debug it: use the Python `adb-shell` package in a venv
as the ADB client instead. If its file push hangs on larger files, transfer files as base64 chunks
through the shell and verify the md5.
+- If port 5555 stays closed, the TV may only offer Wireless debugging (Google TV sets often do): look for
+ `_adb-tls-connect._tcp` with `dns-sd -B` or `adb mdns services`, ask me for the code and port under
+ Developer options > Wireless debugging > Pair device with pairing code, then `adb pair`, `adb connect`
+ and `adb tcpip 5555`. Android switches Wireless debugging off whenever Wi-Fi drops.
- Tell me when the "Allow USB debugging?" prompt will appear on the TV so I can accept it.
- If `adb install` hangs on Android 14 it is waiting for an on-screen confirmation; push the APK and run
`pm install -r` over the shell instead.
diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.md
index 3c11674d7..431384bfe 100644
--- a/docs/TROUBLESHOOTING.md
+++ b/docs/TROUBLESHOOTING.md
@@ -12,7 +12,10 @@ Things that bit us or contributors, so they don't bite you. Commands use `tools/
network ADB on port 5555.
- **USB debugging never opens port 5555** on some Google TV sets (a Skyworth-built Philips among
them). Pair once through Wireless debugging with the stock `adb` (`adb pair <ip>:<port> <code>`,
- then `adb connect`), run `adb tcpip 5555`, and `tools/tv.py` works from then on.
+ then `adb connect`), run `adb tcpip 5555`, and `tools/tv.py` works from then on. `dns-sd -B
+ _adb-tls-pairing._tcp` (or `adb mdns services`) shows the pairing port while the code is on screen.
+ Android switches Wireless debugging off whenever Wi-Fi drops; turn it back on and `adb` reconnects
+ without a new code. Port 5555 from `adb tcpip` usually lasts only until the next reboot.
- **USB devices go dead while USB debugging is on**, seen on the Xiaomi Mi Box S: its firmware
switches the USB port to ADB device mode, which cuts the power to a USB speaker or drive. Switch
USB debugging off when you're done; the launcher doesn't need it.