Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.
Python adbadblockandroid-tvandroid-tv-launcherapple-tvbloatware-removalclaude-codedebloatfire-tvgoogle-tvlauncherprivacysmart-tvsony-braviatclvibe-codingxiaomi
docs: waipu.tv Stick (SEI700WP, Android 11): pm disable* is refused, so the list is suspended
Pierre Kerschgens1ec53ebece62
diff --git a/docs/devices/waipu-tv-stick.md b/docs/devices/waipu-tv-stick.mdnew file mode 100644index 000000000..e39409875--- /dev/null+++ b/docs/devices/waipu-tv-stick.md@@ -0,0 +1,91 @@+# waipu.tv Stick (SEI700WP, Amlogic): `pm disable*` is refused, so the list is suspended++One session, same-day results plus one cold-boot and one reboot check. That is why this is recorded here+and not in `examples/`: CONTRIBUTING asks for a few days of living with a list.++## Identify the device++| Field | Value |+|---|---|+| Retail name | waipu.tv Stick (`ro.product.model` `waipu tv stick`) |+| Maker | SEI Robotics (`ro.product.manufacturer`), device `SEI700WP`, board `SEI700WP`, hardware `amlogic` |+| Android | 11 (SDK 30), build `RTT0.211009.001.6958 release-keys` |+| Fingerprint | `waiputv/SEI700WP/SEI700WP:11/RTT0.211009.001/6958:user/release-keys` |+| Screen | 1920x1080, density 320, no override |+| Network | Wi-Fi; no USB Ethernet adapter, nothing in the USB port |+| ADB | port 5555 after one prompt; `ro.adb.secure=1` |++## `pm disable-user` is refused++Every `pm disable-user`, and `pm disable <component>`, answers `Warning! This command is illegal!`, so+`tools/disable.sh` records the packages and disables none (`pm list packages -d` stays empty).+`/system/bin/pm` is a two-line script (`cmd package "$@"`): the refusal is in the firmware's package+service. It is the same refusal as the [Nokia Streaming Box 8000](../../examples/nokia-streaming-box-8000/README.md)+and the TiVo Stream 4K, which share the `com.nes.*` services.++What works, as on the Nokia box: `pm suspend --user 0 <pkg>` and+`cmd appops set <pkg> RUN_ANY_IN_BACKGROUND ignore`, and `am force-stop`. Eight packages, one per+shell call, `Package ... new suspended state: true` each; `dumpsys package <pkg> | grep suspended` showed+`suspended=true` for all of them after a reboot:++| Package | What it is |+|---|---|+| `com.google.android.katniss` | voice search / Assistant |+| `com.google.android.tvrecommendations` | recommendation rows |+| `com.google.android.apps.mediashell` | Chromecast receiver |+| `com.google.android.play.games` | Play Games |+| `com.google.android.videos` | Play Movies |+| `com.google.android.feedback` | Google feedback |+| `com.google.android.backdrop` | ambient mode / screensaver |+| `com.nes.tvbugtracker` | vendor bug tracker |++Undo, per package: `pm unsuspend --user 0 <pkg>` and `cmd appops set <pkg> RUN_ANY_IN_BACKGROUND allow`.++Left alone on purpose: `de.exaring.waipu` (the waipu app, see Home), `com.google.android.tungsten.setupwraith`+(owns the saved Wi-Fi network, `dumpsys wifi | grep -o 'cname=[^ ]*'`), the `com.nes.*` remote, OTA,+core-service and key-handler packages, `com.standard.irtvcontrol`, and `com.utsmta.app` (a factory-test+installer, never started).++## Home++The waipu app is the stock launcher: `de.exaring.waipu/.MainActivity` and Settings' `FallbackHome` are the+only two HOME claimants, and there is no separate vendor launcher to disable. The new launcher was+installed with `STOCK_LAUNCHER=none launcher/build-and-install.sh` (the script does not know the waipu app+as a stock launcher and stops without that), and `set-home-activity` really took:+`cmd package resolve-activity` and `mFocusedApp` both named `com.gathin.tvhome`. It was still installed and+still Home after a reboot, so `com.nes.coreservice` did not remove it here, unlike what the TiVo note+describes for that box.++**After a cold boot the waipu app comes up over the launcher.** The waipu app has a `BOOT_COMPLETED`+receiver, `de.exaring.waipu/.entrypoint.RichBootReceiver`, and the permission+`START_ACTIVITIES_FROM_BACKGROUND`, so it opens its own screen a moment after Home. One press on Home brings+the launcher back. What did not help:++- the app's own switch "App startet mit Startseite": it only chooses the first screen inside waipu (home+ page or live stream); the app still starts;+- `RUN_IN_BACKGROUND` and `RUN_ANY_IN_BACKGROUND` set to `ignore` for the waipu app, then a reboot: waipu still+ came up over the launcher (reverted);+- `pm disable` of the receiver (illegal) and `pm revoke` of the permission (`not a changeable permission+ type`: it is `signature|privileged`).++`stock_home_redirect` set to the waipu app would send you back to the launcher, but it also does that every+time you open waipu on purpose, since its main screen is its HOME activity, so it was not tried.++## Remote buttons++The remote (`B18F Consumer Control`, `Vendor_2d01_Product_c006.kl`) has three app buttons that report+`KEY_UNKNOWN` with consumer usages `0x0c00d2` (waipu-thek), `0x0c00d1` (Netflix) and `0x0c00d3` (YouTube),+which the key layout maps to `NES_SHORTCUT_02`, `STEM_1` and `NES_SHORTCUT_04`. The vendor's+`com.nes.tvglobalkeyhandler` answers them (it launches Netflix and YouTube itself), so with the stock launcher+gone all three still open their apps and Home returns to the new launcher. No remote-key helper was needed.++## Notes for the next owner++- Build with a full JDK 17. On macOS the only 17 `java_home` found was Temurin's JRE, which has no `jlink`, and+ Gradle stops with `jlink executable ... does not exist`; Homebrew's `openjdk@17` as `JAVA_HOME` fixed it.+- `app_process` is killed for the shell user here (`Error changing dalvik-cache ownership`, then `Killed`), so+ a small Java helper that calls the package service cannot be run over ADB.+- The unset Private DNS setting was changed to `dns.adguard-dns.com` (`private_dns_mode hostname`) and+ resolution kept working; the undo is `private_dns_mode opportunistic`.+- Close ADB afterwards: USB debugging off, authorisations revoked, reboot, then `tools/adb-closed.py <tv ip>`+ reported the port refused.diff --git a/examples/README.md b/examples/README.mdindex e772cd3d1..4075c85f0 100644--- a/examples/README.md+++ b/examples/README.md@@ -286,6 +286,7 @@ Notes for models that have no tested list yet live in [`docs/devices/`](../docs/- [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.- [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.+- [waipu.tv Stick](../docs/devices/waipu-tv-stick.md) (SEI Robotics `SEI700WP`, Amlogic, Android 11 `RTT0.211009.001.6958`): the firmware refuses every `pm disable*` ("This command is illegal!"), so eight packages are suspended and background-restricted instead; the launcher installs and survives a reboot, but the waipu app (the stock Home) comes up over it after a cold boot and cannot be stopped; the vendor key handler keeps the waipu-thek, Netflix and YouTube buttons working.To add your TV, see [CONTRIBUTING.md](../CONTRIBUTING.md). The quickest way to get a list is torun the prompt in [PROMPT.md](../PROMPT.md) and copy the packages your assistant disabled.