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(examples): 683 variant without bundled theme assets
Carmonacu4923f3b1c5cf
diff --git a/examples/xiaomi-mi-box-s-2nd-gen/README.md b/examples/xiaomi-mi-box-s-2nd-gen/README.mdindex a65cba2d3..a5bfbd069 100644--- a/examples/xiaomi-mi-box-s-2nd-gen/README.md+++ b/examples/xiaomi-mi-box-s-2nd-gen/README.md@@ -1,56 +1,68 @@# Xiaomi Mi Box S 2nd gen (MiTV-AFKR0) — validated variants-Stock list: [`debloat.txt`](debloat.txt) (launcherx + setupwraith after CleanYourTV is Home).+Stock list: [`debloat.txt`](debloat.txt) (disable `launcherx` and `setupwraith` only after CleanYourTV owns Home).-## RTT0.211222.001.683 (EU, Carmonacu setup)+## RTT0.211222.001.683 (EU remote map)Validated on **MiTV-AFKR0** / **jaws**, **Google TV 11**, build **`RTT0.211222.001.683`**, 2 GB RAM, Xiaomi RC-(`Vendor_2717_Product_32b9.kl`). Differs from the **737/772** notes in the header of `debloat.txt`: shortcut scancodes-use **425/426** for YouTube (not keycode 190), **240/416** for Netflix, **207** for Prime Video.+(`Vendor_2717_Product_32b9.kl`). The **737/772** entries in the header of `debloat.txt` document keycode **190**+for YouTube; on **683** the same remote uses **scancodes** instead — do not copy the 737 `app_keys` lines blindly.-### Extra packages disabled (beyond `debloat.txt`)+### Extra packages (typical for SmartTube + custom remote map)| Package | Why || --- | --- |-| `com.xiaomi.android.tvsetup.partnercustomizer` | Stock shortcut handler; must be off for `app_keys` / CleanYourTV key services |-| `com.google.android.youtube.tv` | Replaced by SmartTube (`org.smarttube.stable`) |-| `com.netflix.ninja` | Not used |+| `com.xiaomi.android.tvsetup.partnercustomizer` | Stock shortcut handler; disable when using CleanYourTV `app_keys` with **InputKeyService** / **HomeKeyService** |+| `com.google.android.youtube.tv` | Optional: disable when using SmartTube (`org.smarttube.stable`) |+| `com.netflix.ninja` | Optional: disable if unused |-### Launcher--- CleanYourTV with **`InputKeyService`** and **`HomeKeyService`** (`launcher/build-and-install.ps1 -InputKeyService -HomeKeyService`).-- Theme: [`carmonacu-theme/`](carmonacu-theme/) (nature photos from `themes/nature-calm`, green-tinted background, dock + remote map in `config.json`).+### Launcher install```powershell$env:TV_HOST = '<box-ip>'-powershell -ExecutionPolicy Bypass -File tools\theme.ps1 -TvHost $env:TV_HOST examples\xiaomi-mi-box-s-2nd-gen\carmonacu-theme+cd launcher+powershell -ExecutionPolicy Bypass -File .\build-and-install.ps1 -TvHost $env:TV_HOST -InputKeyService -HomeKeyService```-### Remote (`app_keys` in theme / `config.xml`)+Look and wallpaper are personal: use any folder under [`themes/`](../../themes/README.md) with `tools/theme.ps1`, or+change **Wallpaper** in **Launcher settings** (hold OK on **Settings** → **Launcher settings**) after a theme with+pictures is on the TV.++Remote mapping for this build is in [`launcher-config.example.json`](launcher-config.example.json). Push it in a+**your own** theme folder (copy a theme from `themes/` first — `manage.py` refuses writing into `examples/`), or bake+the same keys into `launcher/.../config.xml` before `build-and-install`.++### Remote (`app_keys` — build 683, `Vendor_2717_Product_32b9.kl`)-| Button | Scancode(s) | App |+| Button | Scancode(s) | Typical target || --- | --- | --- |-| Netflix | 240, 416 | Crunchyroll |-| YouTube | 425, 426 | SmartTube stable |+| Netflix | 240, 416 | Your streaming app (example: Crunchyroll) |+| YouTube | 425, 426 | SmartTube stable (`org.smarttube.stable`) || Prime | 207 | Max (`com.wbd.stream`) |-Wake the remote with **OK** before testing; first press after sleep is often dropped.+Confirm scancodes on your unit: `tools/tv.py 'getevent -lt'` (press OK on the remote first if it was sleeping).-### Private DNS (AdGuard)+Install order: **launcher first**, then disable `com.google.android.apps.tv.launcherx` and+`com.google.android.tungsten.setupwraith` (see `debloat.txt`). If `disable.sh` skips setupwraith because Wi‑Fi was saved+during setup, re-join the network in Settings or use `FORCE_SETUPWRAITH=1` knowing the password may be asked again.-Blocks many tracker/ad domains system-wide; **does not** remove in-app video ads inside YouTube (use SmartTube) or all-streaming ads (Disney+/Max may still show promos). Tested:+### Private DNS (optional, set once)++In this project the most documented **set-and-forget** choice is **[AdGuard public DNS](https://adguard-dns.io/en/public-dns.html)** filter (`dns.adguard-dns.com`). It appears throughout `docs/faq.md`, device notes, and `PROMPT.md`. It **persists across reboots**; you should not need to toggle it unless something stops playing.```powershelladb -s <box-ip>:5555 shell settings put global private_dns_specifier dns.adguard-dns.comadb -s <box-ip>:5555 shell settings put global private_dns_mode hostname```-Undo: `settings put global private_dns_mode opportunistic` (and delete specifier if needed).+Check: `settings get global private_dns_mode` → `hostname`. Undo only if an app or provider breaks:+`settings put global private_dns_mode opportunistic`.++**Limits:** does not remove YouTube ads (use SmartTube) or all in-app promos on Disney+/Max. **[NextDNS](https://nextdns.io)** is the usual alternative if you want your own blocklists (needs an account and a personal hostname); cleanyourtv documents it less often than AdGuard.-### Animation scale+Many Google TV boxes have **no Settings UI** for Private DNS; ADB (or the prompt’s `tools/tv.py` lines) is normal.-Snappier UI on 2 GB devices:+### Animation scale (optional)```powershelladb shell settings put global window_animation_scale 0.5@@ -58,12 +70,10 @@ adb shell settings put global transition_animation_scale 0.5adb shell settings put global animator_duration_scale 0.5```-### Apply debloat (this variant)+### Apply debloat-Use the stock list, then the extras above (or `debloat-phase1.txt` + `setupwraith` after launcher install). Keep-`com.xiaomi.mitv.updateservice` disabled only if you accept no OTA from Xiaomi.+[`debloat-phase1.txt`](debloat-phase1.txt) then launcher install, then [`debloat-phase2-setupwraith.txt`](debloat-phase2-setupwraith.txt), or the full [`debloat.txt`](debloat.txt) with the same ordering rules.-### Still working after soak+### Still working after soak (683)-Wi‑Fi (re-enter password once if `setupwraith` was removed while the network was tied to it), Chromecast, Google-Assistant, SmartTube + Disney+ + Crunchyroll + Max, Bluetooth remote shortcuts via scancodes.+Wi‑Fi, Chromecast, Google Assistant, SmartTube, scancode shortcuts with partnercustomizer disabled.diff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/CREDITS.md b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/CREDITS.mddeleted file mode 100644index 212493371..000000000--- a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/CREDITS.md+++ /dev/null@@ -1,31 +0,0 @@-Wallpaper photos from Wikimedia Commons, each under its own licence (CC BY or CC BY-SA), not the repository's MIT licence.-Changes made to every picture: cropped to 16:9, resized (1920x1080, or a little smaller to stay under 300 KB) and darkened toward the bottom and left edges so the dock-and text stay readable. Adaptations of the CC BY-SA pictures stay under CC BY-SA.--- 001.jpg: "Karst mountains colorful clouds and mist at sunrise from the top of Mount Nam Xay Vang Vieng Laos.jpg" by Basile Morin, CC BY-SA 4.0- https://commons.wikimedia.org/wiki/File:Karst_mountains_colorful_clouds_and_mist_at_sunrise_from_the_top_of_Mount_Nam_Xay_Vang_Vieng_Laos.jpg-- 002.jpg: "Foggy Reflections - Loch Tummel.jpg" by Eric Kilby, CC BY-SA 4.0- https://commons.wikimedia.org/wiki/File:Foggy_Reflections_-_Loch_Tummel.jpg-- 003.jpg: "Morning at Tham Sakoen.jpg" by BerryJ, CC BY-SA 4.0- https://commons.wikimedia.org/wiki/File:Morning_at_Tham_Sakoen.jpg-- 004.jpg: "Lake Mystery, Canterbury, New Zealand 05.jpg" by Michal Klajban, CC BY-SA 4.0- https://commons.wikimedia.org/wiki/File:Lake_Mystery,_Canterbury,_New_Zealand_05.jpg-- 005.jpg: "Pryor's Wood Bluebells 2017-04-26-4.jpg" by Colin, CC BY-SA 4.0- https://commons.wikimedia.org/wiki/File:Pryor%27s_Wood_Bluebells_2017-04-26-4.jpg-- 006.jpg: "Steindorf am Ossiacher See Sankt Urban Ossiacher See und Dobratsch 04112015 2185.jpg" by Johann Jaritz, CC BY-SA 4.0- https://commons.wikimedia.org/wiki/File:Steindorf_am_Ossiacher_See_Sankt_Urban_Ossiacher_See_und_Dobratsch_04112015_2185.jpg-- 007.jpg: "Karula vaade.jpg" by Amadvr, CC BY-SA 3.0- https://commons.wikimedia.org/wiki/File:Karula_vaade.jpg-- 008.jpg: "Dülmen, Rorup, NSG Roruper Holz -- 2021 -- 8187-91.jpg" by Dietmar Rabich, CC BY-SA 4.0- https://commons.wikimedia.org/wiki/File:D%C3%BClmen,_Rorup,_NSG_Roruper_Holz_--_2021_--_8187-91.jpg-- 009.jpg: "Mossy forest in Lierneux (DSC01260).jpg" by Trougnouf, CC BY 4.0- https://commons.wikimedia.org/wiki/File:Mossy_forest_in_Lierneux_(DSC01260).jpg-- 010.jpg: "Cheow Lan Lake, Rainforest, Khao Sok, Thailand.jpg" by Vyacheslav Argenberg, CC BY 4.0- https://commons.wikimedia.org/wiki/File:Cheow_Lan_Lake,_Rainforest,_Khao_Sok,_Thailand.jpg-- 011.jpg: "Тарасів обрій. Світанок (edited).jpg" by Oleksandr Malyon adapted by Radomianin, CC BY-SA 4.0- https://commons.wikimedia.org/wiki/File:%D0%A2%D0%B0%D1%80%D0%B0%D1%81%D1%96%D0%B2_%D0%BE%D0%B1%D1%80%D1%96%D0%B9._%D0%A1%D0%B2%D1%96%D1%82%D0%B0%D0%BD%D0%BE%D0%BA_(edited).jpg-- 012.jpg: "Kuang Si Falls and a turquoise water pool in Luang Prabang province Laos.jpg" by Basile Morin, CC BY-SA 4.0- https://commons.wikimedia.org/wiki/File:Kuang_Si_Falls_and_a_turquoise_water_pool_in_Luang_Prabang_province_Laos.jpg--Licences: CC BY 4.0 https://creativecommons.org/licenses/by/4.0/ , CC BY-SA 4.0 https://creativecommons.org/licenses/by-sa/4.0/ ,-CC BY-SA 3.0 https://creativecommons.org/licenses/by-sa/3.0/diff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/config.json b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/config.jsondeleted file mode 100644index ea924ee08..000000000--- a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/config.json+++ /dev/null@@ -1,41 +0,0 @@-{- "greeting_name": "Carmonacu",- "dock_apps": [- "org.smarttube.stable",- "com.disney.disneyplus",- "com.crunchyroll.crunchyroid",- "com.wbd.stream"- ],- "hidden_apps": [- "com.netflix.ninja",- "com.google.android.youtube.tv",- "com.amazon.amazonvideo.livingroom"- ],- "app_keys": [- "scan:240:com.crunchyroll.crunchyroid",- "scan:416:com.crunchyroll.crunchyroid",- "scan:425:org.smarttube.stable",- "scan:426:org.smarttube.stable",- "scan:207:com.wbd.stream"- ],- "background_color": "#071510",- "wallpaper": true,- "wallpaper_rotation_minutes": 5,- "wallpaper_order": "shuffle",- "wallpaper_captions": true,- "wallpaper_true_color": true,- "wallpaper_dim": 14,- "columns": 6,- "rows_below_dock": 1,- "fill_dock": true,- "dock_glass": true,- "dock_opacity": 40,- "dock_even_padding": true,- "icon_only_buttons": true,- "icon_only_inputs": true,- "ambient_glow": false,- "app_glow": true,- "fade_rows": true,- "focus_overshoot": false,- "advanced_effects": true-}diff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/screenshot.jpg b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/screenshot.jpgdeleted file mode 100644index c3eb1adca..000000000Binary files a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/screenshot.jpg and /dev/null differdiff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/001.jpg b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/001.jpgdeleted file mode 100644index 5e586db91..000000000Binary files a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/001.jpg and /dev/null differdiff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/002.jpg b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/002.jpgdeleted file mode 100644index 81f400b91..000000000Binary files a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/002.jpg and /dev/null differdiff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/003.jpg b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/003.jpgdeleted file mode 100644index 8918eeb48..000000000Binary files a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/003.jpg and /dev/null differdiff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/004.jpg b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/004.jpgdeleted file mode 100644index c820b5af3..000000000Binary files a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/004.jpg and /dev/null differdiff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/005.jpg b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/005.jpgdeleted file mode 100644index 73ceafd30..000000000Binary files a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/005.jpg and /dev/null differdiff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/006.jpg b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/006.jpgdeleted file mode 100644index 49323790b..000000000Binary files a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/006.jpg and /dev/null differdiff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/007.jpg b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/007.jpgdeleted file mode 100644index e7c6552e2..000000000Binary files a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/007.jpg and /dev/null differdiff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/008.jpg b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/008.jpgdeleted file mode 100644index c58355eef..000000000Binary files a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/008.jpg and /dev/null differdiff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/009.jpg b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/009.jpgdeleted file mode 100644index e6edaa4cd..000000000Binary files a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/009.jpg and /dev/null differdiff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/010.jpg b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/010.jpgdeleted file mode 100644index 4bc6c2bbe..000000000Binary files a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/010.jpg and /dev/null differdiff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/011.jpg b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/011.jpgdeleted file mode 100644index db51b6bbb..000000000Binary files a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/011.jpg and /dev/null differdiff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/012.jpg b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/012.jpgdeleted file mode 100644index 0b1481489..000000000Binary files a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/012.jpg and /dev/null differdiff --git a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/captions.txt b/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/captions.txtdeleted file mode 100644index f7e3fa260..000000000--- a/examples/xiaomi-mi-box-s-2nd-gen/carmonacu-theme/wallpapers/captions.txt+++ /dev/null@@ -1,12 +0,0 @@-001.jpg Misty karst valley at sunrise, Laos - Basile Morin, CC BY-SA 4.0-002.jpg Autumn reflections, Loch Tummel, Scotland - Eric Kilby, CC BY-SA 4.0-003.jpg Morning mist at Tham Sakoen, Thailand - BerryJ, CC BY-SA 4.0-004.jpg Lake Mystery, New Zealand - Michal Klajban, CC BY-SA 4.0-005.jpg Spring bluebell beech wood, Pryor's Wood UK - Colin, CC BY-SA 4.0-006.jpg Autumn calm lake, Ossiacher See Austria - Johann Jaritz, CC BY-SA 4.0-007.jpg Winter frosted forest at sunrise, Karula Estonia - Amadvr, CC BY-SA 3.0-008.jpg Green forest with sunbeams, Roruper Holz Germany - Dietmar Rabich, CC BY-SA 4.0-009.jpg Mossy forest, Lierneux Belgium - Trougnouf, CC BY 4.0-010.jpg Misty rainforest lake, Khao Sok Thailand - Vyacheslav Argenberg, CC BY 4.0-011.jpg Misty river dawn, Cherkasy Ukraine - Oleksandr Malyon, CC BY-SA 4.0-012.jpg Kuang Si turquoise pool, Laos - Basile Morin, CC BY-SA 4.0diff --git a/examples/xiaomi-mi-box-s-2nd-gen/launcher-config.example.json b/examples/xiaomi-mi-box-s-2nd-gen/launcher-config.example.jsonnew file mode 100644index 000000000..82675c2b7--- /dev/null+++ b/examples/xiaomi-mi-box-s-2nd-gen/launcher-config.example.json@@ -0,0 +1,21 @@+{+ "_comment": "Example overlay for tools/theme.ps1 or merge into your own theme folder. Visual keys (wallpaper, colours) are up to you — see themes/README.md.",+ "dock_apps": [+ "org.smarttube.stable",+ "com.disney.disneyplus",+ "com.crunchyroll.crunchyroid",+ "com.wbd.stream"+ ],+ "hidden_apps": [+ "com.netflix.ninja",+ "com.google.android.youtube.tv",+ "com.amazon.amazonvideo.livingroom"+ ],+ "app_keys": [+ "scan:240:com.crunchyroll.crunchyroid",+ "scan:416:com.crunchyroll.crunchyroid",+ "scan:425:org.smarttube.stable",+ "scan:426:org.smarttube.stable",+ "scan:207:com.wbd.stream"+ ]+}