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: focus_overshoot, a highlight and tile zoom without the bounce
Riku Pirttinokka69c4e8efb993
diff --git a/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java b/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.javaindex d55717cba..e72972cbe 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java@@ -194,6 +194,8 @@ public class AppAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {private final boolean showHomeSettings;/** Calmer motion for weak GPUs (config.xml, reduced_motion): no overshoot, shorter fades. */private final boolean reducedMotion;+ /** The focus zoom may overshoot (config.xml, focus_overshoot). */+ private final boolean focusOvershoot;/** Package to the action its tile sends instead of the start screen (config.xml, launch_actions). */private final Map<String, String> launchActions;/** Tile names and bundled banners that replace the app's own (config.xml, app_labels and app_banners). */@@ -212,6 +214,7 @@ public class AppAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {this.showHomeSettings = cfg.showHomeSettingsShortcut;this.showLibrary = cfg.appLibrary;this.reducedMotion = cfg.reducedMotion;+ this.focusOvershoot = cfg.focusOvershoot;this.rowsBelowDock = cfg.rowsBelowDock;this.dockTitle = cfg.dockTitle;this.dockRow = cfg.dockRow;@@ -387,7 +390,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, restNameAlpha);+ return new Holder(v, listener, animations, advancedEffects, reducedMotion, restNameAlpha, focusOvershoot);}@Override@@ -654,9 +657,10 @@ public class AppAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {final boolean reducedMotion;/** Alpha of the name while the tile is not focused (always_show_names). */final float restNameAlpha;+ final boolean overshoot;Holder(View v, TileListener listener, boolean animations, boolean advancedEffects,- boolean reducedMotion, float restNameAlpha) {+ boolean reducedMotion, float restNameAlpha, boolean overshoot) {super(v);card = v.findViewById(R.id.card);cardBackground = card.getBackground();@@ -668,6 +672,7 @@ public class AppAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {this.advancedEffects = advancedEffects;this.reducedMotion = reducedMotion;this.restNameAlpha = restNameAlpha;+ this.overshoot = overshoot;final float density = v.getResources().getDisplayMetrics().density;card.setOutlineProvider(new ViewOutlineProvider() {@@ -719,7 +724,8 @@ public class AppAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {.translationY(focused && advancedEffects ? -4f * density : 0f).translationZ(focused && advancedEffects ? 8f * density : 0f).setDuration(advancedEffects ? (focused ? 220 : 170) : (focused ? 260 : 180))- .setInterpolator(new OvershootInterpolator(focused ? (advancedEffects ? 0.7f : 1.6f) : 0f))+ .setInterpolator(focused && !overshoot ? new DecelerateInterpolator(1.5f)+ : new OvershootInterpolator(focused ? (advancedEffects ? 0.7f : 1.6f) : 0f)).withLayer().start();if (advancedEffects) {banner.animate().scaleX(focused ? 1.035f : 1f).scaleY(focused ? 1.035f : 1f)diff --git a/launcher/app/src/main/java/com/gathin/tvhome/Config.java b/launcher/app/src/main/java/com/gathin/tvhome/Config.javaindex b55b5a100..bdb02124e 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java@@ -85,6 +85,8 @@ final class Config {final int wifiLabelWidth;/** Decode wallpapers in 32-bit colour instead of RGB_565 (config.xml wallpaper_true_color). */final boolean wallpaperTrueColor;+ /** The focused tile and the glass highlight swing past their target before settling (config.xml, focus_overshoot). */+ final boolean focusOvershoot;final String vpnApp;final boolean showHomeSettingsShortcut;/** One line under the clock: CPU, free memory, free storage. Off unless config or a theme turns it on. */@@ -133,7 +135,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, boolean showNetworkPill, boolean iconOnlyButtons, boolean libraryButton, int wifiLabelWidth, boolean alwaysShowNames, boolean wallpaperTrueColor, 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, 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,@@ -169,6 +171,7 @@ final class Config {this.wifiLabelWidth = wifiLabelWidth;this.alwaysShowNames = alwaysShowNames;this.wallpaperTrueColor = wallpaperTrueColor;+ this.focusOvershoot = focusOvershoot;this.vpnApp = vpnApp;this.showHomeSettingsShortcut = showHomeSettingsShortcut;this.showStats = showStats;@@ -226,6 +229,7 @@ final class Config {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);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);@@ -275,6 +279,7 @@ final class Config {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);vpn = string(json, "vpn_app", vpn);homeSettings = bool(json, "show_home_settings_shortcut", homeSettings);showStats = bool(json, "show_stats", showStats);@@ -343,7 +348,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, showNetworkPill, iconOnlyButtons, libraryButton, wifiLabelWidth, alwaysShowNames, wallpaperTrueColor, vpn, homeSettings, showStats, library, background,+ shamsi, greetingName, moduleCards, reducedMotion, dockTitle, dockRow, reorderButton, showNetworkPill, 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,diff --git a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.javaindex e89977e15..bf6d91b24 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java@@ -186,6 +186,8 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {private boolean reducedMotion;/** config.xml dock_row: the first row is a separate dock (band, parked low, top shelf) rather than plain grid. */private boolean dockRow;+ /** The highlight springs past its target (config.xml, focus_overshoot); false goes straight there. */+ private boolean focusOvershoot;/** Festive skin from the theme (see Festival); applied while it is active today. */private Festival festival = Festival.NONE;private boolean festive;@@ -312,6 +314,7 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {advancedEffects = cfg.animations && cfg.advancedEffects;reducedMotion = cfg.reducedMotion;dockRow = cfg.dockRow;+ focusOvershoot = cfg.focusOvershoot;festival = cfg.festival;festive = festival.active(LocalDate.now());liveTvPkg = cfg.liveTvPackage;@@ -502,6 +505,9 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {// and stops once the highlight is within 1.5 px of its tile.s.setSpring(new SpringForce().setStiffness(1400f).setDampingRatio(0.95f));s.setMinimumVisibleChange(1.5f);+ } else if (!focusOvershoot) {+ // Critically damped: glides straight onto the tile without swinging past it.+ s.setSpring(new SpringForce().setStiffness(advancedEffects ? 520f : 440f).setDampingRatio(1f));} else {s.setSpring(new SpringForce().setStiffness(advancedEffects ? 320f : 260f).setDampingRatio(advancedEffects ? 0.76f : 0.58f));diff --git a/launcher/app/src/main/res/values/config.xml b/launcher/app/src/main/res/values/config.xmlindex 4ca1b963c..e067db6f6 100644--- a/launcher/app/src/main/res/values/config.xml+++ b/launcher/app/src/main/res/values/config.xml@@ -166,6 +166,12 @@here or with "reduced_motion": true in a theme's config.json; false keeps the normal motion. --><bool name="reduced_motion">false</bool>+ <!-- The glass highlight springs past the tile it moves to and the focused tile zooms past its size+ before settling. false: both go straight there, with no bounce, while scrolling stays smooth+ (reduced_motion also removes the overshoot, but scrolls in one jump). Can also be set with+ "focus_overshoot" in a theme's config.json. -->+ <bool name="focus_overshoot">true</bool>+<!-- One line under the clock: CPU, free memory and free storage. Off by default; a theme can set"show_stats": true. Nothing is read, and the clock does not move, while this is false. --><bool name="show_stats">false</bool>diff --git a/themes/README.md b/themes/README.mdindex e9ae32cfe..8e9996678 100644--- a/themes/README.md+++ b/themes/README.md@@ -52,6 +52,7 @@ is ignored, and a file that doesn't parse is ignored as a whole, so a theme can| `greeting_name` | string | A name after the greeting, e.g. `"Mr. Trịnh"` for GOOD MORNING, MR. TRỊNH; empty for the greeting alone || `module_cards` | bool | Look for module cards and ask about them (`true`); `false` turns the feature off || `reduced_motion` | bool | Calmer motion for weak GPUs: stiff highlight spring, no tile overshoot, short fades, no entrance replay |+| `focus_overshoot` | bool | The highlight and the focused tile swing past their target before settling (`true` by default); `false` glides straight there with smooth scrolling || `vpn_app` | string | App the network pill opens when a VPN is configured; also shows a red "VPN off" badge while no VPN is up || `animations` | bool | Basic focus, glass, title and tile entrance motion; true by default || `advanced_effects` | bool | Optional lifted tile, icon zoom, smooth ambient colour and app opening effects; false by default |