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 #1247: Launcher: Home's wallpaper or plain black behind the clock screensaver (clock_wallpaper, clock_glow)
Gathin2300a38689db4d
diff --cc docs/switches.mdindex 586baf3d2,9becbe13d..997413106--- a/docs/switches.md+++ b/docs/switches.md@@@ -29,8 -29,6 +29,11 @@@ the rules. Keys from before this rule a| `settings_key_panel` | <img src="quick-settings-panel.jpg" width="320" alt="settings_key_panel on a TV"> || `home_idle_clock_minutes` | <img src="clock-screensaver.png" width="320" alt="home_idle_clock_minutes on a TV"> || `gamepad_passthrough` | <img src="switches/gamepad_passthrough.jpg" width="320" alt="gamepad_passthrough on a TV"> |+| `consume_volume_keys` | <img src="switches/consume_volume_keys.jpg" width="320" alt="consume_volume_keys on a TV"> |+| `wifi_status_warnings` | <img src="switches/wifi_status_warnings.jpg" width="320" alt="wifi_status_warnings on a TV"> |+| `top_bar_apps` | <img src="switches/top_bar_apps.jpg" width="320" alt="top_bar_apps on a TV"> |+| `show_greeting` | <img src="switches/show_greeting.jpg" width="320" alt="show_greeting on a TV"> |+| `header_white` | <img src="switches/header_white.jpg" width="320" alt="header_white on a TV"> |+ | `clock_wallpaper` | <img src="switches/clock_wallpaper.jpg" width="320" alt="clock_wallpaper on a TV"> |+ | `clock_wallpaper_dim` | <img src="switches/clock_wallpaper.jpg" width="320" alt="clock_wallpaper_dim on a TV"> |+ | `clock_glow` | <img src="switches/clock_glow.jpg" width="320" alt="clock_glow on a TV"> |diff --cc launcher/app/src/main/java/com/gathin/tvhome/Config.javaindex 90df6e543,4b9eb91ea..7a03e1448--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java@@@ -208,14 -206,12 +208,20 @@@ final class Configfinal boolean handleViewInputs;/** Hold OK on a tile opens a menu (Move, Remove from Home, App info) instead of App info (config.xml / theme tile_menu). */final boolean tileMenu;+ /** With wifi_status_color, the icon orange while connected without internet (a captive portal) and red while offline (config.xml, wifi_status_warnings). */+ final boolean wifiStatusWarnings;+ /** Apps shown as round logo buttons in the top bar, left of the network pill, and no longer as tiles (config.xml, top_bar_apps). */+ final List<String> topBarApps;+ /** The greeting above the clock (Good evening); false hides it (config.xml, show_greeting). */+ final boolean showGreeting;+ /** The date and the line between it and the clock in the clock's full white instead of dimmed (config.xml, header_white). */+ final boolean headerWhite;+ /** The clock screensaver over Home's wallpaper instead of the black glow (config.xml, clock_wallpaper). */+ final boolean clockWallpaper;+ /** How dark the clock screensaver's wallpaper is, 0 to 90 % (config.xml, clock_wallpaper_dim). */+ final int clockWallpaperDim;+ /** The clock screensaver's coloured glow; false leaves the clock on plain black, e.g. for an OLED (config.xml, clock_glow). */+ final boolean clockGlow;private Config(List<String> dockApps, boolean fillDock, List<String> hiddenApps, List<String> libraryApps, String liveTvPackage,String liveTvAction, String liveTvInputId, Map<String, String> launchActions, Map<String, String> appLabels,@@@ -230,7 -226,7 +236,7 @@@List<RaceWeekend.Race> raceCalendar, boolean cinematicHome, boolean ambientGlow, boolean appGlow, boolean fadeRows, int homeIdleClockMinutes,boolean keyFilter, boolean dockGlass, String glowStyle, boolean wallpaperCaptions,boolean handleViewInputs, boolean tileMenu, boolean dockEvenPadding, boolean cinematicDots, boolean cinematicWhiteFocus, boolean wifiStatusColor, int cinematicScrim, int cinematicArt,- Map<String, Set<String>> wallpaperMoods, boolean gamepadPassthrough, boolean consumeVolumeKeys, boolean wifiStatusWarnings, List<String> topBarApps, boolean showGreeting, boolean headerWhite) {- Map<String, Set<String>> wallpaperMoods, boolean gamepadPassthrough, boolean clockWallpaper, int clockWallpaperDim, boolean clockGlow) {++ Map<String, Set<String>> wallpaperMoods, boolean gamepadPassthrough, boolean consumeVolumeKeys, boolean wifiStatusWarnings, List<String> topBarApps, boolean showGreeting, boolean headerWhite, boolean clockWallpaper, int clockWallpaperDim, boolean clockGlow) {this.handleViewInputs = handleViewInputs;this.tileMenu = tileMenu;this.inputKeycodes = inputKeycodes;@@@ -310,11 -306,9 +316,14 @@@this.cinematicScrim = cinematicScrim;this.wallpaperMoods = wallpaperMoods;this.gamepadPassthrough = gamepadPassthrough;+ this.consumeVolumeKeys = consumeVolumeKeys;+ this.wifiStatusWarnings = wifiStatusWarnings;+ this.topBarApps = Collections.unmodifiableList(topBarApps);+ this.showGreeting = showGreeting;+ this.headerWhite = headerWhite;+ this.clockWallpaper = clockWallpaper;+ this.clockWallpaperDim = clockWallpaperDim;+ this.clockGlow = clockGlow;this.glowStyle = glowStyle(glowStyle);this.wallpaperCaptions = wallpaperCaptions;}@@@ -403,10 -396,9 +412,13 @@@int cinematicScrim = res.getInteger(R.integer.cinematic_scrim);Map<String, Set<String>> wallpaperMoods = moods(res.getString(R.string.wallpaper_moods));String glowStyle = res.getString(R.string.glow_style);+ boolean wifiStatusWarnings = res.getBoolean(R.bool.wifi_status_warnings);+ List<String> topBarApps = new ArrayList<>(Arrays.asList(res.getStringArray(R.array.top_bar_apps)));+ boolean showGreeting = res.getBoolean(R.bool.show_greeting);+ boolean headerWhite = res.getBoolean(R.bool.header_white);+ boolean clockWallpaper = res.getBoolean(R.bool.clock_wallpaper);+ int clockWallpaperDim = res.getInteger(R.integer.clock_wallpaper_dim);+ boolean clockGlow = res.getBoolean(R.bool.clock_glow);boolean applied = false;File dir = dir(ctx);@@@ -487,14 -478,11 +499,17 @@@cinematicScrim = integer(json, "cinematic_scrim", cinematicScrim, 0, 100);JSONObject moods = json.optJSONObject("wallpaper_moods");if (moods != null) wallpaperMoods = moods(moods);+ wifiStatusWarnings = bool(json, "wifi_status_warnings", wifiStatusWarnings);+ topBarApps = stringList(json, "top_bar_apps", topBarApps);+ showGreeting = bool(json, "show_greeting", showGreeting);+ headerWhite = bool(json, "header_white", headerWhite);+ clockWallpaper = bool(json, "clock_wallpaper", clockWallpaper);+ clockWallpaperDim = integer(json, "clock_wallpaper_dim", clockWallpaperDim, 0, 90);+ clockGlow = bool(json, "clock_glow", clockGlow);glowStyle = string(json, "glow_style", glowStyle);}+ // A top-bar app is moved there, not copied: it leaves the grid.+ for (String pkg : topBarApps) if (!hidden.contains(pkg)) hidden.add(pkg);// A theme push or reset invalidates choices made on the TV. On first use, remember the// current theme without clearing choices from an older launcher version.SharedPreferences choices = ctx.getSharedPreferences(SETTINGS_NAME, Context.MODE_PRIVATE);@@@ -547,7 -535,7 +562,7 @@@Math.max(0, Math.min(100, skyIntensity)), settingsKeycodes, settingsKeyPanel, restoreKeyServices, wallpaperEnabled, wallpaper,wallpapers, rotationMinutes, wallpaperDim, dockOpacity, wallpaperOrder, applied,festival, inputKeycodes, appKeys, stockHomeRedirect, json == null ? Collections.emptyList() : raceCalendar(json), cinematic, ambientGlow, appGlow, fadeRows,- Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicDots, cinematicWhiteFocus, wifiStatusColor, cinematicScrim, cinematicArt, wallpaperMoods, gamepadPassthrough, consumeVolumeKeys, wifiStatusWarnings, topBarApps, showGreeting, headerWhite);- Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicDots, cinematicWhiteFocus, wifiStatusColor, cinematicScrim, cinematicArt, wallpaperMoods, gamepadPassthrough, clockWallpaper, Math.max(0, Math.min(90, clockWallpaperDim)), clockGlow);++ Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicDots, cinematicWhiteFocus, wifiStatusColor, cinematicScrim, cinematicArt, wallpaperMoods, gamepadPassthrough, consumeVolumeKeys, wifiStatusWarnings, topBarApps, showGreeting, headerWhite, clockWallpaper, Math.max(0, Math.min(90, clockWallpaperDim)), clockGlow);}/**