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 #534: launcher: allow selecting an exact Live TV tuner
Gathin23bca2e2bde5ef
diff --cc launcher/app/src/main/java/com/gathin/tvhome/Config.javaindex 8da4b732c,d05bef851..687265818--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java@@@ -131,26 -105,19 +132,26 @@@ final class Configfinal List<RaceWeekend.Race> raceCalendar;/** Cinematic top shelf (config.xml, cinematic_home): the focused dock app's artwork behind a larger shelf. */final boolean cinematicHome;+ /** The glow in the focused app's colour behind the dock (config.xml, ambient_glow); false keeps the background plain. */+ final boolean ambientGlow;+ /** Minutes Home may sit untouched before the clock screensaver (config.xml, home_idle_clock_minutes); 0 is off. */+ final int homeIdleClockMinutes;private Config(List<String> dockApps, boolean fillDock, List<String> hiddenApps, String liveTvPackage,- String liveTvAction, Map<String, String> launchActions, Map<String, String> appLabels,+ String liveTvAction, String liveTvInputId, Map<String, String> launchActions, Map<String, String> appLabels,- Map<String, String> appBanners, String sourcePanelService, String sourcePanelAction, String inputAction,+ Map<String, String> appBanners, String sourcePanelService, String sourcePanelAction,+ String sourcePanelExtra, boolean coocaaSources, String inputAction,int columns, int rowsBelowDock, boolean animations, boolean advancedEffects,- boolean shamsiDate, String greetingName, boolean moduleCards, boolean reducedMotion, boolean dockTitle, boolean dockRow, boolean reorderButton, String vpnApp,+ boolean shamsiDate, String greetingName, boolean moduleCards, boolean reducedMotion, boolean dockTitle, boolean dockRow, boolean reorderButton, boolean showNetworkPill, boolean iconOnlyButtons, boolean libraryButton, int wifiLabelWidth, boolean alwaysShowNames, boolean wallpaperTrueColor, String vpnApp,boolean showHomeSettingsShortcut, boolean showStats, boolean appLibrary, int backgroundColor, int skyIntensity,int[] settingsKeycodes, boolean settingsKeyPanel, boolean wallpaperEnabled, File wallpaper, List<File> wallpapers,- int wallpaperRotationMinutes, int wallpaperDim, boolean overlayApplied,+ int wallpaperRotationMinutes, int wallpaperDim, String wallpaperOrder, boolean overlayApplied,Festival festival, int[] inputKeycodes, List<String> appKeys,- List<RaceWeekend.Race> raceCalendar, boolean cinematicHome) {+ List<RaceWeekend.Race> raceCalendar, boolean cinematicHome, boolean ambientGlow, int homeIdleClockMinutes,+ boolean keyFilter) {this.inputKeycodes = inputKeycodes;this.appKeys = Collections.unmodifiableList(appKeys);+ this.keyFilter = keyFilter;this.dockApps = Collections.unmodifiableList(dockApps);this.fillDock = fillDock;this.hiddenApps = Collections.unmodifiableList(hiddenApps);@@@ -357,15 -288,14 +361,15 @@@Festival festival = json == null ? Festival.NONE : Festival.parse(string(json, "festival", ""),string(json, "festival_until", ""), string(json, "greeting", ""), string(json, "accent_color", ""));- return new Config(dock, fillDock, hidden, liveTv, liveTvAction, packageMap(launchActions), packageMap(appLabels),+ return new Config(dock, fillDock, hidden, liveTv, liveTvAction, liveTvInputId, packageMap(launchActions), packageMap(appLabels),packageMap(appBanners), panelService,- panelAction, inputAction,+ panelAction, panelExtra, coocaaSources, inputAction,Math.max(1, columns), Math.max(0, rowsBelow), animations, advancedEffects,- shamsi, greetingName, moduleCards, reducedMotion, dockTitle, dockRow, reorderButton, vpn, homeSettings, showStats, library, background,+ shamsi, greetingName, moduleCards, reducedMotion, dockTitle, dockRow, reorderButton, showNetworkPill, iconOnlyButtons, libraryButton, wifiLabelWidth, alwaysShowNames, wallpaperTrueColor, vpn, homeSettings, showStats, library, background,Math.max(0, Math.min(100, skyIntensity)), settingsKeycodes, settingsKeyPanel, wallpaperEnabled, wallpaper,- wallpapers, rotationMinutes, wallpaperDim, applied,- festival, inputKeycodes, appKeys, json == null ? Collections.emptyList() : raceCalendar(json), cinematic);+ wallpapers, rotationMinutes, wallpaperDim, wallpaperOrder, applied,+ festival, inputKeycodes, appKeys, json == null ? Collections.emptyList() : raceCalendar(json), cinematic, ambientGlow,+ Math.max(0, idleClockMinutes), keyFilter);}/**diff --cc launcher/app/src/main/java/com/gathin/tvhome/MainActivity.javaindex 4abbd9ae6,71a632c79..4c88e809f--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java@@@ -98,16 -96,9 +98,17 @@@ public class MainActivity extends Activprivate boolean rtlAppGrid;private static final long MINUTE_MS = 60_000L;private static final long STATS_MS = 10_000L;+ /**+ * 2025-01-01. TVs without a clock battery boot at the epoch (08:00 in China) and keep it until network+ * time arrives; the clock, date and greeting stay hidden before then.+ */+ private static final long TIME_VALID_AFTER_MS = 1_735_689_600_000L;private String liveTvPkg;+ /** Idle time on Home before ClockActivity; 0 is off (config.xml, home_idle_clock_minutes). */+ private long idleClockMs;+ private final Runnable showIdleClock = () -> startActivity(new Intent(this, ClockActivity.class));private String liveTvAction;+ private String liveTvInputId;private String inputAction;private String sourcePanelService;private String sourcePanelAction;@@@ -326,8 -286,8 +327,9 @@@festival = cfg.festival;festive = festival.active(LocalDate.now());liveTvPkg = cfg.liveTvPackage;+ idleClockMs = cfg.homeIdleClockMinutes * MINUTE_MS;liveTvAction = cfg.liveTvAction;+ liveTvInputId = cfg.liveTvInputId;inputAction = cfg.inputAction;sourcePanelService = cfg.sourcePanelService;sourcePanelAction = cfg.sourcePanelAction;diff --cc themes/README.mdindex 9b774079e,5fa396f77..dc7c30b16--- a/themes/README.md+++ b/themes/README.md@@@ -31,9 -30,8 +31,10 @@@ is ignored, and a file that doesn't par| `fill_dock` | bool | Fill the dock slots `dock_apps` leaves free with the first grid apps (true by default); false leaves them empty || `hidden_apps` | list of package names | Never shown as tiles || `live_tv_package`, `live_tv_action` | string | The Live TV app and, if it has no leanback entry, the action to start it with |+ | `live_tv_input_id` | string | Exact system tuner for the Inputs menu's Live TV row; opens its channel collection. Empty keeps automatic selection. Missing input or unsupported collection falls back to the app's normal launch. [HAAM satellite example](../docs/devices/haam-r4.md) || `source_panel_service`, `source_panel_action` | string | The TV's own source panel, for sets with no TvInputManager: a service, or an activity (BYINTEK U4). Without a Live TV app, the Inputs pill opens it directly |+| `source_panel_extra` | `"name=value"` | One int extra sent with the source panel (Coocaa OS: `control_center_command=100`) |+| `coocaa_sources` | bool | Coocaa OS (Skyworth, China): list the sources from `com.skyworth.tv` in the Inputs menu, ahead of the source panel || `launch_actions` | list of `"package=action"` | Tiles that open a screen of the app instead of its start screen; an action that no longer resolves opens the app normally (MagentaTV's guide: `com.telekom.onetv.tv.pl=com.telekom.onetv.tv.pl.action.PROGRAM_GUIDE`) || `app_labels` | list of `"package=Name"` | A tile's name instead of the app's own (MagentaTV as `com.telekom.onetv.tv.pl=TV`) || `app_banners` | list of `"package=banner_name"` | A tile's artwork from a `banner_*` drawable bundled with the launcher (`banner_tv`: magenta with the Live TV glyph) |