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
examples: add XGIMI MoGo 4 Laser (WK03K, altai, MediaTek), Google TV 14
Noé Susset7cbac7a692fc
diff --git a/examples/xgimi-mogo-4-laser/README.md b/examples/xgimi-mogo-4-laser/README.mdnew file mode 100644index 000000000..0f3049382--- /dev/null+++ b/examples/xgimi-mogo-4-laser/README.md@@ -0,0 +1,96 @@+# XGIMI MoGo 4 Laser (Google TV 14 portable projector)++Model `WK03K`, device `altai`, MediaTek, 1.8 GB RAM, firmware `UKNV.260910.001.16312074`, French+unit. Both halves work: the debloat list and the Clean Your TV launcher as Home.++**Tested on 25 October 2026, one session of a few hours, then a reboot** — not the several days+[CONTRIBUTING](../../CONTRIBUTING.md) asks for. Every entry was applied and checked on the real unit;+what is not proven is that nothing surfaces after days of use.++This is the laser version of the [`xgimi-mogo-4`](../xgimi-mogo-4/) (WK08K, LED): same board, a newer+build, the same packages, and the same list apart from+`com.mstar.android.tv.disclaimercustomization`, kept here in case it is the laser safety notice. The+unit arrived on Android 11 (`RTMA.250416.085`) and took the Google TV 14 update before the list.++| File | What it is |+|---|---|+| `debloat.txt` | The 18 packages that were disabled, grouped and commented, with what to keep and why |+| `config.json` | Dock order, 5 columns, no tuner, `stock_home_redirect` and `key_filter` false; push it with `tools/theme.sh` |++All commands run from the repo root, with the projector's IP in `TV_HOST`.++## The laser++Nothing in the package list is laser-specific: the only XGIMI packages the MoGo 4 list does not+name are resource overlays. The light source, eye protection, autofocus and keystone run in the+XGIMI services listed under "DO NOT DISABLE", and none of the disabled packages was running a+service (`dumpsys activity services`). After the reboot the owner held a hand in front of the lens+with eye protection on, and the image dimmed as it should.++## Install++1. Check who owns the Wi-Fi network in use before setupwraith goes:++ ```bash+ TV_HOST=<projector-ip> tools/tv.py "dumpsys wifi | grep -E 'Currently Connected|cname='"+ ```++ On this unit the connected entry belonged to `com.google.android.tungsten.setupwraith`. Forget the+ network on the projector and join it again; the entry then shows `android.uid.system` and+ `tools/disable.sh` disables setupwraith without dropping Wi-Fi. Wireless debugging may need turning+ back on afterwards.++2. Run:++```bash+TV_HOST=<projector-ip> tools/disable.sh examples/xgimi-mogo-4-laser/debloat.txt+TV_HOST=<projector-ip> HOME_KEY_SERVICE=1 launcher/build-and-install.sh+TV_HOST=<projector-ip> tools/theme.sh examples/xgimi-mogo-4-laser+```++`build-and-install.sh` disables launcherx, sees it come straight back (`com.xgimi.xrmservice`, as on+the MoGo 4) and stops with "launcherx owns Home again" before it enables the helper. The launcher is+installed at that point; switch the helper on by hand:++```bash+TV_HOST=<projector-ip> tools/tv.py "settings put secure enabled_accessibility_services com.gathin.tvhome/.HomeKeyService; settings put secure accessibility_enabled 1"+```++Then press the **real** Home button: an injected `input keyevent HOME` landed on the stock launcher+every time, the remote's button opened the new one.++## `key_filter` false: the volume ramp comes back++With the helper filtering keys, holding volume up moves one step, as the MoGo 4 README describes.+`consume_volume_keys` does not help here: `dumpsys audio` logs every step as+`adjustSuggestedStreamVolume ... from android/WindowManager`, so the volume keys are handled before+the helper ever sees them, as on the TCL G08 in+[`docs/devices/tcl-55p71b-g09-key-repeat.md`](../../docs/devices/tcl-55p71b-g09-key-repeat.md).++`"key_filter": false` clears `FLAG_REQUEST_FILTER_KEY_EVENTS` while the helper stays bound. Home is+held by `stock_home_redirect`, which watches window changes, not keys, so it keeps working. Pressed on+the real remote with that config:++| Check | Result |+| --- | --- |+| Hold volume up / down | ramps continuously |+| Home | opens the new launcher |+| YouTube, Netflix, Prime Video buttons | open the app |+| Gear / Settings | works |+| Home after a reboot | the new launcher |++The app and gear buttons are handled by the firmware there, since launcherx and `xrmservice` stay+enabled, so `app_keys` and `settings_key_keycodes` are left out of `config.json`: with the filter off+the helper never sees them. The raw codes from `getevent -lt`, for anyone who turns the filter back on:+YouTube `KEY_RED`, Netflix `KEY_GREEN`, Prime Video `KEY_BLUE`, gear `KEY_F8`; the Android keycodes they+map to were not checked.++## Memory++Measured with `dumpsys meminfo` in the same session: the new launcher at about 57 MB PSS, launcherx+at about 125 MB once opened. There is no whole-system figure from before the list.++## Notes on `config.json`++The dock is Netflix, YouTube, Disney+ and Prime Video; with `columns` 5 the fifth slot fills itself+from the grid. Reorder from the projector with a long press on the Settings pill.diff --git a/examples/xgimi-mogo-4-laser/config.json b/examples/xgimi-mogo-4-laser/config.jsonnew file mode 100644index 000000000..6a89dbfe9--- /dev/null+++ b/examples/xgimi-mogo-4-laser/config.json@@ -0,0 +1,13 @@+{+ "dock_apps": [+ "com.netflix.ninja",+ "com.google.android.youtube.tv",+ "com.disney.disneyplus",+ "com.amazon.amazonvideo.livingroom"+ ],+ "columns": 5,+ "live_tv_package": "",+ "rows_below_dock": 0,+ "stock_home_redirect": "com.google.android.apps.tv.launcherx",+ "key_filter": false+}diff --git a/examples/xgimi-mogo-4-laser/debloat.txt b/examples/xgimi-mogo-4-laser/debloat.txtnew file mode 100644index 000000000..586d8a0e6--- /dev/null+++ b/examples/xgimi-mogo-4-laser/debloat.txt@@ -0,0 +1,90 @@+# XGIMI MoGo 4 Laser projector (model WK03K, device altai, MediaTek), Google TV / Android 14 (SDK 34),+# build UKNV.260910.001.16312074, France.+#+# Apply: TV_HOST=<projector ip> tools/disable.sh examples/xgimi-mogo-4-laser/debloat.txt+# Undo: TV_HOST=<projector ip> tools/restore.sh examples/xgimi-mogo-4-laser/debloat.txt com.google.android.apps.tv.launcherx+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# Tested for one session (a few hours) on 2026-10-25, then a reboot by the owner, not the several days+# CONTRIBUTING asks for. Every entry was applied in four batches with a screenshot after each, on the real+# unit; what is not proven is that nothing surfaces after days of use. See README.md in this folder.+#+# The laser version of the MoGo 4: same altai board as examples/xgimi-mogo-4 (WK08K, LED), a newer+# build, and the same packages. Nothing laser-specific showed up in the package list: the only XGIMI+# packages the MoGo 4 list does not name are resource overlays (com.android.xgimi.overlay.*,+# com.android.tv.settings.xgimi.tv.resoverlay), and the light source, eye protection and autofocus+# run in the XGIMI services kept below. Eye protection (the image dims when a hand is held in front of the lens)+# was checked by hand after the reboot and still works. Nothing shipped disabled from the factory.+# The unit arrived on Android 11 (RTMA.250416.085) and took the Google TV 14 update before this list.+#+# Stock launcher: com.google.android.apps.tv.launcherx, with setupwraith's RecoveryActivity behind it.+# setupwraith owned the Wi-Fi network in use (`dumpsys wifi`: cname=com.google.android.tungsten.setupwraith+# on the entry with "Currently Connected: true"). The network was forgotten and joined again on the+# projector first; the entry then showed cname=android.uid.system:1000 and setupwraith went without+# losing Wi-Fi or ADB.+#+# Launcher notes (applied and verified on a real unit on 2026-10-25):+# - Install with HOME_KEY_SERVICE=1 and push config.json from this folder with tools/theme.sh. Its+# "key_filter": false is the difference from the MoGo 4: see README.md.+# - launcherx re-enables itself (com.xgimi.xrmservice, as on the MoGo 4 and MoGo 3 Pro). It was back+# within a minute of build-and-install.sh disabling it, and the script stops with "Home resolves to+# ... setupwraith/.RecoveryActivity" / "launcherx owns Home again"; set-home-activity prints Success and+# changes nothing. stock_home_redirect is what holds Home. The script stopped before it enabled+# HomeKeyService, so the helper was switched on by hand (README.md).+# - HDMI 1 (the only port) opens from the Inputs menu with no input_action, as on the MoGo 4.+# - Network ADB: Developer options offers Wireless debugging; with it on, port 5555 answers tools/tv.py.+#+# DO NOT DISABLE on this model (projector hardware, laser, inputs, mirroring):+# com.xgimi.autokst # auto keystone correction+# com.xgimi.windowsystem # keystone/window service+# com.xgimi.tof # ToF autofocus+# com.xgimi.misckey # remote keys, focus/keystone shortcuts+# com.xgimi.uiconfiguration # global key receiver, power listener+# com.xgimi.xrmservice # global remote keys, power and machine state (re-enables the stock launcher)+# com.xgimi.xgimiservice # core XGIMI system service+# com.xgimi.autoinstall # purpose unclear: kept+# com.xgimi.overseas.xgimiatvbootwizard # first-boot wizard+# com.mediatek.tvinput # HDMI input service+# com.mediatek.tv.service # TV service, hot keys, audio+# com.google.android.tv.inputplayer # HDMI passthrough player and input switcher+# com.xgimi.starmirror # XGIMI screen-mirroring receiver (ships as a user app)+# com.dolby.android.audio.service # Dolby audio+# com.mstar.android.tv.disclaimercustomization # disabled on the MoGo 4; kept here in case it is the laser safety notice++# Store demo, factory and test tools+fusion.android.tv.demo # RetailDisplay store demo+com.xgimi.atvwifiverify # factory Wi-Fi verification+com.xgimi.minitvfactory # factory menu, file transfer and burn-in (never launched)++# Telemetry and feedback+com.xgimi.bugreportsender # XGIMI bug report uploader+com.google.android.feedback # Google feedback+com.android.tv.feedbackconsent # feedback / diagnostics consent prompt++# Google ad, attribution and on-device personalisation services+com.android.adservices.api # Privacy Sandbox ad services (Topics, attribution)+com.android.ondevicepersonalization.services # on-device ad personalisation+com.android.federatedcompute.services # federated learning for the above+com.google.android.partnersetup # partner / RLZ install-attribution pings++# Google preloads+com.google.android.play.games # Play Games+com.google.android.youtube.tvmusic # YouTube Music+com.google.android.marvin.talkback # TalkBack (accessibility), off by choice++# Voice and phone remote (off by choice)+com.google.android.katniss # Google Assistant / Gemini voice search+com.google.android.tv.assistant # assistant LED / hotword service+com.google.android.tv.remote.service # Google TV phone-as-remote, not the Bluetooth remote++# XGIMI extras (off by choice)+com.xgimi.doubanfm # XGIMI music app, speaker-mode screen++# Kept by choice on this unit: every preinstalled streaming app (Netflix, YouTube, Prime Video, Disney+,+# Apple TV, Canal+, Orange TV, Spotify, france.tv, TF1+, M6+, Arte), com.google.android.apps.mediashell+# (Chromecast), com.xgimi.ota.accessories, com.xgimi.gimiplayer, com.google.android.apps.tv.dreamx+# (Backdrop screensaver). The projector's own firmware updater was left enabled.++# Google TV setup wizard (claims HOME on Google TV 14; re-enable before a factory reset).+# Disabled last, after the saved Wi-Fi network was re-joined (see the header).+com.google.android.tungsten.setupwraithdiff --git a/examples/xgimi-mogo-4-laser/tv.json b/examples/xgimi-mogo-4-laser/tv.jsonnew file mode 100644index 000000000..cbf5c1905--- /dev/null+++ b/examples/xgimi-mogo-4-laser/tv.json@@ -0,0 +1,6 @@+{+ "tv": "XGIMI MoGo 4 Laser projector (WK03K, altai, MediaTek)",+ "os": "Google TV 14",+ "brand": "XGIMI",+ "notes": "Laser version of the MoGo 4, same altai board and packages: factory and burn-in tools, bug-report uploader, Google feedback and ad services, setupwraith, Google preloads, Assistant and phone remote; keystone/autofocus/laser services, HDMI and StarMirror kept, eye protection checked after the reboot. setupwraith owned the Wi-Fi in use, so the network was re-joined first. launcherx re-enables itself, so `stock_home_redirect` holds Home; `key_filter` false in config.json keeps the volume ramp and the remote's app buttons with the helper on. One session of a few hours, reboot-checked"+}