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
docs: Acer R4G note, the firmware turns setupwraith back on at every cold boot (#1106)
Gathin2333fe65ee0025
diff --git a/PROMPT.md b/PROMPT.mdindex c95601eb5..7abe413a3 100644--- a/PROMPT.md+++ b/PROMPT.md@@ -94,7 +94,10 @@ Debloatit and you cannot tell which.- After the last batch, reboot once and compare `pm list packages -d` with what you disabled: somefirmware re-enables packages at every boot from its own list (TCL Android 9 does this for its user- center). Note those in the list header instead of disabling them again after each boot.+ center). Note those in the list header instead of disabling them again after each boot. If+ setupwraith or the stock launcher came back and Home is black, check `logcat | grep+ RecoveryActivity` and re-enable the stock launcher before anything else+ (`docs/devices/acer-r4g.md`).- Offer me ad-blocking DNS as an optional extra: on Android 9 and newer, Private DNS set to anad-blocking resolver (`settings put global private_dns_specifier dns.adguard-dns.com`, then`settings put global private_dns_mode hostname`). Tell me it doesn't block YouTube ads, check an appdiff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.mdindex 84a845644..66e124b7b 100644--- a/docs/TROUBLESHOOTING.md+++ b/docs/TROUBLESHOOTING.md@@ -282,6 +282,10 @@ Things that bit us or contributors, so they don't bite you. Commands use `tools/- **A reboot on setupwraith's recovery screen factory-reset the TV** (Xiaomi MiTV-MOSR4). Disablesetupwraith before launcherx. If `mFocusedApp` shows `.RecoveryActivity`, re-enable launcherxfirst and do not reboot. [Notes](devices/xiaomi-mitv-mosr4.md).+- **Home worked for days, then went black after a power cut** (Acer R4G and Panasonic 4KTV-3MUP,+ MOKA `R4_GTV`, Google TV 14): the firmware re-enables setupwraith at every cold boot and its+ `.RecoveryActivity` takes Home. `logcat | grep RecoveryActivity` shows it starting several times a+ second. Re-enable launcherx as above. [Notes](devices/acer-r4g.md).- **Black screen at every boot after the launcher change, LED on, remote dead** (Vision2024VISION43STV, CVTE, Android 13: [its list](../examples/vision-2024vision43stv/debloat.txt) has thedetails). With file-based encryption (`getprop ro.crypto.type` says `file`) Android starts Home beforediff --git a/docs/devices/acer-r4g.md b/docs/devices/acer-r4g.mdnew file mode 100644index 000000000..ce68e5518--- /dev/null+++ b/docs/devices/acer-r4g.md@@ -0,0 +1,100 @@+# Acer R4G 50" (MOKA `R4_GTV`, Google TV 14): the firmware turns packages back on at every boot++Owner report from #1106, India. Four days of use without a reboot, then a power cut. This is a note,+not a list: on this firmware a disable-only list can't keep the stock Home away, so there is no+`examples/` folder for it.++| Field | Observed value |+|---|---|+| Retail model | Acer R4G 50" |+| Manufacturer / device | MOKA / `R4_GTV` |+| Board | Realtek `rtd2851m`, 2 GB RAM, 32-bit ARM |+| Android | Google TV 14 |+| Build | `UKR1.260308`, security patch `2026-04-05` |+| Fingerprint | `ACER/ACER_NFF/R4_GTV:14/UKR1.260308/5597:user/release-keys` |++The Panasonic 4KTV-3MUP in #1116 is the same MOKA `R4_GTV` platform on the same `UKR1.260308` build+and shows the same behaviour.++## What happens++The owner disabled 31 packages in small batches, then disabled `com.google.android.apps.tv.launcherx`+and `com.google.android.tungsten.setupwraith` so a new launcher could keep Home. It worked until the+first cold boot. After that Home was black while volume, HDMI and the app keys still worked, and+logcat showed setupwraith's `.RecoveryActivity` being started as HOME every ~130 ms:++```+I/ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] ... cmp=com.google.android.tungsten.setupwraith/.RecoveryActivity (has extras)}+```++## Why++Acer/Realtek's `com.android.tv.settings` is modified. On every boot its `.system.FallbackHome` runs+`SetPmodServiceJob`, which calls `disableOrEnableApk(1)` and re-enables every package on a hard-coded+list of 60, unless a factory `P_MODE` flag is set (that needs root). setupwraith is on the list. Once+it is back, its `.RecoveryActivity` (HOME priority 1) outranks any third-party launcher (priority 0)+and loops trying to bring back the disabled launcherx. Standby and wake do not run the job; only a+cold boot does.++What the shell cannot do here: `pm hide` needs `MANAGE_USERS`, and disabling only `.RecoveryActivity`+is refused (`Shell cannot change component state`).++## What that means for a debloat++- **Keep `launcherx` and `setupwraith` enabled on this TV.** A new launcher can still take the Home+ button with `HOME_KEY_SERVICE=1` and `stock_home_redirect=com.google.android.apps.tv.launcherx`,+ which is how the Panasonic in #1116 runs it (that issue tracks a cold-boot fix for the redirect).+- These 20 are on the firmware's list, so disabling them only lasts until the next cold boot:++ ```+ com.google.android.tungsten.setupwraith+ com.google.android.katniss+ com.google.android.apps.tv.dreamx+ com.google.android.videos+ com.google.android.play.games+ com.google.android.feedback+ com.apps.ota+ com.apps.authota+ com.realsil.ota+ com.google.android.tv.dfuservice+ com.apps.biz.mt+ com.mk.tv.meeting.service+ com.apps.function.audiolink+ com.mk.tv.timeclock+ com.apps.tvmanager+ com.apps.esticker+ com.apps.esticker3+ com.apps.function.gdpr+ com.apps.scast+ com.creative.fastscreen.tv+ ```++- These 11 stayed disabled across cold boots (`launcherx` among them, which is what made Home black+ once setupwraith came back):++ ```+ android.autoinstalls.config.scbc.device+ com.alphainventor.filemanager+ com.android.tv.feedbackconsent+ com.apps.mk.wd+ com.apps.wifihotspot+ com.google.android.apps.tv.launcherx+ com.jio.media.stb.ondemand+ com.mk.tv.systemserver+ com.mxtech.videoplayer.television+ com.realtek.leanbacklauncher.partnercustomizer+ com.yupptv.scope.tvapp+ ```++The owner went further than this project's disable-only rule to keep their own launcher as Home.+Those steps are not documented here.++## If Home is already black after a reboot++Check that it is this: `tools/tv.py 'logcat -d | grep RecoveryActivity'`. Then re-enable the stock+launcher right away and do not reboot while `.RecoveryActivity` has the screen (a reboot there+factory-reset a Xiaomi MiTV-MOSR4, see [TROUBLESHOOTING](../TROUBLESHOOTING.md)):++```sh+tools/tv.py 'pm enable --user 0 com.google.android.apps.tv.launcherx'+```diff --git a/examples/README.md b/examples/README.mdindex 63e3542b5..0c6085b4f 100644--- a/examples/README.md+++ b/examples/README.md@@ -275,6 +275,7 @@ Notes for models that have no tested list yet live in [`docs/devices/`](../docs/- [JMGO G9S](../docs/devices/jmgo-g9s.md) (China, `m7642_JmGO_H7A0`, MediaTek m7642, Android TV 9 `1.1.52`): one-session seven-package set, the stock launcher `com.jmgo.launcher` deliberately left out because `com.jmgo.tv` (the HDMI input app) also answers HOME, and the `ro.adb.secure=0` / 5555 shutdown notes; no several-day list yet.- [Toshiba 55Z500QF (China, Hisense firmware)](../docs/devices/toshiba-55z500qf-cn.md) (`T963D4`, Amlogic `t5m`, Android 11 `RD2A.211001.002`, `07.02.70`, no GMS): no Developer options entry (owner opened it from a sideloaded helper APK), stock JuUI Home at `priority=50` handed over only when disabled as a package, `com.meetingroom` came back after both recorded reboots, the boot-source setting stopped Live TV taking the front; owner-reported removal history only, no tested list.- [Hi VHIX-43F169MSY](../docs/devices/hi-vhix-43f169msy.md), Yandex TV, CVTE `TP.SK506S.PB802` / `m5621`, Android 9: two-day observation, stock/replacement Home and working CVTE/Yandex settings component, Yandex IO service dependency, disabled-package history and low-memory follow-up; no several-day debloat list or signal/CEC verification.+- [Acer R4G 50"](../docs/devices/acer-r4g.md) (MOKA `R4_GTV`, Realtek `rtd2851m`, Google TV 14 `UKR1.260308`, India): the firmware's `FallbackHome` re-enables a fixed list of 60 packages at every cold boot, setupwraith among them, so its `.RecoveryActivity` takes Home back from a new launcher; which packages come back, which stay disabled, and the `logcat` check; no list, since disable-only can't keep the stock Home away here.To add your TV, see [CONTRIBUTING.md](../CONTRIBUTING.md). The quickest way to get a list is torun the prompt in [PROMPT.md](../PROMPT.md) and copy the packages your assistant disabled.