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 #1554: Launcher: library_ok_opens, OK opens every app in the library (#1081)
Gathin2365e08a7c6125
diff --cc docs/switches.mdindex 363c41027,ed79e3ac3..0942f983c--- a/docs/switches.md+++ b/docs/switches.md@@@ -45,5 -45,4 +45,6 @@@ fits the rules; keys from before the ru| `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"> |+| `show_library_pill` | <img src="switches/show_library_pill.jpg" width="320" alt="show_library_pill on a TV"> |+ | `library_ok_opens` | <img src="switches/library_ok_opens.jpg" width="320" alt="library_ok_opens on a TV"> |diff --cc launcher/app/src/main/java/com/gathin/tvhome/Config.javaindex 2c96f81b6,772e746e8..f6489ae28--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java@@@ -246,8 -244,8 +248,8 @@@ final class ConfigMap<String, String> appBanners, String sourcePanelService, String sourcePanelAction,String sourcePanelExtra, boolean coocaaSources, String inputAction,String inputUriScheme, int columns, int rowsBelowDock, boolean animations, boolean advancedEffects,- boolean shamsiDate, String greetingName, boolean moduleCards, boolean reducedMotion, boolean bootToLiveTv, boolean openOnStartChoice, boolean dockTitle, boolean dockRow, boolean topMenu, boolean launcherSettingsButton, boolean reorderButton, boolean showNetworkPill, boolean showInputsPill, boolean iconOnlyButtons, boolean iconOnlyInputs, boolean libraryButton, int wifiLabelWidth, boolean alwaysShowNames, boolean wallpaperTrueColor, boolean focusOvershoot, String vpnApp,+ boolean shamsiDate, String greetingName, boolean moduleCards, boolean reducedMotion, boolean bootToLiveTv, boolean openOnStartChoice, boolean dockTitle, boolean dockRow, boolean topMenu, boolean launcherSettingsButton, boolean reorderButton, boolean showNetworkPill, boolean showInputsPill, boolean iconOnlyButtons, boolean iconOnlyInputs, boolean libraryButton, boolean showLibraryPill, int wifiLabelWidth, boolean alwaysShowNames, boolean wallpaperTrueColor, boolean focusOvershoot, String vpnApp,- boolean showHomeSettingsShortcut, boolean showStats, boolean appLibrary, boolean appLibrarySelection, boolean uniformTiles, int backgroundColor, int skyIntensity,+ boolean showHomeSettingsShortcut, boolean showStats, boolean appLibrary, boolean appLibrarySelection, boolean libraryOkOpens, boolean uniformTiles, int backgroundColor, int skyIntensity,int[] settingsKeycodes, boolean settingsKeyPanel, boolean restoreKeyServices, boolean wallpaperEnabled, File wallpaper, List<File> wallpapers,int wallpaperRotationMinutes, int wallpaperDim, int dockOpacity, String wallpaperOrder, boolean overlayApplied,Festival festival, int[] inputKeycodes, List<String> appKeys, String stockHomeRedirect,@@@ -611,7 -606,7 +616,7 @@@packageMap(appBanners), panelService,panelAction, panelExtra, coocaaSources, inputAction, inputUriScheme,Math.max(1, columns), Math.max(0, rowsBelow), animations, advancedEffects,- shamsi, greetingName, moduleCards, reducedMotion, bootToLiveTv, openOnStartChoice, dockTitle, dockRow, topMenu, launcherSettingsButton, reorderButton, showNetworkPill, showInputsPill, iconOnlyButtons, iconOnlyInputs, libraryButton, showLibraryPill, wifiLabelWidth, alwaysShowNames, wallpaperTrueColor, focusOvershoot, vpn, homeSettings, showStats, library, librarySelection, uniformTiles, background,- shamsi, greetingName, moduleCards, reducedMotion, bootToLiveTv, openOnStartChoice, dockTitle, dockRow, topMenu, launcherSettingsButton, reorderButton, showNetworkPill, showInputsPill, iconOnlyButtons, iconOnlyInputs, libraryButton, wifiLabelWidth, alwaysShowNames, wallpaperTrueColor, focusOvershoot, vpn, homeSettings, showStats, library, librarySelection, libraryOkOpens, uniformTiles, background,++ shamsi, greetingName, moduleCards, reducedMotion, bootToLiveTv, openOnStartChoice, dockTitle, dockRow, topMenu, launcherSettingsButton, reorderButton, showNetworkPill, showInputsPill, iconOnlyButtons, iconOnlyInputs, libraryButton, showLibraryPill, wifiLabelWidth, alwaysShowNames, wallpaperTrueColor, focusOvershoot, vpn, homeSettings, showStats, library, librarySelection, wifiLabelWidth, alwaysShowNames, wallpaperTrueColor, focusOvershoot, vpn, homeSettings, showStats, library, librarySelection, libraryOkOpens, uniformTiles, background,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,diff --cc launcher/app/src/main/java/com/gathin/tvhome/LibraryApps.javaindex 0fc276541,bafffa19d..23e02a4ed--- a/launcher/app/src/main/java/com/gathin/tvhome/LibraryApps.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/LibraryApps.java@@@ -102,11 -102,12 +102,17 @@@ final class LibraryAppsreturn !removedFromHome && (explicitlyAdded || (tvApp && !themeHidden));}+ /** The pill after the last Home row: show_library_pill false hides it only while the top-bar button is a way in. */+ static boolean showPill(boolean library, boolean button, boolean pill) {+ return library && (pill || !button);+ }++ /** OK on a library card opens the app (true) or changes its Home shortcut. app_library_selection's OK always+ * changes it; otherwise an app on Home opens, and with library_ok_opens every app does. */+ static boolean okOpens(boolean selection, boolean openAll, boolean onHome) {+ return !selection && (openAll || onHome);+ }+static boolean recent(long installedAt, long now) {return installedAt > 0 && installedAt <= now && now - installedAt <= RECENT_MS;}diff --cc launcher/app/src/test/java/com/gathin/tvhome/LibraryAppsTest.javaindex e207fc712,d6c70dc7a..e4da5053f--- a/launcher/app/src/test/java/com/gathin/tvhome/LibraryAppsTest.java+++ b/launcher/app/src/test/java/com/gathin/tvhome/LibraryAppsTest.java@@@ -9,15 -9,15 +9,24 @@@ import java.util.Setimport static org.junit.Assert.*;public class LibraryAppsTest {+ @Test public void thePillHidesOnlyWhileTheTopBarButtonIsAWayIn() {+ assertTrue(LibraryApps.showPill(true, false, true));+ assertTrue(LibraryApps.showPill(true, true, true));+ assertTrue(LibraryApps.showPill(true, false, false));+ assertFalse(LibraryApps.showPill(true, true, false));+ assertFalse(LibraryApps.showPill(false, true, true));+ assertFalse(LibraryApps.showPill(false, false, true));+ }++ @Test public void okOpensHomeAppsAndEveryAppWithTheSwitchButNeverInSelectionMode() {+ assertTrue(LibraryApps.okOpens(false, false, true));+ assertFalse(LibraryApps.okOpens(false, false, false));+ assertTrue(LibraryApps.okOpens(false, true, false));+ assertTrue(LibraryApps.okOpens(false, true, true));+ assertFalse(LibraryApps.okOpens(true, true, false));+ assertFalse(LibraryApps.okOpens(true, false, true));+ }+@Test public void hidingKeepsTheNextAppOrThePreviousAppAtTheEnd() {assertEquals(1, LibraryApps.nextAfterRemoval(0, 5));assertEquals(3, LibraryApps.nextAfterRemoval(2, 5));