Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

Halloween pack on current main: Themes row counts twelve, and the shipped-keys test knows festivalName's reader

Gathin23bcf0ae35dad2
diff --git a/README.md b/README.md
index 4408a46e2..5ebd5c26a 100644
--- a/README.md
+++ b/README.md
@@ -273,7 +273,7 @@ set is in [Troubleshooting](docs/TROUBLESHOOTING.md).
|---|---|
| **Configure** | Dock order, hidden apps, Live TV app, 4 to 7 tiles per row, reduced motion. All in [`config.xml`](launcher/app/src/main/res/values/config.xml) |
| **Settings on the TV** | Hold OK on Settings for launcher settings. Optional `launcher_settings_button` makes a normal click open them directly; TV settings remain on the settings page and their app tile. |
-| **Themes** | Background, wallpaper and layout from a `config.json` pushed over Wi-Fi, no rebuild. eleven ship in [`themes/`](themes/), the built-in `default/` included |
+| **Themes** | Background, wallpaper and layout from a `config.json` pushed over Wi-Fi, no rebuild. twelve ship in [`themes/`](themes/), the built-in `default/` included |
| **30 languages** | Follows the TV's language, with a fully mirrored right-to-left layout for Hebrew |
| **App library** | Optional: browse every installed app and add or remove Home shortcuts. See [the app library guide](docs/app-library.md) |
| **Tile menu** | Optional (`tile_menu`): hold OK on a tile for Move, Remove from Home and App info. Off, holding OK opens App info |
diff --git a/tests/test_shipped_config_keys_are_read.py b/tests/test_shipped_config_keys_are_read.py
index b612fefe5..3ab2386a7 100644
--- a/tests/test_shipped_config_keys_are_read.py
+++ b/tests/test_shipped_config_keys_are_read.py
@@ -31,12 +31,14 @@ THEMES_README = ROOT / "themes" / "README.md"
# two plain lookups a nested value takes, json.optJSONObject("wallpaper_moods") and
# json.optJSONArray("race_calendar").
NAMED_READER = re.compile(r"\b(?:bool|string|stringList|intArray|color|integer)\(\s*json\s*,\s*\"([a-z0-9_]+)\"")
+# Config.festivalName(o) reads the festival from the overlay under another variable name.
+FESTIVAL_READER = re.compile(r"\bstring\(\s*o\s*,\s*\"(festival|seasonal_skin)\"")
LOOKUP = re.compile(r"json\.optJSON(?:Object|Array)\(\s*\"([a-z0-9_]+)\"")
def overlay_keys(java_text):
"""Every key Config.java reads out of the pushed config.json."""
- return set(NAMED_READER.findall(java_text)) | set(LOOKUP.findall(java_text))
+ return set(NAMED_READER.findall(java_text)) | set(LOOKUP.findall(java_text)) | set(FESTIVAL_READER.findall(java_text))
def shipped_configs():