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: split optional calendar out of Hebrew translation PR
lionlev21ecb4ba06bd7f
diff --git a/docs/switches.md b/docs/switches.mdindex b71bd76e9..17f253536 100644--- a/docs/switches.md+++ b/docs/switches.md@@ -29,10 +29,3 @@ the rules. Keys from before this rule are on its wanted list; a screenshot for o| `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"> |-| `hebrew_date` | <img src="switches/hebrew_date.jpg" width="320" alt="Hebrew and Gregorian dates on a TV"> |-| `jewish_holiday_greetings` | <img src="switches/jewish_holiday_greetings.jpg" width="320" alt="Jewish holiday greetings on a TV"> |-| `jewish_holiday_region` | <img src="switches/jewish_holiday_greetings.jpg" width="320" alt="Israel and Diaspora greeting preview on a TV"> |--The holiday comparison uses a private test build with its calendar date fixed to 22 Tishri for visual-validation only; the TV's system clock was not changed. Production code always uses the live date.-Only explicitly approved date/greeting/clock crops are shown; the rest of the screen is excluded.diff --git a/docs/switches/hebrew_date.jpg b/docs/switches/hebrew_date.jpgdeleted file mode 100644index 9ce763973..000000000Binary files a/docs/switches/hebrew_date.jpg and /dev/null differdiff --git a/docs/switches/jewish_holiday_greetings.jpg b/docs/switches/jewish_holiday_greetings.jpgdeleted file mode 100644index 7d1a816fd..000000000Binary files a/docs/switches/jewish_holiday_greetings.jpg and /dev/null differdiff --git a/launcher/app/src/main/java/com/gathin/tvhome/Config.java b/launcher/app/src/main/java/com/gathin/tvhome/Config.javaindex 3d95dac7c..6252d6d4b 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java@@ -85,7 +85,6 @@ final class Config {final boolean advancedEffects;final int rowsBelowDock;final boolean shamsiDate;- final JewishDate jewishDate;/** Name after the greeting ("Good morning, Mr. Trịnh"); empty for the greeting alone. */final String greetingName;final boolean moduleCards;@@ -213,7 +212,7 @@ final class Config {Map<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, JewishDate jewishDate, String greetingName, boolean moduleCards, boolean reducedMotion, boolean bootToLiveTv, 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 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 showHomeSettingsShortcut, boolean showStats, boolean appLibrary, boolean appLibrarySelection, 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,@@ -249,7 +248,6 @@ final class Config {this.animations = animations;this.advancedEffects = advancedEffects;this.shamsiDate = shamsiDate;- this.jewishDate = jewishDate;this.greetingName = greetingName;this.moduleCards = moduleCards;this.reducedMotion = reducedMotion;@@ -518,7 +516,7 @@ final class Config {packageMap(appBanners), panelService,panelAction, panelExtra, coocaaSources, inputAction, inputUriScheme,Math.max(1, columns), Math.max(0, rowsBelow), animations, advancedEffects,- shamsi, JewishDate.load(res, json), greetingName, moduleCards, reducedMotion, bootToLiveTv, dockTitle, dockRow, topMenu, launcherSettingsButton, reorderButton, showNetworkPill, showInputsPill, iconOnlyButtons, iconOnlyInputs, libraryButton, wifiLabelWidth, alwaysShowNames, wallpaperTrueColor, focusOvershoot, vpn, homeSettings, showStats, library, librarySelection, background,+ shamsi, greetingName, moduleCards, reducedMotion, bootToLiveTv, dockTitle, dockRow, topMenu, launcherSettingsButton, reorderButton, showNetworkPill, showInputsPill, iconOnlyButtons, iconOnlyInputs, libraryButton, wifiLabelWidth, alwaysShowNames, wallpaperTrueColor, focusOvershoot, vpn, homeSettings, showStats, library, librarySelection, 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 --git a/launcher/app/src/main/java/com/gathin/tvhome/JewishDate.java b/launcher/app/src/main/java/com/gathin/tvhome/JewishDate.javadeleted file mode 100644index 31a6f8c26..000000000--- a/launcher/app/src/main/java/com/gathin/tvhome/JewishDate.java+++ /dev/null@@ -1,137 +0,0 @@-package com.gathin.tvhome;--import android.content.res.Resources;-import android.icu.text.SimpleDateFormat;-import android.icu.util.HebrewCalendar;-import android.icu.util.ULocale;-import org.json.JSONObject;-import java.time.LocalDate;-import java.time.ZonedDateTime;-import java.util.Locale;--/** Optional civil display, computed offline; sunset is approximate, not a source of religious times. */-final class JewishDate {- // One-based indices into jewish_greetings; zero keeps the ordinary greeting.- static final int NEW_YEAR = 1, KIPPUR = 2, HANUKKAH = 3, PURIM = 4, HOLIDAY = 5, SHABBAT = 6;- final boolean showDate, greetings;- private final double latitude, longitude;- private final String region;-- private JewishDate(boolean date, boolean greetings, String region, double latitude, double longitude) {- this.showDate = date;- this.greetings = greetings;- this.region = region;- this.latitude = latitude;- this.longitude = longitude;- }-- static JewishDate load(Resources res, JSONObject json) {- boolean date = flag(res, json, "hebrew_date", R.bool.hebrew_date);- boolean greetings = flag(res, json, "jewish_holiday_greetings", R.bool.jewish_holiday_greetings);- if (!date && !greetings) return null;- try {- double lat = Double.parseDouble(res.getString(R.string.latitude));- double lon = Double.parseDouble(res.getString(R.string.longitude));- if (!validLocation(lat, lon)) return null;- return new JewishDate(date, greetings,- value(res, json, "jewish_holiday_region", R.string.jewish_holiday_region), lat, lon);- } catch (NumberFormatException e) {- return null;- }- }-- private static boolean flag(Resources res, JSONObject json, String key, int id) {- return json == null ? res.getBoolean(id) : json.optBoolean(key, res.getBoolean(id));- }-- private static String value(Resources res, JSONObject json, String key, int id) {- return (json == null ? res.getString(id) : json.optString(key, res.getString(id))).trim();- }-- static boolean validLocation(double latitude, double longitude) {- return Double.isFinite(latitude) && Double.isFinite(longitude)- && Math.abs(latitude) <= 90 && Math.abs(longitude) <= 180;- }-- /** Null when there is no sunset; never silently substitute another city's sunset. */- LocalDate day(ZonedDateTime now) {- return day(now, latitude, longitude);- }-- static LocalDate day(ZonedDateTime now, double latitude, double longitude) {- if (!validLocation(latitude, longitude)) return null;- LocalDate date = now.toLocalDate();- int[] sun = Sun.riseAndSet(date, latitude, longitude, now.getZone());- if (sun == null) return null;- return now.getHour() * 60 + now.getMinute() >= sun[1] ? date.plusDays(1) : date;- }-- static boolean israel(Locale locale, String region) {- if ("israel".equals(region)) return true;- if ("diaspora".equals(region)) return false;- return "IL".equals(locale.getCountry()) || (locale.getCountry().isEmpty()- && ("he".equals(locale.getLanguage()) || "iw".equals(locale.getLanguage())));- }-- private static HebrewCalendar calendar(LocalDate day) {- HebrewCalendar calendar = new HebrewCalendar(android.icu.util.TimeZone.getTimeZone("UTC"));- calendar.setTimeInMillis(day.toEpochDay() * 86400000L + 43200000L);- return calendar;- }-- static String text(LocalDate day, Locale locale) {- boolean he = "he".equals(locale.getLanguage()) || "iw".equals(locale.getLanguage());- SimpleDateFormat format = new SimpleDateFormat(he ? "d בMMMM y" : "d MMMM y",- he ? new ULocale("he_IL@calendar=hebrew;numbers=hebr")- : new ULocale(locale.toString() + "@calendar=hebrew"));- HebrewCalendar calendar = calendar(day);- format.setCalendar(calendar);- String text = format.format(calendar.getTime());- return he ? withoutMillennium(text) : text;- }-- /** Omit only a year's thousands prefix; preserve day 5 and Adar I/II markers. */- static String withoutMillennium(String text) {- return text.replaceFirst(" [א-ט]׳(?=[א-ת׳״]+$)", " ");- }-- int greeting(LocalDate day, Locale locale) {- int today = holidayOn(day, locale);- if (today != 0) return today;- return preferredGreeting(0, holidayOn(day.plusDays(1), locale), day);- }-- static int preferredGreeting(int holiday, int eve, LocalDate day) {- if (holiday != 0) return holiday;- if (eve != 0) return eve;- // Epoch day 2 was Saturday; Java's signed remainder is -5 for pre-1970 Saturdays.- long weekday = day.toEpochDay() % 7;- return weekday == 2 || weekday == -5 ? SHABBAT : 0;- }-- private int holidayOn(LocalDate day, Locale locale) {- HebrewCalendar c = calendar(day);- int month = c.get(HebrewCalendar.MONTH), date = c.get(HebrewCalendar.DAY_OF_MONTH);- // Kislev may have 29 or 30 days; Hanukkah always lasts eight days.- c.set(HebrewCalendar.MONTH, HebrewCalendar.KISLEV);- c.set(HebrewCalendar.DAY_OF_MONTH, 1);- return holiday(month, date, c.getActualMaximum(HebrewCalendar.DAY_OF_MONTH), israel(locale, region));- }-- /** ICU month numbers: Tishri=0, Kislev=2, Tevet=3, Adar/Adar II=6, Nisan=7, Sivan=9. */- static int holiday(int month, int day, int kislevDays, boolean israel) {- if (month == 0) {- if (day == 1 || day == 2) return NEW_YEAR;- if (day == 10) return KIPPUR;- if (day >= 15 && day <= 21) return HOLIDAY;- if (day == 22) return HOLIDAY;- if (day == 23 && !israel) return HOLIDAY;- }- if ((month == 2 && day >= 25 && day <= kislevDays)- || (month == 3 && day >= 1 && day <= 32 - kislevDays)) return HANUKKAH;- if (month == 6 && (day == 14 || day == 15)) return PURIM;- if (month == 7 && day >= 15 && day <= (israel ? 21 : 22)) return HOLIDAY;- if (month == 9 && (day == 6 || (day == 7 && !israel))) return HOLIDAY;- return 0;- }-}diff --git a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.javaindex cc5477e10..dca4f8424 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java@@ -186,7 +186,6 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {/** config.xml show_stats, overridable by a theme. Off: the line is gone and nothing is read. */private boolean showStats;private boolean shamsi;- private JewishDate jewishDate;/** greeting_name: said after the greeting, which is shown in capitals. */private String greetingName = "";/** Optional time-of-day backdrop (config.xml, sky_intensity); 0 keeps it hidden. */@@ -445,29 +444,11 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {raceSessions = findViewById(R.id.raceSessions);showStats = cfg.showStats;shamsi = cfg.shamsiDate;- jewishDate = cfg.jewishDate;greetingName = cfg.greetingName;- boolean hebrewDate = jewishDate != null && jewishDate.showDate;- if (shamsi || hebrewDate) {- if (shamsi && hebrewDate) {- shamsiDate.setSingleLine(false);- shamsiDate.setMaxLines(2);- }- if (hebrewDate) {- shamsiDate.getLayoutParams().width = ViewGroup.LayoutParams.WRAP_CONTENT;- ViewGroup dates = (ViewGroup) shamsiDate.getParent();- dates.removeView(shamsiDate);- dates.addView(shamsiDate);- dates.setTranslationY(6 * density);- }+ if (shamsi) {shamsiDate.setVisibility(View.VISIBLE);TextView date = findViewById(R.id.date);- if (hebrewDate) {- date.getLayoutParams().width = ViewGroup.LayoutParams.WRAP_CONTENT;- shamsiDate.setTextSize(14f);- date.setLetterSpacing(0.02f);- }- date.setTextSize(hebrewDate ? 14f : 11f);+ date.setTextSize(11f);date.setPadding(0, (int) (4 * density), 0, 0);}vpnApp = cfg.vpnApp;@@ -2294,27 +2275,16 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {else if (hour < 22) res = R.string.good_evening;else res = R.string.good_night;}- java.time.LocalDate jewishDay = jewishDate == null ? null- : jewishDate.day(java.time.ZonedDateTime.now());- int holiday = jewishDay != null && jewishDate.greetings ? jewishDate.greeting(jewishDay, locale) : 0;String festiveGreeting = festive ? festival.greetingText(getResources()) : "";- if (festiveGreeting.isEmpty() && holiday != 0) festiveGreeting = getResources().getStringArray(R.array.jewish_greetings)[holiday - 1];if (!festiveGreeting.isEmpty()) {greeting.setText(festiveGreeting);- greeting.setTextColor(festive ? liftTowardsWhite(festival.accentColor(), 0.25f) : greetingColor);+ greeting.setTextColor(liftTowardsWhite(festival.accentColor(), 0.25f));} else {greeting.setText(greetingName.isEmpty() ? getString(res): getString(R.string.greeting_with_name, getString(res), greetingName));greeting.setTextColor(greetingColor);}- if (shamsi || (jewishDate != null && jewishDate.showDate)) {- String text = shamsi ? Shamsi.today(getResources()) : "";- if (jewishDay != null && jewishDate.showDate) {- text += (text.isEmpty() ? "" : "\n") + JewishDate.text(jewishDay, locale);- }- shamsiDate.setText(text);- shamsiDate.setVisibility(text.isEmpty() ? View.GONE : View.VISIBLE);- }+ if (shamsi) shamsiDate.setText(Shamsi.today(getResources()));}// ---- race-weekend panel (a theme's race_calendar) -----------------------------------------------diff --git a/launcher/app/src/main/res/layout-iw/activity_main.xml b/launcher/app/src/main/res/layout-iw/activity_main.xmlindex f60ac5411..313f96a52 100644--- a/launcher/app/src/main/res/layout-iw/activity_main.xml+++ b/launcher/app/src/main/res/layout-iw/activity_main.xml@@ -184,7 +184,6 @@android:layout_height="wrap_content"android:layout_gravity="bottom"android:layout_marginBottom="9dp"- android:gravity="right"android:orientation="vertical"><!-- Shamsi date ("27 Mehr 1405"), shown when shamsi_date is on. -->diff --git a/launcher/app/src/main/res/values-iw/jewish_greetings.xml b/launcher/app/src/main/res/values-iw/jewish_greetings.xmldeleted file mode 100644index da11a7043..000000000--- a/launcher/app/src/main/res/values-iw/jewish_greetings.xml+++ /dev/null@@ -1,12 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<resources>- <!-- Order: New Year, Yom Kippur, Hanukkah, Purim, holiday, Shabbat. All opt-in. -->- <string-array name="jewish_greetings">- <item>שנה טובה</item>- <item>גמר חתימה טובה</item>- <item>חנוכה שמח</item>- <item>פורים שמח</item>- <item>חג שמח</item>- <item>שבת שלום</item>- </string-array>-</resources>diff --git a/launcher/app/src/main/res/values/config.xml b/launcher/app/src/main/res/values/config.xmlindex 7bdfe5bdd..f600b7d60 100644--- a/launcher/app/src/main/res/values/config.xml+++ b/launcher/app/src/main/res/values/config.xml@@ -185,14 +185,6 @@<!-- Show the Solar Hijri (Shamsi) date used in Iran and Afghanistan, e.g. "27 Mehr 1405", above theGregorian date. --><bool name="shamsi_date">false</bool>- <!-- Optional Hebrew date beside the Gregorian date and Jewish holiday greetings. Both are off.- Theme JSON accepts the same keys. A valid manual location is required for offline sunset rollover.- No location permission or network request. Approximate display, not religious timing guidance. -->- <bool name="hebrew_date">false</bool>- <bool name="jewish_holiday_greetings">false</bool>- <!-- auto: IL country (or Hebrew without a country) uses Israel; other countries use Diaspora.- Override with israel or diaspora when the app language does not reflect the desired schedule. -->- <string name="jewish_holiday_region" translatable="false">auto</string><!-- 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>diff --git a/launcher/app/src/main/res/values/jewish_greetings.xml b/launcher/app/src/main/res/values/jewish_greetings.xmldeleted file mode 100644index 109b13609..000000000--- a/launcher/app/src/main/res/values/jewish_greetings.xml+++ /dev/null@@ -1,12 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<resources>- <!-- Order: New Year, Yom Kippur, Hanukkah, Purim, holiday, Shabbat. All opt-in. -->- <string-array name="jewish_greetings">- <item>Happy New Year</item>- <item>Gmar tov</item>- <item>Happy Hanukkah</item>- <item>Happy Purim</item>- <item>Happy holiday</item>- <item>Shabbat shalom</item>- </string-array>-</resources>diff --git a/launcher/app/src/test/java/com/gathin/tvhome/JewishDateTest.java b/launcher/app/src/test/java/com/gathin/tvhome/JewishDateTest.javadeleted file mode 100644index c948ae2f1..000000000--- a/launcher/app/src/test/java/com/gathin/tvhome/JewishDateTest.java+++ /dev/null@@ -1,84 +0,0 @@-package com.gathin.tvhome;--import org.junit.Test;-import java.time.LocalDate;-import java.time.ZoneId;-import java.time.ZonedDateTime;-import java.util.Locale;-import static org.junit.Assert.*;--public class JewishDateTest {- @Test public void sunsetRollsForwardOnlyAtBoundaryAndHandlesDst() {- for (LocalDate day : new LocalDate[]{LocalDate.of(2026, 3, 26), LocalDate.of(2026, 3, 27),- LocalDate.of(2026, 9, 11), LocalDate.of(2026, 10, 25)}) {- ZoneId zone = ZoneId.of("Asia/Jerusalem");- int sunset = Sun.riseAndSet(day, 31.778, 35.235, zone)[1];- ZonedDateTime boundary = day.atStartOfDay(zone).withHour(sunset / 60).withMinute(sunset % 60);- assertEquals(day, JewishDate.day(boundary.minusMinutes(1), 31.778, 35.235));- assertEquals(day.plusDays(1), JewishDate.day(boundary, 31.778, 35.235));- }- }- @Test public void invalidOrPolarLocationDoesNotInventSunset() {- assertFalse(JewishDate.validLocation(Double.NaN, 0));- assertFalse(JewishDate.validLocation(0, Double.POSITIVE_INFINITY));- assertFalse(JewishDate.validLocation(91, 0));- assertFalse(JewishDate.validLocation(0, -181));- assertNull(JewishDate.day(ZonedDateTime.parse("2026-06-21T12:00:00Z"), 90, 0));- }- @Test public void explicitRegionAndCountryBeatLanguage() {- assertTrue(JewishDate.israel(new Locale("en", "IL"), "auto"));- assertTrue(JewishDate.israel(new Locale("he"), "auto"));- assertFalse(JewishDate.israel(new Locale("he", "US"), "auto"));- assertFalse(JewishDate.israel(Locale.US, "auto"));- assertTrue(JewishDate.israel(Locale.US, "israel"));- assertFalse(JewishDate.israel(new Locale("he", "IL"), "diaspora"));- }- @Test public void holidayRangesAndDiasporaExtraDays() {- assertEquals(JewishDate.NEW_YEAR, JewishDate.holiday(0, 1, 30, true));- assertEquals(0, JewishDate.holiday(0, 3, 30, true));- assertEquals(JewishDate.KIPPUR, JewishDate.holiday(0, 10, 30, true));- assertEquals(JewishDate.HOLIDAY, JewishDate.holiday(0, 21, 30, true));- assertEquals(JewishDate.HOLIDAY, JewishDate.holiday(0, 22, 30, true));- assertEquals(JewishDate.HOLIDAY, JewishDate.holiday(0, 22, 30, false));- assertEquals(JewishDate.HOLIDAY, JewishDate.holiday(0, 23, 30, false));- assertEquals(0, JewishDate.holiday(0, 23, 30, true));- assertEquals(JewishDate.HOLIDAY, JewishDate.holiday(7, 22, 30, false));- assertEquals(0, JewishDate.holiday(7, 22, 30, true));- assertEquals(JewishDate.HOLIDAY, JewishDate.holiday(9, 7, 30, false));- assertEquals(0, JewishDate.holiday(9, 7, 30, true));- assertEquals(0, JewishDate.holiday(5, 14, 30, true)); // Adar I is not Purim.- assertEquals(JewishDate.PURIM, JewishDate.holiday(6, 14, 30, true));- assertEquals(JewishDate.PURIM, JewishDate.holiday(6, 15, 30, true));- }- @Test public void omitYearThousandsWithoutChangingDaysOrLeapMonths() {- assertEquals("ה׳ בחשוון תשפ״ז", JewishDate.withoutMillennium("ה׳ בחשוון ה׳תשפ״ז"));- assertEquals("ט״ו באדר א׳ תשפ״ד", JewishDate.withoutMillennium("ט״ו באדר א׳ ה׳תשפ״ד"));- assertEquals("ט״ז באדר ב׳ תשפ״ד", JewishDate.withoutMillennium("ט״ז באדר ב׳ ה׳תשפ״ד"));- assertEquals("י״ג בחשוון תשפ״ז", JewishDate.withoutMillennium("י״ג בחשוון ה׳תשפ״ז"));- assertEquals("א׳ בתשרי ה׳", JewishDate.withoutMillennium("א׳ בתשרי ה׳"));- assertEquals("13 Heshvan 5787", JewishDate.withoutMillennium("13 Heshvan 5787"));- }-- @Test public void holidaysAndTheirEvesOverrideShabbat() {- LocalDate shabbat = LocalDate.of(2026, 10, 24);- assertEquals(JewishDate.SHABBAT, JewishDate.preferredGreeting(0, 0, shabbat));- assertEquals(JewishDate.NEW_YEAR,- JewishDate.preferredGreeting(JewishDate.NEW_YEAR, 0, shabbat));- assertEquals(JewishDate.HOLIDAY,- JewishDate.preferredGreeting(0, JewishDate.HOLIDAY, LocalDate.of(2025, 4, 12)));- assertEquals(JewishDate.HANUKKAH, JewishDate.preferredGreeting(- JewishDate.HANUKKAH, JewishDate.NEW_YEAR, shabbat));- assertEquals(0, JewishDate.preferredGreeting(0, 0, shabbat.plusDays(1)));- assertEquals(JewishDate.SHABBAT,- JewishDate.preferredGreeting(0, 0, LocalDate.of(1969, 12, 27)));- }-- @Test public void hanukkahHasEightDaysWithShortOrLongKislev() {- for (int length : new int[]{29, 30}) {- int count = 0;- for (int month : new int[]{2, 3}) for (int d = 1; d <= (month == 2 ? length : 29); d++)- if (JewishDate.holiday(month, d, length, true) == JewishDate.HANUKKAH) count++;- assertEquals(8, count);- }- }-}diff --git a/tests/test_hebrew_resources.py b/tests/test_hebrew_resources.pyindex ead2aea4b..18a22f397 100644--- a/tests/test_hebrew_resources.py+++ b/tests/test_hebrew_resources.py@@ -30,22 +30,6 @@ class HebrewResourcesTest(unittest.TestCase):self.assertEqual(sorted(placeholders.findall(value.text or "")),sorted(placeholders.findall(hebrew[name].text or "")))- def test_jewish_calendar_features_are_off_by_default(self):- config = ET.parse(RES / "values/config.xml").getroot()- for key in ("hebrew_date", "jewish_holiday_greetings"):- self.assertEqual("false", config.find("bool[@name='" + key + "']").text)-- def test_jewish_greeting_translations_keep_the_same_order(self):- lists = []- for folder in ("values", "values-iw"):- array = ET.parse(RES / folder / "jewish_greetings.xml").getroot().find("string-array")- self.assertEqual("jewish_greetings", array.get("name"))- lists.append([item.text for item in array])- self.assertEqual(6, len(lists[0]))- self.assertEqual(6, len(lists[1]))- self.assertEqual("Shabbat shalom", lists[0][-1])- self.assertEqual("שבת שלום", lists[1][-1])-def test_hebrew_home_keeps_all_default_view_ids_and_types(self):default, hebrew = views("layout"), views("layout-iw")for view_id, tag in default.items():diff --git a/themes/README.md b/themes/README.mdindex 13e8e203e..fd66ad533 100644--- a/themes/README.md+++ b/themes/README.md@@ -70,9 +70,6 @@ A new key needs one there in the same pull request.| `app_library_selection` | bool | OK toggles Home checkmarks in the library; checked apps first, both groups alphabetized. Hiding keeps focus on the adjacent next app (previous at the end). Requires `app_library`; `false` preserves the standard open/long-press behavior || `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 |-| `hebrew_date` | bool | Off by default; show the Hebrew calendar date below the Gregorian one. Requires the manual location described below for offline sunset rollover |-| `jewish_holiday_greetings` | bool | Off by default; replace the normal greeting during major Jewish holidays, their eves, Hanukkah, Purim (including Shushan Purim) and Shabbat. An explicit festival-theme greeting has priority |-| `jewish_holiday_region` | string | `auto` (default): country `IL` uses Israel, other countries use Diaspora; Hebrew without a country uses Israel. Override with `israel` or `diaspora` || `greeting_name` | string | A name after the greeting, e.g. `"Mr. Trịnh"` for GOOD MORNING, MR. TRỊNH; empty for the greeting alone || `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) |@@ -203,32 +200,3 @@ Open a PR with a new folder here containing:Then add a row to the table above with the screenshot, the same way as the others. Keep the dock listgeneric (the big streaming apps) unless the theme is for a specific TV, and say which TV you tried it onin the PR description.--### Optional Hebrew date and Jewish holiday greetings--Both switches are independent and off by default. Enable them explicitly in `config.xml` or a theme's-`config.json`, and set the existing `latitude` and `longitude` build resources in `config.xml`-to manual coordinates for the TV's city (themes cannot move the configured location). The TV calculates sunset offline with the existing solar helper and-uses Android's built-in Hebrew calendar (no added dependency or permission). The Hebrew date advances at-that sunset in the TV's time zone; keep its time zone correct. The calculation is approximate and is for-this date/greeting display, not candle-lighting, Havdalah or other religious timing guidance.--`jewish_holiday_region` follows the app locale's country, not GPS or the TV's network. A country is more-specific than language (for example, Hebrew/US uses Diaspora and English/Israel uses Israel). Use an explicit-region override if the app locale does not describe the schedule you observe. With no available sunset the-optional date and holiday greeting are omitted; the Gregorian date and normal greeting stay available.-The switches affect Home, not the separate clock screensaver. Hebrew formatting follows the selected locale;-other languages use ICU's localized Hebrew-calendar month names. Existing explicit festival greetings win.--Calendar validation uses [Hebcal's converter and holiday API](https://www.hebcal.com/home/developer-apis)-on the development computer only; the launcher never calls them.--The Gregorian date stays on top of the optional Hebrew date. Hebrew years omit the thousands prefix-(for example תשפ״ז); day-number and Adar I/II marks remain intact. Shemini Atzeret and Simchat Torah use-the same general holiday greeting in Israel and the Diaspora, while their observed dates still differ.--With greetings enabled, priority is: an explicit festival-theme greeting, today’s Jewish holiday,-a holiday beginning the following Hebrew day (holiday eve), Shabbat, then the normal time-of-day greeting.-Shabbat follows the same sunset-based date: Friday sunset through Saturday sunset (approximate display,-not Havdalah timing). Holiday-eve greetings use the upcoming holiday’s wording. The optional date pair-uses the same 14sp regular font and letter spacing on both lines, with a 6dp downward offset.