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: hide the greeting, full-white date (show_greeting, header_white)
benny117b2253be3ae77
diff --git a/launcher/app/src/main/java/com/gathin/tvhome/Config.java b/launcher/app/src/main/java/com/gathin/tvhome/Config.javaindex 6252d6d4b..97ce9fd8f 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java@@ -206,6 +206,10 @@ final class Config {final 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;+ /** The greeting above the clock (Good evening); false hides it (config.xml, show_greeting). */+ final boolean showGreeting;+ /** The date and the line between it and the clock in the clock's full white instead of dimmed (config.xml, header_white). */+ final boolean headerWhite;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,@@ -220,7 +224,7 @@ final class Config {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) {+ Map<String, Set<String>> wallpaperMoods, boolean gamepadPassthrough, boolean showGreeting, boolean headerWhite) {this.handleViewInputs = handleViewInputs;this.tileMenu = tileMenu;this.inputKeycodes = inputKeycodes;@@ -300,6 +304,8 @@ final class Config {this.cinematicScrim = cinematicScrim;this.wallpaperMoods = wallpaperMoods;this.gamepadPassthrough = gamepadPassthrough;+ this.showGreeting = showGreeting;+ this.headerWhite = headerWhite;this.glowStyle = glowStyle(glowStyle);this.wallpaperCaptions = wallpaperCaptions;}@@ -387,6 +393,8 @@ final class Config {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 showGreeting = res.getBoolean(R.bool.show_greeting);+ boolean headerWhite = res.getBoolean(R.bool.header_white);boolean applied = false;File dir = dir(ctx);@@ -466,6 +474,8 @@ final class Config {cinematicScrim = integer(json, "cinematic_scrim", cinematicScrim, 0, 100);JSONObject moods = json.optJSONObject("wallpaper_moods");if (moods != null) wallpaperMoods = moods(moods);+ showGreeting = bool(json, "show_greeting", showGreeting);+ headerWhite = bool(json, "header_white", headerWhite);glowStyle = string(json, "glow_style", glowStyle);}// A theme push or reset invalidates choices made on the TV. On first use, remember the@@ -520,7 +530,7 @@ final class Config {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);+ Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu, dockEvenPadding, cinematicDots, cinematicWhiteFocus, wifiStatusColor, cinematicScrim, cinematicArt, wallpaperMoods, gamepadPassthrough, showGreeting, headerWhite);}/**diff --git a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.javaindex dca4f8424..690a9b442 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java@@ -423,6 +423,12 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {greeting = findViewById(R.id.greeting);clockBlock = findViewById(R.id.leftBlock);greetingColor = greeting.getCurrentTextColor();+ if (!cfg.showGreeting) greeting.setVisibility(View.GONE);+ if (cfg.headerWhite) {+ // The clock's own white for the date and the line before it, instead of their dimmed whites.+ ((TextView) findViewById(R.id.date)).setTextColor(Color.WHITE);+ findViewById(R.id.clockDivider).setBackgroundColor(Color.WHITE);+ }if (getResources().getBoolean(R.bool.rtl_menu_bar)) {// Center Hebrew greetings over the numeric time, independent of a visible AM/PM label.findViewById(R.id.clock).addOnLayoutChangeListener((v, l, t, right, bottom, ol, ot, or, ob) -> {diff --git a/launcher/app/src/main/res/layout-iw/activity_main.xml b/launcher/app/src/main/res/layout-iw/activity_main.xmlindex 313f96a52..607becec4 100644--- a/launcher/app/src/main/res/layout-iw/activity_main.xml+++ b/launcher/app/src/main/res/layout-iw/activity_main.xml@@ -218,6 +218,7 @@</LinearLayout><View+ android:id="@+id/clockDivider"android:layout_width="1dp"android:layout_height="26dp"android:layout_gravity="bottom"diff --git a/launcher/app/src/main/res/layout/activity_main.xml b/launcher/app/src/main/res/layout/activity_main.xmlindex c5d56e735..85a3e2460 100644--- a/launcher/app/src/main/res/layout/activity_main.xml+++ b/launcher/app/src/main/res/layout/activity_main.xml@@ -223,6 +223,7 @@android:textAllCaps="true" /><View+ android:id="@+id/clockDivider"android:layout_width="1dp"android:layout_height="26dp"android:layout_gravity="bottom"diff --git a/launcher/app/src/main/res/values/config.xml b/launcher/app/src/main/res/values/config.xmlindex f600b7d60..f20a5be55 100644--- a/launcher/app/src/main/res/values/config.xml+++ b/launcher/app/src/main/res/values/config.xml@@ -188,6 +188,11 @@<!-- A name after the greeting: "Mr. Trịnh" shows GOOD MORNING, MR. TRỊNH. Empty: the greeting alone. --><string name="greeting_name" translatable="false"></string>+ <!-- The greeting above the clock ("Good evening"). false hides it. Can also be set with "show_greeting" in a theme. -->+ <bool name="show_greeting">true</bool>+ <!-- The date and the line between the clock and the date in the clock's full white instead of dimmed. Can also be+ set with "header_white" in a theme. -->+ <bool name="header_white">false</bool><!-- Optional VPN app the network pill opens (hold the pill for Wi-Fi settings), e.g. the package of theVPN you use. Empty: the pill opens Wi-Fi settings. The green VPN badge shows for any VPN either way;with an app set here, a red "VPN off" badge also shows while no VPN is up. -->diff --git a/themes/README.md b/themes/README.mdindex fd66ad533..dcd5f21ab 100644--- a/themes/README.md+++ b/themes/README.md@@ -71,6 +71,8 @@ A new key needs one there in the same pull request.| `library_apps` | list of package names | Packages pre-seeded into the App library's "added" set at startup (config.xml `library_apps`, or a theme's `config.json`). They show on Home as if the owner had added them in the App library UI, and stay removable there (a removed one stays hidden); empty (off) by default || `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 |+| `show_greeting` | bool | The greeting above the clock (`true` by default); `false` hides it |+| `header_white` | bool | The date and the line between the clock and the date in the clock's full white instead of dimmed (`false` by default) || `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: the highlight slides without bouncing and settles within 5 frames, every animation lasts 90 ms or less, names, the top shelf, the glow and the highlight appear instead of fading, and there is no tile entrance (`false` by default) || `boot_to_live_tv` | bool | Open the Live TV app (`live_tv_package`) on the first Home after the TV starts, once per boot |