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/devices: XGIMI H1 (Android 5.1, GMUI V1.5.3): pm disable-user refused, pm hide works
maksii5109c90aa12d
diff --git a/docs/devices/xgimi-h1.md b/docs/devices/xgimi-h1.mdnew file mode 100644index 000000000..5c13e5a7d--- /dev/null+++ b/docs/devices/xgimi-h1.md@@ -0,0 +1,78 @@+# XGIMI H1 (MStar `guava`, GMUI V1.5.3, Android 5.1.1): `pm disable-user` refused, `pm hide` works++This is an owner report from one projector, **not a debloat list for the repo tools**. The adb shell cannot+disable packages on this firmware (next section), so there is deliberately no `examples/` entry. What follows is+what plain ADB shows on this unit, so another owner of a GMUI projector can judge for themselves. The firmware+is from 2017 and gets no updates.++| Field | Observed value |+|---|---|+| Retail model | XGIMI H1 (About screen: Machine model `H1`, System version `GMUI V1.5.3`) |+| Android model / device | `XGIMI TV` / `guava`, `ro.product.brand=MStar` |+| Fingerprint | `MStar/aosp_guava_en/guava:5.1.1/LMY47V/V1.5.3:userdebug/test-keys` |+| Android / API | 5.1.1 / 22, `armeabi-v7a` |+| RAM / storage | 2 GB (`MemTotal` 1997736 kB) / 10.5 GB `/data` |+| Stock home | `com.xgimi.launcher` (`com.xgimi.mslauncher.LauncherActivity`) |+| ADB | Network ADB on 5555 out of the box, `ro.adb.secure=1` (the "Allow USB debugging?" prompt appears) |++## `pm disable-user` is refused, `pm hide` works++From the adb shell, `pm disable-user <pkg>` and `pm disable <component>` fail for every package:++```text+Error: java.lang.SecurityException: Permission Denial: attempt to change component state from pid=..., uid=2000, package uid=...+```++`pm hide <pkg>` and `pm unhide <pkg>` do work from the same shell (checked on `com.lee.gallery3d`, then put back),+as on the [Whaley WTV55K1](whaley-wtv55k1.md) and the [Skyworth 55G6](skyworth-9r52-g6.md). The repo's+`tools/disable.sh` and `tools/restore.sh` only disable and enable, so a list file for this projector could not be+applied or undone with them. The packages below were not run through `pm hide` one by one; this note maps them, it+does not report a hidden set.++`launcher/build-and-install.sh` cannot help here either: the reference launcher needs Android 8.0 (minSdk 26).+A third-party launcher with minSdk 21, installed with `adb install`, took Home through Android's "Select a Home+app" chooser ("Always"); the stock launcher stayed enabled as a fallback.++## What the packages do++Every XGIMI and MStar app below runs as `android.uid.system`, so its permission list is the whole system uid's and+says nothing about the package itself. What the package declares does:++| Package | What it declares |+|---|---|+| `com.gimi.adservice` | `GimiAdBootBroadcastReciver`, `com.gimi.access.AppInstallBroadcast` and `com.xgimi.tongji.TongjiReceiver` ("tongji" is "statistics") |+| `com.xgimi.vcontrol` | Phone remote: `NettyService`, `WebService`, `DownloadService`, `AppInstalledBroadcastRecevier` |+| `com.xgimi.filefly` | File push: `UcontrolService` and `ApkInstallerService` |+| `com.xgimi.wirelessscreen` | Miracast/AirPin receiver with its own `UpgradeService` |+| `com.waxrain.airplaydmr` | WaxPlay AirPlay/DLNA receiver (in `/data/app`), seven TCP ports |+| `com.android.mcast` | MStar `MMCastDemo` receiver |+| `cm.aptoidetv.pt.xgimi_market` | Aptoide TV store |+| `cn.wps.moffice_i18n_TV` | WPS Office, carries `com.appsflyer.MultipleInstallBroadcastReceiver` |+| `com.android.chrome` 59, `com.google.android.youtube.tv` 1.3.11 | 2017 preloads |+| `com.google.android.gms` 10.2.98, `com.google.android.gsf`, `com.google.android.gsf.login`, `com.android.vending` 6.3.16 | 2017 Google stack; no current apps for API 22 |+| `com.android.exchange`, `com.android.inputmethod.pinyin`, `com.xgimi.doubanfm`, `com.xgimi.xgimimusicparseservice`, `com.lee.gallery3d`, `com.mstar.android.pppoe` | Mail sync, Pinyin keyboard, XGIMI music and gallery, PPPoE dialer |+| `com.xgimi.minitvfactory`, `mstar.factorymenu.ui` | Factory menus (never opened); `minitvfactory` has a boot receiver |+| `com.mstar.tv.service`, `com.mstar.tv.tvplayer.ui`, `com.mstar.android.providers.tv`, `com.mstar.miscsetting`, `com.mstar.tvsetting` | TV middleware, input source, hotkeys: keep |+| `com.xgimi.launcher`, `com.xgimi.appmanager`, `com.xgimi.bootwizard`, `com.xgimi.inputmethod`, `com.xgimi.filemanager`, `com.xgimi.gimiplayer` | Stock home, app list, first-run wizard, keyboard, USB file browser and player |++A system-uid app held a plain-HTTP connection to `47.103.94.254:80` (Alibaba Cloud), read from `/proc/net/tcp`.+Which of the system-uid packages made it was not narrowed down.++## Network listeners++| Port | Owner (uid from `/proc/net`, process from `ps` and the init `.rc` files) |+|---|---|+| TCP 139, 445 | root (`smbd`) |+| TCP 554 | root (`livecap`, an init service) |+| TCP 15735, 15737; UDP 16735, 16737 | root (`ucontrolMDNS`, an init service) |+| TCP 16740, 16741 | system uid (XGIMI phone-remote and file-push apps) |+| TCP 5000, 7000, 7100, 7700, 49153, 55560, 55570 | `com.waxrain.airplaydmr` |++### Samba runs as root from a world-writable folder++`/system/bin/debug.sh` (init service `debug-sh`, no `user`, so root) starts `smbd` and `nmbd` from+`/data/data/com.xgimi.filemanager/samba/` at every boot and restarts them whenever a file named `restart` appears+there. On this unit that folder and the script it runs were world-writable (`ls -l` shows `rwxrwxrwx`), and+`smb.conf` uses `security = SHARE` with a guest account. Disabling or hiding FileManager does not stop it, because+init starts it, not the app. Without root there is no way to switch it off from the projector: keep this+projector on a network of its own, and off the internet if it only needs the LAN.diff --git a/examples/README.md b/examples/README.mdindex 8da332b7d..8904ec285 100644--- a/examples/README.md+++ b/examples/README.md@@ -484,6 +484,7 @@ Notes for models that have no tested list yet live in [`docs/devices/`](../docs/- [Xiaomi Mi Box 4S Pro](../docs/devices/xiaomi-mi-box-4s-pro-frozen.md) (`MiTV-AZFP0` / `frozen`, China, Android 9 firmware `23.5.10.1035`): single-session report of twelve disabled packages (four already off, eight applied), one reboot with states retained, owner-confirmed voice and video/audio, and first-batch restore checks; stock Home, casting, OTA and app store kept; casting, standby/wake and several-day use untested, so no tested list yet.- [Skyworth 55G6](../docs/devices/skyworth-9r52-g6.md) (`9R52_G6`, Realtek RTD299x, Coocaa 6.20, Android 5.1.1 / API 22, `LMY47V`): `pm disable-user` is refused and `pm uninstall --user 0` is reverted by the root daemon `coocaa_guard`, so the 21-package list is built on `pm hide` (survives a reboot, `pm unhide` rolls back); hiding `com.tianci.movieplatform` hangs the boot at the logo behind a `KeyguardScrim` until `pm unhide` plus a reboot; HOME is owned by `com.tianci.system` through `persist.service.homepage.*`, rewritten from the read-only pcfg file at every boot; adbd on this build serves a single TCP transport, so a launcher holding a local ADB session can starve the computer's connection. Third-party Home handover works through an accessibility relay and skips the 15 s boot ad; cold boot verified 3/3 on 2026-10-31 (the firmware ad still appears in some cold boots), and the power key reboots this set rather than suspending it.- [TCL 40S65A](../docs/devices/tcl-40s65a.md) (Android TV 9 `PPR2.180905.006.A1`): the launcher installs, takes Home and keeps it (Netflix and YouTube play); after a while in an app, BACK sometimes lands on HDMI 2 - an onn. stick in standby there, "No signal" - instead of the launcher, and HOME returns immediately; the report names no packages, so no list yet.+- [XGIMI H1](../docs/devices/xgimi-h1.md) (MStar `guava`, GMUI V1.5.3, Android 5.1.1 `LMY47V` userdebug): `pm disable-user` is refused and `pm hide` works from the shell; what each XGIMI/MStar preload declares (an ad/statistics receiver, phone-remote and file-push servers with APK installers, two casting receivers, a 2017 Google stack) and which ports they open; init's `debug.sh` runs Samba as root from a world-writable folder that hiding FileManager does not stop; owner report, no list the repo tools can apply.To add your TV, see [CONTRIBUTING.md](../CONTRIBUTING.md). The quickest way to get a list is torun the prompt in [PROMPT.md](../PROMPT.md) and copy the packages your assistant disabled.