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
Launcher: add the dock_band switch
cloud-assaa6473b83bde4
diff --git a/docs/switches.md b/docs/switches.mdindex 38819542e..31ac7e1bb 100644--- a/docs/switches.md+++ b/docs/switches.md@@ -45,3 +45,4 @@ fits the rules; keys from before the rule sit on its wanted list until a screens| `dock_band_all` | <img src="switches/single_row.jpg" width="320" alt="dock_band_all on a TV"> || `uniform_tiles` | <img src="switches/uniform_tiles.jpg" width="320" alt="uniform_tiles on a TV"> || `lunar_date` | <img src="switches/lunar_date.jpg" width="320" alt="lunar_date on a TV"> |+| `dock_band` | <img src="switches/dock_band.jpg" width="320" alt="dock_band on a TV"> |diff --git a/docs/switches/dock_band.jpg b/docs/switches/dock_band.jpgnew file mode 100644index 000000000..5e52f02c7Binary files /dev/null and b/docs/switches/dock_band.jpg differdiff --git a/launcher/app/src/main/java/com/gathin/tvhome/Config.java b/launcher/app/src/main/java/com/gathin/tvhome/Config.javaindex 92f2ff9ab..fbfe1efbf 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java@@ -193,6 +193,8 @@ final class Config {final boolean dockGlass;/** The dock band's padding equals the gap between its tiles (config.xml, dock_even_padding); false keeps the fixed padding. */final boolean dockEvenPadding;+ /** The dock band and its edge draw (dock_band); false leaves the tiles floating on the wallpaper. */+ final boolean dockBand;/** The dock position dots under the cinematic shelf's name (config.xml, cinematic_dots); false leaves them out. */final boolean cinematicDots;/** The cinematic shelf keeps the white focus highlight instead of the app's colour (config.xml, cinematic_white_focus). */@@ -249,7 +251,7 @@ final class Config {Festival festival, int[] inputKeycodes, List<String> appKeys, String stockHomeRedirect,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,+ boolean handleViewInputs, boolean tileMenu, boolean dockEvenPadding, boolean dockBand, 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, boolean clockWallpaper, int clockWallpaperDim, boolean clockGlow, String glassStyle, boolean singleRow, boolean dockBandAll, boolean lunarDate, int lunarUtcOffset) {this.handleViewInputs = handleViewInputs;this.tileMenu = tileMenu;@@ -327,6 +329,7 @@ final class Config {this.homeIdleClockMinutes = homeIdleClockMinutes;this.dockGlass = dockGlass;this.dockEvenPadding = dockEvenPadding;+ this.dockBand = dockBand;this.cinematicDots = cinematicDots;this.cinematicWhiteFocus = cinematicWhiteFocus;this.wifiStatusColor = wifiStatusColor;@@ -438,6 +441,7 @@ final class Config {boolean consumeVolumeKeys = res.getBoolean(R.bool.consume_volume_keys);boolean dockGlass = res.getBoolean(R.bool.dock_glass);boolean dockEvenPadding = res.getBoolean(R.bool.dock_even_padding);+ boolean dockBand = res.getBoolean(R.bool.dock_band);boolean cinematicDots = res.getBoolean(R.bool.cinematic_dots);boolean cinematicWhiteFocus = res.getBoolean(R.bool.cinematic_white_focus);boolean wifiStatusColor = res.getBoolean(R.bool.wifi_status_color);@@ -532,6 +536,7 @@ final class Config {consumeVolumeKeys = bool(json, "consume_volume_keys", consumeVolumeKeys);dockGlass = bool(json, "dock_glass", dockGlass);dockEvenPadding = bool(json, "dock_even_padding", dockEvenPadding);+ dockBand = bool(json, "dock_band", dockBand);cinematicDots = bool(json, "cinematic_dots", cinematicDots);cinematicWhiteFocus = bool(json, "cinematic_white_focus", cinematicWhiteFocus);wifiStatusColor = bool(json, "wifi_status_color", wifiStatusColor);@@ -605,7 +610,7 @@ final class Config {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, clockWallpaper, Math.max(0, Math.min(90, clockWallpaperDim)), clockGlow, glassStyle, singleRow && dockRow, dockBandAll, lunar, lunarOffset);+ Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, dockBand, cinematicDots, cinematicWhiteFocus, wifiStatusColor, cinematicScrim, cinematicArt, wallpaperMoods, gamepadPassthrough, consumeVolumeKeys, wifiStatusWarnings, topBarApps, showGreeting, headerWhite, clockWallpaper, Math.max(0, Math.min(90, clockWallpaperDim)), clockGlow, glassStyle, singleRow && dockRow, dockBandAll, lunar, lunarOffset);}/**diff --git a/launcher/app/src/main/java/com/gathin/tvhome/DockDecoration.java b/launcher/app/src/main/java/com/gathin/tvhome/DockDecoration.javaindex e6de8b42f..fe821b9dc 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/DockDecoration.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/DockDecoration.java@@ -28,6 +28,8 @@ public class DockDecoration extends RecyclerView.ItemDecoration {private final boolean evenPadding;/** The band's top and bottom the glass gradient was made for; it is remade when they move. */private float shaderTop = Float.NaN, shaderBottom = Float.NaN;+ /** Draw the band and its edge (config.xml dock_band); false leaves the tiles floating on the wallpaper. */+ private final boolean bandVisible;/** single_row: the tiles after the dock share its row, so they take the same offsets to stay level with it. */private final boolean singleRow;/** dock_band_all: in a single row, the band runs behind every app instead of the dock apps only. */@@ -39,11 +41,12 @@ public class DockDecoration extends RecyclerView.ItemDecoration {* @param opacity the plain band's opacity in percent (dock_opacity), so a wallpaper can show through it.* @param lightGlass a light frosted band like the pills, for a sky or wallpaper behind it.* @param evenPadding the band's padding is the gap between the tiles on all four sides (dock_even_padding).+ * @param bandVisible false skips the band and its edge, so the tiles float on the wallpaper (dock_band).* @param singleRow every app sits in the dock's row (single_row); the band covers the dock apps only, unless bandAll.* @param bandAll with singleRow, the band runs behind every app in the row (dock_band_all).*/DockDecoration(int dockSize, float density, boolean translucent, boolean names, int opacity, boolean lightGlass,- boolean evenPadding, boolean singleRow, boolean bandAll) {+ boolean evenPadding, boolean bandVisible, boolean singleRow, boolean bandAll) {this.dockSize = dockSize;this.singleRow = singleRow;this.bandAll = singleRow && bandAll;@@ -51,6 +54,7 @@ public class DockDecoration extends RecyclerView.ItemDecoration {this.namesRoom = names ? 22 * density : 0;this.lightGlass = lightGlass;this.evenPadding = evenPadding;+ this.bandVisible = bandVisible;band.setColor(translucent ? 0x8C121014 : (Math.round(opacity * 2.55f) << 24) | 0x141416);edge.setStyle(Paint.Style.STROKE);edge.setStrokeWidth(density);@@ -83,6 +87,7 @@ public class DockDecoration extends RecyclerView.ItemDecoration {@Overridepublic void onDraw(@NonNull Canvas c, @NonNull RecyclerView parent, @NonNull RecyclerView.State state) {+ if (!bandVisible) return;boolean any = false;int cardWidth = 0;for (int i = 0; i < parent.getChildCount(); i++) {diff --git a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.javaindex d992768a0..b62d65f27 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java@@ -563,7 +563,7 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {public void onChildViewDetachedFromWindow(@NonNull View v) {}});- if (dockRow) grid.addItemDecoration(new DockDecoration(COLUMNS, density, cinematic, cfg.alwaysShowNames, cfg.dockOpacity, cfg.dockGlass, cfg.dockEvenPadding,+ if (dockRow) grid.addItemDecoration(new DockDecoration(COLUMNS, density, cinematic, cfg.alwaysShowNames, cfg.dockOpacity, cfg.dockGlass, cfg.dockEvenPadding, cfg.dockBand,singleRow, cfg.dockBandAll));if (cfg.fadeRows) TopFade.attach(grid, 48 * density);// Reduced motion: the tiles are simply there, with no entrance (reloadApps skips it there too).diff --git a/launcher/app/src/main/res/values/config.xml b/launcher/app/src/main/res/values/config.xmlindex 8dbd32bec..775847bf3 100644--- a/launcher/app/src/main/res/values/config.xml+++ b/launcher/app/src/main/res/values/config.xml@@ -228,6 +228,8 @@through it. false (the default) keeps the solid near-black band, or the cinematic shelf's dark glass. Canalso be set with "dock_glass": true in a theme's config.json. --><bool name="dock_glass">false</bool>+ <!-- Draw the dock band and its edge. false leaves the tiles floating on the wallpaper (config.xml dock_band). -->+ <bool name="dock_band">true</bool><!-- Every app in one row: the dock apps first, the rest after them, and the row scrolls sideways when focusreaches its edge. No grid below; rows_below_dock is ignored. Needs dock_row. Can also be set with"single_row" in a theme. -->diff --git a/themes/README.md b/themes/README.mdindex a4c5310cd..8b540b583 100644--- a/themes/README.md+++ b/themes/README.md@@ -131,6 +131,7 @@ A new key needs one there in the same pull request.| `cinematic_art` | 0 to 100 | With `cinematic_home`, the opacity of the focused app's softened artwork (`50` by default); `0` leaves the wallpaper uncovered || `dock_even_padding` | bool | The dock band's padding equals the gap between its tiles on all four sides, as far as the grid's edges leave room (`false` by default) || `dock_glass` | bool | The dock band as light frosted glass like the top bar's pills (`false` by default); suits `sky_intensity` or a wallpaper, where the solid band reads as a dark slab |+| `dock_band` | bool | Draw the dock band and its edge (`true` by default); `false` leaves the tiles floating on the wallpaper with no band, border or dark slab || `single_row` | bool | Every app in the dock's row, the dock apps first, scrolling sideways; no grid below (`false` by default; needs `dock_row`) || `dock_band_all` | bool | With `single_row`, the band runs behind every app in the row, not only the dock apps (`false` by default) || `ambient_glow` | bool | The glow behind the dock in the focused app's colour (`true` by default); `false` keeps only `background_color` or the wallpaper, e.g. for a calm photo background |