Skip to content

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

docs: Wanbo T6R Max projector runs network ADB on port 5877, not 5555

Denis Deryabind74b63061e30
diff --git a/PROMPT.md b/PROMPT.md
index 7abe413a3..0898fe19e 100644
--- a/PROMPT.md
+++ b/PROMPT.md
@@ -33,6 +33,8 @@ Connect
`_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.
+ Some firmware runs network ADB on another fixed port instead (a projector used 5877): if 5555 refuses and
+ nothing advertises Wireless debugging, scan the TV's own TCP ports and try each open one with `TV_PORT`.
- 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 f5929eb23..eb7757ed2 100644
--- a/docs/TROUBLESHOOTING.md
+++ b/docs/TROUBLESHOOTING.md
@@ -52,6 +52,13 @@ Things that bit us or contributors, so they don't bite you. Commands use `tools/
USB debugging on: `eth0` stayed listed, and Ethernet connected with debugging still on. It printed
`host_connected=false` while the adapter was present as `eth0`, so there `host_connected=false` was
no proof the adapter was gone ([its list](../examples/google-chromecast-gtv-4k/debloat.txt)).
+- **Port 5555 refuses the connection although network debugging is on**, and no Wireless debugging is
+ advertised, seen on a [Wanbo T6R Max projector](devices/wanbo-t6r-max.md) (MediaTek MT5862, Android 9,
+ `TVOS-04.16.031.01.12`): the firmware starts `adbd` on its own port, 5877 there (`service.adb.tcp.port`),
+ and the TV never shows it. Scan the TV's TCP ports (`nmap -p- <tv ip>`, or a short Python loop over
+ `socket.connect_ex`; skip `nc` on macOS) and try each open port with `TV_HOST=<tv ip> TV_PORT=<port>
+ tools/tv.py --probe`: the ADB one answers, the others time out. Every script here honours `TV_PORT`, and
+ the closing check is `tools/adb-closed.py <tv ip> <port>`.
- **Close port 5555 when you're done**: plaintext, and a shell for anyone on the LAN when `ro.adb.secure=0`. Steps in the README FAQ.
- **The TV sits on a separate VLAN or IoT network** and `tools/tv.py` times out although debugging
is on: the router keeps the computer from reaching it. Add a temporary firewall rule from your
diff --git a/docs/devices/wanbo-t6r-max.md b/docs/devices/wanbo-t6r-max.md
new file mode 100644
index 000000000..3e38a4f98
--- /dev/null
+++ b/docs/devices/wanbo-t6r-max.md
@@ -0,0 +1,69 @@
+# Wanbo T6R Max projector (MediaTek MT5862)
+
+Android 9 (SDK 28), firmware `mt5862_bga_1g_tr-userdebug 9 PPR2.180905.006.A1 TVOS-04.16.031.01.12`
+(userdebug/dev-keys), about 820 MB of RAM, 1920x1080 at 320 dpi. `ro.product.model` and `ro.product.device` are
+both `T6R`, `ro.product.manufacturer` is `MediaTek`; nothing in `getprop` says Wanbo.
+
+This is a one-session report, not a several-day list. Nine packages were disabled, the launcher took Home, and
+both held after a reboot.
+
+## Network ADB is not on port 5555
+
+With USB debugging and network debugging on, port 5555 refuses the connection. This firmware starts `adbd` on
+**port 5877** (`service.adb.tcp.port=5877`), and nothing on the TV says so. A scan of the projector's TCP ports
+found four open ones (1790, 5877, 7100, 8121); only 5877 answered the ADB handshake, the others timed out.
+
+```bash
+TV_HOST=<tv ip> TV_PORT=5877 tools/tv.py --probe
+```
+
+`TV_PORT` works for every tool here (`disable.sh`, `restore.sh`, `theme.sh`, `launcher/build-and-install.sh`), since
+they all go through `tools/tv.py`. Once connected, `getprop service.adb.tcp.port` confirms the port.
+
+`ro.adb.secure=0`: there is no "Allow USB debugging?" prompt, and anyone on the LAN who finds the port gets a shell.
+Close it the usual way and check the right port: `tools/adb-closed.py <tv ip> 5877`.
+
+## Home
+
+- Stock launcher: `com.zeasn.whale.saas` (Zeasn Whale, a banner carousel and sponsored rows). The only other HOME
+ claimant is `com.android.tv.settings`.
+- `launcher/build-and-install.sh` does not know this launcher, so install with `STOCK_LAUNCHER=none`, confirm
+ `com.gathin.tvhome` is resumed after Home, then disable `com.zeasn.whale.saas` with `tools/disable.sh`; Home and
+ ADB came back after a reboot. Pass `com.zeasn.whale.saas` to `tools/restore.sh` when undoing.
+- The preinstalled Kinopoisk TV app is `ru.kinopoisk.zeasn.tv`. The phone app `ru.kinopoisk` from an app store has
+ no leanback entry, so it does not show up as a tile or in `dock_apps`.
+
+## Packages disabled (one session)
+
+```text
+# Zeasn device portal: starts at boot with a background service
+com.zeasn.deviceportal.asdprovider.toptechMtk6681_1
+# Stock launcher, after the new one was confirmed as Home
+com.zeasn.whale.saas
+# Retail demo. On the JMGO G9S (MediaTek m7642) it registers TV_INPUT_BUTTON receivers; the remote's Input
+# key was not checked with it off here
+fusion.android.tv.demo
+# MStar media test program and the factory test app (disabled, never opened)
+com.mstar.android.media.tests
+com.zoc.factorytest
+# Web-URL screensaver, Google partner-row customizer (no Google launcher here), stock browser, sound recorder
+com.android.dreams.web
+com.google.android.leanbacklauncher.partnercustomizer
+com.android.browser
+com.android.soundrecorder
+```
+
+## Kept on purpose
+
+- Firmware updates: `com.zoc.ota` (Baidu OTA SDK).
+- Casting: `com.ecloud.eairplay`, `com.ecloud.emedia` (DLNA), `com.ecloud.eshare.server`.
+- Preinstalled apps the owner uses: `ru.rt.video.app.tv` (Wink), `ru.kinopoisk.zeasn.tv`,
+ `zeasn.open.technical.tv.store`, `com.jrm.localmm` (USB media player).
+- Input and remote: `com.mediatek.wwtv.tvcenter`, `com.mediatek.tvinput`, `com.mediatek.hotkey.dispatcher`,
+ `com.zoc.btmisc` (Bluetooth remote key service).
+
+## Wi-Fi name in the launcher
+
+Location is off on this firmware, and Android 9 only gives an app the Wi-Fi network name while it is on, so the
+network pill says "Wi-Fi". `settings put secure location_mode 3` brings the name back (there is no network
+location provider on the set, so nothing is located); `location_mode 0` undoes it.
diff --git a/examples/README.md b/examples/README.md
index e772cd3d1..5ab5eeb2d 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -284,6 +284,7 @@ Notes for models that have no tested list yet live in [`docs/devices/`](../docs/
- [Thomson 40FG2S14W](../docs/devices/thomson-40fg2s14w.md) (Expressluck `nagata`, Android TV 14 `UKNV.260317.001`): six packages, reboot-checked; `com.cvte.tv.at` makes it a CVTE board, so its stock `launcherx` stays enabled and Home never leaves Google TV there - `set-home-activity` prints `Success`, the Home role names the new launcher, and `resolve-activity` still answers `launcherx` - and the note records the check that would have to pass first; debloat only, no tested list.
- [JMGO G9S](../docs/devices/jmgo-g9s.md) (China, `m7642_JmGO_H7A0`, MediaTek m7642, Android TV 9 `1.1.52`): one-session seven-package set, the stock launcher `com.jmgo.launcher` deliberately left out because `com.jmgo.tv` (the HDMI input app) also answers HOME, and the `ro.adb.secure=0` / 5555 shutdown notes; no several-day list yet.
- [Toshiba 55Z500QF (China, Hisense firmware)](../docs/devices/toshiba-55z500qf-cn.md) (`T963D4`, Amlogic `t5m`, Android 11 `RD2A.211001.002`, `07.02.70`, no GMS): no Developer options entry (owner opened it from a sideloaded helper APK), stock JuUI Home at `priority=50` handed over only when disabled as a package, `com.meetingroom` came back after both recorded reboots, the boot-source setting stopped Live TV taking the front; owner-reported removal history only, no tested list.
+- [Wanbo T6R Max](../docs/devices/wanbo-t6r-max.md) (projector, MediaTek MT5862, Android 9 `TVOS-04.16.031.01.12`): network ADB listens on port 5877, not 5555; Zeasn Whale launcher handed over with `STOCK_LAUNCHER=none`, nine packages disabled and reboot-checked in one session; no several-day list.
- [Hi VHIX-43F169MSY](../docs/devices/hi-vhix-43f169msy.md), Yandex TV, CVTE `TP.SK506S.PB802` / `m5621`, Android 9: two-day observation, stock/replacement Home and working CVTE/Yandex settings component, Yandex IO service dependency, disabled-package history and low-memory follow-up; no several-day debloat list or signal/CEC verification.
- [Acer R4G 50"](../docs/devices/acer-r4g.md) (MOKA `R4_GTV`, Realtek `rtd2851m`, Google TV 14 `UKR1.260308`, India): the firmware's `FallbackHome` re-enables a fixed list of 60 packages at every cold boot, setupwraith among them, so its `.RecoveryActivity` takes Home back from a new launcher; which packages come back, which stay disabled, and the `logcat` check; no list, since disable-only can't keep the stock Home away here.