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 #1244: Launcher: apps as round logo buttons in the top bar (top_bar_apps)
Gathin231cabd8992a64
diff --cc docs/switches.mdindex 605ed32a6,2e1c80292..4d179e358--- a/docs/switches.md+++ b/docs/switches.md@@@ -29,5 -29,4 +29,6 @@@ the rules. Keys from before this rule a| `settings_key_panel` | <img src="quick-settings-panel.jpg" width="320" alt="settings_key_panel on a TV"> || `home_idle_clock_minutes` | <img src="clock-screensaver.png" width="320" alt="home_idle_clock_minutes on a TV"> || `gamepad_passthrough` | <img src="switches/gamepad_passthrough.jpg" width="320" alt="gamepad_passthrough on a TV"> |+| `consume_volume_keys` | <img src="switches/consume_volume_keys.jpg" width="320" alt="consume_volume_keys on a TV"> |+| `wifi_status_warnings` | <img src="switches/wifi_status_warnings.jpg" width="320" alt="wifi_status_warnings on a TV"> |+ | `top_bar_apps` | <img src="switches/top_bar_apps.jpg" width="320" alt="top_bar_apps on a TV"> |diff --cc launcher/app/src/main/java/com/gathin/tvhome/Config.javaindex f8ca563aa,007c02f69..3851fa518--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java@@@ -208,8 -206,8 +208,10 @@@ final class Configfinal boolean handleViewInputs;/** Hold OK on a tile opens a menu (Move, Remove from Home, App info) instead of App info (config.xml / theme tile_menu). */final boolean tileMenu;+ /** With wifi_status_color, the icon orange while connected without internet (a captive portal) and red while offline (config.xml, wifi_status_warnings). */+ final boolean wifiStatusWarnings;+ /** Apps shown as round logo buttons in the top bar, left of the network pill, and no longer as tiles (config.xml, top_bar_apps). */+ final List<String> topBarApps;private Config(List<String> dockApps, boolean fillDock, List<String> hiddenApps, List<String> libraryApps, String liveTvPackage,String liveTvAction, String liveTvInputId, Map<String, String> launchActions, Map<String, String> appLabels,@@@ -224,7 -222,7 +226,7 @@@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,- Map<String, Set<String>> wallpaperMoods, boolean gamepadPassthrough, boolean consumeVolumeKeys, boolean wifiStatusWarnings) {- Map<String, Set<String>> wallpaperMoods, boolean gamepadPassthrough, List<String> topBarApps) {++ Map<String, Set<String>> wallpaperMoods, boolean gamepadPassthrough, boolean consumeVolumeKeys, boolean wifiStatusWarnings, List<String> topBarApps) {this.handleViewInputs = handleViewInputs;this.tileMenu = tileMenu;this.inputKeycodes = inputKeycodes;@@@ -304,8 -302,7 +306,9 @@@this.cinematicScrim = cinematicScrim;this.wallpaperMoods = wallpaperMoods;this.gamepadPassthrough = gamepadPassthrough;+ this.consumeVolumeKeys = consumeVolumeKeys;+ this.wifiStatusWarnings = wifiStatusWarnings;+ this.topBarApps = Collections.unmodifiableList(topBarApps);this.glowStyle = glowStyle(glowStyle);this.wallpaperCaptions = wallpaperCaptions;}@@@ -394,7 -390,7 +397,8 @@@int cinematicScrim = res.getInteger(R.integer.cinematic_scrim);Map<String, Set<String>> wallpaperMoods = moods(res.getString(R.string.wallpaper_moods));String glowStyle = res.getString(R.string.glow_style);+ boolean wifiStatusWarnings = res.getBoolean(R.bool.wifi_status_warnings);+ List<String> topBarApps = new ArrayList<>(Arrays.asList(res.getStringArray(R.array.top_bar_apps)));boolean applied = false;File dir = dir(ctx);@@@ -475,9 -470,11 +479,12 @@@cinematicScrim = integer(json, "cinematic_scrim", cinematicScrim, 0, 100);JSONObject moods = json.optJSONObject("wallpaper_moods");if (moods != null) wallpaperMoods = moods(moods);+ wifiStatusWarnings = bool(json, "wifi_status_warnings", wifiStatusWarnings);+ topBarApps = stringList(json, "top_bar_apps", topBarApps);glowStyle = string(json, "glow_style", glowStyle);}+ // A top-bar app is moved there, not copied: it leaves the grid.+ for (String pkg : topBarApps) if (!hidden.contains(pkg)) hidden.add(pkg);// A theme push or reset invalidates choices made on the TV. On first use, remember the// current theme without clearing choices from an older launcher version.SharedPreferences choices = ctx.getSharedPreferences(SETTINGS_NAME, Context.MODE_PRIVATE);@@@ -530,7 -527,7 +537,7 @@@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);- Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicDots, cinematicWhiteFocus, wifiStatusColor, cinematicScrim, cinematicArt, wallpaperMoods, gamepadPassthrough, topBarApps);++ Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicDots, cinematicWhiteFocus, wifiStatusColor, cinematicScrim, cinematicArt, wallpaperMoods, gamepadPassthrough, consumeVolumeKeys, wifiStatusWarnings, topBarApps);}/**