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 Vibe One projector (WM03H, altai, MediaTek m7332), Google TV 11
julianvidalm32b5bf2e78d1
diff --git a/examples/xgimi-vibe-one/README.md b/examples/xgimi-vibe-one/README.mdnew file mode 100644index 000000000..db73a57fc--- /dev/null+++ b/examples/xgimi-vibe-one/README.md@@ -0,0 +1,92 @@+# XGIMI Vibe One (Google TV / Android 11 portable projector)++Model WM03H, device altai (same board as the MoGo 3 Pro and MoGo 4), MediaTek m7332, Android 11+(SDK 30), build RTMA.250416.186.13970001, Canadian unit. 2 GB RAM. Applied and verified on a real+unit on 2026-11-04, including reboots, in one session of a few hours rather than several days.++## Turning ADB on++Developer options offer USB debugging and a USB configuration menu (RNDIS never showed up as a network+adapter on the Windows host). The projector enumerates as a plain Google ADB device over USB, so the+simplest route is:++```bash+adb devices # accept "Allow USB debugging?" on the projector+adb tcpip 5555+adb connect <projector-ip>:5555+export TV_ADB_BINARY=/absolute/path/to/adb+export TV_HOST=<projector-ip>:5555+tools/venv/bin/python -I tools/tv.py --probe+```++On this unit port 5555 **stayed open across reboots**, unlike the MoGo 4 note. The USB device did not+re-enumerate after a reboot, but the network connection kept working.++## Debloat++```bash+TV_ADB_BINARY=<adb> TV_HOST=<ip>:5555 tools/disable.sh examples/xgimi-vibe-one/debloat.txt+```++With `TV_ADB_BINARY` pointing at a Windows `adb.exe` from WSL2, each `disable.sh` run disabled only the+first package of its list and reported the rest as still enabled; the cause was not established.+Single `pm disable-user --user 0 <package>` calls through `tools/tv.py` worked, five at a time with a+pause. `restore.sh` was not tried on this setup, so check its result the same way.++`com.google.android.tungsten.setupwraith` owns the saved Wi-Fi network on this unit+(`dumpsys wifi` shows `cname=com.google.android.tungsten.setupwraith` on the connected entry), so it+is kept. The stock launcher is kept too: see below.++Result: Bell Fibe TV (`com.quickplay.android.bellmediaplayer`), the largest resident process before+the debloat at 153 MB with a boot receiver, no longer runs. All 19 entries stayed disabled after a+reboot.++## Launcher++Built with `tools/docker-build.sh`, then:++```bash+SKIP_BUILD=1 HOME_KEY_SERVICE=1 TV_ADB_BINARY=<adb> TV_HOST=<ip>:5555 launcher/build-and-install.sh+TV_ADB_BINARY=<adb> TV_HOST=<ip>:5555 tools/theme.sh examples/xgimi-vibe-one+```++`build-and-install.sh` stops with "Home resolves to launcherx" because `set-home-activity` does not+hold on this firmware, and exits before enabling the helper. That check is a false negative here:+enable the helper by hand and the redirect in `config.json` does the rest.++```bash+tools/tv.py "settings put secure enabled_accessibility_services com.gathin.tvhome/.HomeKeyService; settings put secure accessibility_enabled 1"+```++What held on this unit, with `com.google.android.apps.tv.launcherx` left **enabled** and+`stock_home_redirect` set:++- A real Home press on the remote lands on the new launcher. An injected `input keyevent KEYCODE_HOME`+ does not, so only a press on the remote counts as proof.+- After a reboot the projector boots straight into the new launcher without any key press.+- Netflix, YouTube and Prime Video buttons (`KEYCODE_F9`, `F4`, `F8`, the MoGo 3 Pro / MoGo 4 codes)+ and the gear button (`KEYCODE_NOTIFICATION` 83) all worked on the real remote.+- Holding volume up or down does nothing: each press moves one step, the same auto-repeat loss as the+ MoGo 4 note (the helper binds with `capabilities=8`). Confirmed on the real remote.+- Autofocus and the other projector buttons were checked by hand and work.++The cost of keeping launcherx enabled is that it stays resident in the background (about 80 MB over+two processes). Disabling it is possible but on this unit was not needed, and it would require+disabling setupwraith first, which would delete the Wi-Fi network.++## Extras applied on this unit++System animation scales at 0.5 for perceived fluidity (no memory effect, survives reboots):++```bash+tools/tv.py "settings put global window_animation_scale 0.5; settings put global transition_animation_scale 0.5; settings put global animator_duration_scale 0.5"+```++Set them back to `1.0` to undo. Netflix's persistent background service was left alone on purpose.++## Notes on `config.json`++Dock: Netflix, YouTube, Prime Video, Disney+, with `columns` 5 so the fifth slot fills from the grid.+`hidden_apps` keeps Settings off the tiles (the Settings pill and the gear button do not depend on the+tile), so Play Store takes that slot. The key replaces the built-in list, so it repeats those entries.+No tuner (`"live_tv_package": ""`), HDMI opens from the Inputs pill.diff --git a/examples/xgimi-vibe-one/config.json b/examples/xgimi-vibe-one/config.jsonnew file mode 100644index 000000000..9ec0dcaa3--- /dev/null+++ b/examples/xgimi-vibe-one/config.json@@ -0,0 +1,25 @@+{+ "dock_apps": [+ "com.netflix.ninja",+ "com.google.android.youtube.tv",+ "com.amazon.amazonvideo.livingroom",+ "com.disney.disneyplus"+ ],+ "hidden_apps": [+ "com.mediatek.wwtv.tvcenter",+ "com.mitv.gallery",+ "com.android.tv.settings"+ ],+ "columns": 5,+ "live_tv_package": "",+ "rows_below_dock": 0,+ "settings_key_keycodes": [+ 83+ ],+ "app_keys": [+ "KEYCODE_F4:com.google.android.youtube.tv",+ "KEYCODE_F9:com.netflix.ninja",+ "KEYCODE_F8:com.amazon.amazonvideo.livingroom"+ ],+ "stock_home_redirect": "com.google.android.apps.tv.launcherx"+}diff --git a/examples/xgimi-vibe-one/debloat.txt b/examples/xgimi-vibe-one/debloat.txtnew file mode 100644index 000000000..734a8e6f6--- /dev/null+++ b/examples/xgimi-vibe-one/debloat.txt@@ -0,0 +1,80 @@+# XGIMI Vibe One projector (model WM03H, device altai, product seal2, MediaTek m7332), Google TV / Android 11 (SDK 30),+# build RTMA.250416.186.13970001, Canada. 2 GB RAM (1.7 GB usable).+#+# Apply: TV_ADB_BINARY=<adb> TV_HOST=<serial or ip:port> tools/disable.sh examples/xgimi-vibe-one/debloat.txt+# Undo: TV_ADB_BINARY=<adb> TV_HOST=<serial or ip:port> tools/restore.sh examples/xgimi-vibe-one/debloat.txt+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# Tested for one session (a few hours) on 2026-11-04, including reboots, not the several days+# CONTRIBUTING asks for. Every entry was applied and checked on the real unit; what has not been+# proven is that nothing surfaces after days of use. See README.md in this folder.+#+# Same board (altai) as examples/xgimi-mogo-4 and examples/xgimi-mogo-3-pro, but on Android 11 like+# examples/xgimi-horizon-s-pro, so the MoGo 4 hardware keep-list applies and the Horizon S Pro+# telemetry/factory entries match. Inventory taken over USB ADB on 2026-11-04: 121 packages, none+# disabled from the factory, 7 user-installed preloads (Canadian streaming bundle).+#+# Memory at inventory time (dumpsys meminfo, idle on the stock home): MemAvailable ~630 MB of 1.7 GB.+# Largest resident process was com.quickplay.android.bellmediaplayer (Bell Fibe TV) at 153 MB, more+# than system_server; it registers a boot receiver (com.netradar.appanalyzer.OnUpgradeOrBootBroadcastReceiver).+#+# Stock launcher: com.google.android.apps.tv.launcherx (HOME priority 2), setup wizard RecoveryActivity+# at priority 1. Both KEPT in this list. The new launcher (com.gathin.tvhome, HOME_KEY_SERVICE=1 and+# stock_home_redirect in config.json) holds Home on this unit with launcherx still enabled, across+# reboots and on a real Home press. See README.md in this folder.+# setupwraith owns the saved Wi-Fi network in use (cname=com.google.android.tungsten.setupwraith+# in `dumpsys wifi`), so disabling it would delete that network. Do not disable it on this unit.+#+# DO NOT DISABLE on this model (projector hardware, inputs, mirroring), per the altai notes:+# 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, picture/sound adaptation+# com.xgimi.xgimiservice # core XGIMI system service+# com.xgimi.autoinstall # purpose unclear: kept+# com.xgimi.overseas.xgimiatvbootwizard # first-boot wizard+# com.xgimi.ota.accessories # remote/speaker firmware updater+# com.mediatek.tvinput # HDMI input service+# com.mediatek.tv.service # TV service, Netflix key receiver+# com.mediatek.wwtv.tvcenter # MediaTek TV center (inputs)+# com.dolby.android.audio.service # Dolby audio+# com.google.android.apps.mediashell # Chromecast built-in+# com.google.android.tungsten.setupwraith # owns the Wi-Fi network, see above++# 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+com.xgimi.yg.minitvfactory # second factory menu build++# Telemetry, feedback and attribution+com.xgimi.bugreportsender # XGIMI bug report uploader+com.google.android.feedback # Google feedback+com.mstar.android.tv.disclaimercustomization # vendor disclaimer screen, first-run only+com.google.android.partnersetup # partner / RLZ install-attribution pings+android.autoinstalls.config.google.gtvpai # Play auto-install config for preloads++# 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+com.android.printspooler # print spooler, no use on a projector++# Preinstalled streaming apps the owner does not use (off by choice; they ship as user apps on this+# Canadian unit)+com.quickplay.android.bellmediaplayer # Bell Fibe TV (153 MB resident, boot receiver)+ca.bellmedia.cravetv # Crave+com.cbs.ca # CTV / Paramount+ Canada+com.haystack.android # Haystack News+com.tubitv # Tubi+com.apple.atve.androidtv.appletv # Apple TV++# Kept by choice on this unit: com.netflix.ninja, com.google.android.youtube.tv,+# com.amazon.amazonvideo.livingroom, com.disney.disneyplus, com.google.android.katniss and+# com.google.android.tv.assistant (voice search), com.google.android.tv.remote.service (phone remote),+# com.xgimi.doubanfm (speaker mode), com.google.android.apps.tv.dreamx (ambient screensaver),+# com.xgimi.gimiplayer (local player), com.google.android.apps.nbu.smartconnect.tv (phone setup),+# com.google.android.tts, com.google.android.inputmethod.latin, Play Store / Play Services, Bluetooth.+# The projector's own firmware updater was left enabled.diff --git a/examples/xgimi-vibe-one/tv.json b/examples/xgimi-vibe-one/tv.jsonnew file mode 100644index 000000000..3e4b3f667--- /dev/null+++ b/examples/xgimi-vibe-one/tv.json@@ -0,0 +1,6 @@+{+ "tv": "XGIMI Vibe One projector (WM03H, altai, MediaTek m7332)",+ "os": "Google TV 11",+ "brand": "XGIMI",+ "notes": "Same altai board as the MoGo 4 but on Android 11, Canadian unit: store demo, factory tools, bug-report uploader, Google feedback, Play auto-install config and the Bell, Crave, CTV, Haystack, Tubi and Apple TV preloads; keystone/autofocus/HDMI kept. setupwraith owned the network in use and claims Home after launcherx, so both stay enabled and `stock_home_redirect` with `HOME_KEY_SERVICE` holds Home, at the cost of volume-key auto-repeat. Port 5555 stayed open across reboots. config.json has the dock; one session of a few hours, reboot-checked"+}