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 Google TV Streamer 4K (kirkwood, UTTK.260317.003) debloat list
Pablo7dcaae309de7
diff --git a/examples/README.md b/examples/README.mdindex 701c189ac..8f9ac4c47 100644--- a/examples/README.md+++ b/examples/README.md@@ -18,6 +18,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `chiq-gtvu65/` | CHiQ AI PONT (Changhong GTVU65, dangni, MediaTek mt5867) | Google TV 14 | Google ad services and auto-installs, Homwee store/help; 1 GB; setupwraith must go (RecoveryActivity component cannot be disabled alone); MediaTek partnercustomizer safe to disable (reboot-checked) || `chiq-ai-pont/` | CHiQ AI PONT (DVB93CQ) | Android TV 11 | Anoki ACR, FAST channels, AI PONT, Homwee services || `google-chromecast-gtv-4k/` | Chromecast with Google TV 4K (sabrina) | Google TV 14 | Google telemetry and ad services, ambient mode, launcherx + setupwraith; wireless-debugging pairing, YouTube button remap; casting needs setupwraith (its CastInfoProvider holds the receiver's credentials) |+| `google-tv-streamer-4k-kirkwood/` | Google TV Streamer 4K (kirkwood, GZRNL) | Google TV 14 | Google telemetry and ad services; setupwraith must go (package level: its RecoveryActivity claims HOME and crash-loops system_server), so the cast credentials have to be re-provisioned with an enable/wait/disable ritual after every reboot; the launcher HOME intent-filter priority is ignored on this build; wireless-debugging pairing, YouTube button remap || `compac-atv-r2/` | Compac ATV R2 (SCBC R2, Realtek RTD285O) | Android TV 9 | Same SCBC platform and build as the SANYO ATV R2: data-consent agent, Vewd, S-Channel rows, E-SHOW demo, recommendation rows, partner auto-installs, TV Booster; `com.realtek.leanbacklauncher.partnercustomizer` must stay or the stock Home loses its Inputs button; OTA, Assistant and FastCast kept, Chromecast off by choice || `eko-2k-google-tv-tennoji/` | EKO 2K Google TV (MTC-built, tennoji, MediaTek mt5867 / T56) | Google TV 14 | First EKO list: Anoki ACR opt-in, Android ad services, feedback, partner setup; Assistant, Miracast, Netflix, Prime Video, YouTube Music off by choice, Chromecast kept; setupwraith owned the setup Wi-Fi (forget and re-join first); `fusion.android.tv.demo` handles the Input key; Live TV takes the tvcenter launch entry, not the tuner passthrough URI; reboot-checked || `ffalcon-65s585c-pro/` | FFalcon (雷鸟) 鹤6 PRO 65S585C Pro (China, tcl_mt5879_cn, MediaTek MT9653) | Android TV 11 | Same platform and firmware build as tcl-q10g-pro; TCL boot ad, analytics, push, home recommendation cards and silent-install channels stay disabled across a reboot; OTA, account, voice, weather, album, WeChat and video call off by choice; debloat only, no third-party launcher or sideloading; reboot-checked |diff --git a/examples/google-tv-streamer-4k-kirkwood/debloat.txt b/examples/google-tv-streamer-4k-kirkwood/debloat.txtnew file mode 100644index 000000000..6275092d3--- /dev/null+++ b/examples/google-tv-streamer-4k-kirkwood/debloat.txt@@ -0,0 +1,111 @@+# Google TV Streamer (2024, device kirkwood, model "Google TV Streamer" / GZRNL), 4 GB RAM+# Google TV 14 (SDK 34), build UTTK.260317.003+#+# Apply: TV_HOST=<ip> tools/disable.sh examples/google-tv-streamer-4k-kirkwood/debloat.txt+# Undo: TV_HOST=<ip> tools/restore.sh examples/google-tv-streamer-4k-kirkwood/debloat.txt com.google.android.apps.tv.launcherx+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# This is a dongle: no Live TV app and no HDMI inputs, so leave live_tv_package empty in config.xml.+#+# Known quirks on this firmware:+# - ADB on port 5555 is closed (connection refused) until you pair once through Wireless debugging with+# the stock adb: Developer options > Wireless debugging > Pair device with pairing code, `adb pair+# <ip:pairport> <code>`, `adb connect <ip:connectport>` (`adb mdns services` lists both ports), then+# `adb tcpip 5555`. After that tools/tv.py works on 5555 (README, Troubleshooting).+# - The Cast receiver (com.google.android.apps.mediashell) reads its factory device credentials from a+# provider hosted INSIDE the setup wizard package:+# Provider{com.google.android.tungsten.setupwraith/com.google.android.libraries.tv.setupwraith.libs.castinfo.CastInfoProvider}+# There is no separate com.google.android.tvsetup package; the com.google.android.tvsetup.* classes+# ship inside the setupwraith APK. Disabling setupwraith therefore takes the credentials out of+# scope and casting dies with "No private key, hence empty signature" (docs/TROUBLESHOOTING.md,+# "Casting fails with Untrusted device"). This is NOT limited to Google's own Chromecast hardware:+# it reproduces on the Google TV Streamer too (#361).+# - The credentials only live in the receiver PROCESS. Re-enabling setupwraith and waiting for+# "Created singleton instance of ClientAuthSigner" in logcat (about 7 s here) brings them back, but+# `am force-stop com.google.android.apps.mediashell` loses them again ("Retry loading factory+# credentials"), so the ritual has to be redone whenever the receiver is restarted.+# - The manifest android:priority does NOT work on this build. Giving the replacement launcher+# android:priority="3" on its HOME intent-filter was tried, the attribute IS in the installed APK+# (aapt2 shows android:priority=3) and the PackageManager still reports priority 0, even after a+# reboot. `cmd package set-home-activity` returns Success and does not change the dispatch either,+# and the HOME role holder is ignored. The HOME can only be taken by DISABLING setupwraith+# (package level).+# - pm hide is not an alternative: `pm hide com.google.android.tungsten.setupwraith` fails with+# "SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS".+# - Consequence for the Cast: with setupwraith disabled the receiver keeps the credentials in MEMORY+# only, so after every reboot (or every receiver restart) the Cast has to be restored by briefly+# re-enabling setupwraith and waiting for the signer:+# logcat -c+# pm enable --user 0 com.google.android.tungsten.setupwraith+# # wait ~30 s, then check logcat -d -s cast_shell for "Created singleton instance of ClientAuthSigner"+# pm disable-user --user 0 com.google.android.tungsten.setupwraith+# Do not press HOME while setupwraith is enabled: RecoveryActivity may claim it (see below).+# - If setupwraith is enabled and it wins HOME, RecoveryActivity runs as a DETACHED root task and+# the first home transition kills the system, roughly every 47 s:+# FATAL EXCEPTION IN SYSTEM PROCESS: android.display+# java.lang.IllegalArgumentException: positionChildAt:+# container=Task=20383 is not a child of container=Task=1 current parent=null+# at com.android.server.wm.WindowContainer.positionChildAt(WindowContainer.java:903)+# at com.android.server.wm.Task.moveToBack(Task.java:4768)+# at com.android.server.wm.TransitionController.tryStartCollectFromQueue+# followed by DeadSystemException in setupwraith and com.android.systemui. The way out is to+# disable the whole package, not the component:+# pm disable-user --user 0 com.google.android.tungsten.setupwraith+# (`pm disable-user com.google.android.tungsten.setupwraith/.RecoveryActivity` is refused with a+# SecurityException, same as the stock launcher.)+# - The saved Wi-Fi network belongs to the setup wizard on this device, so disabling setupwraith can+# drop the device off Wi-Fi: `dumpsys wifi | grep -o 'cname=[^ ]*'`. tools/disable.sh skips+# setupwraith when it sees that. Re-join the network from Settings > Network afterwards, and check+# again: the network then belongs to android.uid.system:1000 instead.+# If the guard skips setupwraith, re-join the Wi-Fi FIRST (so the network belongs to+# android.uid.system:1000) and re-run, or force it with FORCE_SETUPWRAITH=1. On Ethernet the risk of+# losing connectivity is nil, but the guard is about the saved network, not about the live link.+# - With launcherx disabled the YouTube button on the remote does nothing. It sends BUTTON_3+# (keycode 190). The launcher maps it itself: set app_keys to "190:com.google.android.youtube.tv"+# in config.xml (or a theme's config.json) and enable InputKeyService:+# settings put secure enabled_accessibility_services com.gathin.tvhome/.InputKeyService+# settings put secure accessibility_enabled 1+# Record the trigger with the physical remote: keys injected with `input keyevent 190` don't reach+# the accessibility service. Key Mapper (keymapperorg/KeyMapper) does the same job if you prefer it;+# the Play Store lists it as incompatible with this device, so install the -foss APK from its+# GitHub releases, then over ADB:+# pm grant io.github.sds100.keymapper android.permission.WRITE_SECURE_SETTINGS+# settings put secure enabled_accessibility_services io.github.sds100.keymapper/io.github.sds100.keymapper.system.accessibility.MyAccessibilityService+# Map trigger "Button 3" (short press) to action "Launch app > YouTube".+# - com.google.android.tvrecommendations and com.google.android.apps.education.cast2class ship+# disabled at the factory; `pm disable-user` on them fails with "Shell cannot change component+# state". Don't add them to a restore list either.+# - Disabling dreamx leaves screensaver_components pointing at it. Point it at the launcher's clock:+# settings put secure screensaver_components com.gathin.tvhome/.ClockDream+# - Animation scales already ship at 0.5x on this build.+#+# Kept on purpose: Google Assistant (com.google.android.katniss), Cast receiver+# (com.google.android.apps.mediashell), phone remote (com.google.android.tv.remote.service), Play Store /+# Play Services, Gboard, Bluetooth, com.google.android.tv.dfuservice and+# com.google.android.tv.overlay.dfuservice (remote firmware updates). The setup wizard+# (com.google.android.tungsten.setupwraith) is disabled, but the Cast credentials it hosts are restored+# with the enable/wait/disable ritual described above.++# Telemetry, feedback and ads+com.google.android.feedback+com.android.tv.feedbackconsent+com.google.android.tv.remotecontrol.logging # remote usage logging+# The next four are Privacy Sandbox / federated-learning Mainline modules: worked here, re-enable if+# the Play Store or Assistant misbehave.+com.google.android.federatedcompute+com.google.android.ondevicepersonalization.services+com.google.android.adservices.api # Privacy Sandbox ad services+com.google.android.ext.adservices.api++# Preloaded apps+com.google.android.play.games+com.google.android.videos # Google TV / Play Movies+com.google.android.marvin.talkback # re-enable if you need the screen reader++# Stock home. launcher/build-and-install.sh disables launcherx itself once the new launcher is+# installed and verified, and restore.sh re-enables it.+# com.google.android.apps.tv.launcherx+# The setup wizard must be DISABLED on this device (see the quirks above): it holds the cast+# credentials, but its RecoveryActivity otherwise claims HOME and crash-loops system_server. After+# disabling it, restore casting with the enable/wait/disable ritual.+com.google.android.tungsten.setupwraith