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
Merge PR #358: examples: add Hisense E5Q Pro (China VIDAA) debloat list
Gathin237690ec00f599
diff --cc README.mdindex a186f82c3,91e0fb74a..c8a60496f--- a/README.md+++ b/README.md@@@ -163,6 -141,7 +163,7 @@@ SANYO · Thomson · Toshiba Fire TV ·| Haier Android TV DVB2K (broadway, HaierATVT56DVB) | Android TV 11 || Haier H32S80EFX (MatrixTV CE, HRT56EU, deto, MediaTek), Thailand | Google TV 14 || Hisense HG9 (HiSmart 4K A4FFM) | Android TV 9 |-| Hisense E5Q Pro (VIDAA_TV, MediaTek MT9653), China | VIDAA on Android 11 |++| Hisense E5Q Pro (VIDAA_TV, MediaTek MT9653), China | Android TV 11 || Hisense HiSmartTV A4 (xiaoyushan, MStar m7322), Android 11 firmware RTT2.221108.001 | Android TV 11 || Hisense HiSmartTV A4 (xiaoyushan, MStar m7322), India | Android TV 9 || Hisense SmartTV 4K FFM (huangshan, MediaTek) | Android TV 10 |diff --cc examples/README.mdindex d9c2f5f61,9f36a84da..ef12b8eff--- a/examples/README.md+++ b/examples/README.md@@@ -17,6 -14,7 +17,7 @@@ on that firmware, grouped and commented| `google-chromecast-gtv-4k/` | Chromecast with Google TV 4K (sabrina) | Google TV 14 | Google telemetry and ad services, ambient mode, launcherx + setupwraith; wireless-debugging pairing, YouTube button remap || `haier-android-tv-dvb2k/` | Haier Android TV DVB2K (broadway, HaierATVT56DVB) | Android TV 11 | Anoki ACR, retail demo, Haier content apps and auto-install; 1 GB, 720p; setupwraith left enabled || `haier-h32s80efx/` | Haier H32S80EFX (MatrixTV CE, HRT56EU, deto, MediaTek), Thailand | Google TV 14 | Haier hOn IoT and smart-device services, Haier tab and Kinopoisk promo, retail demo, cleaner; YouTube Music and Google TV app off by choice; setupwraith must go (RecoveryActivity component refused); Live TV must target the digital tuner, TrueID also claims channel intents |-| `hisense-e5q-pro/` | Hisense E5Q Pro (VIDAA_TV, MediaTek MT9653), China | VIDAA on Android 11 | First China-firmware VIDAA set: ad SDK/service, push, telemetry, store/hotel/demo and preloaded content; stock launcher `com.jamdeo.tv.vod` and Live TV `com.jamdeo.tv.livetv` kept, OTA kept; 18 packages |++| `hisense-e5q-pro/` | Hisense E5Q Pro (VIDAA_TV, MediaTek MT9653), China | Android TV 11 | China VIDAA firmware, the conservative subset of `vidda-mt9653/` (same build): ad SDK/service, push, telemetry, store/hotel/demo and preloaded content; stock launcher `com.jamdeo.tv.vod` and Live TV `com.jamdeo.tv.livetv` kept, OTA kept; 18 packages || `hisense-hg9/` | Hisense HG9 (HiSmart 4K A4FFM) | Android TV 9 | ACR collector, Smartsense, log reporter, store mode, B2B; FLauncher used instead of stock || `hisense-hismarttv-a4-android11/` | Hisense HiSmartTV A4 (xiaoyushan, MStar m7322), Android 11 firmware RTT2.221108.001 | Android TV 11 | Same set after its Android 11 update, now with the FFM-style namespace: Hisense ACR (evservice), push messages, VIDAA Channels, HiAlexa, hotel mode, store disclaimer, Google partner tracking and auto-installs; streaming apps optional; OTA, casting, Assistant kept; USB debugging opens port 5555; the Input key only works through the stock launcher (VIEW_INPUTS); smartsense kept || `hisense-hismarttv-a4/` | Hisense HiSmartTV A4 (xiaoyushan, MStar m7322), India | Android TV 9 | Hisense log reporting, sponsored home rows, store demo, preload auto-installs, OTA; USB debugging opens port 5555, no wireless toggle; smartsense kept |diff --cc examples/hisense-e5q-pro/debloat.txtindex 000000000,a71523507..146a8e328mode 000000,100644..100644--- a/examples/hisense-e5q-pro/debloat.txt+++ b/examples/hisense-e5q-pro/debloat.txt@@@ -1,0 -1,48 +1,50 @@@+ # Hisense E5Q Pro (internal model "VIDAA_TV", MediaTek MT9653), VIDAA on Android 11, firmware 02.02.70.01+ # Security patch 2022-09-05. China-market set: a VIDAA/Android hybrid with no Google TV launcher,+ # so the stock home is com.jamdeo.tv.vod and the tuner app is com.jamdeo.tv.livetv; both are left+ # alone here. The VIDAA UI keeps working; this list only removes the ad, telemetry, push and+ # preloaded-content layer on top of it.++# Same VIDAA_TV / MT9653 / 02.02.70.01 build as examples/vidda-mt9653/, which goes further (it also++# swaps the launcher); this list is the conservative subset that keeps the stock home.+ #+ # Apply: TV_HOST=<tv ip> tools/disable.sh examples/hisense-e5q-pro/debloat.txt+ # Undo: TV_HOST=<tv ip> tools/restore.sh examples/hisense-e5q-pro/debloat.txt+ # Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+ #+ # Applied and lived with for a few days: no crashes, normal boot, and the inputs / HDMI-CEC and the+ # Sogou TV keyboard kept working. OTA (com.jamdeo.updateservice, com.hisense.usbupgrade,+ # com.hisense.playerupdate) is left enabled on purpose so firmware updates still arrive.+ #+ # Also useful on this firmware, as an extra ad-block flag (not a package):+ # settings put global com.hisense.service.ad_block 1++ # Hisense advertising+ com.hisense.business.ad # ad SDK+ com.hisense.service.ad # ad service++ # Hisense telemetry and reporting+ com.hisense.platformreport+ com.hisense.logupload++ # Hisense push messages+ com.hisense.service.message++ # Store, hotel and demo modes+ com.hisense.demonstrate+ com.hisense.hotelmenu++ # Preloaded content and gimmicks+ com.hisense.electronictutorial # electronic manual+ com.hisense.ar.baike # AR encyclopedia+ com.vision.aibook # AI picture book+ com.hisense.tv.foodmanage # recipe app+ com.hisense.tv.fitmirror # fitness mirror+ com.hisense.tv.videochat.social # preloaded video chat+ com.hisense.tv.videoconference # video conferencing++ # First-run setup and the ambience-photo screensaver+ com.jamdeo.tv.fte+ com.vt.ambiencephoto++ # Weather and calendar+ com.hisense.tv.weather+ com.jamdeo.calendardiff --cc examples/vidda-mt9653/debloat.txtindex c855793f9,000000000..b0cb6b12bmode 100644,000000..100644--- a/examples/vidda-mt9653/debloat.txt+++ b/examples/vidda-mt9653/debloat.txt@@@ -1,125 -1,0 +1,126 @@@+# Vidda VIDAA_TV (Hisense sub-brand; device MT9653, board mt5879), Android TV 11, build+# RP1A.200720.011 (02.02.70.01). Vidda is Hisense's youth sub-brand, sold in China with 聚好看 JuUI:+# the model string is VIDAA_TV and the package namespace is com.jamdeo.* / com.hisense.*, so it shares+# nothing with the export Hisense lists in this folder (com.hisense.evservice, com.mediatek.*).+# 3.8 GB RAM, 41 GB storage, UI at 1080p / 320 dpi.++# Same build as examples/hisense-e5q-pro/, a smaller list that keeps the stock home.+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/vidda-mt9653/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/vidda-mt9653/debloat.txt+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# ADB: turning USB debugging on opens network ADB on 5555 directly; no wireless pairing needed.+# ro.adb.secure=0, so the TV does not even show "Allow USB debugging?" — any device on the LAN gets a+# shell with no prompt. Close the port when you are done, or keep the TV on a trusted network only.+#+# ⚠ com.hisense.tv.tiletransition is NOT in this list on purpose. Its name reads like a transition or+# boot-ad layer, but it hosts TileAnimationService, which the vendor source panel binds to before it+# switches inputs. Disabled, the panel still opens and still animates, but picking HDMI does nothing:+# W/ActivityManager: Unable to start service Intent {+# act=com.hisense.tv.tiletransition.TileAnimationService+# pkg=com.hisense.tv.tiletransition } not found+# W/a: switchToAppViaRemote, no service found+# Re-enabling it fixes input switching immediately. This is the "package names often don't say what a+# package does" warning in PROMPT.md, made concrete.+#+# Stock launcher: com.jamdeo.tv.vod (JuUI). launcher/build-and-install.sh does not know that name:+# TV_HOST=<tv ip> HOME_KEY_SERVICE=1 STOCK_LAUNCHER=com.jamdeo.tv.vod launcher/build-and-install.sh+# Enabling it again (pm enable) makes the TV reclaim Home even after an explicit set-home-activity;+# to go back, disable it first and set Home afterwards.+#+# Remote Home key: the physical button is Linux scancode 102, but the keylayout maps it to+# KEYCODE_F12 (142), and the vendor SysUIMerge app used that to switch to the previous app — which was+# the stock launcher until it got disabled, so Home stopped working. WARNING: the fix the author tested+# (a home_key_scancodes=[102] option for HomeKeyService) is not in the launcher on main yet, so with the+# stock launcher disabled the remote's Home button does nothing until that option lands. Injected+# KEYCODE_HOME cannot test it: the vendor framework swallows injected keycode 3 and the scancode is 0.+#+# Second vendor home: com.keylab.speech.view.vidaa hosts com.ju.secondscreen.HomeActivity, started by+# component name at boot, so it takes the foreground even though Home resolves to your launcher. It+# carries a "39% memory boost" nag, music/video card rows and a NewTV badge. Component-level disable is+# refused (SecurityException from setEnabledSetting), so this list disables the whole package instead:+# that also removes the voice-assistant UI (AgentDisplayService, ViewService, SIWindowMonitorService,+# memo, task master) and the remote's mic key. Re-enable it if voice matters more than the card home.+#+# Inputs menu: dumpsys tv_input is empty on this firmware (no TvInputManager inputs), so the launcher's+# Inputs pill uses source_panel_service = com.hisense.tv.inputs/com.hisense.tv.InputsUIService with+# action com.hisense.tv.start_inputs. That panel does perform the switch itself. With nothing to list,+# showInputs() now opens it on the first OK instead of showing a one-row dropdown.+#+# Debloat does NOT change the visual home screen on this set: the sponsored rows and the VIP banner are+# fetched by com.jamdeo.tv.vod itself, not by the ad sidecars this list disables. Only the launcher swap+# removes them. What this list buys is the telemetry, the push channel, the persistent poller and the+# stray ad processes.+#+# Verified: applied in batches with a screenshot between them, then two cold reboots. Home survived,+# Wi-Fi (owned by android.uid.system) survived, casting, the input panel, the IME, Bluetooth pairing and+# the remote all still work. Applied and reboot-verified on day one; not yet lived with for weeks.++# Hisense telemetry, reporting and push+com.hisense.hitv.das # DasApp: DataReportReceiver only+com.hisense.platformreport+com.hisense.logupload+com.hisense.service.hproxy # LoopingService + network-change receiver, polls forever+com.hisense.service.message # HiMsgService, the vendor push channel++# Ads, shopping and home operator rows+com.hisense.business.ad # ships Alibaba Baichuan + CIBN shopping SDKs; installed as a user app+com.hisense.service.ad # its WatchingAccessibilityService was registered in enabled_accessibility_services+com.hisense.widget.pro # home operator widget rows+com.hisense.tv.weather # weather card, another content feed++# Retail, hotel, factory and leftovers+com.hisense.demonstrate # DbxDemo / multi-channel sound demo reels+com.hisense.hotelmenu+com.meetingroom+com.hisense.autotest+com.hisense.electronictutorial # e-manual+com.hisense.ar.baike+com.jamdeo.tv.fte # first-run wizard, done; the saved Wi-Fi belongs to android.uid.system+com.hisense.usbupgrade++# Duplicate / unused sharing and lifestyle apps (casting stacks deliberately kept)+com.hisense.tv.videoconference+com.hisense.tv.fitmirror+com.hisense.tv.foodmanage+com.jamdeo.calendar+com.vision.aibook++# Screensaver is an ad surface on this firmware: 拍信创意 stock photos with a caption and a like button.+# Also run: settings put secure screensaver_enabled 0+com.jamdeo.screensaver++# AOSP leftovers on a TV+com.android.printspooler++# The two vendor home screens. Disable both so yours keeps the foreground; see the notes above.+# The stock launcher stays enabled here: disabling it before your launcher is Home leaves the TV with+# none. STOCK_LAUNCHER=com.jamdeo.tv.vod (above) makes build-and-install.sh disable it after the swap.+# com.jamdeo.tv.vod+com.keylab.speech.view.vidaa++# ---------------------------------------------------------------------------------------------+# Do NOT disable (verified on this device):+# com.jamdeo.tv.livetv Live TV and the HDMI/AV renderer+# com.jamdeo.tv.service TVServices: the TIL/JNI side of source switching+# com.hisense.tv.inputs SysUIMerge: the source panel and TaskCenter+# com.hisense.tv.baseservice TV base services+# com.hisense.tv.tiletransition TileAnimationService, required by the source panel (see above)+# com.hisense.bluetoothpair remote pairing; losing it can leave you without a remote+# com.sohu.inputmethod.sogou.tv the only IME on the device+# com.hisense.padinputmethod fallback IME+# com.hisense.raycodereceiver was running in the process list; likely a remote path+# com.hisense.uifac factory UI component+# com.hisense.systeminfo system info provider+# com.hisense.hiservice MQTT base service+# com.hisense.aiod, .aiservice AI picture quality (AIPQ) and gestures+# com.keylab.speech.core.vidaa voice core, left enabled even with the voice UI disabled+# com.vt.mic.service, .point.remoteservice mic and pointer remote+# com.dolby.android.audio.service, .audio.calibration+# com.jamdeo.updateservice OTA; disable it and firmware updates stop+# Kept by choice: com.ms.weshare, com.ms.ucast.ucastapp, com.hisense.multiscreen.screenhelper,+# com.hisense.pcm.share, com.kookong.tvplus (five coexisting casting stacks), com.hisense.tv.familycloud,+# com.hisense.nasservice, com.hisense.nas.pt (NAS), com.hisense.tv.aivirtualassistant and the rest of the+# voice assistant, com.hisense.childlock, com.hisense.multiwindow.+# Already disabled at the factory: com.android.contacts, camera2, calendar, settings, music,+# providers.userdictionary, deskclock, providers.contacts.