Skip to content

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

Merge PR #91: Fix Home crash loop on Google TV 14 (launcherx) + Xiaomi TV A Pro 2026 list

Gathin23e7f84279c5cf
diff --cc README.md
index f9ed47c5f,ab4375943..f023ffb4d
--- a/README.md
+++ b/README.md
@@@ -108,24 -103,15 +108,33 @@@ Lists that people have tested and contr
| TV | OS |
|---|---|
| Xiaomi Mi TV 4A (MiTV-MOOQ1) | Android TV 10 |
+| TCL 55" 4K Google TV, 2023 (G10, G10_4K_US_NF) | Google TV 12 |
+| Xiaomi MiTV-AXSO0 (dangal) | Android TV 9 |
+| Xiaomi Mi Box S (MIBOX4, oneday), streaming box | Android TV 9 |
+| SANYO ATV R2 (SCBC, Realtek RTD285O) | Android TV 9 |
+| OnePlus TV (D00, Dubai) | Google TV 14 |
+| BenQ E55-735 (Changhong AI PONT, DVB96BQ) | Google TV 14 |
+| Hisense SmartTV 4K FFM (huangshan, MediaTek) | Android TV 10 |
+| TCL 65C725 (Smart TV Pro, BeyondTV4) | Android TV 11 |
+| Sony BRAVIA 4K UR2 (BRAVIA_UR2_4K, MediaTek) | Android TV 10 |
+| Xiaomi Mi TV (MiTV-MOOQ0, croods) | Android TV 10 |
+| Sony BRAVIA XBR-65X900E (2017, BRAVIA_ATV2) | Android TV 9 |
+| TCL BeyondTV (India) | Android TV 9 |
+| NVIDIA SHIELD TV Pro 2019 (P2897, mdarcy) | Android TV 11 |
+| Xiaomi MiTV-MOOR2 (venom, MediaTek) | Google TV 11 |
+| Xiaomi MiTV-AESP0 stick (aquaman, 1 GB) | Android TV 9 |
+| TCL QM6K Pro, 2025 (G08, MediaTek tcl9618) | Google TV 14 |
+| RCA AI PONT SA (Changhong, redwood, ISDB92RC) | Android 14 |
+| CHiQ AI PONT (DVB93CQ) | Android TV 11 |
+ | Xiaomi MiTV-AXSO0 | Android TV 9 |
+ | Xiaomi Mi Box S (MIBOX4), streaming box | Android TV 9 |
+ | TCL 55" 4K Google TV, 2023 (G10) | Google TV 12 |
+ | SANYO ATV R2 | Android TV 9 |
+ | OnePlus TV (D00) | Google TV 14 |
+ | Sony BRAVIA XBR-65X900E (2017) | Android TV 9 |
+ | NVIDIA SHIELD TV Pro 2019 (P2897) | Android TV 11 |
+ | Xiaomi MiTV-MOOR2 (venom) | Google TV 11 |
+ | Xiaomi TV A Pro 75" 2026 (MiTV-MZTU0) | Google TV 14 |
Your TV not here? The prompt works regardless, it discovers the bloat itself. If you add your
list afterwards, the next person with your model skips that step. See
@@@ -265,6 -237,12 +274,13 @@@ Things that bit us or contributors, so
`com.google.android.tungsten.setupwraith` package is what frees the slot. It is the first-run
setup wizard, so everyday use is unaffected, but re-enable it before a factory reset - list it in
your `debloat.txt` and `tools/restore.sh` does that for you.
+ - **The TV drops off Wi-Fi every minute right after the install**, seen on Google TV 14 (Xiaomi
+ MiTV-MZTU0): the same setupwraith `.RecoveryActivity` took Home and system_server crash-looped
+ on it. The install script now starts the new launcher before disabling the stock one, sets the
- home preference last (Android drops it whenever the set of HOME apps changes) and prints what
- HOME resolves to; disable setupwraith as above. If you're already in the loop:
++ home preference last (Android drops it whenever the set of HOME apps changes), then checks where
++ Home resolves and re-enables the stock launcher if it is not the new one. Disable setupwraith as
++ above. If you're already in the loop:
+ `tools/tv.py 'pm enable --user 0 com.google.android.apps.tv.launcherx'`.
- **No on-screen keyboard** after switching launchers, seen on Xiaomi: the default input method
pointed at a Baidu keyboard that isn't installed. Fix:
`tools/tv.py 'ime set com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME'`
diff --cc examples/README.md
index 602a81075,4cacbf597..846bc08ee
--- a/examples/README.md
+++ b/examples/README.md
@@@ -20,10 -20,7 +20,11 @@@ on that firmware, grouped and commented
| `tcl-beyondtv/` | TCL BeyondTV (India) | Android TV 9 | TCL analytics, content feed, TCL app store, Google recommendation rows; Jio/Airtel/Hotstar apps untouched |
| `nvidia-shield-tv-pro-2019/` | NVIDIA SHIELD TV Pro 2019 (P2897, mdarcy) | Android TV 11 | NVIDIA telemetry, GameStream leftovers, sponsored rows, partner auto-installs |
| `xiaomi-mitv-moor2/` | Xiaomi MiTV-MOOR2 (venom, MediaTek) | Google TV 11 | Mi ad row and PatchWall, Mi analytics, MiLink, store demo; setup wizard off so a third-party launcher can own Home |
+| `xiaomi-mitv-aesp0/` | Xiaomi MiTV-AESP0 stick (aquaman, 1 GB) | Android TV 9 | No inputs; Home key sends ALL_APPS, needs `HOME_KEY_SERVICE=1`; Chromecast kept |
+| `tcl-qm6k-google-tv/` | TCL QM6K Pro, 2025 (G08, MediaTek tcl9618) | Google TV 14 | Samba TV ACR (ttvs), TCL TV+, TCL Live, store/hotel demo; setupwraith must go for a custom launcher |
+| `rca-ai-pont/` | RCA AI PONT SA (Changhong, redwood, ISDB92RC) | Android 14 | Homwee store and installers, Anoki ACR, FAST channels; 1 GB |
+| `chiq-ai-pont/` | CHiQ AI PONT (DVB93CQ) | Android TV 11 | Anoki ACR, FAST channels, AI PONT, Homwee services |
+ | `xiaomi-tv-a-pro-2026/` | Xiaomi TV A Pro 75" 2026 (MiTV-MZTU0, river, MediaTek) | Google TV 14 | PatchWall/Mi Home tab, Mi analytics, TV Manager, updaters; setup wizard off, launcherx crash-loop notes |
To add your TV, see [CONTRIBUTING.md](../CONTRIBUTING.md). The quickest way to get a list is to
run the prompt in [PROMPT.md](../PROMPT.md) and copy the packages your assistant disabled.
diff --cc launcher/build-and-install.ps1
index 14c2a8372,caf9490bc..41cf56ace
--- a/launcher/build-and-install.ps1
+++ b/launcher/build-and-install.ps1
@@@ -45,15 -41,10 +45,24 @@@ Write-Host $ou
if ("$out" -match 'Error') { throw 'could not set the new launcher as home; the stock launcher was left untouched' }
@(
'pm grant com.gathin.tvhome android.permission.ACCESS_FINE_LOCATION 2>/dev/null; echo location-granted',
+ 'cmd package compile -m speed -f com.gathin.tvhome',
- 'cmd package set-home-activity --user 0 com.gathin.tvhome/.MainActivity',
- "pm disable-user --user 0 $StockLauncher"
+ "am start -W -n com.gathin.tvhome/.MainActivity | grep -E '^(Status|Error)'",
+ "pm disable-user --user 0 $StockLauncher",
- 'cmd package set-home-activity --user 0 com.gathin.tvhome/.MainActivity',
- 'cmd package resolve-activity --brief -c android.intent.category.HOME -a android.intent.action.MAIN | tail -n 1'
++ 'cmd package set-home-activity --user 0 com.gathin.tvhome/.MainActivity'
) | & $py -I ..\tools\tv.py --batch
-# Order matters, see build-and-install.sh. The last line printed must be com.gathin.tvhome.
++# Order matters, see build-and-install.sh: start the new launcher, disable the stock one, set the
++# preference last, then check where Home ended up and put the stock launcher back if it is not ours.
++$homeNow = (& $py -I ..\tools\tv.py 'cmd package resolve-activity --brief -c android.intent.category.HOME -a android.intent.action.MAIN' | Select-Object -Last 1).Trim()
++if ($homeNow -notlike 'com.gathin.tvhome/*') {
++ & $py -I ..\tools\tv.py "pm enable --user 0 $StockLauncher" | Out-Null
++ throw "Home resolves to '$homeNow', not to the new launcher; $StockLauncher was re-enabled. On Google TV this usually means com.google.android.tungsten.setupwraith also claims Home: add it to your debloat list (see README, Troubleshooting), apply it, then run this script again."
++}
++Write-Host "Home now resolves to $homeNow"
+# Optional accessibility services, appended to enabled_accessibility_services without dropping others.
+function Enable-Service([string]$Name) {
+ $svc = "com.gathin.tvhome/.$Name"
+ & $py -I ..\tools\tv.py ('s=$(settings get secure enabled_accessibility_services); case "$s" in *' + $Name + '*) ;; null|"") settings put secure enabled_accessibility_services ' + $svc + ' ;; *) settings put secure enabled_accessibility_services "$s:' + $svc + '" ;; esac; settings put secure accessibility_enabled 1; echo ' + $Name + ' enabled')
+}
+if ($InputKeyService) { Enable-Service 'InputKeyService' }
+if ($HomeKeyService) { Enable-Service 'HomeKeyService' }
Write-Host 'Installed. Press Home on the remote to see it.'
diff --cc launcher/build-and-install.sh
index fcfa413f6,0ab0ee196..8552d81d2
--- a/launcher/build-and-install.sh
+++ b/launcher/build-and-install.sh
@@@ -29,21 -29,13 +29,37 @@@ printf '%s\n'
"pm install -r /data/local/tmp/tvhome.apk" \
"rm -f /data/local/tmp/tvhome.apk" \
"pm grant com.gathin.tvhome android.permission.ACCESS_FINE_LOCATION 2>/dev/null; echo location-granted" \
+ "cmd package compile -m speed -f com.gathin.tvhome" \
- "cmd package set-home-activity --user 0 com.gathin.tvhome/.MainActivity" \
+ "am start -W -n com.gathin.tvhome/.MainActivity | grep -E '^(Status|Error)'" \
"pm disable-user --user 0 $STOCK_LAUNCHER" \
+ "cmd package set-home-activity --user 0 com.gathin.tvhome/.MainActivity" \
- "cmd package resolve-activity --brief -c android.intent.category.HOME -a android.intent.action.MAIN | tail -n 1" \
| "$PY" -I ../tools/tv.py --batch
+ # Order matters: the new launcher is started before the stock one is disabled, and the home
+ # preference is set after. Android drops the preference whenever the set of HOME apps changes, and
+ # on Google TV 14 the next candidate is the setup wizard's RecoveryActivity, which crash-loops
-# system_server (see examples/xiaomi-tv-a-pro-2026). The last line must print com.gathin.tvhome.
++# system_server (see examples/xiaomi-tv-a-pro-2026). So check where Home ended up, and put the
++# stock launcher back if it is not ours.
++HOME_NOW=$("$PY" -I ../tools/tv.py 'cmd package resolve-activity --brief -c android.intent.category.HOME -a android.intent.action.MAIN' | tail -n 1 | tr -d '\r')
++case "$HOME_NOW" in
++ com.gathin.tvhome/*) echo "Home now resolves to $HOME_NOW" ;;
++ *)
++ "$PY" -I ../tools/tv.py "pm enable --user 0 $STOCK_LAUNCHER" >/dev/null || true
++ echo "ERROR: Home resolves to ${HOME_NOW:-nothing}, not to the new launcher; $STOCK_LAUNCHER was re-enabled." >&2
++ echo "On Google TV this usually means com.google.android.tungsten.setupwraith also claims Home: add it to" >&2
++ echo "your debloat list (see README, Troubleshooting), apply the list, then run this script again." >&2
++ exit 1 ;;
++esac
+
+# Optional accessibility services. Off unless asked for, and Android switches them off again on
+# every reinstall, so pass the flag each time you run this script.
+# INPUT_KEY_SERVICE=1 the remote's Input button (KEYCODE_TV) opens the input switcher from any
+# app; Google TV needs this once the stock launcher is gone (InputKeyService)
+# HOME_KEY_SERVICE=1 remotes whose Home button sends KEYCODE_ALL_APPS instead of HOME, e.g. Xiaomi
+# sticks: the key is routed to the launcher (HomeKeyService)
+enable_service() { # appends to enabled_accessibility_services without dropping other services
+ svc=com.gathin.tvhome/.$1
+ "$PY" -I ../tools/tv.py "s=\$(settings get secure enabled_accessibility_services); case \"\$s\" in *$1*) ;; null|'') settings put secure enabled_accessibility_services $svc ;; *) settings put secure enabled_accessibility_services \"\$s:$svc\" ;; esac; settings put secure accessibility_enabled 1; echo $1 enabled"
+}
+if [ "${INPUT_KEY_SERVICE:-0}" = 1 ]; then enable_service InputKeyService; fi
+if [ "${HOME_KEY_SERVICE:-0}" = 1 ]; then enable_service HomeKeyService; fi
echo "Installed. Press Home on the remote to see it."