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
Add Hisense 85E7Q example: four Home candidates, and set-home-activity that answers Success
zhangfeng-enge07b6afcc492
diff --git a/docs/devices/hisense-85e7q.md b/docs/devices/hisense-85e7q.mdnew file mode 100644index 000000000..430976c9d--- /dev/null+++ b/docs/devices/hisense-85e7q.md@@ -0,0 +1,116 @@+# Hisense 85E7Q (China, VIDAA on Android 14): how Home is resolved on an MT9655 set++Owner report for a China-market Hisense 85E7Q. The tested package list lives in+[`examples/hisense-85e7q/debloat.txt`](../../examples/hisense-85e7q/debloat.txt); what is here is the+firmware behaviour around it, in particular the four things that decide which app answers Home on this+set. None of them can be worked around from a package list.++## Observed firmware++| Field | Observed value |+|---|---|+| Retail model | Hisense 85E7Q (85", 4K) |+| Manufacturer | `Hisense` |+| `ro.product.model` / `.name` / `.device` | `VIDAA_TV` / `VIDAA_TV` / `MT9655` |+| Board | `mt5877` (MediaTek MT9655) |+| Android / API | `14` / `34` |+| Build display id | `UQ1A.240105.004.A1 release-keys` |+| Build fingerprint | `Hisense/VIDAA_TV/MT9655:14/UQ1A.240105.004.A1/07.02.70.202605250010:user/release-keys` |+| Build description | `E7Q-user 14 UQ1A.240105.004.A1 07.02.70.202605250010 release-keys` |+| Security patch | `2024-08-05` |+| ABI | `arm64-v8a` |+| RAM | 3.7 GB (`MemTotal` 3887968 kB) |+| `ro.adb.secure` | `0` |+| `service.adb.tcp.port` | `5555` |+| Installed packages | 139 |+| Disabled at the factory | none |++`ro.product.model` is `VIDAA_TV` and says nothing about the size or the model year: on this family the+only place the retail name survives is `ro.build.description`, so tell two sets apart by the build id+or the fingerprint.++## ADB access++The **USB debugging switch also opens TCP port 5555**, and `ro.adb.secure=0` means no "Allow USB+debugging?" prompt is ever shown: any device on the LAN gets a shell. Turn that switch off when the+work is done and confirm the port refuses connections (`tools/adb-closed.py <tv ip>`). There is no+separate network-debugging row to rely on, and `adb tcpip` is unnecessary.++## Home: four candidates, and only one of them wins at boot++`cmd package query-activities --brief -a android.intent.action.MAIN -c android.intent.category.HOME`+listed four usable Home activities before the swap, and the market name of each matters:++| Package | Activity | Priority |+|---|---|---|+| `com.jamdeo.tv.vod` (聚好看, the stock launcher) | `com.ju.main.launcher.LauncherActivity` | `50` |+| `com.keylab.speech.view.vidaa` (JuUI "second screen") | `com.ju.secondscreen.HomeActivity` | `-150` |+| `com.hisense.widget.pro` (card home, same second-screen activity) | `com.ju.secondscreen.HomeActivity` | `-150` |+| `com.android.settings` (fallback) | `.FallbackHome` | `-1000` |++`com.meetingroom/.MeetingRoomActivity` answers Home too at `-100` until the list disables it.++### `cmd package set-home-activity` is accepted and ignored++```+$ adb shell cmd package set-home-activity <package>+Success+$ adb shell settings list secure | grep -i home+$+$ adb shell settings list global | grep -i home+$+```++`Success`, and no `home_activity` key anywhere afterwards. A reboot resolves Home again from scratch,+which is why the same command appeared to work on other TVs and did nothing here. Do not build a+handover on its exit code.++### Resolution is pure priority order, from the manifest++With no key to read, the framework sorts the candidates by the `android:priority` of the+`intent-filter` that declares `MAIN` + `HOME`. Default is `0`, so a launcher that declares nothing+loses to `com.jamdeo.tv.vod` at `50` and to nothing else. The fix is one attribute in the manifest, and+the value does not appear in `pm` or `dumpsys package` output afterwards: the launcher that answers Home+reports `priority=0` even when its filter says otherwise.++### The main activity has to be `android:directBootAware="true"`++This is the one that costs an afternoon. With the filter priority fixed and everything else right, a+**cold boot** (mains power cut, not standby wake) still came up on+`com.keylab.speech.view.vidaa/com.ju.secondscreen.HomeActivity` — the JuUI second-screen home, with a+hot-list row of promos at the top of the screen. Home pressed after boot went to the new launcher+correctly, so it looked like a timing problem and was not one: at that point in boot the user is still+locked, an activity that is not direct-boot aware cannot be started, and the resolver moves to the next+candidate. Adding `android:directBootAware="true"` to the launcher's main activity fixed cold boot with+no other change. A launcher that does this has to work without access to credential-encrypted storage+during that window.++### The other two Home candidates cannot be disabled one component at a time++`pm disable-user com.keylab.speech.view.vidaa/com.ju.secondscreen.HomeActivity` is refused with a+`SecurityException` ("Shell cannot change component state ... to 3"), and `pm hide` fails for lack of+`android.permission.MANAGE_USERS`. It is the whole package or nothing, and on this set the whole+package also takes the voice assistant with it. That is why `keylab` and `hisense.widget.pro` stay+enabled in the example list: two launchers always remain, so the list cannot leave the TV without a+Home even if the new launcher is uninstalled later.++## The settings app that is not the settings app++`com.android.tv.settings/com.hisense.systemsettings.MainActivity` is exported and starts, then finishes+itself immediately: a black frame and back to where you were, with no error in `logcat` worth reading.+It is not the settings app on this build. `com.android.settings` is, and it has the ordinary Android+pages (apps, network, about). A shortcut built on the first component looks like it works until someone+presses it.++## The boot animation cannot be removed without root++`/system/media/default_bootanimation.zip` is 86 frames, about 6.6 s, and `/system` is erofs and read+only. There is no root on this set, `/data/local` is not writable, no package owns the animation, and+`persist.sys.str_on` is `0`. Nothing reachable over ADB shortens it, and deleting the zip would only+make the same 6.6 s black. The honest options are the vendor's own fast-boot/standby switch in the TV+settings, or living with it: on this unit a cold boot reached the new Home 16 s after the power button.++## List++[`examples/hisense-85e7q/debloat.txt`](../../examples/hisense-85e7q/debloat.txt) — 19 packages, applied+and lived with, with the packages that must stay named at the bottom of the file and why.diff --git a/examples/hisense-85e7q/debloat.txt b/examples/hisense-85e7q/debloat.txtnew file mode 100644index 000000000..d75820be6--- /dev/null+++ b/examples/hisense-85e7q/debloat.txt@@ -0,0 +1,85 @@+# Hisense 85E7Q (ro.product.model "VIDAA_TV", device MT9655, board mt5877), China. Android 14 (SDK 34),+# build UQ1A.240105.004.A1 / 07.02.70.202605250010, security patch 2024-08-05, 3.7 GB RAM, arm64-v8a.+# Android reports the retail name only in ro.build.description ("E7Q-user ..."), so identify this unit by+# ro.build.fingerprint or by the build id above: ro.product.model, ro.product.name and ro.product.device+# are "VIDAA_TV", "VIDAA_TV" and "MT9655", which every Hisense China set on this board answers.+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/hisense-85e7q/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/hisense-85e7q/debloat.txt com.jamdeo.tv.vod+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# Status: applied 2026-11-02 in batches with a screenshot after each, then one cold boot and one power+# cycle (unplugged). Nothing came back on at boot and no app crashed. Working after it: Home (a+# replacement launcher, see the end of this file), the remote, the Inputs panel with the HDMI rows+# switching, Wi-Fi, ADB, and APK installs from a side-loaded store. With that launcher in front,+# MemAvailable read 860 MB of the 3.7 GB. Not tested: Live TV and the tuner (no antenna on this unit),+# HDMI-CEC, and casting from a phone.+#+# ADB: ro.adb.secure=0 and service.adb.tcp.port=5555, so the USB debugging switch alone opens 5555 to+# every device on the LAN with no "Allow USB debugging?" prompt. Turn that switch off when the work is+# done and confirm the port refuses connections (tools/adb-closed.py <tv ip>).+#+# What this list leaves alone, and why, is at the bottom: two of those packages cost an input row or a+# keyboard the moment they go, and one of them was tried.++# Advertising+com.hisense.business.ad # ad SDK+com.hisense.service.ad # ad service++# Telemetry and reporting+com.hisense.platformreport # platform data reporter+com.hisense.logupload # log uploader+com.hisense.hitv.das # DasApp reporter (JuUI)++# Vendor push channel+com.hisense.service.message++# Retail, hotel, meeting-room and first-run modes+com.hisense.demonstrate # shop demo loop+com.hisense.hotelmenu # hotel mode menu+com.meetingroom # meeting-room mode, answers HOME at -100+com.jamdeo.tv.fte # first-run wizard (already past)++# Preloaded content and gimmicks+com.hisense.electronictutorial # electronic manual+com.vision.aibook # AI picture book+com.hisense.tv.fitmirror # fitness mirror+com.hisense.tv.videochat.social # preloaded video chat+com.hisense.tv.videoconference # video conferencing+com.hisense.tv.weather # stock weather tile+com.jamdeo.calendar # calendar+com.ju.miguvideoTV.cmcc # Migu Video, carrier preload++# Stock launcher (JuUI 聚好看). This unit ran the launcher swap, so it is off here. Disabling it does not+# leave the TV without a Home: com.keylab.speech.view.vidaa and com.hisense.widget.pro answer HOME at+# -150 and stay enabled, so tools/disable.sh's Home guard lets this line through. Keeping the stock Home+# instead? Comment this line out and drop the second argument to restore.sh.+com.jamdeo.tv.vod++# ============================================================================+# Kept on purpose+# ============================================================================+# - com.hisense.tv.tiletransition, signal-source switching. Tried and re-enabled: with it off the Inputs+# panel still draws and the HDMI rows still highlight, but choosing one switches nothing. This is the+# one package on this firmware that looks optional and is not.+# - com.hisense.tv.inputs, com.jamdeo.tv.livetv: the panel and the tuner app the panel starts.+# - com.keylab.speech.view.vidaa, com.hisense.widget.pro: the two other Home candidates (see above).+# keylab is the JuUI "second screen" home with a hot-list chart row on top; it is also what a cold boot+# falls back to when a launcher is not direct-boot aware, which is why it stays enabled.+# - com.hispeech.ai.area, com.keylab.speech.core.vidaa, com.iflytek.xiri, com.intelligent.speech,+# com.hisense.msvoicetome, com.hisense.vidaaassistant: the voice chain, and the last one also handles+# app installs and permissions. A replacement launcher that reads its own app list needs it.+# - com.sohu.inputmethod.sogou.tv: the only keyboard on this build. Without it no text field accepts+# input, including a Wi-Fi password.+# - com.jamdeo.updateservice, com.hisense.usbupgrade, com.hisense.playerupdate: OTA, left on so firmware+# updates still arrive. Comment them out only if you have decided against them.+# - com.vt.permission.manager, com.hisense.tv.globalui, com.hisense.tv.baseservice, com.hisense.hiservice:+# the JuUI layer under the settings and permission screens.+# - com.hisense.aiot, com.hisense.aiod, com.hisense.bluetoothpair, com.hisense.raycodereceiver: smart-home+# link, remote pairing and the IR/code receiver.+# - com.hisense.childlock, com.jamdeo.screensaver, com.ms.ucast.ucastapp, com.ms.weshare,+# com.hisense.multiscreen.screenhelper, com.hisense.pcm.share, com.hisense.nas.pt,+# com.hisense.nasservice, com.kookong.tvplus: all live on the "maybe you use it" line - child lock, the+# screensaver, phone and PC casting, the NAS browser and the remote-control helper. Off only by choice.+# - com.hisense.service.hproxy, com.vt.atlas, com.vision.palette, com.ju.tv.audio: purpose not established+# on this build, so nothing here claims they are safe.diff --git a/examples/hisense-85e7q/tv.json b/examples/hisense-85e7q/tv.jsonnew file mode 100644index 000000000..12a587401--- /dev/null+++ b/examples/hisense-85e7q/tv.json@@ -0,0 +1,6 @@+{+ "tv": "Hisense 85E7Q (VIDAA_TV, MediaTek MT9655), China",+ "os": "Android 14",+ "brand": "Hisense",+ "notes": "China VIDAA firmware on Android 14 (MT9655, build 07.02.70.202605250010): ad SDK/service, telemetry and the DAS reporter, the vendor push channel, retail/hotel/meeting and first-run modes, preloaded content, weather and calendar; the stock Home `com.jamdeo.tv.vod` goes with the launcher swap, and two other launchers stay enabled so Home never empties; OTA kept; 19 packages; [device notes](../docs/devices/hisense-85e7q.md)"+}