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 #982: examples: Grundig Android UHD TV (Arçelik kunyang, Android TV 14)
Gathin2340a83aa0625a
diff --cc README.mdindex c94cd77aa,afe18950c..76292288b--- a/README.md+++ b/README.md@@@ -142,14 -132,9 +142,15 @@@ Anker Nebula, BYINTEK, Epson, Formovie| Compac ATV R2 (SCBC R2, Realtek RTD285O) | Android TV 9 || Dialog ViU (SEI Robotics SEI103DL, Amlogic, NES middleware), Sri Lanka | Android TV 9 || EKO 2K Google TV (MTC-built, tennoji, MediaTek mt5867 / T56) | Google TV 14 |+| Epson LS800 laser projector (Askey HA90 module, sti6202d101, Amlogic) | Android TV 14 || FFalcon (雷鸟) 鹤6 PRO 65S585C Pro (China, tcl_mt5879_cn, MediaTek MT9653) | Android TV 11 |+| FFalcon (雷鸟) r34a0, China (V8-A920T01-LF1V147, Amlogic T920), 1 GB | Android 5.1.1 |+| Formovie Laser 4K projector (hanlla, MediaTek T31 / m7632, 1.8 GB) | Android TV 14 || Freebox Player POP (Free, fbx8am, Amlogic), IPTV/DVB-T box | Android TV 10 |+| Formovie / Fengmi projector MiProjM05 (eva, Amlogic) | Android TV 9 |+| Gadnic PROJ100W projector (built-in Google TV stick: SkyworthDigital YYT, Amlogic HP46B), Argentina | Google TV 14 || Google TV Streamer 4K (kirkwood, GZRNL) | Google TV 14 |++| Grundig Android UHD TV (Arçelik, GxGrNM, kunyang, MediaTek), Turkey | Android TV 14 || Haier Android TV DVB2K (broadway, HaierATVT56DVB) | Android TV 11 || Haier H32S80EFX (MatrixTV CE, HRT56EU, deto, MediaTek), Thailand | Google TV 14 || Hisense E5Q Pro (VIDAA_TV, MediaTek MT9653), China | Android TV 11 |diff --cc examples/README.mdindex 33b447a38,e28e84535..f9f51eb97--- a/examples/README.md+++ b/examples/README.md@@@ -27,20 -21,14 +27,21 @@@ on that firmware, grouped and commented| `challenger-32t22bt/` | Challenger 32T22 BT (cvt_mt5863_col, board TP.MT5510.PB781, MediaTek MT5659, 1 GB RAM), Colombia | Android 7.0 | Ultra-budget CVTE/TCL ODM set: CVTE factory test apps (`cn.cvte.tv.factory.autotest`, `com.cvte.tv.audiotest`, `com.cvte.fac.menu`, `com.tcl.FactoryMode`), background cleaner (`com.cvte.tvclean`), store preloads (`com.cvte.tv.appstore`, `cm.aptoidetv.pt.cvt_platform7`, `cn.tcl.odm.android.vstoresubclient`), FastScreen mirroring and redundant media players disabled; stock launcher `com.cvte.tv.launcher` replaced with reference launcher to free RAM; keep `com.cvte.tvservice`, `com.cvte.tv.androidsetting` and `com.mediatek.tv.agent` for inputs and TV tuning || `chiq-gtvu65/` | CHiQ AI PONT (Changhong GTVU65, dangni, MediaTek mt5867) | Google TV 14 | Google ad services and auto-installs, Homwee store/help; 1 GB; setupwraith must go (RecoveryActivity component cannot be disabled alone); MediaTek partnercustomizer safe to disable (reboot-checked) || `chiq-ai-pont/` | CHiQ AI PONT (DVB93CQ) | Android TV 11 | Anoki ACR, FAST channels, AI PONT, Homwee services |+| `gadnic-proj100w/` | Gadnic PROJ100W projector (built-in Google TV stick: SkyworthDigital YYT, Amlogic HP46B), Argentina | Google TV 14 | Same stick/firmware family as Wanbo X5 Pro and BYINTEK T5 Max; telemetry, Privacy Sandbox, xCPE, factory test, voice assistant and TalkBack off; setupwraith + launcherx disabled after a Wi-Fi forget/rejoin (see header); DreamOS launcher installed, screensaver handed to the launcher's clock; wireless-debugging pairing, ADB port resets every reboot || `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; casting needs setupwraith (its CastInfoProvider holds the receiver's credentials) |+| `google-chromecast-gtv-hd/` | Chromecast with Google TV HD (boreal) | Google TV 14 | Same build as the 4K: Google telemetry and ad services, ambient mode, launcherx + setupwraith; casting needs setupwraith (Cast Fix re-provisions the receiver at boot), and setupwraith owns Wi-Fi joined during setup; 1.4 GB, tight storage || `google-tv-streamer-4k-kirkwood/` | Google TV Streamer 4K (kirkwood, GZRNL) | Google TV 14 | Google telemetry and ad services; setupwraith must go (package level: its RecoveryActivity claims HOME and crash-loops system_server), so the cast credentials have to be re-provisioned with an enable/wait/disable ritual after every reboot; the launcher HOME intent-filter priority is ignored on this build; wireless-debugging pairing, YouTube button remap || `compac-atv-r2/` | Compac ATV R2 (SCBC R2, Realtek RTD285O) | Android TV 9 | Same SCBC platform and build as the SANYO ATV R2: data-consent agent, Vewd, S-Channel rows, E-SHOW demo, recommendation rows, partner auto-installs, TV Booster; `com.realtek.leanbacklauncher.partnercustomizer` must stay or the stock Home loses its Inputs button; OTA, Assistant and FastCast kept, Chromecast off by choice |+| `coocaa-k3-pro-90p3d-max/` | Skyworth Coocaa K3 Pro 90P3D Max (8R145_P3DM, Realtek RTD2885N), China market | Android 11 (Coocaa OS) | First China-market Coocaa (Realtek) list; Coocaa ad SDK, ACR, telemetry, push, silent auto-install and Coocaa content apps off; NEVER disable com.tianci.movieplatform (boot hangs on the COOCAA logo, factory reset only); Home key hard-coded to the Coocaa launcher, no BOOT_COMPLETED broadcast; 23 packages, reboot-checked || `dialog-viu-sei103dl/` | Dialog ViU (SEI Robotics SEI103DL, Amlogic, NES middleware), Sri Lanka | Android TV 9 | Dialog Axiata operator IPTV box: NES bug tracker, Dialog TR-069 remote management, NES Skyway boot ads and silent installs (likely OTA too), partner auto-installs, Google recommendations, factory test app, preloads; Chromecast, voice, remote updater and Backdrop listed as optional; Dialog's home `com.dialog.tv` last, needs `STOCK_LAUNCHER=none` and removes Dialog's channels (Dialog Play from Play is incompatible, a sideloaded copy fails PairIP); remote's Apps/Prime Video/Catch-up are NES keys 5116/5119/5122 that `app_keys` can remap; 1 GB; reboot-checked || `eko-2k-google-tv-tennoji/` | EKO 2K Google TV (MTC-built, tennoji, MediaTek mt5867 / T56) | Google TV 14 | First EKO list: Anoki ACR opt-in, Android ad services, feedback, partner setup; Assistant, Miracast, Netflix, Prime Video, YouTube Music off by choice, Chromecast kept; setupwraith owned the setup Wi-Fi (forget and re-join first); `fusion.android.tv.demo` handles the Input key; Live TV takes the tvcenter launch entry, not the tuner passthrough URI; reboot-checked |+| `epson-ls800/` | Epson LS800 laser projector (Askey HA90 module, sti6202d101, Amlogic) | Android TV 14 | First Epson list: Google feedback, ad services, partner auto-installs, print spooler, Play Games, Instagram, Pluto TV, Epson Online Meetings; Epson projector-control packages kept, `com.epson.logcollection` kept (it owns Projector Settings > Information; turn the operation log off there); TV Recommendations is re-enabled by `com.droidlogic`; YouTube button hard-coded to YouTube Music, Apps button dead without tvlauncher; Wireless debugging only; config.json dock; reboot-checked || `ffalcon-65s585c-pro/` | FFalcon (雷鸟) 鹤6 PRO 65S585C Pro (China, tcl_mt5879_cn, MediaTek MT9653) | Android TV 11 | Same platform and firmware build as tcl-q10g-pro; TCL boot ad, analytics, push, home recommendation cards and silent-install channels stay disabled across a reboot; OTA, account, voice, weather, album, WeChat and video call off by choice; debloat only, no third-party launcher or sideloading; reboot-checked |+| `ffalcon-r34a0-cn/` | FFalcon (雷鸟) r34a0, China (V8-A920T01-LF1V147, Amlogic T920), 1 GB | Android 5.1.1 | First Android 5.x-era FFalcon list; `pm disable-user` denied by SecurityException (shell uid=2000 → package uid=1000), everything uses `pm hide` and survives reboots; adb install blocked until `setprop persist.tcl.debug.installapk 1` + `persist.tcl.installapk.enable 1`; any HOME-category APK refused with INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES — the same signature gate as tcl-ak30a5/q10g-pro, verified by stripping the HOME category from the bundled launcher (minSdk 22), which then installed but crashes on 5.1 with logd off, so debloat only, stock CyberUI stays; boot ad, push popups (c2dm + messagebox), analytics, preloads, iFlytek voice off; TVBox, 云视听小电视, 千寻, 电视卫士, app store kept by choice; ADB opens from System Info with UP DOWN LEFT RIGHT, repeated 2–3 times; reboot-checked |+| `formovie-laser-4k-hanlla/` | Formovie Laser 4K projector (hanlla, MediaTek T31 / m7632, 1.8 GB) | Android TV 14 | First Formovie list, kept light at the owner's request: Google feedback and consent, partnersetup RLZ pings, Formovie's Play auto-installer, tvrecommendations and Ambient Mode; no Formovie ad or content service on this build; projector manager (focus, keystone, BLE remote), Dolby audio, input/source app, BT remote pairing, Launch Board and User Manual kept; YouTube, Prime Video, Chromecast, Assistant and OTA kept by choice; classic tvlauncher, built-in Ethernet || `freebox-player-pop/` | Freebox Player POP (Free, fbx8am, Amlogic), IPTV/DVB-T box | Android TV 10 | Free stats, Google feedback and recommendations, partner auto-installs, NES/CTC factory tests; French catch-up, kids and Free apps off by choice, Arte/Spotify/Stremio kept; OQEE is the stock home (HOME priority 3); Chromecast must stay for Spotify Connect; AdGuard DNS blocks pixel.spotify.com and breaks Spotify; 2 GB |+| `formovie-mprojm05/` | Formovie / Fengmi projector MiProjM05 (eva, Amlogic) | Android TV 9 | First Formovie/Fengmi list: Google feedback/bug report, Xiaomi auto-installs, smartconnect, recommendation services, Ambient, user manual, Camera2, factory test suite, stock tvlauncher; preloaded streaming apps off by choice; keystone/focus (com.fengmi.projector.imaging), Formovie settings and droidlogic HDMI kept; leanbacklauncher re-enabled at boot; remote gear button is KEYCODE_ALL_APPS (284) |+ | `grundig-kunyang/` | Grundig Android UHD TV (Arçelik, GxGrNM, kunyang, MediaTek), Turkey | Android TV 14 | First Arçelik list: Grundig Channel (Hoppr ad tiles), HotelService, TV Care Hub, partner auto-installs, Privacy Sandbox, Google feedback; Assistant, AirScreen/AirCast, Kids, Play Movies/Games off by choice, Chromecast kept; `fusion.android.tv.demo` handles the Input key, keep it; setupwraith claims no HOME; launcher works, every remote button works with no key service; AdGuard DNS validates; 1.8 GB, +290 MB available; reboot-checked || `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 | 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 |diff --cc examples/grundig-kunyang/README.mdindex 000000000,0604b0acc..efd246a56mode 000000,100644..100644--- a/examples/grundig-kunyang/README.md+++ b/examples/grundig-kunyang/README.md@@@ -1,0 -1,50 +1,49 @@@+ # Grundig Android UHD TV (Arçelik, `kunyang`)++ | | |+ |---|---|+ | Model | Grundig Android UHD TV, product `GxGrNM`, device `kunyang`, manufacturer ARCELIK, Turkey |+ | OS | Android TV 14 (API 34), build `UKNV.260115.001`, MediaTek |+ | RAM | 1.8 GB. `MemAvailable` went from 531 MB (stock) to 821 MB after the list, the launcher and a reboot |+ | Display | 4K panel, UI at 1920×1080 (factory `Override size`), density 320, `display_density_forced` empty |+ | ADB | USB debugging alone opens port 5555, with no pairing. `ro.adb.secure=1` |+ | Home | `com.google.android.tvlauncher` (classic Android TV, not launcherx). Only `com.android.tv.settings/.system.FallbackHome` and user-installed apps also claim HOME |++ ## What worked++ - **`pm disable-user` works** for every package in [`debloat.txt`](debloat.txt). After a reboot, `pm list packages -d`+ is identical, so this firmware re-enables nothing at boot.+ - **The launcher installs** over `pm install` with no verifier prompt. `launcher/build-and-install.sh` detects+ `com.google.android.tvlauncher` by itself. `dumpsys activity activities | grep mFocusedApp` shows the new Home+ in front, also after a reboot.+ - **The Inputs pill** lists HDMI 1–3 and Live TV. Live TV opens `com.mediatek.wwtv.tvcenter/.nav.TurnkeyUiMainActivity`.+ The stock input panel is `com.mediatek.wwtv.tvcenter/.nav.inputpanel.InputsPanelActivity`.+ - **Remote buttons:** Home, Input, Settings and the app buttons all work with the stock launcher disabled, with no+ `HOME_KEY_SERVICE` or `INPUT_KEY_SERVICE`. The real buttons were pressed on the remote, not injected.+ - **Screensaver:** set it to `com.gathin.tvhome/.ClockDream` before disabling `com.google.android.backdrop`. Backdrop+ held about 160 MB resident.-- **Private DNS** `dns.adguard-dns.com` validates (94.140.14.14 / 94.140.15.15). YouTube and Netflix load. It does not- block YouTube ads. Undo: `settings put global private_dns_mode opportunistic`.++- **Private DNS** works on this set.++ ## Keep++ Each of these was checked with `dumpsys package` without starting it:++ - `fusion.android.tv.demo` answers `android.intent.action.TV_INPUT_BUTTON`, the remote's Input key. It is the same+ package that Vestel-built sets (`jvc-android-tv-menlo/`) keep.+ - `com.arcelik.smartremoteservice` receives `GLOBAL_BUTTON` and runs the remote server.+ - `com.mediatek.autopair` (persistent) handles Bluetooth remote pairing.+ - `com.arcelik.tv.arcelikbacklight` (persistent) is the backlight service.+ - `com.mediatek.android.leanbacklauncher.partnercustomizer` stays, following `cecotec-shandao/`.+ - The factory packages are never opened: `arcelik.factory.factorystart`, `com.mediatek.tv.factory`,+ `mediatek.factorymenu.ui`, `com.arcelik.tv.rctest`.++ `com.google.android.tungsten.setupwraith` claims no HOME on this build, so it stays enabled. It owned one of the+ two saved Wi-Fi networks. The network in use belonged to `android.uid.system`.++ ## Notes++ - `com.arcelik.arserviceapp` lives in `/system_ext/priv-app/HotelService`: it is hotel/B2B mode.+ - `com.grundig.tv.channel` carries `com.hoppr.tiles` (Hoppr FAST/ad tiles) and the home-screen program rows.+ - `adb exec-out screencap` prints `Init wrapper sys mutex successful` first. `tools/tv.py --screenshot` handles it.+ - On first boot after the reboot the set came up in Live TV (its power-on source), and Home opened the new launcher.+ - Tested on one set. The list was applied and checked the same day, including a reboot.diff --cc examples/grundig-kunyang/debloat.txtindex 000000000,cbab2d52f..bf22d0551mode 000000,100644..100644--- a/examples/grundig-kunyang/debloat.txt+++ b/examples/grundig-kunyang/debloat.txt@@@ -1,0 -1,63 +1,63 @@@+ # Grundig Android UHD TV (Arcelik-built, codename "kunyang", product GxGrNM), Turkey+ # Android TV 14 (API 34), build UKNV.260115.001, MediaTek, 1.8 GB RAM, UI 1920x1080 on a 4K panel.+ # ro.product.manufacturer = ARCELIK, ro.adb.secure = 1. USB debugging alone opens port 5555.+ #+ # Apply: TV_HOST=<tv ip> tools/disable.sh examples/grundig-kunyang/debloat.txt+ # Undo: TV_HOST=<tv ip> tools/restore.sh examples/grundig-kunyang/debloat.txt+ # Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+ #+ # Stock launcher: com.google.android.tvlauncher (classic Android TV home, not Google TV launcherx).+ # setupwraith does NOT claim HOME on this build, so it stays enabled (it also owns a saved Wi-Fi network).+ #+ # KEEP, even though the names look like bloat (checked with dumpsys package, none of them started):+ # - fusion.android.tv.demo: answers android.intent.action.TV_INPUT_BUTTON, i.e. the remote's Input key.+ # - com.arcelik.smartremoteservice: GLOBAL_BUTTON receiver and remote server (remote keys).+ # - com.mediatek.autopair (persistent): Bluetooth remote pairing.+ # - com.arcelik.tv.arcelikbacklight (persistent): backlight control service.+ # - com.mediatek.android.leanbacklauncher.partnercustomizer: crash-loops tv.service on MediaTek when off+ # (see examples/cecotec-shandao, same Turkish Android 14 platform family).+ # - com.mediatek.tv.service, com.mediatek.tvinput, com.mediatek.wwtv.tvcenter: Live TV, HDMI, source menu.+ # - com.arcelik.ChannelEditor, .ecomode, .picturecustomizer, .ToneMaster, .easy_installation: TV settings.+ # - Factory packages, never opened: arcelik.factory.factorystart, com.mediatek.tv.factory,+ # mediatek.factorymenu.ui, com.arcelik.tv.rctest.+ #+ # Reboot-checked: pm list packages -d identical before and after; nothing is re-enabled at boot.+ # Launcher works: installs over pm install (no verifier), owns Home (mFocusedApp) also after reboot;+ # every remote button (Home, Input, Settings, app keys) works without the key services. Live TV is+ # com.mediatek.wwtv.tvcenter. Screensaver set to com.gathin.tvhome/.ClockDream before backdrop goes.-# Private DNS dns.adguard-dns.com validates; YouTube and Netflix load. Undo: private_dns_mode opportunistic.++# Private DNS works on this set.+ #+ # Owner's choices: Chromecast and YouTube Music kept; voice assistant, AirScreen/AirCast,+ # YouTube Kids, Play Movies and Play Games off. Self-installed streaming apps untouched.++ # --- Telemetry, analytics and install attribution+ com.google.android.feedback # Google feedback / bug report uploader+ com.android.tv.feedbackconsent # feedback consent UI+ com.google.android.partnersetup # partner-app attribution (RLZ)+ android.autoinstalls.config.arcelik.gx # Arcelik partner auto-installs config+ com.android.adservices.api # Privacy Sandbox ad services+ com.android.ondevicepersonalization.services # Privacy Sandbox on-device personalization+ com.android.federatedcompute.services # Privacy Sandbox federated compute++ # --- Manufacturer content, ads and leftovers+ com.grundig.tv.channel # "Grundig Channel": Hoppr FAST/ad tiles, home-screen program rows+ com.arcelik.arserviceapp # HotelService (hotel/B2B mode), boot receiver, INSTALL_PACKAGES+ com.arcelik.tvcarehub # TV Care Hub promo/help videos+ com.mstar.android.tv.disclaimercustomization # disclaimer popups+ com.google.android.syncadapters.calendar # calendar sync, no calendar app on a TV+ com.google.android.onetimeinitializer # first-setup leftover++ # --- Owner's choice: not used+ com.google.android.youtube.tvkids # YouTube Kids+ com.google.android.videos # Google Play Movies & TV+ com.google.android.play.games # Google Play Games+ com.google.android.katniss # Google voice search / Assistant (remote mic button)+ com.google.android.tv.assistant # Assistant LED/demo service+ com.ionitech.airscreen # AirScreen (AirPlay/Miracast receiver; Chromecast kept)+ com.sand.aircasttv # AirCast receiver+ com.arcelik.smartremotecompanion.grundig # Grundig Smart Remote phone-app companion++ # --- After launcher/ owns Home (build-and-install.sh disables com.google.android.tvlauncher itself)+ com.google.android.tvlauncher # stock Android TV home: shopping tab, sponsored rows+ com.google.android.tvrecommendations # feeds the stock home's recommendation rows+ com.google.android.backdrop # Ambient screensaver, ~160 MB resident; replaced by com.gathin.tvhome/.ClockDream