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
Limit the customized header layout to Hebrew
lionlev21e51672866475
diff --git a/README.md b/README.mdindex b31ad9bbb..8d31f1954 100644--- a/README.md+++ b/README.md@@ -212,6 +212,7 @@ the install script finds `~/Android/Sdk` and the `java` on your PATH.- **Configure** in [`config.xml`](launcher/app/src/main/res/values/config.xml): dock order, hidden apps, the Live TV package, columns (tiles shrink from 5 up), rows under the dock, an optional VPN app for the network pill, and `reduced_motion` for TVs whose GPU cannot keep up.- **Themes** set the same keys plus a background colour and a wallpaper from a `config.json` pushed to the TV, no rebuild. Three ship in [`themes/`](themes/), documented there.- **Language** follows the TV: English, German, Spanish, Catalan, French, Russian, Serbian (Latin), Polish, Arabic, Hebrew, Simplified Chinese, Thai, Turkish. Android 13+ can set it for the launcher alone: `tools/tv.py 'cmd locale set-app-locales com.gathin.tvhome --locales he'`.+ Hebrew places the menu buttons on the left and the date and clock on the right, with the greeting above the clock; other languages keep the original header.Russian includes the module-card approval and management screens and the VPN-off badge.- **Module cards** let any TV app declare its own tile (label, caption, glow). The launcher asks you once per app, Keep hidden by default, and remembers the answer for that app's signing key and card name. Hold OK on Settings to change your mind. How to make one: [`docs/modules.md`](docs/modules.md); the contract: [`docs/specs/card.md`](docs/specs/card.md).- **Clock screensaver**: a drifting clock over the glow, so nothing burns in. Pick "Clock" in the TV's screensaver settings, or over ADB:diff --git a/docs/hebrew-home.png b/docs/hebrew-home.pngindex 1f05cf157..e58958e1e 100644Binary files a/docs/hebrew-home.png and b/docs/hebrew-home.png differdiff --git a/docs/hebrew-inputs.png b/docs/hebrew-inputs.pngindex d3916ea0d..0a72f7105 100644Binary files a/docs/hebrew-inputs.png and b/docs/hebrew-inputs.png differdiff --git a/launcher/app/src/main/res/layout-iw/activity_main.xml b/launcher/app/src/main/res/layout-iw/activity_main.xmlnew file mode 100644index 000000000..328c1caa6--- /dev/null+++ b/launcher/app/src/main/res/layout-iw/activity_main.xml@@ -0,0 +1,220 @@+<?xml version="1.0" encoding="utf-8"?>+<!-- Hebrew-only header positioning. Other languages use layout/activity_main.xml. -->+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"+ android:id="@+id/root"+ android:layout_width="match_parent"+ android:layout_height="match_parent"+ android:background="#FF000000">++ <!-- Ambient glow in the colour of the focused dock app. -->+ <View+ android:id="@+id/ambient"+ android:layout_width="match_parent"+ android:layout_height="match_parent"+ android:alpha="0" />++ <!-- Top shelf: the focused dock app's name, positioned above the dock in code. -->+ <TextView+ android:id="@+id/heroName"+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:layout_marginStart="68dp"+ android:alpha="0"+ android:textColor="#FFFFFFFF"+ android:textSize="48sp"+ android:fontFamily="@font/outfit"+ android:fontVariationSettings="'wght' 300"+ android:letterSpacing="-0.02"+ android:includeFontPadding="false"+ android:singleLine="true" />++ <LinearLayout+ android:layout_width="match_parent"+ android:layout_height="match_parent"+ android:orientation="vertical"+ android:paddingStart="56dp"+ android:paddingEnd="56dp"+ android:paddingTop="26dp">++ <RelativeLayout+ android:layout_width="match_parent"+ android:layout_height="wrap_content">++ <LinearLayout+ android:id="@+id/leftBlock"+ android:layout_width="match_parent"+ android:layout_height="wrap_content"+ android:layout_alignParentEnd="true"+ android:layout_toEndOf="@+id/topButtons"+ android:layout_marginStart="16dp"+ android:orientation="horizontal"+ android:gravity="right|bottom">++ <LinearLayout+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:layout_gravity="bottom"+ android:layout_marginBottom="9dp"+ android:orientation="vertical">++ <!-- Shamsi date ("27 Mehr 1405"), shown when shamsi_date is on. -->+ <TextView+ android:id="@+id/shamsiDate"+ android:gravity="right"+ android:layout_width="match_parent"+ android:layout_height="wrap_content"+ android:singleLine="true"+ android:ellipsize="end"+ android:textColor="#E6FFFFFF"+ android:textSize="17sp"+ android:fontFamily="@font/outfit"+ android:fontVariationSettings="'wght' 400"+ android:letterSpacing="0.02"+ android:includeFontPadding="false"+ android:visibility="gone" />++ <TextClock+ android:id="@+id/date"+ android:gravity="right"+ android:layout_width="match_parent"+ android:layout_height="wrap_content"+ android:singleLine="true"+ android:ellipsize="end"+ android:format12Hour="@string/date_format"+ android:format24Hour="@string/date_format"+ android:textColor="#A6FFFFFF"+ android:textSize="14sp"+ android:fontFamily="@font/outfit"+ android:fontVariationSettings="'wght' 400"+ android:letterSpacing="0.14"+ android:textAllCaps="true" />+ </LinearLayout>++ <View+ android:layout_width="1dp"+ android:layout_height="26dp"+ android:layout_gravity="bottom"+ android:layout_marginStart="16dp"+ android:layout_marginEnd="16dp"+ android:layout_marginBottom="8dp"+ android:background="#33FFFFFF" />++ <LinearLayout+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:orientation="vertical">+ <TextView+ android:id="@+id/greeting"+ android:gravity="center_horizontal"+ android:layout_width="match_parent"+ android:layout_height="wrap_content"+ android:singleLine="true"+ android:ellipsize="end"+ android:textColor="#8CFFFFFF"+ android:textSize="12sp"+ android:fontFamily="@font/outfit"+ android:fontVariationSettings="'wght' 500"+ android:letterSpacing="0.22"+ android:textAllCaps="true" />++ <LinearLayout+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:orientation="horizontal"+ android:baselineAligned="true">+ <TextClock+ android:id="@+id/clock"+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:format12Hour="h:mm"+ android:format24Hour="HH:mm"+ android:textColor="#FFFFFFFF"+ android:textSize="52sp"+ android:fontFamily="@font/outfit"+ android:fontVariationSettings="'wght' 300"+ android:letterSpacing="-0.04"+ android:includeFontPadding="false" />++ <TextClock+ android:id="@+id/ampm"+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:layout_marginStart="6dp"+ android:layout_gravity="bottom"+ android:layout_marginBottom="8dp"+ android:format12Hour="a"+ android:format24Hour=""+ android:textColor="#B3FFFFFF"+ android:textSize="15sp"+ android:fontFamily="@font/outfit"+ android:fontVariationSettings="'wght' 500"+ android:letterSpacing="0.08"+ android:textAllCaps="true" />+ </LinearLayout>+ </LinearLayout>+ </LinearLayout>++ <LinearLayout+ android:id="@+id/topButtons"+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:layout_alignParentStart="true"+ android:layout_alignBottom="@id/leftBlock"+ android:layout_marginBottom="6dp"+ android:orientation="horizontal">++ <TextView+ android:id="@+id/btnInputs"+ style="@style/TopButton"+ android:text="@string/inputs"+ android:drawableStart="@drawable/ic_input"+ android:nextFocusDown="@+id/grid" />++ <TextView+ android:id="@+id/btnWifi"+ style="@style/TopButton"+ android:maxWidth="180dp"+ android:singleLine="true"+ android:ellipsize="end"+ android:text="@string/wifi"+ android:drawableStart="@drawable/ic_wifi"+ android:nextFocusDown="@+id/grid" />++ <TextView+ android:id="@+id/btnSettings"+ style="@style/TopButton"+ android:text="@string/settings"+ android:drawableStart="@drawable/ic_settings"+ android:nextFocusDown="@+id/grid" />+ </LinearLayout>+ </RelativeLayout>++ <!-- The wrapper clips at the grid's edge; the grid itself must not clip so scaled tiles can overflow their cells. -->+ <FrameLayout+ android:layout_width="match_parent"+ android:layout_height="0dp"+ android:layout_weight="1"+ android:layout_marginTop="10dp">++ <androidx.recyclerview.widget.RecyclerView+ android:id="@+id/grid"+ android:layout_width="match_parent"+ android:layout_height="match_parent"+ android:paddingTop="10dp"+ android:paddingBottom="40dp"+ android:clipToPadding="false"+ android:clipChildren="false"+ android:overScrollMode="never"+ android:scrollbars="none"+ android:descendantFocusability="afterDescendants" />+ </FrameLayout>+ </LinearLayout>++ <!-- The single floating glass highlight that springs between tiles. -->+ <com.gathin.tvhome.GlassView+ android:id="@+id/glass"+ android:layout_width="10dp"+ android:layout_height="10dp"+ android:alpha="0"+ android:importantForAccessibility="no" />+</FrameLayout>