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: onn 4K Streaming Box 2023, second unit (Vietnam); docs: Google TV voice search needs launcherx
dhuuthangb44334b77de1
diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.mdindex 2474d0231..b50047112 100644--- a/docs/TROUBLESHOOTING.md+++ b/docs/TROUBLESHOOTING.md@@ -312,6 +312,20 @@ Things that bit us or contributors, so they don't bite you. Commands use `tools/launcherx is enabled it takes Home back (`set-home-activity` prints `Success` and changes nothing, andits home activity can't be disabled from the shell). To switch profile: `pm enable --user 0com.google.android.apps.tv.launcherx`, switch in Settings, then disable it again and set Home last.+- **Voice search for a song or video says "Google Assistant is having trouble processing your request"**+ once launcherx is disabled, while app commands ("open YouTube") still work. Seen on an onn 4K Streaming+ Box (`YOC`, Google TV 14, `URO4.260304.011.B1.15051976`). Google TV shows those results in its own home+ screen: the Assistant sends `VIEW https://tv.google.com/...` to launcherx+ (`.gateway.LauncherDeepLink`, then `.home.HomeActivity` lists the results, and picking one opens YouTube+ by package). With launcherx disabled there is nothing to open, and logcat shows `Failed to execute+ provider.OPEN with status: UNKNOWN_ERROR` within 100 ms. Two things make it look like something else:+ right after launcherx has run, the Assistant keeps serving results for a while even when it is disabled+ again, and the failure returns only after a reboot; and nothing in the debloat list matters - with every+ other package re-enabled it fails the same way. Apps only mode (Settings > Accounts & sign-in) is no way+ out: it switches the Assistant off. What works: leave launcherx enabled (it is then Home, see the entry+ above) and open this launcher from its app row, where voice search works normally because the results+ screen comes up over it; or search inside YouTube with its on-screen mic. The Projectivy community found+ the same (voice results "need the launcher X search results page").- **The remote's mic button does nothing, or opens the Assistant and it never hears you**, seen on aXiaomi TV Box S 3rd gen (`MiTV-AFMU0`, `twilight`, Google TV 14, `V816.0.7.0.UZFAABX`). Twopackages have to stay enabled, and re-enabling only one of them is what makes this hard to@@ -610,7 +624,10 @@ path that drops the repeats, before an app sees them; the launcher's own helpersthey do not map, so they are not consuming the volume key. The same was reported on a Xiaomi MiTV-MOSR4(`irobot`, Android 11, `RTM5.220609.003.1265`) with the launcher's own helpers, both and `InputKeyService`alone (#944), where the empty list was not tried because it also unhooks the buttons the helpers were-installed for. Check the state first, do not rewrite it blind:+installed for. An onn 4K Streaming Box (`YOC`, Google TV 14, `URO4.260304.011.B1.15051976`) does the same with+`HomeKeyService` alone; there `key_filter` false (config.xml or a theme) brought the repeat back with the helper+still bound, so a helper kept for something other than keys need not cost it. Check the state first, do not+rewrite it blind:```shtools/tv.py 'settings get secure enabled_accessibility_services'diff --git a/examples/README.md b/examples/README.mdindex f9f51eb97..476b7d940 100644--- a/examples/README.md+++ b/examples/README.md@@ -72,7 +72,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `ok-ai-pont-ikebukuro/` | OK. AI PONT (Changhong, ikebukuro, MediaTek), Italy | Android TV 11 | Same platform as chiq-ai-pont: Anoki ACR, AI PONT portal, Google recommendations, partner auto-installs, Homwee store/help, Google preloads; Assistant, Chromecast, Miracast and unused streaming apps off by choice; 720p, 0.9 GB; setupwraith does not claim HOME here and is left alone; remote buttons work without tvlauncher; config.json has the dock; `com.homwee.dmt.upgrade` crashes on its own (firmware), kept; reboot-checked || `oneplus-tv-dubai/` | OnePlus TV (D00, Dubai) | Google TV 14 | HeyTap/OnePlus extras, OnePlus Connect, Smart Home || `oneplus-tv-y1/` | OnePlus Y1 43" (Y Series, shibuya) | Android TV 11 | Skyworth telemetry, ad rows, demos, preloaded bloat; voice & Chromecast preserved |-| `onn-4k-streaming-box-2023/` | onn 4K Streaming Box (2023, Walmart; YOC, Amlogic), US | Google TV 14 | Google feedback, Play Games, Play Movies, ambient mode, launcherx + setupwraith; port 5555 opens without pairing; setupwraith owned the Wi-Fi saved at setup; remote app buttons and mic keep working (keep `com.gretzky.GlobalKey`) |+| `onn-4k-streaming-box-2023/` | onn 4K Streaming Box (2023, Walmart; YOC, Amlogic), US | Google TV 14 | Google feedback, Play Games, Play Movies, ambient mode, launcherx + setupwraith; port 5555 opens without pairing; setupwraith owned the Wi-Fi saved at setup; remote app buttons and mic keep working (keep `com.gretzky.GlobalKey`); second unit (Vietnam): Privacy Sandbox modules off, its remote's YouTube/profile/Settings buttons and voice search for titles need launcherx || `onn-4k-plus-2025/` | onn. 4K Plus Streaming (2025, Walmart; coffey, Amlogic S905X5M), US | Google TV 14 | Same build as the 2023 onn box: Google feedback, Privacy Sandbox APEX modules, Play Games, ambient mode, launcherx + setupwraith; YouTube/Netflix/Chromecast off by choice; keep `tv.remote.service` (it carries the remote mic); setupwraith owned the Wi-Fi saved at setup; remote keycodes listed, YouTube and Free TV buttons remapped with app_keys || `panasonic-4ktv-0su/` | Panasonic 4KTV-0SU (Skyworth-built SW4H, MediaTek m7332), Gulf region | Android TV 10 | Skyworth "Daily Play" sponsored row, ACR, Shop tab customizer, "firewall" service, CastPlay, shop demo and e-POP player, e-manual; Google feedback/partner setup, recommendation rows, ambient screensaver, calendar/print/backup leftovers; Assistant, Chromecast, games, Meet and unused streaming apps off by choice; 1.7 GB; setupwraith claims HOME and owns the saved Wi-Fi, keep it; Live TV is `com.smartdevice.livetv`; keep `com.mediatek.*` || `panasonic-4ktv-jup/` | Panasonic 4KTV-JUP (Jupiter_PA, MediaTek) | Android TV 11 | Google recommendation rows and screensaver, Panasonic demo/hotel/help apps, calendar/print/backup leftovers; streaming apps off by choice; keep `com.mediatek.*` |diff --git a/examples/onn-4k-streaming-box-2023/debloat.txt b/examples/onn-4k-streaming-box-2023/debloat.txtindex e80d055a8..441beb028 100644--- a/examples/onn-4k-streaming-box-2023/debloat.txt+++ b/examples/onn-4k-streaming-box-2023/debloat.txt@@ -1,5 +1,7 @@# onn 4K Streaming Box (2023, Walmart; device YOC, product onn_4k_gtv, Amlogic), 2 GB RAM# Google TV 14 (SDK 34), build URO4.260304.011.B1.15051976+# Second unit: same model, device and build, Vietnam, 32-bit userspace (armeabi-v7a, zygote32), remote+# "Onn-Remote Keyboard" (Vendor_0957_Product_0005.kl). Its notes are marked "second unit" below.## Apply: TV_HOST=<ip> tools/disable.sh examples/onn-4k-streaming-box-2023/debloat.txt# Undo: TV_HOST=<ip> tools/restore.sh examples/onn-4k-streaming-box-2023/debloat.txt com.google.android.apps.tv.launcherx@@ -14,9 +16,27 @@# Find the box with `nc -z <lan>.x 5555` or `dns-sd -B _adb-tls-connect._tcp local.`.# - The Wi-Fi network saved during first setup belongs to setupwraith (dumpsys wifi: cname=...setupwraith).# Forget and re-join it in Settings before disabling setupwraith, or the network is deleted.+# Second unit: this applies to every network saved during setup, not only the one in use - a second,+# out-of-range network saved at setup was still owned by setupwraith after the first was re-joined, and+# was deleted with it (`cmd wifi list-networks` lists them; check each one's cname in `dumpsys wifi`).# - As on the Chromecast, setupwraith's RecoveryActivity takes Home until setupwraith is disabled.# - Unlike the Chromecast, the remote's app buttons and mic keep working with launcherx disabled# (com.gretzky.GlobalKey handles them; keep it). No key-mapper workaround needed.+# Second unit: not with its remote. Its YouTube button (KEYCODE_BUTTON_3, usage 0x0c0077), profile button+# (KEYCODE_PROFILE_SWITCH, 0x0c019c) and MACRO_1 (0x0c0186) are global keys routed to launcherx, and its+# Settings button (KEYCODE_NOTIFICATION 83, 0x0c009f) goes to com.droidlogic's receiver, which opens+# launcherx's quick settings: all four do nothing once launcherx is disabled (`dumpsys window policy` lists+# the routing). HOME_KEY_SERVICE=1 with settings_key_keycodes [83] and app_keys+# ["KEYCODE_BUTTON_3:com.google.android.youtube.tv", "KEYCODE_PROFILE_SWITCH:<app>"] brings them back, but+# the bound helper costs held-key repeat on this box (Volume Up moves one step per press), as on the TCL G09.+# The mic itself keeps working.+# - Second unit: voice search for songs and videos needs launcherx. With it disabled, saying a title gives+# "Google Assistant is having trouble processing your request" (logcat: provider.OPEN UNKNOWN_ERROR); app+# commands ("open YouTube") still work. See docs/TROUBLESHOOTING.md. Apps only mode (Settings > Accounts)+# is no way out: on this build it switches the Assistant off.+# - Second unit: casting with setupwraith disabled was not tested. On the Chromecast with Google TV the Cast+# receiver loses its device credentials with setupwraith (docs/TROUBLESHOOTING.md); check before relying on it.+# - Second unit: `com.google.android.videos` is not preinstalled.## Kept on purpose: Google Assistant (com.google.android.katniss), Cast receiver# (com.google.android.apps.mediashell), onn update prompts (com.onn.updatenotification), com.gretzky.GlobalKey (onn remote app buttons), com.gretzky.hwinfo,@@ -28,6 +48,12 @@com.google.android.feedbackcom.android.tv.feedbackconsent+# Privacy Sandbox / federated learning (second unit; also on the onn 4K Plus list, same build). APEX modules+# under com.android.* names. Play Store, voice search (with launcherx enabled) and YouTube kept working.+com.android.adservices.api+com.android.ondevicepersonalization.services+com.android.federatedcompute.services+# Preloaded appscom.google.android.play.gamescom.google.android.videos # Google TV / Play Movies