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
Mi Box S: LumiFlow device theme, fourth-unit notes, screenshots
anurag2701ac944176f509
diff --git a/README.md b/README.mdindex 3dfa1f8b8..6d50c5a8e 100644--- a/README.md+++ b/README.md@@ -98,6 +98,10 @@ phoning home, no apps you never asked for.| *Aurora theme, pushed with `tools/theme.sh`* | *Six columns and a six-app dock, same launcher* ||  |  || *With `tile_menu`, hold OK on a tile, Move: arrows carry it, Back puts it down* | *App library: one press puts a removed app back on Home* |+|  |  |+| *Mi Box S (2 GB): the LumiFlow [device theme](examples/xiaomi-mi-box-s/theme/README.md), photos shuffled every minute* | *The next photo, same theme, [notes](docs/devices/xiaomi-mi-box-s.md)* |+|  |  |+| *Another photo in the rotation* | *The same Home with no wallpaper* |## Supported TVsdiff --git a/docs/devices/xiaomi-mi-box-s-clock-screensaver.jpg b/docs/devices/xiaomi-mi-box-s-clock-screensaver.jpgnew file mode 100644index 000000000..0f0d462b8Binary files /dev/null and b/docs/devices/xiaomi-mi-box-s-clock-screensaver.jpg differdiff --git a/docs/devices/xiaomi-mi-box-s-lumiflow-monastery.jpg b/docs/devices/xiaomi-mi-box-s-lumiflow-monastery.jpgnew file mode 100644index 000000000..3b9b3e625Binary files /dev/null and b/docs/devices/xiaomi-mi-box-s-lumiflow-monastery.jpg differdiff --git a/docs/devices/xiaomi-mi-box-s-lumiflow-rider.jpg b/docs/devices/xiaomi-mi-box-s-lumiflow-rider.jpgnew file mode 100644index 000000000..ee3c42071Binary files /dev/null and b/docs/devices/xiaomi-mi-box-s-lumiflow-rider.jpg differdiff --git a/docs/devices/xiaomi-mi-box-s-lumiflow.jpg b/docs/devices/xiaomi-mi-box-s-lumiflow.jpgnew file mode 100644index 000000000..d4f6f0332Binary files /dev/null and b/docs/devices/xiaomi-mi-box-s-lumiflow.jpg differdiff --git a/docs/devices/xiaomi-mi-box-s-plain-home.jpg b/docs/devices/xiaomi-mi-box-s-plain-home.jpgnew file mode 100644index 000000000..17226356cBinary files /dev/null and b/docs/devices/xiaomi-mi-box-s-plain-home.jpg differdiff --git a/docs/devices/xiaomi-mi-box-s.md b/docs/devices/xiaomi-mi-box-s.mdindex e1b0161cd..3aef81146 100644--- a/docs/devices/xiaomi-mi-box-s.md+++ b/docs/devices/xiaomi-mi-box-s.md@@ -45,10 +45,81 @@ Nothing broke between batches.An empty `live_tv_package` (no tuner) can be pushed as a theme `config.json` with `tools/theme.ps1`,so `config.xml` stays at its defaults.+## Fourth unit (2026-10-24)++A fourth Mi Box S, done on Windows with Claude and a plain-language version of `PROMPT.md`, no terminal+for the owner. Same build as the first three: `Xiaomi/oneday/oneday:9/PI/3933:user/release-keys`, SDK 28,+2 GB RAM, 1920x1080 at 320 dpi, 5 GB `/data`. The launcher is 2.6.0 (`0bb7f7ed`); nothing in `launcher/`+was changed. The theme is [`examples/xiaomi-mi-box-s/theme/`](../../examples/xiaomi-mi-box-s/theme/README.md).++The result, photographed from the TV itself. LumiFlow rotates the owner's own photos, shuffled, one a minute:++|  |  |  |+|---|---|---|+| *LumiFlow: glass dock, stats line, a darkened photo* | *The next photo in the rotation* | *And the next (greeting name differs: shot before it was renamed)* |++|  |  |+|---|---|+| *The same Home with no wallpaper* | *Clock screensaver (time and date, no pictures)* |++The Wi-Fi network name is blurred in the screenshots. The photos are the owner's own and are not part of the theme.++What differed from the other units:++- **Already half done.** 15 packages were disabled before we started: the whole PatchWall, analytics,+ Alphonso, auto-install and update-service group, plus Live Channels, TalkBack, the print spooler and Play+ Games. We added YouTube Music, Play Movies & TV and Camera (`com.android.camera2`). Prime Video stayed,+ because the owner uses it.+- **Casting and voice kept.** `com.google.android.apps.mediashell`, `com.google.android.katniss`,+ `com.google.android.speech.pumpkin`, `com.google.android.tv.remote.service`, `com.mitv.milinkservice` and+ `com.mitv.videoplayer` stay enabled. After a reboot `mediashell` was installed and enabled and `logcat` had no+ "No private key"; the owner confirmed casting from a phone.+- **setupwraith not needed.** `dumpsys wifi | grep -o 'cname=[^ ]*'` showed only `android.uid.system:1000` and+ `com.google.uid.shared:10004`, so the setup wizard stayed enabled, as on the second unit.+- **Apps button.** Turned into a second Home button without the script switch: with+ `enabled_accessibility_services` unset (`null`), `settings put secure enabled_accessibility_services+ com.gathin.tvhome/.HomeKeyService` and `settings put secure accessibility_enabled 1` (the owner confirmed the+ button opens Home). `theme.ps1` keeps the service across its Home restart. The `AUTO_START` appop line in+ `build-and-install.ps1` prints `Unknown operation string` here; harmless.+- **Screensaver.** `screensaver_components` was `com.google.android.backdrop/...Backdrop`. Switched to+ `com.gathin.tvhome/.ClockDream` first, then disabled Backdrop. `service call dreams 1` is refused to the shell+ (`WRITE_DREAM_STATE`); `am start -n com.android.systemui/.Somnambulator` starts the chosen screensaver+ instead, and `dumpsys dreams` showed `mCurrentDreamName=...ClockDream`.+- **Private DNS** was unset (`null`/`null`). `private_dns_specifier dns.adguard-dns.com` and+ `private_dns_mode hostname` worked: sites loaded, and `doubleclick.net` answered from the local host+ (about 0.2 ms), i.e. blocked. To undo, delete both keys rather than writing a default.+- **Play Store automatic updates** are off from Play Store, profile picture, Settings, "Auto-update apps",+ "Don't auto-update apps". `uiautomator dump` returns `null root node` on the Play Store, so the steps were+ key presses with a screenshot after each. Four updates were waiting; Xstream Play and Prime Video were+ updated by hand. "TV Setup" and "Android TV Remote Service" were left alone on purpose: they are system+ parts that touch Home and pairing.+- **Storage.** `/data` was 68% full (1.6 GB free) with 656 MB of app caches, mostly Hotstar, Zee5 and+ Xstream. `pm trim-caches 4G` took it to 2.3 GB free (53% used) with no sign-ins lost.+- **USB debugging off.** `settings put global adb_enabled 0` closed port 5555 at once (checked from the PC);+ 8008 stays open because casting uses it. Turn debugging on again to change anything.++Numbers (the "before" box had been on 26 minutes, the "after" 3 minutes after a reboot, so some of the gain+is the reboot): `MemAvailable` 908 MB, then 1,028 MB; memory in use 1,079 MB, then 959 MB; swap 14 MB, then+12 MB. The stock home held 74 MB, the new one 22 MB; Backdrop held about 63 MB when it ran.++Two things worth knowing:++- Wallpaper rotation is in whole minutes (`integer(..., 0, 1440)` in `Config.java`), so `0.25` becomes `0`+ and the rotation stops. One minute is the fastest the 2.6.0 launcher can do.+- The launcher's Clock screensaver shows time and date only, never pictures.+## Building on Windows without Android Studio`launcher/build-and-install.ps1` looks for a JDK only in `JAVA_HOME` or Android Studio's `jbr`. ATemurin JDK 17 zip plus the Android command-line tools (`sdkmanager "platforms;android-34""build-tools;34.0.0"`, SDK in `%LOCALAPPDATA%\Android\Sdk`) worked with `JAVA_HOME` set to the JDK.-Lived with: one day so far; still to soak for a few days as CONTRIBUTING.md asks.+On the fourth unit Android Studio's `jbr` was found by the script, but the Gradle wrapper failed with+`Downloading ... gradle-8.9-bin.zip failed: timeout (10000ms)` on a slow line (twice, also at 120 s).+`curl -L -C - --retry 20 --retry-all-errors` fetched the zip in about 8 minutes; its SHA-256 matched+`distributionSha256Sum` in `launcher/gradle/wrapper/gradle-wrapper.properties`. Pointing `distributionUrl` at the+local file (`file:///C:/.../gradle-8.9-bin.zip`) for that one build let it finish, and the properties file was+put back with `git checkout` afterwards. `tools/venv` is also needed before the script runs+(`python -m venv tools\venv` then `tools\venv\Scripts\python.exe -m pip install -r tools\requirements.txt`).++Lived with: one day so far on the fourth unit; still to soak for a few days as CONTRIBUTING.md asks.diff --git a/examples/xiaomi-mi-box-s/theme/README.md b/examples/xiaomi-mi-box-s/theme/README.mdnew file mode 100644index 000000000..b135a623c--- /dev/null+++ b/examples/xiaomi-mi-box-s/theme/README.md@@ -0,0 +1,37 @@+# LumiFlow (Mi Box S theme)++A device theme for the Xiaomi Mi Box S (MIBOX4, Android TV 9, 2 GB): frosted-glass dock over rotating+photos, an app library button, one stats line under the clock and calmer motion. It is only a+`config.json`: no launcher code changes and no pictures are shipped. "LumiFlow" is just this folder's+name, not a registered brand.++++*A screenshot from the TV. The Wi-Fi network name is blurred. The picture behind it is the owner's own photo and is not included; more screenshots are in [the Mi Box guide](../../../docs/devices/xiaomi-mi-box-s.md).*++| Key | Why |+|---|---|+| `dock_apps` | YouTube, Netflix, Hotstar and Zee5 first. Change these to your four apps (`pm list packages -3`). |+| `live_tv_package: ""` | The box has no tuner, so the Inputs menu has nothing to offer. |+| `wallpaper`, `wallpaper_rotation_minutes: 1`, `wallpaper_order: shuffle` | Rotates the pictures in `wallpapers/`. The interval is whole minutes: 1 is the fastest, and `0.25` is read as `0`, which stops the rotation. |+| `dock_glass`, `dock_opacity: 75` | The dock band as frosted glass, so the picture shows behind the tiles. |+| `app_library` | An App library pill after the last Home row. |+| `show_stats` | CPU, memory and free storage under the clock. |+| `reduced_motion` | Less bounce and fading; kinder to a 2 GB box. |++## Your own photos++Pictures are not included. Make a `wallpapers/` folder next to `config.json` and put JPEG, PNG or WebP+files in it, then push the folder:++```powershell+tools\theme.ps1 -TvHost <tv ip> examples\xiaomi-mi-box-s\theme+```++Without pictures the theme still works: Home keeps its plain colour.++On a 2 GB box a full-colour photo is heavy and a bright one drowns the clock and the tiles. Save each+picture as a 1280×720 JPEG under about 300 KB, and darken it in the picture itself, so `wallpaper_dim`+can stay at 0. Use pictures you have the right to show.++Remove it with `tools\theme.ps1 -TvHost <tv ip> -Reset`.diff --git a/examples/xiaomi-mi-box-s/theme/config.json b/examples/xiaomi-mi-box-s/theme/config.jsonnew file mode 100644index 000000000..81cd20b93--- /dev/null+++ b/examples/xiaomi-mi-box-s/theme/config.json@@ -0,0 +1,18 @@+{+ "dock_apps": [+ "com.google.android.youtube.tv",+ "com.netflix.ninja",+ "in.startv.hotstar",+ "com.graymatrix.did"+ ],+ "live_tv_package": "",+ "wallpaper": true,+ "wallpaper_rotation_minutes": 1,+ "wallpaper_order": "shuffle",+ "wallpaper_dim": 0,+ "dock_glass": true,+ "dock_opacity": 75,+ "app_library": true,+ "reduced_motion": true,+ "show_stats": true+}diff --git a/examples/xiaomi-mi-box-s/tv.json b/examples/xiaomi-mi-box-s/tv.jsonindex 523195e2c..f5fbff9a8 100644--- a/examples/xiaomi-mi-box-s/tv.json+++ b/examples/xiaomi-mi-box-s/tv.json@@ -2,5 +2,5 @@"tv": "Xiaomi Mi Box S (MIBOX4, oneday), streaming box","os": "Android TV 9","brand": "Xiaomi",- "notes": "PatchWall, Mi analytics, Alphonso ad tracking, MiLink; voice, casting, phone remote off by choice; second unit: Apps button opens Home with HomeKeyService; [notes](../docs/devices/xiaomi-mi-box-s.md)"+ "notes": "PatchWall, Mi analytics, Alphonso ad tracking, MiLink; voice, casting, phone remote off by choice; second unit: Apps button opens Home with HomeKeyService; fourth unit: LumiFlow device theme, casting and voice kept; [notes](../docs/devices/xiaomi-mi-box-s.md)"}