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: Wanbo T2 Max, Android 6 version (MStar bennet)
benny117da429056d786
diff --git a/docs/devices/wanbo-t2-max-android6.md b/docs/devices/wanbo-t2-max-android6.mdnew file mode 100644index 000000000..1489e74a6--- /dev/null+++ b/docs/devices/wanbo-t2-max-android6.md@@ -0,0 +1,107 @@+# Wanbo T2 Max, Android 6 version (MStar, `T2 M+`)++Observed on one projector, in France, in a single session. This is a device report, **not a debloat list**: the+shell user cannot disable anything on this firmware, so nothing was disabled. It also records what this repo's+launcher needed to run on Android 6; that build is a local copy, not something this repository ships.++The T2 Max was sold in two versions. This note is about the **Android 6** one. The Android 9 T2 Max has a different+mainboard; owners on XDA report that its firmware will not flash on the Android 6 unit, and there is no custom ROM+for this MStar board, so the Android version cannot be raised.++| Field | Observed value |+|---|---|+| Retail model | Wanbo T2 Max; `ro.product.model` is `T2 M+` |+| Manufacturer / device | `MStar Semiconductor, Inc.`, device and board `bennet`, platform `mainz`, `armeabi-v7a` |+| Android / SDK | `6.0` / `23` |+| Build | `aosp_bennet-userdebug 6.0 MRA58K W073_DC.1080T2.Zeasn.21041417 test-keys` |+| RAM | 862 MB (`MemTotal: 882704 kB`), about 315 MB free on the stock home screen |+| Display | 1920x1080 at 240 dpi |+| Stock Home | `cn.zeasn.launcher.vstoresubclient.mstar358` ("Zeasn Launcher") |++## Connecting++Settings → About → tap the build number seven times, then Developer options → **USB debugging**. Network ADB then+answers on **5555**, with the usual "Allow USB debugging?" prompt (`ro.adb.secure=1`).++After a reboot, 5555 refuses connections again although Developer options stay on: toggle USB debugging off and on+to get it back. So a reboot is enough to close it.++## Nothing can be disabled++```+$ pm disable-user --user 0 com.android.galaxy4+Error: java.lang.SecurityException: Permission Denial: attempt to change component state from pid=4700, uid=2000, package uid=10025+$ pm hide com.android.galaxy4+Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS.+```++The same as on the [Xiaomi Mi TV 4S](xiaomi-mitv4-ansm0.md), the other Android 6 set here. `cmd` does not exist+yet on Android 6, and `pm query-activities` is unknown. The build is `userdebug` with `ro.debuggable=1`, so+`adb root` would probably work, but it was not tried: there is little to gain. The projector has 76 packages,+none of them user-installed, and the heaviest non-system processes are Google Play services (about 44 MB and+21 MB PSS), the Zeasn launcher (27 MB) and `com.zeasn.services.general` (11 MB).++Two packages come disabled from the factory: `com.ecloud.eairplay` and `com.google.android.youtube.tv`. The factory+menus `mstar.factorymenu.ui` and `com.toptech.factorytools` are installed; they were not opened.++## The projector's own apps++Only the Play Store has a leanback entry. Everything else declares a plain `LAUNCHER` activity:++| App | Package |+|---|---|+| LocalMM (USB media player) | `com.jrm.localmm` |+| EShareServer (screen mirroring) | `com.ecloud.eshare.server` |+| Mcast (Miracast receiver) | `com.toptech.mitv.wfd` |+| MTvPlayer (the HDMI input) | `com.mstar.tv.tvplayer.ui`, opens `.channel.SourceInfoActivity` |+| ZoomSettings (picture size) | `com.example.zoomsettings` |+| TV magasin (Zeasn store) | `cn.zeasn.toptech.projector.msd358.vstoresubclient` |+| Browser, Settings, Downloads | `com.android.browser`, `com.android.settings`, `com.android.providers.downloads.ui` |++The Netflix, Prime Video and Facebook tiles of the stock home screen are shortcuts into the Zeasn store, not+installed apps.++## Running the launcher on Android 6++This repo's launcher has `minSdk 26`, so `pm install` fails with `INSTALL_FAILED_OLDER_SDK`+([TROUBLESHOOTING](../TROUBLESHOOTING.md)). A copy built with `minSdk 23` runs on this projector after these+changes, all found with `lintRelease` (66 `NewApi` errors) or on the device:++- `coreLibraryDesugaring` (`com.android.tools:desugar_jdk_libs`) for `java.time` and `java.util.function`.+- API 24 calls behind a version check: `registerDefaultNetworkCallback` (a `registerNetworkCallback` with+ `NET_CAPABILITY_INTERNET` instead), `forceHasOverlappingRendering`, `TvInputInfo.isHidden` and+ `loadCustomLabel`.+- **Crash at the first `onResume`**: `getSystemService(TV_INPUT_SERVICE)` returns a manager, but its service is+ missing, and `getTvInputList()` throws a `NullPointerException` from `ITvInputManager`. The copy checks it once+ and treats the set as having no `TvInputManager`.+- **Only the Play Store tile showed up**, since the projector's apps have no leanback entry: the copy also lists+ `LAUNCHER` apps as tiles, and `hidden_apps` trims them.+- `live_tv_package` resolves through `getLeanbackLaunchIntentForPackage` only; MTvPlayer needs a+ `getLaunchIntentForPackage` fallback for the Inputs pill to appear.+- **Roboto everywhere**: `android:fontFamily="@font/..."` is ignored before Android 8, and the variable Outfit+ would load at its default weight (100). The copy ships four static instances (200, 300, 400, 500, cut with+ fontTools) and an inflater factory that sets them through `ResourcesCompat.getFont` on `TextView` and+ `TextClock`.+- `wifi_status_color`: `setCompoundDrawableTintList` does not reach the vector icon on Android 6; tinting the+ drawable itself does.++With these changes, the following worked from injected keys:+- **Home**: the stock home cannot be disabled, but the first Home press offers a chooser ("Zeasn Launcher" or+ the new one), and **Always** kept the new launcher after a reboot.+- **Tiles and pills**: tiles open their apps and Back returns, the Inputs pill opens MTvPlayer, and the gear opens+ Settings.+- **Idle clock**: it comes up over a wallpaper (`clock_wallpaper`).++Not tested: a physical remote, several days of use, `ClockDream` as the system screensaver, and Play Store sign-in.++## Time zone++The unit came set to `America/Sao_Paulo` with automatic time zone on, so every clock was 5 hours off in France.+Settings → Date & time fixes it, and so does the shell, without root:++```+settings put global auto_time_zone 0+service call alarm 3 s16 Europe/Paris+```++The time itself still comes from the network (`auto_time` stays 1).diff --git a/examples/README.md b/examples/README.mdindex 2a00d1df7..b215d099e 100644--- a/examples/README.md+++ b/examples/README.md@@ -303,6 +303,7 @@ Notes for models that have no tested list yet live in [`docs/devices/`](../docs/- [Sony K-75XR50 (China firmware)](../docs/devices/sony-k75xr50-ae2-cn.md), `BRAVIA 4K AE2` / `BRAVIA_AE2`, Android 14 `UKN4.250422.001 603100`, no Google packages, Dangbei stock Home: a one-day 36-package set plus one by hand, the Home handover with neither `setupwraith` nor `launcherx` to guard, and `com.sony.dtv.sensingfusionservice` blanking Settings → Display & Sound - it looks like camera bloat, and re-enabling it is not enough until the TV is rebooted; also how to tell a drawn page from a transparent one, because `screencap` lies there.- [waipu.tv Stick](../docs/devices/waipu-tv-stick.md) (SEI Robotics `SEI700WP`, Amlogic, Android 11 `RTT0.211009.001.6958`): the firmware refuses every `pm disable*` ("This command is illegal!"), so eight packages are suspended and background-restricted instead; the launcher installs and survives a reboot, but the waipu app (the stock Home) comes up over it after a cold boot and cannot be stopped; the vendor key handler keeps the waipu-thek, Netflix and YouTube buttons working.- [Wanbo T6 Max](../docs/devices/wanbo-t6-max.md), Android 9 / SDK 28, firmware `20220419`: single-session three-package report, ADB advertised on 3333, stock Home and setupwraith kept enabled with a non-key-filtering window-change redirect, input-player package and explicit physical-test/reboot limits; no several-day debloat list.+- [Wanbo T2 Max (Android 6)](../docs/devices/wanbo-t2-max-android6.md) (projector, MStar `bennet`/`mainz`, `T2 M+`, Android 6.0 `W073_DC.1080T2.Zeasn.21041417`, France): `pm disable-user` and `pm hide` are refused, so no list; network ADB on 5555 closes at every reboot; the projector's apps are plain `LAUNCHER` apps, and `TvInputManager` throws; what a `minSdk 23` launcher build needed (desugaring, API 24 guards, static Outfit), the Home chooser that held after a reboot, and a time zone set to São Paulo out of the box.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.