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
examples: sony-bravia-4k-vh1 keeps com.youview.poa on UK sets; note on the HbbTV catch-up apps
runawaycoinc07b79394bc9
diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.mdindex 7fd3a0ca2..97927317c 100644--- a/docs/TROUBLESHOOTING.md+++ b/docs/TROUBLESHOOTING.md@@ -879,6 +879,11 @@ Things that bit us or contributors, so they don't bite you. Commands use `tools/(Philips 65OLED706, Android TV 11): the firmware only resumes the `org.droidtv.playtv` window it left, whichsends its window event once the input has a picture, if at all. Set `power_on_home_always` too: Home comesup about a second after the screen turns on, whatever is in front (an input, Live TV or an app).+- **BBC iPlayer, ITVX, Channel 4 and 5 vanished after the debloat** (Sony KD-65XH9296, UK, `BRAVIA_VH1`, Android 12):+ `com.youview.poa`, the Freeview Play app behind the "Live TV & Catch Up" tile, runs them as web apps in Sony's HbbTV+ player. They are not packages of their own, so only that package leaves with it. `pm enable com.youview.poa` brought+ them back. How each one launches, and how to give each a Home tile, is in+ [the Sony UK catch-up note](devices/sony-youview-uk-catchup.md).## Accessibility helper enabled but the remote button does nothingdiff --git a/docs/devices/sony-youview-uk-catchup.md b/docs/devices/sony-youview-uk-catchup.mdnew file mode 100644index 000000000..a677ddfa6--- /dev/null+++ b/docs/devices/sony-youview-uk-catchup.md@@ -0,0 +1,81 @@+# Sony BRAVIA (UK): BBC iPlayer, ITVX, Channel 4 and 5 are YouView web apps++Seen on a Sony KD-65XH9296 (Android 12, `BRAVIA_VH1_EU-user 12 STT2.230505.001.S137 626241`), the UK version of the+board in [`examples/sony-bravia-4k-vh1/`](../../examples/sony-bravia-4k-vh1/debloat.txt), on 2026-10-28.+The launches below were tested over ADB; the tiles built from them and the Play-button remap were checked on the+real remote. Other UK Sony sets with the YouView app (`com.youview.poa`) may behave the same; this one was not tried on them.++## Do not disable `com.youview.poa` on a UK set++`com.youview.poa` is Freeview Play: the "Live TV & Catch Up" tile. It was in the VH1 list as "unused on this EU unit".+On the UK unit, disabling it took BBC iPlayer, ITVX, Channel 4 and 5 off the TV. `pm enable com.youview.poa` brought+them back. The list now keeps it enabled.++## They are not packages++`pm list packages -u` on the same unit finds nothing with `bbc`, `iplayer`, `itv` or `channel4` in its name, and the+Play Store answers "isn't available on Google Play on this device" for iPlayer, ITVX and Channel 4. (Channel 5 does+have a Play Store app; the YouView route below needs no install.) These sets have no per-channel packages either, unlike+the `com.sony.dtv.iplayerlauncher` and `com.sony.dtv.itvlauncher` style launchers some other Sony lists mention.++The YouView app opens each channel's own web app in Sony's HbbTV player. Capturing `logcat` while opening each one+from "Live TV & Catch Up" shows an ordinary intent:++```text+act=com.sony.dtv.intent.action.LAUNCH_HBBTV cmp=com.sony.dtv.hbbtvplayer/.HbbTvPlayerActivity dat=<address>+```++| Channel | Address the YouView app used |+|---|---|+| BBC iPlayer | `https://www.live.bbctvapps.co.uk/tap/iplayer/?origin=portal` |+| ITVX | `http://app.10ft.itv.com/youviewsony/` (the app added a `dttRegion=` query from the TV's location; not needed) |+| Channel 4 | `https://yvweb.channel4.com/yvwebapp//` |+| Channel 5 | `https://c5apps.channel5.com/my5youviewsonytv/index.html` |++From a shell, `am start -a com.sony.dtv.intent.action.LAUNCH_HBBTV -d <address> -n com.sony.dtv.hbbtvplayer/.HbbTvPlayerActivity`+opened each one: iPlayer on its profile picker, ITVX and Channel 4 on their home pages, and Channel 5 loaded its address. The owner then confirmed all four tiles on the real remote.+These are the broadcasters' web apps, so the addresses can change; to find the current ones, run+`adb shell logcat -c`, open the channel from the YouView tile, then `adb shell logcat -d | grep -E 'LAUNCH_HBBTV|loadApplication'`.++## Giving each one a Home tile++The launcher lists installed apps with a launcher entry, and has no tile that opens "a screen inside another app", so+a channel needs a launcher entry of its own. The smallest way is a tiny app of your own with one activity per channel;+this is not launcher code and does not belong in `launcher/`.++```xml+<queries><package android:name="com.sony.dtv.hbbtvplayer" /></queries>+<activity android:name=".IPlayer" android:exported="true" android:label="BBC iPlayer"+ android:icon="@drawable/ic_iplayer" android:banner="@drawable/banner_iplayer"+ android:theme="@android:style/Theme.NoDisplay" android:excludeFromRecents="true">+ <intent-filter>+ <action android:name="android.intent.action.MAIN" />+ <category android:name="android.intent.category.LEANBACK_LAUNCHER" />+ </intent-filter>+</activity>+```++```java+public class IPlayer extends Activity {+ @Override protected void onCreate(Bundle b) {+ super.onCreate(b);+ startActivity(new Intent("com.sony.dtv.intent.action.LAUNCH_HBBTV",+ Uri.parse("https://www.live.bbctvapps.co.uk/tap/iplayer/?origin=portal"))+ .setComponent(new ComponentName("com.sony.dtv.hbbtvplayer",+ "com.sony.dtv.hbbtvplayer.HbbTvPlayerActivity")));+ finish();+ }+}+```++Sideload it like any APK, with `minSdk` 26 and a debug or any other signature. Each activity then shows as its own tile and+opens its channel in one press. Bring your own banner image (320x180 or 640x360) for each; the channels' logos are theirs,+so none ship here. To lead the grid with them, add the app's package to `dock_apps` after your dock apps. The grid is+otherwise alphabetical.++## A related remote button++The Google Play button on this remote sends scancode 587 (`0x24b` in `getevent -lt`, no key name), which the firmware+answers by opening the Play Store. To open YouTube instead, add `scan:587:com.google.android.youtube.tv` to `app_keys` and+build with `INPUT_KEY_SERVICE=1`, as the Sony scancode example in `config.xml` describes.+diff --git a/examples/sony-bravia-4k-vh1/debloat.txt b/examples/sony-bravia-4k-vh1/debloat.txtindex a11ccf765..02bad5488 100644--- a/examples/sony-bravia-4k-vh1/debloat.txt+++ b/examples/sony-bravia-4k-vh1/debloat.txt@@ -28,6 +28,13 @@# Same Android platform (BRAVIA_VH1) as the PA-firmware notes in# docs/devices/sony-kd-55x9000h.md (retail KD-55X9000H); this list is the EU build.#+# UK unit: Sony KD-65XH9296 (BRAVIA_VH1_EU, same build S137), Android 12. Applied 2026-10-28 in three batches, then+# tvlauncher by launcher/build-and-install.sh; Netflix and Assistant kept by choice. Everything stayed disabled and Home+# stayed on the launcher across a reboot. com.youview.poa was in this list at first and took BBC iPlayer, ITVX, Channel 4+# and 5 off the TV; enabling it brought them back, so it is now commented out. Those four are web apps run by YouView in+# Sony's HbbTV player, not packages, so they have no tile of their own: docs/devices/sony-youview-uk-catchup.md says+# how to launch them and how to give each a Home tile.+## Lived with for weeks on a KD-55XH9096 (Spain/EU) with CleanYourTV; Live TV, HDMI Inputs, Ethernet# and Chromecast still work. If something breaks, re-enable it with `pm enable <package>` and please report it.@@ -75,7 +82,8 @@ com.google.android.youtube.tvmusiccom.google.android.videoscom.google.android.play.gamescom.android.printspooler-com.youview.poa # YouView (UK); unused on this EU unit+# com.youview.poa # KEPT on UK sets: Freeview Play, which hosts BBC iPlayer, ITVX, Channel 4 and 5.+# Disabled, those four vanish from the TV. Uncomment on a non-UK unit.# Stock leanback Home (CleanYourTV owns HOME)com.google.android.tvlauncherdiff --git a/examples/sony-bravia-4k-vh1/tv.json b/examples/sony-bravia-4k-vh1/tv.jsonindex 579a3c145..84ae489ec 100644--- a/examples/sony-bravia-4k-vh1/tv.json+++ b/examples/sony-bravia-4k-vh1/tv.json@@ -1,6 +1,6 @@{- "tv": "Sony BRAVIA 4K VH1 (KD-55XH9096 / XBR-55X900H, BRAVIA_VH1, MediaTek MT5895), EU and US",+ "tv": "Sony BRAVIA 4K VH1 (KD-55XH9096 / KD-65XH9296 / XBR-55X900H, BRAVIA_VH1, MediaTek MT5895), EU, UK and US","os": "Google TV 12","brand": "Sony",- "notes": "Samba TV ACR, Sony/Qterics/IDD agents, demo/hotel mode, Select/promos/help; stock tvlauncher off for CleanYourTV; Assistant and Netflix off by choice; Chromecast and firmware updates kept; setupwraith left enabled (Home already on the custom launcher); same platform as [docs/devices/sony-kd-55x9000h.md](../docs/devices/sony-kd-55x9000h.md) (PA firmware notes)"+ "notes": "Samba TV ACR, Sony/Qterics/IDD agents, demo/hotel mode, Select/promos/help; stock tvlauncher off for CleanYourTV; Assistant and Netflix off by choice; Chromecast and firmware updates kept; setupwraith left enabled (Home already on the custom launcher); same platform as [docs/devices/sony-kd-55x9000h.md](../docs/devices/sony-kd-55x9000h.md) (PA firmware notes); on UK units keep com.youview.poa, the Freeview Play app that hosts BBC iPlayer, ITVX, Channel 4 and 5 ([docs/devices/sony-youview-uk-catchup.md](../docs/devices/sony-youview-uk-catchup.md))"}