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(acer-ar55ar2851udpro): 28 packages, launcher on Home via stock_home_redirect, config.json and notes
starlord-9340fc86ff2cc7
diff --git a/examples/README.md b/examples/README.mdindex 65a18f468..1c58fb455 100644--- a/examples/README.md+++ b/examples/README.md@@ -5,7 +5,7 @@ on that firmware, grouped and commented. These are starting points: comment out| Folder | TV | OS | Notes ||---|---|---|---|-| `acer-ar55ar2851udpro/` | Acer AR55AR2851UDPRO 55" (SCBC R4, Realtek rtd2851m), India | Android TV 14 | Android TV variant of the Acer R4 platform on the same UKR1.260308 build as the R4G note: unlike the Google TV R4G, nothing is re-enabled at cold boot (two checked); SCBC consent agent, Android ad services, feedback, ad-click and auto-install services, recommendation rows, demo/sticker/signage/cleaner apps; YouTube, YouTube Music, FastCast and SCast off by choice; partnercustomizer kept for the Inputs button; setupwraith owns the saved Wi-Fi; Assistant, Chromecast, OTA kept; debloat only; reboot-checked |+| `acer-ar55ar2851udpro/` | Acer AR55AR2851UDPRO 55" (SCBC R4, Realtek rtd2851m), India | Android TV 14 | Android TV variant of the Acer R4 platform on the same UKR1.260308 build as the R4G note: unlike the Google TV R4G, nothing is re-enabled at cold boot (three checked); SCBC consent agent, Android ad services, feedback, ad-click and auto-install services, recommendation rows, demo/sticker/signage/cleaner apps; YouTube, YouTube Music, FastCast, SCast, Play Movies, TalkBack off by choice; partnercustomizer kept for the Inputs button; setupwraith owns the saved Wi-Fi; Assistant, Chromecast, OTA kept; set-home-activity does not stick, so tvlauncher stays and the launcher takes Home via HomeKeyService + stock_home_redirect (the #1121 boot cover works here); the YouTube key is Realtek's and cannot be remapped; config.json has the dock; reboot-checked || `aipro2k/` | AiPro2K (Expressluck, dongnae; Changhong AI PONT family) | Android TV 14 | Anoki ACR, Google ad services, retail demo and Wi-Fi Display test apps; 1 GB; setupwraith must go with launcherx (Home falls to its RecoveryActivity); CVTE/Expressluck factory packages and `com.epl.hotkey` kept || `aiwa-ai-pont-sa/` | AIWA AI PONT SA (Changhong, osaka, ISDB86AW) | Google TV 14 | Anoki ACR, ambient mode, partner auto-installs, Homwee store/help; setupwraith before launcherx; Live TV is tvcenter (the input player stays black); remote source button is KEY_G, not mapped yet; config.json puts TV ao vivo first; firmware updater kept || `amazon-fire-tv-afteu014/` | Amazon Fire TV smart TV (AFTEU014, greta, MediaTek m7322), Germany | Fire OS 7.6.8.5 / Android 9 | Amazon telemetry, ad/promo feeders, sale service, tutorials, Music/Photos/Kids/Luna/Freevee/miniTV, Alexa voice, Silk, forced OTA updater, printing; OTA service and the usual Fire OS 7 set protected; Alexa voice (vizzini) returns at every boot; Live TV, tuner, HDMI, casting kept; input switching and Live TV are Amazon-only (TUNE_INPUT, TUNE_CHANNEL); AdGuard Private DNS works; debloat only |diff --git a/examples/acer-ar55ar2851udpro/README.md b/examples/acer-ar55ar2851udpro/README.mdnew file mode 100644index 000000000..cee3f9ccc--- /dev/null+++ b/examples/acer-ar55ar2851udpro/README.md@@ -0,0 +1,72 @@+# Acer AR55AR2851UDPRO 55" (Android TV 14): debloated, with the launcher on the Home button++SCBC device `R4`, Realtek `rtd2851m`, Android TV 14 / SDK 34, build `UKR1.260308`, India. Done over network ADB+on 2026-10-24, with a screenshot after every batch, three cold boots (power cable out for 30 s) and the real+remote.++This is the Android TV variant of the platform in [`docs/devices/acer-r4g.md`](../../docs/devices/acer-r4g.md)+(the Google TV `R4_GTV`). Here the firmware does **not** turn disabled packages back on at boot, so a normal+list works.++## Connect++The set offers Wireless debugging. Pair once with the stock `adb` (Developer options > Wireless debugging >+Pair device with pairing code), then open port 5555 for `tools/tv.py`:++```bash+adb pair <tv ip>:<pairing port> <code>+adb connect <tv ip>:<connect port>+adb tcpip 5555+export TV_HOST=<tv ip>+```++On this set port 5555 stayed open across cold boots, so close it when you are done: USB debugging and Wireless+debugging off, the laptop removed from Paired devices, then `tools/adb-closed.py <tv ip>`.++## Debloat++```bash+tools/disable.sh examples/acer-ar55ar2851udpro/debloat.txt+```++28 packages, all disabled, none uninstalled. The header of [`debloat.txt`](debloat.txt) says what each group is+and what was kept on purpose.++## Launcher++`set-home-activity` does not stick here: Android drops the preference ("Result set changed, dropping preferred+activity") and Home stays on `com.google.android.tvlauncher`. The stock launcher was therefore left enabled,+and the launcher takes the Home button through `HomeKeyService` with `stock_home_redirect`+([`config.json`](config.json)). After each cold boot the Home button opened the new launcher, and the boot-time+cover from #1121 ran.++1. Build and install with the stock launcher kept:+ `STOCK_LAUNCHER=none HOME_KEY_SERVICE=1 launcher/build-and-install.sh`+ (Windows: `launcher\build-and-install.ps1 -TvHost <tv ip> -StockLauncher none -HomeKeyService`).+ The script installs and starts the launcher, then stops at its "Home resolves to tvlauncher" check before it+ turns `HomeKeyService` on. Turn it on as the script would: Settings > Accessibility > Home button, or the+ `enabled_accessibility_services` lines in the script.+2. Push the settings: `tools/theme.sh examples/acer-ar55ar2851udpro`.++[`config.json`](config.json): dock Prime Video, JioHotstar, Amazon Music, Netflix, 6 columns, the Live TV app+`com.apps.livetv` for the Inputs menu, the full network name on the Wi-Fi pill (`icon_only_buttons` with+`wifi_label_width` 320), and hold OK on a tile for Move and App info (`tile_menu`).++## Remote (RC710)++| Button | What it sends | Notes |+|---|---|---|+| Home, Back, volume, Settings, Input, mic | standard keys | All work with the launcher. Holding volume still ramps with `HomeKeyService` on |+| YouTube | keycode 2030, taken by `com.realtek.keyinterceptserver` | Opens `com.google.android.youtube.tv` by package; `app_keys` never sees it. With YouTube disabled, each press crashes that service, which Android restarts at once |+| ☰ Menu | `KEYCODE_MENU` (82) | For apps; the home screens ignore it |+| Bookmark | `KEYCODE_BOOKMARK` (174) | Nothing on this set answers it |+| TV | `KEYCODE_GUIDE` (172) | The programme guide inside Live TV only |++## Undo++```bash+tools/restore.sh examples/acer-ar55ar2851udpro/debloat.txt+tools/theme.sh --reset+```++Uninstall the launcher (`pm uninstall com.gathin.tvhome`) to give the Home button back to the stock home.diff --git a/examples/acer-ar55ar2851udpro/config.json b/examples/acer-ar55ar2851udpro/config.jsonnew file mode 100644index 000000000..71d84df4b--- /dev/null+++ b/examples/acer-ar55ar2851udpro/config.json@@ -0,0 +1,15 @@+{+ "dock_apps": [+ "com.amazon.amazonvideo.livingroom",+ "in.startv.hotstar",+ "com.amazon.music.tv",+ "com.netflix.ninja"+ ],+ "hidden_apps": ["com.apps.livetv"],+ "live_tv_package": "com.apps.livetv",+ "columns": 6,+ "stock_home_redirect": "com.google.android.tvlauncher",+ "icon_only_buttons": true,+ "wifi_label_width": 320,+ "tile_menu": true+}diff --git a/examples/acer-ar55ar2851udpro/debloat.txt b/examples/acer-ar55ar2851udpro/debloat.txtindex 0b36755c5..a8b90ce6d 100644--- a/examples/acer-ar55ar2851udpro/debloat.txt+++ b/examples/acer-ar55ar2851udpro/debloat.txt@@ -10,12 +10,20 @@## Not the same as the Acer R4G 50" in docs/devices/acer-r4g.md (MOKA R4_GTV, Google TV 14), although the# build is the same. Boot runs Acer's own com.apps.tvsettings/.ui.FallbackHome, and nothing came back:-# after two cold boots (power cable out for 30 s) all 23 packages below stayed disabled, including ten that+# after three cold boots (power cable out for 30 s) all 28 packages below stayed disabled, including ten that# the R4G firmware re-enables at every boot (play.games, feedback, gdpr, esticker, tvmanager, meeting.service,-# timeclock, audiolink, scast, fastscreen). No RecoveryActivity in logcat; Home came up on tvlauncher.+# timeclock, audiolink, scast, fastscreen). No RecoveryActivity in logcat.## setupwraith owns the saved Wi-Fi network on this set (dumpsys wifi | grep -o 'cname=[^ ]*'): leave it enabled.-# Port 5555 opened with `adb tcpip 5555` after Wireless debugging pairing stayed open across both cold boots.+# Port 5555 opened with `adb tcpip 5555` after Wireless debugging pairing stayed open across all three cold boots.+#+# The remote's YouTube button never reaches Android: com.realtek.keyinterceptserver takes it (keycode 2030) and+# starts com.google.android.youtube.tv by package, so app_keys cannot remap it. With YouTube disabled, every press+# crashes that persistent service (ActivityNotFoundException); Android restarts it at once and nothing else+# breaks. Comment out the YouTube line below if you want the button to work.+#+# New launcher: see README.md and config.json here. Home stays on tvlauncher with set-home-activity, so the+# launcher takes the Home button through HOME_KEY_SERVICE with stock_home_redirect (tvlauncher stays enabled).## Kept on purpose: com.realtek.leanbacklauncher.partnercustomizer (supplies the Inputs button on tvlauncher,# as on the Compac ATV R2), com.apps.passthrough, com.apps.smartmenu (picture menu), the key handlers@@ -26,7 +34,9 @@# com.apps.biz.mt (unclear), com.seraphic.hbbtv.app, com.apps.usbmediaplayer.## Tested on one set on 2026-10-24, in three batches with a Home screenshot after each, then a cold boot:-# Home, HDMI input, Prime Video, Assistant mic, casting, Home/Back/volume/Settings keys work.+# Home, HDMI input, Prime Video, Assistant mic, casting, Home/Back/volume/Settings keys work. Then five more+# packages (Play Movies, speed test, partner setup, basic screensaver, TalkBack) and two more+# cold boots, with the new launcher on Home. AdGuard Private DNS validates and Prime Video plays with it.# Fresh, not yet lived with for days; update it if something breaks.# SCBC / Google telemetry and feedback@@ -57,9 +67,14 @@ com.apps.wifihotspot # TV as a Wi-Fi hotspotcom.mk.tv.timeclock # WorldClockcom.apps.function.audiolink # Audio Linkcom.google.android.play.games+com.google.android.partnersetup # Google partner setup / RLZ pings+com.android.dreams.basic # basic "Colors" screensaver (Ambient/Backdrop kept)+com.google.android.marvin.talkback # TalkBack screen reader: keep it if anyone uses it# Preloaded apps and casting (personal choice: comment out any you use)com.google.android.youtube.tvcom.google.android.youtube.tvmusiccom.creative.fastscreen.tv # FastCast Miracast receiver (screen mirroring)com.apps.scast # SCast casting receiver+com.google.android.videos # Google Play Movies+com.mk.tv.networkspeed # network speed test (Firebase)