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: Anker Nebula D2426 projector (Android TV 14)
Sedir Morais00ae3a135d30
diff --git a/README.md b/README.mdindex afe18950c..8f94e9f97 100644--- a/README.md+++ b/README.md@@ -105,7 +105,7 @@ Tested lists from contributors, one folder per model in [`examples/`](examples/)AiPro2K · AIWA · Artel · Cecotec · Challenger · Compac · Dialog · EKO · FFalcon · Freebox · Insignia Fire TV ·JVC · Karbonn · Kogan · Motorola · MTC · Polytron · PRISM+ · RCA · Sankey · SANYO · SHARP · Tele System · Verizon ·Vidda · Vision ·-BYINTEK, JMGO, Portronics, Stellamore, Wanbo and XGIMI projectors+Anker Nebula, BYINTEK, JMGO, Portronics, Stellamore, Wanbo and XGIMI projectors<details><summary><strong>The full list</strong></summary>@@ -119,6 +119,7 @@ BYINTEK, JMGO, Portronics, Stellamore, Wanbo and XGIMI projectors| Amazon Fire TV Stick 4K, 1st gen 2018 (AFTMM, mantis) | Fire OS 6.7.1.1 / Android 7.1 || Amazon Fire TV Stick 4K, 2nd gen 2023 (AFTKM, karat), Brazil | Fire OS 8.1.8.5 / Android 11 || Amazon Fire TV Stick Lite, 1st gen 2020 (AFTSS, sheldon) | Fire OS 7.7.1.7 / Android 9 |+| Anker Nebula projector D2426 (D2426_CapsuleIIIPro, baekdu, SDMC/MediaTek m7632, 1.7 GB), Brazil | Android TV 14 || Artel smart TV (CVTE TP.MT5510S.PB782, cvt_mt5863_eu, SMART_TV), Uzbekistan | Android 7.0 || BenQ E55-735 (Changhong AI PONT, DVB96BQ) | Google TV 14 || BenQ E55-750 (Changhong AI PONT, DVB96BQ) | Google TV (Android 11) |diff --git a/examples/README.md b/examples/README.mdindex 82d19b3bd..0c4fa0837 100644--- a/examples/README.md+++ b/examples/README.md@@ -12,6 +12,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `amazon-fire-tv-stick-4k-2023/` | Amazon Fire TV Stick 4K, 2nd gen 2023 (AFTKM, karat), Brazil | Fire OS 8.1.8.5 / Android 11 | First Fire OS 8 list, every new package checked with `dumpsys package`: Amazon telemetry, ACR, presence sensing (`ftvspatial`), ad/recommendation feeders, Live tab and Fire TV Channels, Shopping, Music/Photos/Silk/Luna/Kids, Ambient, Alexa extras incl. smart home, calling and Alexa+ skill connections; seven protected packages noted; voice search, Prime Video, casting and mirroring, Matter casting, OTA kept; leave animation scales at 1.0 (at 0.5 the ☰ side menu opens nothing); Pi-hole via static DNS; debloat only || `amazon-fire-tv-stick-4k-max-2021/` | Amazon Fire TV Stick 4K Max, 1st gen 2021 (AFTKA, kara), Colombia | Fire OS 7.7.1.3 / Android 9 | Stick Lite list on Fire OS 7.7.1.3: Amazon telemetry, ACR, ad/recommendation feeders, Live tab, Shopping, Channels, games hub; Kids, Music, Photos off by choice; with Alexa voice kept, the Alexa extras and setup helpers come back at every boot and are left out; voice, Prime Video, Silk, casting, OTA kept; debloat only || `amazon-fire-tv-stick-lite-2020/` | Amazon Fire TV Stick Lite, 1st gen 2020 (AFTSS, sheldon) | Fire OS 7.7.1.7 / Android 9 | Same build as the Toshiba list: Amazon telemetry, ACR, ad/recommendation feeders, Live tab, Shopping, Kids, Music/Photos/Silk, whole-home audio, Alexa extras incl. `com.amazon.aca` (Alexa hints, ~44 MB; voice search still works); five protected packages noted; voice search, Prime Video, miniTV, casting, OTA kept; privacy and Featured Content autoplay toggles; debloat only |+| `anker-nebula-d2426/` | Anker Nebula projector D2426 (D2426_CapsuleIIIPro, baekdu, SDMC/MediaTek m7632, 1.7 GB), Brazil | Android TV 14 | First Nebula list: Nebula log uploader, Privacy Sandbox, Anoki Free TV channels (re-enabled by the firmware at boot, as is katniss), partner installer, store demo, stock tvlauncher + recommendations; Assistant, Ambient, Play Games, TalkBack off by choice; remote, BT pairing, HDMI and picture services kept; setupwraith kept (owns the Wi-Fi, does not claim HOME here); phone Netflix added via the App library; AdGuard Private DNS; config.json has the dock || `artel-cvte-mt5863/` | Artel smart TV (CVTE TP.MT5510S.PB782, cvt_mt5863_eu, SMART_TV), Uzbekistan | Android 7.0 | Seven preinstalled apps, TalkBack and voice services; no Developer options, ADB comes from the full CVTE factory menu; do not disable com.talents.huanclientauth; Live TV is com.cvte.tv.androidsetting/.TvSettingActivity || `benq-e55-735/` | BenQ E55-735 (Changhong AI PONT, DVB96BQ) | Google TV 14 | Homwee store/help, Anoki ACR, Google TV recommendations; wireless-debugging pairing, setupwraith, deep-standby notes || `benq-e55-750/` | BenQ E55-750 (Changhong AI PONT, DVB96BQ) | Google TV (Android 11) | Homwee store/help, Google TV recommendations and ambient mode; no ACR on this firmware; setupwraith, screensaver handover |diff --git a/examples/anker-nebula-d2426/README.md b/examples/anker-nebula-d2426/README.mdnew file mode 100644index 000000000..b60f20630--- /dev/null+++ b/examples/anker-nebula-d2426/README.md@@ -0,0 +1,121 @@+# Anker Nebula D2426 (Android TV 14): debloated, with an Apple TV style home++Model D2426 (firmware name `D2426_CapsuleIIIPro`, device `baekdu`, SDMC board, MediaTek m7632, about 1.7 GB RAM),+Android TV 14 / SDK 34, build `UKNV.260603.001`. Done over network ADB on 2026-10-22 and checked with+screenshots after every step, one reboot and the real remote.++All commands below run from the repository root. Replace the IP with the projector's address+(Settings > Network on the projector).++```bash+export TV_HOST=192.168.68.51+```++## What was changed++| | |+|---|---|+| **Disabled** (17 packages, never uninstalled) | Nebula log uploader, Google feedback, Privacy Sandbox ad services, Anoki "Free TV" channels, partner auto-installer and attribution, store demo, Ambient screensaver, Google Assistant, Play Games, TalkBack, the stock home screen and its recommendation/partner rows. The full list with reasons is in [`debloat.txt`](debloat.txt) |+| **Back after every boot** | The firmware turns `com.cltv.fast` (Free TV) and `com.google.android.katniss` (Assistant/voice) back on each boot. Nothing shows them without the stock home, so they are left that way |+| **Kept** | YouTube, Prime Video, YouTube Music, Nebula Play, Chromecast built-in, AirPin (AirPlay), all apps you installed, and everything the projector needs (HDMI, remote, Bluetooth pairing, picture, keyboard, Play Store, Play Services). The setup wizard stays: it owns the saved Wi-Fi |+| **Screensaver** | Switched from Ambient to the built-in "Colors" screensaver before Ambient was disabled |+| **Private DNS** | `dns.adguard-dns.com` (blocks many ad and tracking domains; **not** YouTube ads) |+| **Home** | `com.gathin.tvhome`, configured by [`config.json`](config.json): dock YouTube, Netflix, Disney+, Prime Video; greeting "Sedir"; the Wi-Fi pill opens NordVPN |++A backup of the state before any change (package lists, getprop, all settings, Home, display size) is in+`backup/nebula-laser-3-20261022-0140/` (not committed: it holds the serial number and device names).++## Undo everything++```bash+examples/anker-nebula-d2426/restore.sh # re-enable all 17, stock Home back, DNS and screensaver back+examples/anker-nebula-d2426/restore.sh --remove-launcher # same, and uninstall the new launcher+```++Undo the DNS alone:++```bash+tools/venv/bin/python tools/tv.py 'settings put global private_dns_mode opportunistic'+```++(`opportunistic` is Android's "Automatic". On the projector: Settings > Network & Internet > Private DNS.)++## Re-enable one app++On the projector: Settings > Apps > See all apps > show system apps > pick the app > Enable.++Or over ADB (ADB needs to be on again, see below):++```bash+tools/venv/bin/python tools/tv.py 'pm enable com.google.android.play.games'+```++To keep it enabled the next time the list is applied, put a `#` in front of its line in `debloat.txt`.++## Change the dock order or the dock apps++On the projector: hold OK on the Settings pill (top right) and choose the reorder option, or open+Launcher settings from the same menu.++Or edit `dock_apps` in [`config.json`](config.json), in the order you want from left to right, and push it:++```bash+tools/theme.sh examples/anker-nebula-d2426+```++Package names: YouTube `com.google.android.youtube.tv`, Netflix `com.netflix.mediaclient`,+Disney+ `com.disney.disneyplus`, Prime Video `com.amazon.amazonvideo.livingroom`, Globoplay `com.globo.globotv`,+Crunchyroll `com.crunchyroll.crunchyroid`, Apple TV `com.apple.atve.androidtv.appletv`, Plex `com.plexapp.android`,+Kodi `org.xbmc.kodi`, VLC `org.videolan.vlc`. The full list: `tools/venv/bin/python tools/tv.py 'pm list packages'`.++Netflix on this projector is the phone app, which has no TV entry, so the launcher only shows it after it was+added from **App library** (the pill under the last row). If it disappears from the dock (after a reset of the+launcher's data, for example), add it there again.++Pushing `config.json` also clears layout choices made on the projector in Launcher settings.++## Change the wallpaper++Put a 1920×1080 JPEG named `wallpaper.jpg` next to `config.json` in this folder and push the folder:++```bash+tools/theme.sh examples/anker-nebula-d2426+```++Delete `wallpaper.jpg` and push again for the plain black background. `themes/` has ready-made looks+(`tools/theme.sh themes/aurora`), and `tools/theme.sh --reset` goes back to the launcher's built-in defaults+(which drops this dock and greeting).++## Rebuild and reinstall the launcher++```bash+examples/anker-nebula-d2426/build-and-install.sh+```++It builds the APK, installs it, applies `debloat.txt` (which disables the stock home only once the new one can+take over), makes the new launcher Home and pushes `config.json`.++## Notes from this projector++- The Inputs pill lists HDMI 1 (the only input); it opens in Google's passthrough player. Screenshots of HDMI+ come back empty, which is the projector, not a fault.+- The Wi-Fi pill shows a red "VPN desligada" badge while NordVPN is off. The Portuguese badge is long, so the+ network name is left out until the VPN is on (the green "VPN" badge is shorter). Hold the pill for Wi-Fi settings.+- All remote buttons (Home, Back, Settings, app buttons, mic, focus) were tested on the real remote after the+ stock home was disabled and still work.++## ADB++ADB was left on at the end of the setup, by choice. Port 5555 is plaintext, so close it when you no longer need it:+Settings > Device Preferences > Developer options > revoke USB debugging authorisations, switch off Wireless+debugging and USB debugging, restart, then check from the repo:++```bash+tools/venv/bin/python tools/adb-closed.py 192.168.68.51+```++Only "Connection refused" (exit 0) proves the port is closed; `nc` on macOS can be blocked by Local Network+privacy and its "No route to host" proves nothing.++To use any of the commands above later, turn USB debugging (and Wireless debugging) back on, accept the+"Allow USB debugging?" prompt, and if port 5555 is closed, pair as described in the main README.diff --git a/examples/anker-nebula-d2426/build-and-install.sh b/examples/anker-nebula-d2426/build-and-install.shnew file mode 100755index 000000000..2642cb747--- /dev/null+++ b/examples/anker-nebula-d2426/build-and-install.sh@@ -0,0 +1,43 @@+#!/usr/bin/env bash+# Build the Apple TV style launcher, install it on the Nebula D2426, make it Home, apply the debloat list+# (which disables the stock launcher only once the new one can take Home) and push this projector's dock config.+#+# TV_HOST=<projector ip> examples/anker-nebula-d2426/build-and-install.sh+#+# Needs: ADB on (Developer options > USB debugging, and network/Wireless debugging), JDK 17 or newer, the+# Android SDK (Android Studio's default location is found), and tools/venv (see the main README).+set -euo pipefail+: "${TV_HOST:?set TV_HOST to the projector IP, e.g. TV_HOST=192.168.68.51 $0}"+HERE="$(cd "$(dirname "$0")" && pwd)"+ROOT="$(cd "$HERE/../.." && pwd)"+export TV_HOST++# launcher/build-and-install.sh looks for a JDK 17; any 17+ works, so fall back to the newest one here.+if [ -z "${JAVA_HOME:-}" ] && [ -x /usr/libexec/java_home ]; then+ JAVA_HOME="$(/usr/libexec/java_home -v 17+ 2>/dev/null || true)"+ [ -n "$JAVA_HOME" ] && export JAVA_HOME+fi++# STOCK_LAUNCHER=none: the stock launcher is disabled by the debloat list below instead, so that+# restore.sh records it and turns it back on.+# While the stock launcher is still enabled it outranks the new one, so that script reports that Home did not+# switch; that is expected on a first install. A failed build or install is not, so check the package is there.+STOCK_LAUNCHER=none "$ROOT/launcher/build-and-install.sh" || true+case "$("$ROOT/tools/venv/bin/python" -I "$ROOT/tools/tv.py" 'pm path com.gathin.tvhome')" in+ *package:*) ;;+ *) echo "ERROR: the launcher is not installed; nothing was disabled." >&2; exit 1 ;;+esac++"$ROOT/tools/disable.sh" "$HERE/debloat.txt"+"$ROOT/tools/venv/bin/python" -I "$ROOT/tools/tv.py" \+ "cmd package set-home-activity --user 0 com.gathin.tvhome/.MainActivity"+"$ROOT/tools/theme.sh" "$HERE"++HOME_NOW="$("$ROOT/tools/venv/bin/python" -I "$ROOT/tools/tv.py" \+ 'cmd package resolve-activity --brief -a android.intent.action.MAIN -c android.intent.category.HOME' | tail -n 1 | tr -d '\r')"+echo "Home resolves to: $HOME_NOW"+case "$HOME_NOW" in+ com.gathin.tvhome/*) echo "Done. Press Home on the remote." ;;+ *) echo "ERROR: Home is not the new launcher; run examples/anker-nebula-d2426/restore.sh to undo." >&2; exit 1 ;;+esac+echo "Netflix here is the phone app: add it once from Home > App library (bottom pill) so the dock can show it."diff --git a/examples/anker-nebula-d2426/config.json b/examples/anker-nebula-d2426/config.jsonnew file mode 100644index 000000000..8ed9d79fd--- /dev/null+++ b/examples/anker-nebula-d2426/config.json@@ -0,0 +1,14 @@+{+ "dock_apps": [+ "com.google.android.youtube.tv",+ "com.netflix.mediaclient",+ "com.disney.disneyplus",+ "com.amazon.amazonvideo.livingroom"+ ],+ "live_tv_package": "",+ "app_library": true,+ "vpn_app": "com.nordvpn.android",+ "greeting_name": "Sedir",+ "columns": 4,+ "rows_below_dock": 0+}diff --git a/examples/anker-nebula-d2426/debloat.txt b/examples/anker-nebula-d2426/debloat.txtnew file mode 100644index 000000000..b5c4cb3de--- /dev/null+++ b/examples/anker-nebula-d2426/debloat.txt@@ -0,0 +1,60 @@+# Anker Nebula projector, model D2426 (build name D2426_CapsuleIIIPro, device baekdu, SDMC board,+# MediaTek m7632, ~1.7 GB RAM), Android TV 14 (SDK 34), build UKNV.260603.001.+#+# Apply: TV_HOST=<projector ip> tools/disable.sh examples/anker-nebula-d2426/debloat.txt+# Undo: TV_HOST=<projector ip> tools/restore.sh examples/anker-nebula-d2426/debloat.txt com.google.android.tvlauncher+# Everything is DISABLED for user 0, never uninstalled. Comment out any line you want to keep.+#+# Re-enabled by the firmware at every boot (checked with one reboot on 2026-10-22): com.cltv.fast and+# com.google.android.katniss come back as enabled=1. Disabling them again only lasts until the next boot.+# With the stock launcher gone, the Free TV rows have nowhere to show anyway.+#+# Stock launcher: com.google.android.tvlauncher (classic Android TV home, HOME priority 2). The setup wizard+# (setupwraith) does NOT claim HOME on this build, but it owns the Wi-Fi network saved during first setup,+# so it is deliberately not in this list. Wireless debugging is on from the factory and port 5555 was open.+# Remote global keys go to com.mediatek.tv.service, com.zhixin.nebulasmart, com.sdmc.btservice and+# com.sdmc.projector (dumpsys window policy), none to the stock launcher.+# Launcher config: config.json in this folder (tools/theme.sh examples/anker-nebula-d2426). The installed Netflix+# is the phone app (com.netflix.mediaclient, no TV banner), so it was added to Home through the App library.+# HDMI 1 opens in com.google.android.tv.inputplayer from the Inputs menu; no tuner, so live_tv_package is "".+#+# DO NOT DISABLE on this model (projector hardware, inputs, remote):+# com.mediatek.tvinput # HDMI input service+# com.mediatek.tv.service # TV service, global remote keys, Netflix key+# com.google.android.tv.inputplayer # HDMI passthrough player+# com.oceanwing.receiver # remote control, Nebula IME, accessibility, screen control+# com.zhixin.nebulasmart # remote events (GLOBAL_BUTTON), accessibility service+# com.sdmc.btservice # Bluetooth remote auto-pairing, speaker+# com.sdmc.projector # projector picture settings, brightness adaptation keys+# com.sdmc.service # SDMC service manager, picture, USB OTA+# com.oceanwing.nebulalinker # device info, custom shutdown, eMMC, firmware update dispatch+# com.zhixin.apphelper # McuHelper: package install helper, HTML viewer (purpose partly unclear)+# com.google.android.tungsten.setupwraith # owns the Wi-Fi saved during setup+# Factory tools left alone and never opened: com.nebula.factorytest, mediatek.factorymenu.ui, com.sdmc.keyburn++# --- Telemetry and feedback ---+com.zhixin.logservice.nebula # Nebula log collector/uploader (UPLOAD_LOG, runs at boot)+com.google.android.feedback # Google feedback+com.android.tv.feedbackconsent # feedback consent prompt+com.android.adservices.api # Privacy Sandbox ad services+com.android.federatedcompute.services # federated learning+com.android.ondevicepersonalization.services # on-device ad personalisation++# --- Content and ad services ---+com.cltv.fast # Anoki/iWedia "Free TV" FAST channels (ad-supported TV input, ACR)+android.autoinstalls.config.sdmc # Play auto-install of partner apps+com.google.android.partnersetup # partner-app attribution+fusion.android.tv.demo # RetailDisplay store demo++# --- Off by owner's choice (comment out to keep) ---+# Set the screensaver to com.android.dreams.basic/.Colors before disabling backdrop:+# settings put secure screensaver_components com.android.dreams.basic/.Colors+com.google.android.backdrop # Ambient Mode screensaver+com.google.android.katniss # Google Assistant / voice search (mic button stops working)+com.google.android.play.games # Google Play Games+com.google.android.marvin.talkback # TalkBack screen reader++# --- Stock home screen (only after the new launcher is installed: launcher/build-and-install.sh) ---+com.google.android.tvlauncher # stock Android TV home: sponsored banner, "Free TV" and recommendation rows+com.google.android.tvrecommendations # recommendation rows for the stock home+com.mediatek.android.leanbacklauncher.partnercustomizer # partner rows/config for the stock homediff --git a/examples/anker-nebula-d2426/restore.sh b/examples/anker-nebula-d2426/restore.shnew file mode 100755index 000000000..0e597a741--- /dev/null+++ b/examples/anker-nebula-d2426/restore.sh@@ -0,0 +1,33 @@+#!/usr/bin/env bash+# Put the Nebula D2426 back the way it was before cleanyourtv (needs ADB on, like the setup did).+#+# TV_HOST=<projector ip> examples/anker-nebula-d2426/restore.sh # undo everything, keep the new launcher installed+# TV_HOST=<projector ip> examples/anker-nebula-d2426/restore.sh --remove-launcher # ...and uninstall it too+#+# 1. Re-enables every package in debloat.txt (tools/restore.sh replays the state recorded before the first+# disable, so anything that was already off stays off) and hands Home back to the stock launcher.+# 2. Puts Private DNS back to the Android default (it was unset before; AdGuard was added).+# 3. Puts the Ambient screensaver back (it was com.google.android.backdrop/.Backdrop).+set -euo pipefail+: "${TV_HOST:?set TV_HOST to the projector IP, e.g. TV_HOST=192.168.68.51 $0}"+HERE="$(cd "$(dirname "$0")" && pwd)"+ROOT="$(cd "$HERE/../.." && pwd)"+PY="$ROOT/tools/venv/bin/python"+[ -x "$PY" ] || { echo "run: python3 -m venv tools/venv && tools/venv/bin/pip install -r tools/requirements.txt" >&2; exit 1; }+tv() { "$PY" -I "$ROOT/tools/tv.py" "$@"; }++"$ROOT/tools/restore.sh" "$HERE/debloat.txt" com.google.android.tvlauncher++# One command per shell call: chained pm/settings commands can stop silently after the first.+tv "settings delete global private_dns_mode"+tv "settings delete global private_dns_specifier"+tv "settings put secure screensaver_components com.google.android.backdrop/.Backdrop"++if [ "${1:-}" = "--remove-launcher" ]; then+ tv "pm uninstall com.gathin.tvhome"+fi++echo "Disabled packages now:"+tv "pm list packages -d"+echo "Home resolves to:"+tv "cmd package resolve-activity --brief -a android.intent.action.MAIN -c android.intent.category.HOME" | tail -n 1