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: show_inputs_pill, to hide the Inputs pill
Canere6b11e0f8120
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..2b6fe99f3 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java@@ -77,6 +77,8 @@ final class Config {final boolean reorderButton;/** Show the Wi-Fi/Ethernet pill in the top bar (config.xml, show_network_pill). */final boolean showNetworkPill;+ /** Show the Inputs pill when the TV has inputs to list (config.xml, show_inputs_pill). */+ final boolean showInputsPill;/** Wi-Fi and Settings pills as round icon buttons, Inputs keeps its label (config.xml icon_only_buttons). */final boolean iconOnlyButtons;/** App library as a round button in the top bar (config.xml library_button); needs app_library. */@@ -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 showInputsPill, boolean iconOnlyButtons, boolean libraryButton, int wifiLabelWidth, boolean alwaysShowNames, boolean wallpaperTrueColor, 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,@@ -164,6 +166,7 @@ final class Config {this.dockRow = dockRow;this.reorderButton = reorderButton;this.showNetworkPill = showNetworkPill;+ this.showInputsPill = showInputsPill;this.iconOnlyButtons = iconOnlyButtons;this.libraryButton = libraryButton;this.wifiLabelWidth = wifiLabelWidth;@@ -221,6 +224,7 @@ final class Config {boolean dockRow = res.getBoolean(R.bool.dock_row);boolean reorderButton = res.getBoolean(R.bool.reorder_button);boolean showNetworkPill = res.getBoolean(R.bool.show_network_pill);+ boolean showInputsPill = res.getBoolean(R.bool.show_inputs_pill);boolean iconOnlyButtons = res.getBoolean(R.bool.icon_only_buttons);boolean libraryButton = res.getBoolean(R.bool.library_button);int wifiLabelWidth = res.getInteger(R.integer.wifi_label_width);@@ -270,6 +274,7 @@ final class Config {dockRow = bool(json, "dock_row", dockRow);reorderButton = bool(json, "reorder_button", reorderButton);showNetworkPill = bool(json, "show_network_pill", showNetworkPill);+ showInputsPill = bool(json, "show_inputs_pill", showInputsPill);iconOnlyButtons = bool(json, "icon_only_buttons", iconOnlyButtons);libraryButton = bool(json, "library_button", libraryButton);wifiLabelWidth = integer(json, "wifi_label_width", wifiLabelWidth, 0, 300);@@ -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, showInputsPill, iconOnlyButtons, libraryButton, wifiLabelWidth, alwaysShowNames, wallpaperTrueColor, 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..f3bfa89a0 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java@@ -144,6 +144,8 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {private TextView greeting;private View clockBlock;private View btnInputs;+ /** config show_inputs_pill: false keeps the Inputs pill hidden even when the TV has inputs. */+ private boolean showInputsPill = true;private TextView btnWifi;/** The network pill's icon as last set, so a refresh that changes nothing does not lay the top bar out again. */private int wifiIcon;@@ -521,6 +523,7 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {btnReorder.setOnClickListener(v -> toggleReorder());btnReorder.setVisibility(cfg.reorderButton ? View.VISIBLE : View.GONE);if (!cfg.showNetworkPill) btnWifi.setVisibility(View.GONE);+ showInputsPill = cfg.showInputsPill;btnLibraryTop = findViewById(R.id.btnLibraryTop);btnLibraryTop.setOnClickListener(v -> {onLibraryRequested();@@ -2183,6 +2186,10 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {/** Hides the Inputs pill when it would have nothing to list: streaming boxes have no HDMI-in, AV or tuner. */private void updateInputsButton() {+ if (!showInputsPill) {+ btnInputs.setVisibility(View.GONE);+ return;+ }boolean any = liveTvIntent() != null || !sourcePanelService.isEmpty();TvInputManager tim = (TvInputManager) getSystemService(TV_INPUT_SERVICE);if (!any && tim != null) {diff --git a/launcher/app/src/main/res/values/config.xml b/launcher/app/src/main/res/values/config.xmlindex 4ca1b963c..12c8b91f2 100644--- a/launcher/app/src/main/res/values/config.xml+++ b/launcher/app/src/main/res/values/config.xml@@ -126,6 +126,9 @@<!-- The Wi-Fi/Ethernet pill in the top bar. false hides it (on Android 14 with Location off it canonly say "Wi-Fi", not the network name). Can also be set with "show_network_pill" in a theme. --><bool name="show_network_pill">true</bool>+ <!-- The Inputs pill in the top bar, shown when the TV has inputs to list. false hides it for good; what the+ remote's Input button does is unchanged. Can also be set with "show_inputs_pill" in a theme. -->+ <bool name="show_inputs_pill">true</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>diff --git a/themes/README.md b/themes/README.mdindex e9ae32cfe..406e5e1ce 100644--- a/themes/README.md+++ b/themes/README.md@@ -42,6 +42,7 @@ is ignored, and a file that doesn't parse is ignored as a whole, so a theme can| `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 || `show_network_pill` | bool | The Wi-Fi/Ethernet pill in the top bar (`true` by default); `false` hides it |+| `show_inputs_pill` | bool | The Inputs pill in the top bar, shown when the TV has inputs (`true` by default); `false` hides it; what the remote's Input button does is unchanged || `icon_only_buttons` | bool | Wi-Fi and Settings as round icon buttons; Inputs keeps its label (`false` by default) || `wifi_label_width` | 0 to 300 | With `icon_only_buttons`, keep the network name on the Wi-Fi pill up to this width in dp, cut with an ellipsis; 0 leaves only the icon || `library_button` | bool | The app library as a round button in the top bar, beside Settings; needs `app_library`. Closing the library returns to it |