Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

examples: add Anker Nebula Mars 3 Air projector D2325 (taihang, MediaTek m7332), Google TV 14

Tiago Aryan559fdb788619
diff --git a/README.md b/README.md
index 43ee83405..e88fafbb3 100644
--- a/README.md
+++ b/README.md
@@ -137,6 +137,7 @@ Anker Nebula, BYINTEK, Epson, Formovie, Gadnic, JMGO, Magcubic, Portronics, Stel
| Amazon Fire TV Stick Lite, 1st gen 2020 (AFTSS, sheldon) | Fire OS 7.7.1.7 / Android 9 |
| Anker Nebula Cosmos projector D2140 (D2140-Cosmos, SDMC/Amlogic, 2 GB), Vietnam | Android TV 9 |
| Anker Nebula projector D2426 (D2426_CapsuleIIIPro, baekdu, SDMC/MediaTek m7632, 1.7 GB), Brazil | Android TV 14 |
+| Anker Nebula Mars 3 Air projector D2325 (Nebula_Mars_2_V2, taihang, MediaTek m7332), Portugal | Google 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.md
index e772cd3d1..fef5b0fca 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -16,6 +16,7 @@ on that firmware, grouped and commented. These are starting points: comment out
| `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-d2140/` | Anker Nebula Cosmos projector D2140 (D2140-Cosmos, SDMC/Amlogic, 2 GB), Vietnam | Android TV 9 | First Amlogic Nebula list: Google feedback/bug report, partner auto-installs and attribution, recommendation services, stock tvlauncher (~190 MB RAM); Ambient, TalkBack + TTS, calendar/contacts sync and the Nebula factory test off by choice; keystone, remote global keys (`com.sdmc.GlobalKey`), BT pairing/speaker, droidlogic HDMI inputs, Nebula Connect and OTA kept; /data ships 90% full; not Netflix certified |
| `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 |
+| `anker-nebula-mars-3-air/` | Anker Nebula Mars 3 Air projector D2325 (Nebula_Mars_2_V2, taihang, MediaTek m7332), Portugal | Google TV 14 | First Mars 3 Air list: Google telemetry/ad services and partner attribution, both retail demos, AirPlay receiver, Spotify, Max, Google TV movies off by choice; setupwraith must go (Google TV 14 resolves Home to its RecoveryActivity while it is enabled) with launcherx + partner rows; Assistant re-enabled by the firmware at every boot and kept (mic button), Ambient re-enabled on request, the gear button is GlobalKeyManager-mapped to launcherx by a static overlay no shell command can disable, so Settings is the launcher's gear menu; key-filtering services break volume hold-repeat; phone casting still worked after setupwraith went off (on other units it fails with "Untrusted device", see docs/TROUBLESHOOTING.md); projector picture/focus/remote/BT/HDMI/USB/Dolby services kept |
| `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-mars-3-air/README.md b/examples/anker-nebula-mars-3-air/README.md
new file mode 100644
index 000000000..5577e1c17
--- /dev/null
+++ b/examples/anker-nebula-mars-3-air/README.md
@@ -0,0 +1,109 @@
+# Anker Nebula Mars 3 Air (Google TV 14): debloated, with an Apple TV style home
+
+Model D2325 (firmware name `Nebula_Mars_2_V2`, device `taihang`, ANKER board, MediaTek m7332),
+Google TV 14 / Android 14, SDK 34, build `UKNV.260210.001`. Done over network ADB on 2026-10-22
+and 2026-10-23, with a screenshot after every step, one reboot in between and the real remote.
+
+All commands below run from the repository root. Replace `<projector ip>` with the projector's
+address (Settings > Network on the projector).
+
+## What was changed
+
+| | |
+|---|---|
+| **Disabled** (15 packages, never uninstalled) | Google feedback and consent, Privacy Sandbox ad services, federated learning, on-device personalisation, partner attribution, both retail-demo apps, the AirPlay receiver, Spotify, Max, the Google TV movies app, the setup wizard, the stock Google TV home and its partner rows. The full list with reasons is in [`debloat.txt`](debloat.txt) |
+| **Back after every boot** | The firmware turns `com.google.android.katniss` (Assistant) back on at each boot. The owner keeps it on, so the mic button works; `tools/check.py --fix` re-disables it if you prefer |
+| **Kept** | Chromecast built-in, Prime Video, YouTube + YouTube Music, Play Games, Nebula Play, Nebula Life, Netflix (see quirks), Google's Ambient Mode screensaver, and everything the projector needs: focus / keystone / battery settings, remote, Bluetooth pairing, HDMI inputs, USB media player, Dolby audio, keyboard, Play Store, firmware-update UI |
+| **Screensaver** | Google Ambient Mode: disabled at first with the screensaver switched to the built-in "Colors", then re-enabled on request and made the active screensaver again |
+| **Home** | `com.gathin.tvhome`, configured by [`config.json`](config.json): six-column dock (YouTube, Twitch, Netflix, Prime Video, Vodafone TV, VLC), the app library and the gear menu |
+
+## The quirks that cost the most time
+
+1. **Google TV 14 gives Home to the setup wizard.** `cmd package set-home-activity` prints
+ `Success`, but while setupwraith is enabled Home still resolves to
+ `setupwraith/.RecoveryActivity` and the new launcher never comes up (the same behaviour as
+ [xiaomi-tv-a-pro-2026](../xiaomi-tv-a-pro-2026/)). The whole setup-wizard package has to go;
+ it is only used for first-time setup. Before disabling it we checked what it owns: on this unit
+ it held one old hidden Wi-Fi network that was no longer connected — the network in use belongs
+ to `android.uid.system` and kept working after the disable. Re-enable it (restore.sh does)
+ before a factory reset. Phone casting kept working here too. On other Google TV units the Cast receiver
+ loses its credentials with setupwraith gone and phone casting fails with "Untrusted device"
+ ([docs/TROUBLESHOOTING.md](../../docs/TROUBLESHOOTING.md)) — re-enable setupwraith if your
+ phone refuses to cast.
+2. **The firmware re-enables Assistant at every boot.** `com.google.android.katniss` comes back
+ enabled after each reboot, and its LED service with it (the same behaviour as the
+ [D2426 Capsule](../anker-nebula-d2426/) list). The owner keeps it on so the mic button works.
+3. **The remote's gear button cannot be revived.** It sends Linux KEY_MENU, the vendor keylayout
+ maps it to KEYCODE_NOTIFICATION (83), and Android's GlobalKeyManager consumes it for the stock
+ launcherx before any app or accessibility service can see it (`dumpsys window policy`,
+ `mKeyMapping`). The mapping comes from the static overlay
+ `com.mediatek.android.tv.globalkeyoverlay` (`Nebula_GlobalKeyHandlerOverlay_Taihang.apk`), and
+ static overlays ignore package state: `cmd overlay disable` throws a SecurityException, and even
+ `pm disable-user` plus a reboot leaves it applied. Leave the overlay alone; Settings is the gear
+ pill in the launcher's top bar instead (`top_menu` in [config.json](config.json)).
+4. **The Netflix button is Netflix-only.** Its key is consumed by the same global-key layer
+ (`com.mediatek.tv.service`'s NetflixKeyReceiver) and never reaches an app, so no remap is
+ possible without root. Netflix stays ENABLED so the button works — it sits in the launcher's
+ dock as a tile. Disabling Netflix kills the button; `pm enable --user 0 com.netflix.ninja`
+ brings it back.
+5. **Keep the launcher's key services off** (`key_filter` false, no `INPUT_KEY_SERVICE` /
+ `HOME_KEY_SERVICE` build flags): on this firmware any bound key-filtering service turns ramping
+ volume into one step per press, and the services cannot see the remote's special buttons anyway
+ (quirks 3 and 4).
+
+## Undo everything
+
+```bash
+TV_HOST=<projector ip> tools/restore.sh examples/anker-nebula-mars-3-air/debloat.txt com.google.android.apps.tv.launcherx
+```
+
+That re-enables every package disabled here and hands Home back to the stock Google TV home.
+ADB has to be on again first — see [ADB](#adb).
+
+## Re-enable one app
+
+On the projector: Settings > Apps > See all apps > show system apps > pick the app > Enable.
+
+Or over ADB:
+
+```bash
+tools/venv/bin/python tools/tv.py 'pm enable --user 0 com.spotify.music'
+```
+
+To keep it enabled the next time the list is applied, put a `#` in front of its line in
+[`debloat.txt`](debloat.txt).
+
+## The dock
+
+[`config.json`](config.json) pins the dock (six apps, six columns) and turns on the app library
+and the gear menu (`top_menu`). Push it with:
+
+```bash
+tools/theme.sh examples/anker-nebula-mars-3-air
+```
+
+Vodafone TV is an app this owner installed; a dock app that is not installed is simply
+skipped, so trim `dock_apps` to your own apps. Pushing `config.json` also clears layout choices
+made on the projector in Launcher settings.
+
+## Notes from this projector
+
+- The Inputs menu lists HDMI 1 and HDMI 2, opening in Google's passthrough player. Screenshots of
+ HDMI come back empty, which is the projector, not a fault.
+- No tuner, so `live_tv_package` stays empty.
+- All remote buttons (Home, Back, mic, app buttons, focus) were tested on the real remote after the
+ stock home was disabled. The gear button is the one exception — quirk 3.
+
+## 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 <projector ip>
+```
+
+Only "Connection refused" (exit 0) proves the port is closed. To use any command 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-mars-3-air/config.json b/examples/anker-nebula-mars-3-air/config.json
new file mode 100644
index 000000000..c27b64b92
--- /dev/null
+++ b/examples/anker-nebula-mars-3-air/config.json
@@ -0,0 +1,15 @@
+{
+ "dock_apps": [
+ "com.google.android.youtube.tv",
+ "tv.twitch.android.app",
+ "com.netflix.ninja",
+ "com.amazon.amazonvideo.livingroom",
+ "com.vodafone.vtv.atv.pt",
+ "org.videolan.vlc"
+ ],
+ "live_tv_package": "",
+ "app_library": true,
+ "hidden_apps": [],
+ "top_menu": true,
+ "columns": 6
+}
diff --git a/examples/anker-nebula-mars-3-air/debloat.txt b/examples/anker-nebula-mars-3-air/debloat.txt
new file mode 100644
index 000000000..4e0e9d9b9
--- /dev/null
+++ b/examples/anker-nebula-mars-3-air/debloat.txt
@@ -0,0 +1,94 @@
+# Anker Nebula Mars 3 Air projector, model D2325 (build name Nebula_Mars_2_V2, device taihang,
+# ANKER board, MediaTek m7332), Google TV 14 / Android 14 (SDK 34), build UKNV.260210.001.
+# No tuner: live_tv_package stays "" and the Inputs menu lists HDMI 1 / HDMI 2 only.
+#
+# Apply: TV_HOST=<projector ip> tools/disable.sh examples/anker-nebula-mars-3-air/debloat.txt
+# Undo: TV_HOST=<projector ip> tools/restore.sh examples/anker-nebula-mars-3-air/debloat.txt com.google.android.apps.tv.launcherx
+# Everything is DISABLED for user 0, never uninstalled. Comment out any line you want to keep.
+#
+# Google TV 14 Home quirk (the important one): while the setup wizard (setupwraith) is enabled,
+# cmd package set-home-activity prints Success but Home still resolves to setupwraith/.RecoveryActivity,
+# so the new launcher never comes up (the same behaviour as xiaomi-tv-a-pro-2026). Disable it before
+# build-and-install.sh disables the stock home; the wizard is only used for first-time setup, and
+# restore.sh brings it back. Re-enable it before a factory reset. Unlike the D2426 Capsule
+# (anker-nebula-d2426, where setupwraith owns the Wi-Fi but never claims Home), here it owned only
+# one old hidden network that was no longer connected; the network in use belongs to android.uid.system
+# and kept working after the disable, verified live before proceeding. Phone casting kept working too.
+# On other Google TV units the Cast receiver loses its credentials with setupwraith gone and phone
+# casting fails with "Untrusted device" (docs/TROUBLESHOOTING.md) - re-enable setupwraith if your phone
+# refuses to cast.
+#
+# Re-enabled by the firmware at every boot (checked with one reboot on 2026-10-22):
+# com.google.android.katniss (Assistant) comes back enabled, the same behaviour as anker-nebula-d2426.
+# This owner keeps it on, so the mic button works and nobody re-disables it after each boot;
+# tools/check.py --fix <this file> re-disables what came back if you prefer.
+#
+# Already disabled at the factory: com.mediatek.wwtv.tvcenter, com.google.android.marvin.talkback.
+#
+# Remote buttons on this firmware (dumpsys window policy, mKeyMapping): the gear button's
+# KEYCODE_NOTIFICATION (83) is consumed by GlobalKeyManager for the stock launcherx, and the Netflix
+# button's KEYCODE_BUTTON_4 by com.mediatek.tv.service's NetflixKeyReceiver - both mapped by the
+# static overlay com.mediatek.android.tv.globalkeyoverlay, which no shell command can turn off
+# (cmd overlay disable throws a SecurityException, and disabling the package changes nothing: static
+# overlays ignore package state). Neither key ever reaches an app, so com.netflix.ninja stays ENABLED
+# for the Netflix button (it is in the launcher's dock instead), and Settings is the gear pill in
+# the launcher's top bar (top_menu in the config.json here). Keep the launcher's key-filtering
+# services off (key_filter false, no INPUT_KEY_SERVICE / HOME_KEY_SERVICE build flags): on this
+# firmware any bound key service turns ramping volume into one step per press.
+#
+# DO NOT DISABLE on this model (projector hardware, inputs, remote):
+# com.mediatek.tvinput # HDMI input service
+# com.mediatek.tv.service # TV service, global keys, Netflix key receiver
+# com.google.android.tv.inputplayer # HDMI passthrough player
+# com.mediatek.tv.inputplayeroverlay # HDMI overlay
+# com.oceanwing.receiver # remote control, Nebula IME, accessibility, screen control
+# com.zhixin.nebulasmart # remote events, accessibility service
+# com.zhixin.remoteautopair # Bluetooth remote auto-pairing
+# com.oceanwing.nebulalinker # device info, custom shutdown, firmware update dispatch
+# com.zhixin.apphelper # package install helper, HTML viewer
+# com.zhixin.projector.settings # picture / focus / keystone / battery / update UI
+# com.zhixin.nebulasetupwizard # Nebula first-run wizard (not Google's setupwraith)
+# com.mediatek.wwtv.mediaplayer # USB media player
+# com.mediatek.wwtv.webview # webview the settings apps use
+# com.dolby.android.audio.service # Dolby audio processing
+# com.google.android.inputmethod.latin # the on-screen keyboard
+# com.google.android.tv.remote.service, Play Store and Play Services
+# Factory tools left alone and never opened: com.zhixin.factorytest, mediatek.factorymenu.ui
+
+# --- Telemetry and feedback ---
+com.google.android.feedback # Google feedback / bug reports
+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
+com.google.android.partnersetup # partner-app attribution
+
+# --- Retail / store demo ---
+fusion.android.tv.demo # RetailDisplay store demo
+com.zhixin.nebularetailmode # Nebula retail demo mode (boot receiver)
+
+# --- Off by owner's choice (comment out to keep) ---
+com.waxrain.airplaydmr_OW # AirPlay / DLNA receiver (Chromecast built-in stays)
+com.spotify.music # Spotify
+com.wbd.stream # Max (HBO)
+com.google.android.videos # Google TV buy/rent movies app
+
+# --- Re-enabled after trying, left as comments (see header) ---
+# com.google.android.katniss # Assistant: the firmware re-enables it at every boot; the
+# # owner keeps it on so the mic button works
+# com.google.android.tv.assistant # Assistant LED service, same reason
+# com.netflix.ninja # the remote's Netflix button needs it (MediaTek global-key
+# # layer); it is in the launcher's dock instead
+# com.google.android.apps.tv.dreamx # Google Ambient Mode: disabled with the screensaver
+# # switched to com.android.dreams.basic/.Colors first,
+# # re-enabled on request the same day and made the active
+# # screensaver again. To disable it: switch the screensaver
+# # first (settings put secure screensaver_components
+# # com.android.dreams.basic/.Colors), then uncomment.
+
+# --- Setup wizard: Google TV 14 gives Home to its RecoveryActivity otherwise (see header) ---
+com.google.android.tungsten.setupwraith
+
+# --- Stock home screen (only after the new launcher is installed: launcher/build-and-install.sh) ---
+com.google.android.apps.tv.launcherx # stock Google TV home
+com.mediatek.android.leanbacklauncher.partnercustomizer # partner rows for the stock home