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 #771: Launcher: wallpaper_captions shows the rotating picture's name
Gathin23836b6a117c8f
diff --cc launcher/app/src/main/java/com/gathin/tvhome/Config.javaindex f4e61ae04,e69cd02c7..fcd7c70da--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java@@@ -146,33 -126,24 +146,35 @@@ final class Configfinal 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;+ /** The focus highlight in the focused app's colour on every tile (config.xml, app_glow), as cinematic_home does for the dock. */+ final boolean appGlow;/** Minutes Home may sit untouched before the clock screensaver (config.xml, home_idle_clock_minutes); 0 is off. */final int homeIdleClockMinutes;+ /** The dock band as light frosted glass like the pills (config.xml, dock_glass); false keeps the solid band. */+ final boolean dockGlass;+ /** Shape of the glow behind the focused app (config.xml, glow_style): {@link #GLOW_RADIAL} or {@link #GLOW_HORIZON}. */+ final String glowStyle;++ static final String GLOW_RADIAL = "radial", GLOW_HORIZON = "horizon";+ /** Show each rotating wallpaper's name from wallpapers/captions.txt (config.xml / theme wallpaper_captions). */+ final boolean wallpaperCaptions;private Config(List<String> dockApps, boolean fillDock, List<String> hiddenApps, String liveTvPackage,- String liveTvAction, Map<String, String> launchActions, Map<String, String> appLabels,- Map<String, String> appBanners, String sourcePanelService, String sourcePanelAction, String inputAction,- int columns, int rowsBelowDock, boolean animations, boolean advancedEffects,- 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,+ String liveTvAction, String liveTvInputId, Map<String, String> launchActions, Map<String, String> appLabels,+ Map<String, String> appBanners, String sourcePanelService, String sourcePanelAction,+ String sourcePanelExtra, boolean coocaaSources, String inputAction,+ String inputUriScheme, int columns, int rowsBelowDock, boolean animations, boolean advancedEffects,+ boolean shamsiDate, String greetingName, boolean moduleCards, boolean reducedMotion, boolean bootToLiveTv, boolean dockTitle, boolean dockRow, boolean reorderButton, boolean showNetworkPill, boolean showInputsPill, boolean iconOnlyButtons, boolean libraryButton, int wifiLabelWidth, boolean alwaysShowNames, boolean wallpaperTrueColor, boolean focusOvershoot, 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, String wallpaperOrder, boolean overlayApplied,- Festival festival, int[] inputKeycodes, List<String> appKeys,- List<RaceWeekend.Race> raceCalendar, boolean cinematicHome, boolean ambientGlow, int homeIdleClockMinutes,- boolean wallpaperCaptions) {+ int wallpaperRotationMinutes, int wallpaperDim, int dockOpacity, String wallpaperOrder, boolean overlayApplied,+ Festival festival, int[] inputKeycodes, List<String> appKeys, String stockHomeRedirect,+ List<RaceWeekend.Race> raceCalendar, boolean cinematicHome, boolean ambientGlow, boolean appGlow, int homeIdleClockMinutes,- boolean keyFilter, boolean dockGlass, String glowStyle) {++ boolean keyFilter, boolean dockGlass, String glowStyle, boolean wallpaperCaptions) {this.inputKeycodes = inputKeycodes;this.appKeys = Collections.unmodifiableList(appKeys);+ this.keyFilter = keyFilter;+ this.stockHomeRedirect = stockHomeRedirect;this.dockApps = Collections.unmodifiableList(dockApps);this.fillDock = fillDock;this.hiddenApps = Collections.unmodifiableList(hiddenApps);@@@ -228,17 -191,10 +230,18 @@@this.raceCalendar = Collections.unmodifiableList(raceCalendar);this.cinematicHome = cinematicHome;this.ambientGlow = ambientGlow;+ this.appGlow = appGlow;this.homeIdleClockMinutes = homeIdleClockMinutes;+ this.dockGlass = dockGlass;+ this.glowStyle = glowStyle(glowStyle);+ this.wallpaperCaptions = wallpaperCaptions;}+ /** A known glow_style, or radial (the default) for anything else. */+ static String glowStyle(String value) {+ return value != null && GLOW_HORIZON.equalsIgnoreCase(value.trim()) ? GLOW_HORIZON : GLOW_RADIAL;+ }+/** The folder the theme tools push into; null when external storage is unavailable. */static File dir(Context ctx) {return ctx.getExternalFilesDir(null);@@@ -280,7 -230,7 +283,8 @@@int wifiLabelWidth = res.getInteger(R.integer.wifi_label_width);boolean alwaysShowNames = res.getBoolean(R.bool.always_show_names);boolean wallpaperTrueColor = res.getBoolean(R.bool.wallpaper_true_color);+ boolean focusOvershoot = res.getBoolean(R.bool.focus_overshoot);+ boolean wallpaperCaptions = res.getBoolean(R.bool.wallpaper_captions);String vpn = res.getString(R.string.vpn_app).trim();boolean homeSettings = res.getBoolean(R.bool.show_home_settings_shortcut);boolean showStats = res.getBoolean(R.bool.show_stats);@@@ -341,7 -280,7 +345,8 @@@wifiLabelWidth = integer(json, "wifi_label_width", wifiLabelWidth, 0, 300);alwaysShowNames = bool(json, "always_show_names", alwaysShowNames);wallpaperTrueColor = bool(json, "wallpaper_true_color", wallpaperTrueColor);+ focusOvershoot = bool(json, "focus_overshoot", focusOvershoot);+ wallpaperCaptions = bool(json, "wallpaper_captions", wallpaperCaptions);vpn = string(json, "vpn_app", vpn);homeSettings = bool(json, "show_home_settings_shortcut", homeSettings);showStats = bool(json, "show_stats", showStats);@@@ -412,15 -345,15 +417,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, inputUriScheme,Math.max(1, columns), Math.max(0, rowsBelow), animations, advancedEffects,- shamsi, greetingName, moduleCards, reducedMotion, dockTitle, dockRow, reorderButton, showNetworkPill, iconOnlyButtons, libraryButton, wifiLabelWidth, alwaysShowNames, wallpaperTrueColor, vpn, homeSettings, showStats, library, background,+ shamsi, greetingName, moduleCards, reducedMotion, bootToLiveTv, dockTitle, dockRow, reorderButton, showNetworkPill, showInputsPill, iconOnlyButtons, libraryButton, wifiLabelWidth, alwaysShowNames, wallpaperTrueColor, focusOvershoot, vpn, homeSettings, showStats, library, background,Math.max(0, Math.min(100, skyIntensity)), settingsKeycodes, settingsKeyPanel, wallpaperEnabled, wallpaper,- wallpapers, rotationMinutes, wallpaperDim, wallpaperOrder, applied,- festival, inputKeycodes, appKeys, json == null ? Collections.emptyList() : raceCalendar(json), cinematic, ambientGlow,- Math.max(0, idleClockMinutes), wallpaperCaptions);+ wallpapers, rotationMinutes, wallpaperDim, dockOpacity, wallpaperOrder, applied,+ festival, inputKeycodes, appKeys, stockHomeRedirect, json == null ? Collections.emptyList() : raceCalendar(json), cinematic, ambientGlow, appGlow,- Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle);++ Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions);}/**diff --cc launcher/app/src/main/java/com/gathin/tvhome/WallpaperPlayer.javaindex 8a3cb3d5e,7151ee4f4..76b7af1cc--- a/launcher/app/src/main/java/com/gathin/tvhome/WallpaperPlayer.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/WallpaperPlayer.java@@@ -4,9 -4,11 +4,12 @@@ import android.content.Contextimport android.content.SharedPreferences;import android.graphics.Bitmap;import android.graphics.BitmapFactory;+import android.graphics.Canvas;+ import android.text.TextUtils;import android.util.DisplayMetrics;import android.util.Log;+ import android.util.TypedValue;+ import android.view.Gravity;import android.view.View;import android.view.ViewGroup;import android.widget.FrameLayout;@@@ -83,10 -96,9 +95,11 @@@ final class WallpaperPlayerwhile (first != null) {Bitmap bitmap = decode(first);if (bitmap != null) {- image.setImageBitmap(bitmap);+ show(bitmap);+ // The picture covers the whole screen: the root's plain colour under it is overdraw.+ root.setBackground(null);displayed = first.getName();+ showCaption(false);if (!displayed.equals(previous)) {preferences.edit().putString("image", displayed).putLong("changed", System.currentTimeMillis()).apply();@@@ -138,8 -150,9 +151,9 @@@update();return;}- image.setImageBitmap(bitmap);+ show(bitmap);displayed = next.getName();+ showCaption(true);if (!displayed.equals(previous) || changed == 0) {preferences.edit().putString("image", displayed).putLong("changed", System.currentTimeMillis()).apply();diff --cc themes/README.mdindex 877a887d8,6e4d9fd72..23ab0b3b9--- a/themes/README.md+++ b/themes/README.md@@@ -75,7 -63,7 +75,8 @@@ is ignored, and a file that doesn't par| `wallpaper_rotation_minutes` | 0 to 1440 | Rotate images in the theme's `wallpapers/` folder at this interval; 0 keeps the single-image behaviour. A negative or non-numeric value is ignored, and 0 means "no rotation", not "every minute" || `wallpaper_order` | `shuffle` or `sequential` | How a collection advances. `shuffle` (the default, and what launchers did before this key existed) avoids repeating the current picture; `sequential` walks the folder in filename order and wraps at the end. An unknown value falls back to `shuffle` || `wallpaper_dim` | 0 to 90 | Black overlay over wallpaper images, in percent; 0 by default and no shade view at all |+| `dock_opacity` | 30 to 100 | Opacity of the dock's band, in percent, so a wallpaper shows through it; 100 by default (the cinematic shelf keeps its own translucent band) |+ | `wallpaper_captions` | bool | With a rotating collection, the shown picture's name under the top-right buttons, from `wallpapers/captions.txt` (`001.jpg<TAB>Dusk over the peaks`, one per line); a picture without a line shows no name (`false` by default) || `festival` | string | Turns on a festive skin: the network pill becomes a diya whose flame follows the connection, Inputs a temple bell, Settings a marigold, and the first Home of the day gets a petal shower. `dussehra` and `diwali` have built-in greetings || `festival_until` | `YYYY-MM-DD` | Last day the festive skin shows; it switches itself off after that. A malformed date turns it off || `greeting` | string | Replaces the time-of-day greeting while the festive skin is on |