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: always_show_names, names under every tile including the dock (opt-in)
Cristian Rojase04fee4659a5
diff --git a/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java b/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.javaindex 11693851d..ef47d8412 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java@@ -174,6 +174,8 @@ public class AppAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {private final int dockSize;/** config dock_row: false makes the dock apps the first tiles of one plain grid (names shown, no empty slots). */private final boolean dockRow;+ /** config always_show_names: the alpha of an unfocused tile's name (0 hides it). */+ private final float restNameAlpha;/** cinematic_home: only then does a launch record the last-opened app the shelf uses. */private final boolean cinematic;/** Dock order (config.xml dock_apps, or a theme's config.json). */@@ -213,6 +215,7 @@ public class AppAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {this.rowsBelowDock = cfg.rowsBelowDock;this.dockTitle = cfg.dockTitle;this.dockRow = cfg.dockRow;+ this.restNameAlpha = cfg.alwaysShowNames ? 0.75f : 0f;this.cinematic = cfg.cinematicHome;this.launchActions = cfg.launchActions;this.appLabels = cfg.appLabels;@@ -375,7 +378,7 @@ public class AppAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {v.setPadding(v.getPaddingLeft(), pad, v.getPaddingRight(), pad);}name.setLayoutParams(nameLp);- return new Holder(v, listener, animations, advancedEffects, reducedMotion);+ return new Holder(v, listener, animations, advancedEffects, reducedMotion, restNameAlpha);}@Override@@ -397,9 +400,10 @@ public class AppAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {h.card.setVisibility(View.VISIBLE);h.card.setFocusable(true);h.name.setText(e.name);- h.name.setVisibility(dockRow && position < dockSize ? View.INVISIBLE : View.VISIBLE); // the dock has no labels+ // The dock has no labels, unless always_show_names asks for them (DockDecoration then makes room in the band).+ h.name.setVisibility(dockRow && position < dockSize && restNameAlpha == 0f ? View.INVISIBLE : View.VISIBLE);boolean focused = h.card.isFocused(); // a rebind after reload() can hit the focused tile- h.name.setAlpha(focused ? 1f : 0f);+ h.name.setAlpha(focused ? 1f : restNameAlpha);h.card.setScaleX(focused && animations ? focusScale() : 1f);h.card.setScaleY(focused && animations ? focusScale() : 1f);h.card.setTranslationY(focused && advancedEffects ? -4f * ctx.getResources().getDisplayMetrics().density : 0f);@@ -639,9 +643,11 @@ public class AppAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {final boolean animations;final boolean advancedEffects;final boolean reducedMotion;+ /** Alpha of the name while the tile is not focused (always_show_names). */+ final float restNameAlpha;Holder(View v, TileListener listener, boolean animations, boolean advancedEffects,- boolean reducedMotion) {+ boolean reducedMotion, float restNameAlpha) {super(v);card = v.findViewById(R.id.card);cardBackground = card.getBackground();@@ -652,6 +658,7 @@ public class AppAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {this.animations = animations;this.advancedEffects = advancedEffects;this.reducedMotion = reducedMotion;+ this.restNameAlpha = restNameAlpha;final float density = v.getResources().getDisplayMetrics().density;card.setOutlineProvider(new ViewOutlineProvider() {@@ -684,7 +691,7 @@ public class AppAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {view.setTranslationZ(0f);banner.setScaleX(1f);banner.setScaleY(1f);- name.setAlpha(focused ? 1f : 0f);+ name.setAlpha(focused ? 1f : restNameAlpha);name.setTranslationY(0f);} else if (reducedMotion) {view.animate().scaleX(s).scaleY(s)@@ -693,7 +700,7 @@ public class AppAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {.setDuration(focused ? 120 : 80).setInterpolator(new DecelerateInterpolator()).withLayer().start();- name.animate().alpha(focused ? 1f : 0f).setDuration(100).start();+ name.animate().alpha(focused ? 1f : restNameAlpha).setDuration(100).start();// Same place as the full motion's slide ends: the layout's -6dp is only its starting point, and// left there the name overlaps the zoomed tile.// Only on focus: snapping it back to -6dp while it fades out would jump it up over the tile.@@ -709,7 +716,7 @@ public class AppAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {banner.animate().scaleX(focused ? 1.035f : 1f).scaleY(focused ? 1.035f : 1f).setDuration(280).start();}- name.animate().alpha(focused ? 1f : 0f)+ name.animate().alpha(focused ? 1f : restNameAlpha).translationY(focused ? density * 4f : -density * 6f).setDuration(220).start();}diff --git a/launcher/app/src/main/java/com/gathin/tvhome/Config.java b/launcher/app/src/main/java/com/gathin/tvhome/Config.javaindex 8f41173e3..9e33689cf 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java@@ -68,6 +68,8 @@ final class Config {final boolean dockTitle;/** The dock as its own row: band, no names, parked low (config.xml dock_row). false: one plain grid. */final boolean dockRow;+ /** Names under every tile, dimmed until focused (config.xml always_show_names); the dock band grows for them. */+ final boolean alwaysShowNames;/** Reorder button in the top bar (config.xml reorder_button); the Settings long-press menu offers it either way. */final boolean reorderButton;final String vpnApp;@@ -109,7 +111,7 @@ final class Config {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, String vpnApp,+ boolean shamsiDate, String greetingName, boolean moduleCards, boolean reducedMotion, boolean dockTitle, boolean dockRow, boolean reorderButton, boolean alwaysShowNames, 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,@@ -139,6 +141,7 @@ final class Config {this.dockTitle = dockTitle;this.dockRow = dockRow;this.reorderButton = reorderButton;+ this.alwaysShowNames = alwaysShowNames;this.vpnApp = vpnApp;this.showHomeSettingsShortcut = showHomeSettingsShortcut;this.showStats = showStats;@@ -187,6 +190,7 @@ final class Config {boolean dockTitle = res.getBoolean(R.bool.dock_title);boolean dockRow = res.getBoolean(R.bool.dock_row);boolean reorderButton = res.getBoolean(R.bool.reorder_button);+ boolean alwaysShowNames = res.getBoolean(R.bool.always_show_names);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);@@ -227,6 +231,7 @@ final class Config {dockTitle = bool(json, "dock_title", dockTitle);dockRow = bool(json, "dock_row", dockRow);reorderButton = bool(json, "reorder_button", reorderButton);+ alwaysShowNames = bool(json, "always_show_names", alwaysShowNames);vpn = string(json, "vpn_app", vpn);homeSettings = bool(json, "show_home_settings_shortcut", homeSettings);showStats = bool(json, "show_stats", showStats);@@ -288,7 +293,7 @@ final class Config {packageMap(appBanners), panelService,panelAction, 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, alwaysShowNames, 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);diff --git a/launcher/app/src/main/java/com/gathin/tvhome/DockDecoration.java b/launcher/app/src/main/java/com/gathin/tvhome/DockDecoration.javaindex 2868ef704..88105157e 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/DockDecoration.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/DockDecoration.java@@ -18,10 +18,17 @@ public class DockDecoration extends RecyclerView.ItemDecoration {private final Paint edge = new Paint(Paint.ANTI_ALIAS_FLAG);private final RectF rect = new RectF();- /** @param translucent the cinematic shelf's band: the artwork and the glow show through it. */- DockDecoration(int dockSize, float density, boolean translucent) {+ /** Extra band below the tiles for their names (always_show_names), in px. */+ private final float namesRoom;++ /**+ * @param translucent the cinematic shelf's band: the artwork and the glow show through it.+ * @param names the dock tiles show their names, so the band reaches down over them.+ */+ DockDecoration(int dockSize, float density, boolean translucent, boolean names) {this.dockSize = dockSize;this.density = density;+ this.namesRoom = names ? 22 * density : 0;band.setColor(translucent ? 0x8C121014 : 0xFF141416);edge.setStyle(Paint.Style.STROKE);edge.setStrokeWidth(density);@@ -66,6 +73,7 @@ public class DockDecoration extends RecyclerView.ItemDecoration {// 1dp edge line, inside the grid; the top and bottom have room.float side = Math.max(0f, Math.min(pad, Math.min(rect.left, parent.getWidth() - rect.right) - density));rect.inset(-side, -pad);+ rect.bottom += namesRoom;float radius = 26 * density;c.drawRoundRect(rect, radius, radius, band);c.drawRoundRect(rect, radius, radius, edge);diff --git a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.javaindex 7597e0e60..cc4086c13 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java@@ -412,7 +412,7 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {public void onChildViewDetachedFromWindow(@NonNull View v) {}});- if (dockRow) grid.addItemDecoration(new DockDecoration(COLUMNS, density, cinematic));+ if (dockRow) grid.addItemDecoration(new DockDecoration(COLUMNS, density, cinematic, cfg.alwaysShowNames));if (animations) {int enterAnim = reducedMotion ? R.anim.tile_enter_reduced : R.anim.tile_enter;float enterDelay = reducedMotion ? 0f : 0.06f;diff --git a/launcher/app/src/main/res/values/config.xml b/launcher/app/src/main/res/values/config.xmlindex 3deebbea4..78da4ea62 100644--- a/launcher/app/src/main/res/values/config.xml+++ b/launcher/app/src/main/res/values/config.xml@@ -110,6 +110,9 @@<!-- A reorder button (two arrows) in the top bar. Off by default: reordering is also in the Settingsbutton's long-press menu, so it needs no extra button on screen. --><bool name="reorder_button">false</bool>+ <!-- Names under every tile, not only the focused one: unfocused names stay dimmed, the focused one is full white.+ With dock_row the band grows down to hold the dock's names too. -->+ <bool name="always_show_names">false</bool><!-- Grid rows left visible under the dock on the home screen. 0 = dock sits at the very bottom. Tiles shrink ifthe dock, its title and this many rows would not otherwise fit the screen height. -->diff --git a/themes/README.md b/themes/README.mdindex d08c19670..39301cca8 100644--- a/themes/README.md+++ b/themes/README.md@@ -40,6 +40,7 @@ is ignored, and a file that doesn't parse is ignored as a whole, so a theme can| `dock_title` | bool | The focused dock app's name in large type above the dock (`true`); `false` keeps only the glow || `dock_row` | bool | The dock as its own row with a band (`true`); `false` makes the dock apps the first tiles of one plain grid || `reorder_button` | bool | A reorder button in the top bar (`false` by default); reordering is always in the Settings button's long-press menu |+| `always_show_names` | bool | Names under every tile, dimmed until focused, the dock included (its band grows to hold them); `false` by default shows only the focused tile's name || `app_library` | bool | An App library pill after the last Home row: every installed app, add one to Home or take it off (`false` by default). The choices stay on the TV when a theme is pushed or reset; see [docs/app-library.md](../docs/app-library.md) || `shamsi_date` | bool | Show the Solar Hijri date above the Gregorian one || `greeting_name` | string | A name after the greeting, e.g. `"Mr. Trịnh"` for GOOD MORNING, MR. TRỊNH; empty for the greeting alone |