Skip to content

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

examples: add JVC LT-43KM348 (KTC, jagalchi, MediaTek mt5867 / T56), Google TV 14

Robert Gonzalezf6c33c9f8967
diff --git a/examples/jvc-lt-43km348/README.md b/examples/jvc-lt-43km348/README.md
new file mode 100644
index 000000000..0254dcdc2
--- /dev/null
+++ b/examples/jvc-lt-43km348/README.md
@@ -0,0 +1,86 @@
+# JVC LT-43KM348 (KTC, jagalchi), Google TV 14
+
+KTC-built JVC on MediaTek mt5867 / T56, about 0.96 GB RAM, firmware `UKN7.260716.013`. The list is in
+[`debloat.txt`](debloat.txt); [`config.json`](config.json) has a dock, the Live TV action and the YouTube and
+Netflix buttons (needs `INPUT_KEY_SERVICE=1`).
+Everything below was checked on one TV between 2026-10-22 and 2026-10-25.
+
+## Connecting
+
+- Port 5555 was closed at first. Wireless debugging (pairing code) worked; after `adb tcpip 5555` the tools in
+ `tools/` connect as usual. Port 5555 closes again on every reboot.
+- After a reboot, with Wireless debugging still on, `adb` reconnected over mDNS without a new pairing code.
+- `screencap` works on Home and in apps; HDMI and the tuner come back as 0-byte files, as on most sets.
+
+## Anoki ACR: what talks to whom
+
+- `tv.anoki.acr.anokiacroptin` (priv-app, v3.2.7) is the ACR client. Its code fetches its configuration from
+ `acr-config.aistrm.net` and has opt-in states (`ACR_STATE_SHOW_OPTIN`, `ACR_DECLINED`). The owner does not
+ remember ever seeing a viewing-data prompt during setup.
+- `com.cltv.hybrid` (Anoki / iWedia CLTV free channels, updated from the Play Store) carries an `F_ACR_SUPPORT`
+ flag, a long list of ad-tech vendors in its consent SDK, and streams from `stream.aistrm.net`.
+- `[email protected]` is a vendor HAL (`[email protected]::IAnokiAcr`). It keeps
+ running after both apps are disabled and cannot be disabled without root, but it held no network connection of
+ its own when checked (`/proc/net/tcp*` for its uid showed only adbd).
+- **AdGuard Private DNS (`dns.adguard-dns.com`) does not block these hosts**: on 2026-10-25 the TV resolved
+ `acr-config.aistrm.net`, `stream.aistrm.net` and `stream-stage.aistrm.net` to real addresses with AdGuard on.
+ Disabling the two packages is what stops it, not the DNS extra.
+- The TV has a second, never-started user (10, `new_user`) where both packages were still enabled:
+ `tools/tv.py 'pm disable-user --user 10 tv.anoki.acr.anokiacroptin'`, same for `com.cltv.hybrid`.
+ `tools/restore.sh` only handles user 0, so undo those with `pm enable --user 10 <package>`.
+
+## Launcher handover
+
+- The first `launcher/build-and-install.sh` run ended with Home on `setupwraith/.RecoveryActivity`; the script
+ rolled back to launcherx as designed. setupwraith owned the network saved at setup (`dumpsys wifi |
+ grep -o 'cname=[^ ]*'`), so the network was forgotten and joined again in Settings first. After disabling
+ setupwraith, the second run moved Home to the new launcher.
+- `dumpsys package providers` lists setupwraith's `CastInfoProvider` on this build, so Chromecast is expected to
+ lose its credentials once setupwraith is off (see docs/TROUBLESHOOTING.md). The owner then disabled
+ `com.google.android.apps.mediashell` too; casting was not retested. The Google TV phone app's remote
+ (`_androidtvremote2._tcp`, `com.google.android.tv.remote.service`) keeps working.
+
+## Remote buttons (Bluetooth remote RM-C3293)
+
+Checked with a temporary `Log.d` in `InputKeyService.onKeyEvent`, on HDMI 1:
+
+| Button | HID usage | What the launcher's key services see |
+|---|---|---|
+| TV | `0x0c008d` | `KEYCODE_GUIDE` (172), scancode 362. Only launcherx answered it; with it disabled it does nothing until mapped |
+| Red / Green / Yellow / Blue | `0x0c0069`, `0x0c006a`, `0x0c006c`, `0x0c006b` | `KEYCODE_PROG_RED`..`PROG_BLUE` (183-186), scancodes 398-401 |
+| Settings (gear) | `0x0c009f` (`KEY_UNKNOWN`) | Never reaches them. `com.mediatek.tv.service` (`HotKey_SettingsAction`) takes it and asks SystemUI's `TvNotificationPanel` for `android.app.action.TOGGLE_NOTIFICATION_HANDLER_PANEL` |
+| D-pad down, OK | `0x0c0043`, `0x0c0041` | Not delivered to them either on this firmware |
+
+- **The Settings button's side panel lives in launcherx** (`.dashboard.DashboardHandler`, the only handler of
+ that action). With launcherx disabled, logcat shows `TvNotificationPanel: Not launching notification handler
+ activity` on every press and nothing opens. Re-enabling launcherx brings the panel back, but launcherx then takes
+ Home again (`set-home-activity` changes nothing) and costs about 190 MB here (about 130 MB for the app, 58 MB
+ for `:coreservices`, which stays up). `stock_home_redirect: "com.google.android.apps.tv.launcherx"` with
+ `HOME_KEY_SERVICE=1` bounced Home back to the new launcher within a second in testing; the owner chose the RAM.
+- With `INPUT_KEY_SERVICE=1` (all testing was done with it on), Input, TV, YouTube and Netflix work and holding
+ volume up still repeats. Not tried with the service off.
+- `dumpsys window` routes `KEYCODE_BUTTON_4` (191, Netflix) to
+ `com.mediatek.tv.service/com.mstar.netflixobserver.NetflixKeyReceiver` and `KEYCODE_BUTTON_3` (190, YouTube)
+ and `KEYCODE_GUIDE` to launcherx; `config.json` maps 190 and 191 anyway.
+- Mapping the TV button to Live TV needs a launcher change: `app_keys` launches a package's launch entry, and
+ tvcenter has none (it starts only through `live_tv_action`).
+
+## Picture and Live TV
+
+- `android.settings.DISPLAY_SETTINGS` opens `com.android.tv.settings/.partnercustomizer.picture.PictureActivity`
+ as a side panel over HDMI, with picture mode, **backlight**, brightness, contrast, saturation, tint and
+ sharpness. That is the closest thing to the missing Settings-button panel.
+- Android's display brightness does nothing here: `cmd display set-brightness 0.02` reaches the LightsHAL but the
+ panel does not change. The backlight is the `picture_backlight` system setting, which apps cannot write.
+- `com.mediatek.wwtv.tvcenter` has no launcher entry. `android.mtk.intent.action.ACTION_REQUEST_TOP_RESUME`
+ opens it (`live_tv_action` in `config.json`). `com.mediatek.wwtv.tvcenter.nav.TurnkeyUiMainActivity.Menu` only
+ brings the tuner to the front ("no signal" without an antenna), and the tuner's passthrough URI opens Google's
+ generic input player, so neither helps.
+- The sleep timer is `com.android.tv.settings/.partnercustomizer.timer.TimerActivity`, which shares
+ `android.settings.DATE_SETTINGS` with Date & time: name the component to avoid a chooser.
+
+## Memory
+
+Measured with `dumpsys meminfo` after the list, the new launcher and HDMI 1 in front: about 250 MB free (22 MB
+truly free plus reclaimable caches), ZRAM holding about 345 MB in 56 MB. The new launcher took 27 MB in the
+background and about 90 MB on screen.
diff --git a/examples/jvc-lt-43km348/config.json b/examples/jvc-lt-43km348/config.json
new file mode 100644
index 000000000..f07e3d9db
--- /dev/null
+++ b/examples/jvc-lt-43km348/config.json
@@ -0,0 +1,18 @@
+{
+ "dock_apps": [
+ "com.netflix.ninja",
+ "com.google.android.youtube.tv",
+ "com.spotify.tv.android",
+ "tv.pluto.android"
+ ],
+ "hidden_apps": [
+ "com.mediatek.wwtv.tvcenter"
+ ],
+ "live_tv_package": "com.mediatek.wwtv.tvcenter",
+ "live_tv_action": "android.mtk.intent.action.ACTION_REQUEST_TOP_RESUME",
+ "app_keys": [
+ "190:com.google.android.youtube.tv",
+ "191:com.netflix.ninja"
+ ],
+ "columns": 4
+}
diff --git a/examples/jvc-lt-43km348/debloat.txt b/examples/jvc-lt-43km348/debloat.txt
new file mode 100644
index 000000000..4d9654014
--- /dev/null
+++ b/examples/jvc-lt-43km348/debloat.txt
@@ -0,0 +1,72 @@
+# JVC LT-43KM348 (built by KTC, product KTC_JVC_2K_25GV1, device jagalchi, MediaTek mt5867 / T56),
+# Google TV 14 (API 34), firmware UKN7.260716.013, security patch 2026-08-01, about 0.96 GB RAM
+# (ro.config.low_ram=true), 32-bit userspace, UI at 1280x720 on a 1920x1080 panel.
+# Fingerprint: JVC/KTC_JVC_2K_25GV1/jagalchi:14/UKN7.260716.013/16001078:user/release-keys
+#
+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/jvc-lt-43km348/debloat.txt
+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/jvc-lt-43km348/debloat.txt com.google.android.apps.tv.launcherx
+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.
+#
+# Stock launcher: com.google.android.apps.tv.launcherx (pass it to restore.sh as above).
+# Live TV: com.mediatek.wwtv.tvcenter. No launcher entry: set live_tv_action (config.json in this folder).
+# TV inputs (com.mediatek.tvinput): HDMI 1 = HW4, HDMI 2 = HW5, composite = HW1, tuners = HW0 / HW6 (analog).
+# Same KTC board as docs/devices/master-g-2k-smart-tv.md (Master-G 2K, jagalchi, Chile, UKN4.250714.046): there
+# com.cltv.hybrid and fusion.android.tv.demo shipped disabled and Live TV was tvcenter.plus; here both are enabled at
+# the factory and tvcenter.plus is the one shipped disabled. Same chip as examples/eko-2k-google-tv-tennoji (MTC).
+# More notes (Settings button, remote keys, picture panel, ACR servers): README.md in this folder.
+#
+# KEEP, even though the names look like bloat:
+# - fusion.android.tv.demo: receives com.mstar.android.intent.action.TV_INPUT_BUTTON (the remote's Input key).
+# - com.mediatek.android.leanbacklauncher.partnercustomizer (+ .overlay): crash-loops com.mediatek.tv.service
+# on other MediaTek sets if disabled (see examples/chiq-ai-pont).
+# - com.ktc.tv.factory, ktc.factorymenu.ui, mediatek.factorymenu.ui: they own global keys (F5, F9, F11, BUTTON_2/5/8/9
+# in `dumpsys window`). Left enabled and never launched.
+# - com.mediatek.wwtv.setupwizard, com.mediatek.autopair, com.google.android.tv.remote.service (remote pairing,
+# the Bluetooth remote's mic and the Google TV phone app's remote, which still finds the TV with this list).
+# - com.google.android.katniss (Assistant) and com.mediatek.miracast, by the owner's choice.
+# - No separate firmware-update package: the build has com.google.android.feature.SILENT_OTA.
+#
+# Status: disabled 2026-10-22 to 2026-10-25 on one TV; survived an unplanned power cut (Home stayed the new
+# launcher, every package stayed disabled, Wi-Fi came back). Three days of real use, not a long soak.
+# Already disabled at the factory, so not listed: com.mediatek.wwtv.tvcenter.plus, com.google.android.youtube.tvmusic.
+
+# Telemetry, content recognition, feedback, partner setup
+tv.anoki.acr.anokiacroptin # Anoki ACR (priv-app); config from acr-config.aistrm.net
+com.cltv.hybrid # Anoki / iWedia CLTV free channels: ACR support flag, ad SDKs, stream.aistrm.net
+com.google.android.feedback
+com.android.tv.feedbackconsent
+com.google.android.partnersetup # Google partner attribution
+com.android.federatedcompute.services
+com.android.ondevicepersonalization.services
+com.mstar.android.tv.disclaimercustomization # setup-only disclaimer screen
+
+# Preloads, off by the owner's choice
+com.amazon.amazonvideo.livingroom # Prime Video
+com.google.android.videos # Google TV app (Play Movies)
+com.google.android.play.games
+com.tcl.browser
+com.electronic.manual # e-manual
+
+# Background services nobody needs on a TV
+com.android.backupconfirm
+com.android.sharedstoragebackup
+com.android.wallpaperbackup
+com.android.health.connect.backuprestore
+com.android.healthconnect.controller
+com.google.android.syncadapters.calendar
+com.android.providers.calendar
+com.android.dynsystem # Dynamic System Updates
+com.android.cts.ctsshim
+com.android.cts.priv.ctsshim
+com.android.dreams.basic
+com.google.android.marvin.talkback
+
+# Launcher handover. setupwraith's RecoveryActivity took Home on the first launcher install (the install
+# script rolled back). It also owned the Wi-Fi network saved at setup: forget the network and join it again
+# in Settings first (owner becomes android.uid.system), or disabling it deletes the network. On this build it
+# also holds the Cast credentials (CastInfoProvider), so Chromecast is expected to fail after a reboot.
+com.google.android.tungsten.setupwraith
+com.google.android.apps.mediashell # Chromecast built-in, off by choice once setupwraith was gone (casting not retested)
+
+# Stock launcher, replaced by launcher/. Disabling it also kills the remote's Settings-button panel (README.md).
+# com.google.android.apps.tv.launcherx # launcher/build-and-install.sh disables it itself, after Home has moved
diff --git a/examples/jvc-lt-43km348/tv.json b/examples/jvc-lt-43km348/tv.json
new file mode 100644
index 000000000..6a48c4291
--- /dev/null
+++ b/examples/jvc-lt-43km348/tv.json
@@ -0,0 +1,6 @@
+{
+ "tv": "JVC LT-43KM348 (KTC-built, KTC_JVC_2K_25GV1, jagalchi, MediaTek mt5867 / T56)",
+ "os": "Google TV 14",
+ "brand": "JVC",
+ "notes": "First KTC list: Anoki ACR and its CLTV free-channels app (both talk to `*.aistrm.net`, which AdGuard Private DNS does not block; the vendor ACR HAL stays, without network), Android ad/federated services, feedback, partner setup, Health Connect and backup leftovers; Prime Video, Play Movies, Play Games, TCL Browser, e-manual off by choice; setupwraith owned the setup Wi-Fi and the Cast credentials, Chromecast off by choice; the remote's Settings button panel lives in launcherx and goes with it, colour keys and the TV key reach `InputKeyService`; `DISPLAY_SETTINGS` opens the picture/backlight panel over HDMI; Live TV needs `live_tv_action`; same board as the [Master-G 2K note](../docs/devices/master-g-2k-smart-tv.md); 0.96 GB"
+}