Skip to content

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

Merge PR #464: Launcher: hold OK on a tile for Move, Remove from Home and App info; launch_actions fix

Gathin23e4eac2d8dcb8
diff --cc README.md
index 01c121e58,0886ce0b3..fc95a0686
--- a/README.md
+++ b/README.md
@@@ -83,8 -73,10 +83,10 @@@ phoning home, no apps you never asked f
| *Top shelf and ambient glow* | *Inputs: HDMI with connection state, AV, Live TV* |
| ![The grid with the glass highlight on a tile and its name beneath](docs/focus-1-fancode.png) | ![The Clock screensaver: a thin clock drifting over the glow](docs/clock-screensaver.png) |
| *The grid, one glass highlight, the tile's name* | *Clock screensaver, drifts so nothing burns in* |
-| ![The aurora theme: a wallpaper and tinted pills, pushed without a rebuild](docs/theme-aurora.jpg) | ![Six columns and a six-app dock from a theme's config.json](docs/theme-six-columns.jpg) |
+| ![The aurora theme: a wallpaper and tinted pills, pushed without a rebuild](themes/aurora/screenshot.jpg) | ![Six columns and a six-app dock from a theme's config.json](themes/six-columns/screenshot.jpg) |
| *Aurora theme, pushed with `tools/theme.sh`* | *Six columns and a six-app dock, same launcher* |
+ | ![Moving a tile: held OK, chose Move, the tile is picked up and the others dim](docs/tile-move.jpg) | ![The App library: installed apps, one press adds an app back to Home](docs/app-library.jpg) |
-| *Hold OK on a tile, Move: arrows carry it, Back puts it down* | *App library: one press puts a removed app back on Home* |
++| *With `tile_menu`, hold OK on a tile, Move: arrows carry it, Back puts it down* | *App library: one press puts a removed app back on Home* |
## Supported TVs
@@@ -449,113 -331,21 +451,114 @@@ The **TV** needs Android 8.0 (API 26) o
`ro.build.version.sdk` before it builds, so an older set is told both numbers instead of failing at
`pm install` (see [Troubleshooting](docs/TROUBLESHOOTING.md) for what is left on such a set).
-- **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.
-- **Hold OK on a tile** for Move (the tile is picked up: arrows move it, Back puts it down, Back again saves), Remove from Home (with the app library on, where one press adds it back) and App info.
-- **App library (optional):** enable `app_library` in config.xml or a theme to browse installed apps and add or remove Home shortcuts with the remote. See [the app library guide](docs/app-library.md).
-- **On-TV launcher settings:** click Settings for the TV's system settings, or hold OK on Settings and choose Launcher settings to set 4, 5, 6 or 7 apps per row, turn animations on or off, and opt into advanced effects. The advanced option adds tile lift, icon zoom and smooth ambient-colour transitions; it may use more memory. Use Follow theme to clear on-TV choices. Pushing or resetting a theme also clears them.
-- **Change the default home:** Launcher settings and the optional Default-home tile (`show_home_settings_shortcut`) open Android's home picker. Choose the original launcher to stop using CleanYourTV as Home, or CleanYourTV to return. The original launcher must be enabled. If the install script disabled it, use the restore script below first. Some TVs provide no home picker.
-- **Themes** set the same keys plus a background colour and a wallpaper from a `config.json` pushed to the TV, no rebuild. Five ship in [`themes/`](themes/), documented there.
-- **Language** follows the TV: English, German, Spanish, Catalan, French, Russian, Serbian (Latin), Polish, Czech, Italian, Portuguese, Turkish, Arabic, Hebrew, Simplified Chinese, Traditional Chinese (Taiwan), Thai, Finnish, Vietnamese, Bangla, Indonesian, Norwegian Bokmål, Dutch, Uzbek (Latin). Android 13+ can set it for the launcher alone: `tools/tv.py 'cmd locale set-app-locales com.gathin.tvhome --locales ca'`.
- Hebrew places the menu buttons on the left and the date and clock on the right, with the greeting above the clock. The Clock screensaver right-aligns its date and time, and Hebrew dates include the month prefix ב (for example, 19 באוקטובר). Hebrew dock and app-grid rows start on the right, with matching left/right remote navigation. The Hebrew input selector places icons and labels on the right, status on the left, and aligns the dropdown with the Inputs button’s right edge. Other languages keep their original layouts.
- 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 and choose Module cards 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:
- `tools/tv.py 'settings put secure screensaver_components com.gathin.tvhome/.ClockDream; settings put secure screensaver_enabled 1'`
-- **Remote keys**: an optional accessibility service keeps the remote's Input button working on Google TV (`INPUT_KEY_SERVICE=1` at install) and can bring back other buttons only the stock launcher answered, such as the YouTube button (`app_keys` and `input_key_keycodes`, in `config.xml` or a theme; `HOME_KEY_SERVICE=1` reads `app_keys` too), another fixes sticks whose Home key sends ALL_APPS and opens Settings from the remote's gear button, even one Android does not map (`HOME_KEY_SERVICE=1`, scancodes or keycodes in `config.xml`). With `settings_key_panel` the gear opens a [small quick settings panel](docs/quick-settings-panel.jpg) instead, over Home or any app: TV settings, Display, Network, Apps and Launcher settings.
-- **Navigation** is deliberate: Up and Down move one row, the top buttons never fall through to tiles and Down from them returns to the dock tile you came from, the last focused app is remembered, and installing or removing an app refreshes the tiles while Home is open.
-- **Artwork**: app banners load at xhdpi or better, so low-density TV UIs do not downsample them before the focus zoom.
+| What | How it works |
+|---|---|
+| **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 the Settings pill for Launcher settings: tiles per row, dock band opacity, animations, advanced effects |
+| **Themes** | Background, wallpaper and layout from a `config.json` pushed over Wi-Fi, no rebuild. Five ship in [`themes/`](themes/) |
+| **25 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 |
+| **Module cards** | Any TV app can offer its own tile; you approve each one once. See [`docs/modules.md`](docs/modules.md) |
+| **Add-ons** | Optional apps that plug in as module cards, kept in [`addons/`](addons/) and never built into the launcher |
+| **Clock screensaver** | A drifting clock over the glow, so nothing burns in |
+| **Remote keys** | Keeps the Input, YouTube and gear buttons working after the stock launcher is gone |
+
+<details>
+<summary><b>Build it yourself</b></summary>
+
+It needs JDK 17 and Android SDK platform 34. On macOS: `brew install openjdk@17 android-commandlinetools`
+and `sdkmanager "platforms;android-34" "build-tools;34.0.0"`. On Linux the install script finds
+`~/Android/Sdk` and the `java` on your PATH.
+
+</details>
+
+<details>
+<summary><b>Configure</b></summary>
+
+[`config.xml`](launcher/app/src/main/res/values/config.xml) sets the 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.
+
+</details>
+
+<details>
+<summary><b>Launcher settings and the default home</b></summary>
+
+- Click **Settings** for the TV's own settings. Hold OK on it and choose **Launcher settings** to set 4, 5,
+ 6 or 7 apps per row, turn animations on or off, and opt into advanced effects (tile lift, icon zoom and
+ smooth ambient-colour transitions; they may use more memory).
+- **Follow theme** clears the on-TV choices. Pushing or resetting a theme clears them too.
+- **Change the default home:** Launcher settings and the optional Default-home tile
+ (`show_home_settings_shortcut`) open Android's home picker. Choose the original launcher to stop using
+ CleanYourTV as Home, or CleanYourTV to return. The original launcher must be enabled; if the install
+ script disabled it, run the restore script below first. Some TVs provide no home picker.
+
+</details>
+
+<details>
+<summary><b>Languages</b></summary>
+
+English, German, Spanish, Catalan, French, Russian, Serbian (Latin), Polish, Czech, Italian, Portuguese,
+Turkish, Arabic, Hebrew, Simplified Chinese, Traditional Chinese (Taiwan), Thai, Finnish, Vietnamese,
+Bangla, Indonesian, Norwegian Bokmål, Dutch, Uzbek (Latin) and Ukrainian. The launcher follows the TV's language. Android 13+ can set it for the launcher
+alone: `tools/tv.py 'cmd locale set-app-locales com.gathin.tvhome --locales ca'`.
+
+Hebrew mirrors the layout: menu buttons on the left, date and clock on the right with the greeting above,
+dock and app rows starting on the right with matching remote navigation, the input selector's icons and
+labels on the right, and dates with the month prefix ב (for example, 19 באוקטובר). The Clock screensaver
+right-aligns its date and time. Russian covers every screen, including race weekends, festival greetings and the Shamsi date. Other
+languages keep their original layouts.
+
+</details>
+
+<details>
+<summary><b>Module cards</b></summary>
+
+Any TV app can declare its own tile (label, caption, glow). The launcher asks you once per app, keeps it
+hidden by default, and remembers the answer for that app's signing key and card name. Hold OK on Settings
+and choose Module cards to change your mind. How to make one: [`docs/modules.md`](docs/modules.md); the
+contract: [`docs/specs/card.md`](docs/specs/card.md).
+
+</details>
+
+<details>
+<summary><b>Clock screensaver</b></summary>
+
+Pick "Clock" in the TV's screensaver settings, or over ADB:
+
+```bash
+tools/tv.py 'settings put secure screensaver_components com.gathin.tvhome/.ClockDream; settings put secure screensaver_enabled 1'
+```
+
+</details>
+
+<details>
+<summary><b>Remote keys</b></summary>
+
+- An optional accessibility service keeps the remote's **Input** button working on Google TV
+ (`INPUT_KEY_SERVICE=1` at install).
+- It can bring back other buttons only the stock launcher answered, such as the **YouTube** button
+ (`app_keys` and `input_key_keycodes`, in config.xml or a theme; `HOME_KEY_SERVICE=1` reads `app_keys` too).
+- A `hold:` prefix on an `app_keys` entry gives that button a second app: a normal press opens the
+ unprefixed app, holding for half a second opens the hold one (by keycode or `hold:scan:...`).
+- `HOME_KEY_SERVICE=1` also fixes sticks whose Home key sends ALL_APPS, and opens Settings from the remote's
+ **gear** button, even one Android does not map (scancodes or keycodes in config.xml).
+- With `settings_key_panel` the gear opens a [small quick settings panel](docs/quick-settings-panel.jpg)
+ over Home or any app: TV settings, Display, Network, Apps and Launcher settings.
+
+</details>
+
+<details>
+<summary><b>Navigation and artwork</b></summary>
+
+Up and Down move one row. The top buttons never fall through to tiles, and Down from them returns to the
+dock tile you came from. The last focused app is remembered, and installing or removing an app refreshes
+the tiles while Home is open. App banners load at xhdpi or better, so low-density TV UIs do not downsample
+them before the focus zoom.
+
+</details>
## Restoring your TV
diff --cc docs/app-library.md
index d5971e556,73bc0f13b..74101850e
--- a/docs/app-library.md
+++ b/docs/app-library.md
@@@ -22,6 -22,7 +22,7 @@@ subtle tint. Updating an existing app d
Right from the final app reaches the library pill; Up returns to the last row.
Hebrew mirrors the horizontal direction, so Left from the final app reaches it.
-Holding OK on a Home tile offers Remove from Home as well, next to Move and App info.
++With `tile_menu` on, holding OK on a Home tile offers Remove from Home as well, next to Move and App info.
Every checked app can be removed from Home, including the theme’s default apps.
It stays installed and remains in the library, where one press adds it back.
There is no hidden-app section and no uninstall action.
diff --cc launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java
index 2a75a7c14,c4061168f..7cd53373d
--- a/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java
@@@ -196,10 -194,8 +198,12 @@@ public class AppAdapter extends Recycle
private final boolean showHomeSettings;
/** Calmer motion for weak GPUs (config.xml, reduced_motion): no overshoot, shorter fades. */
private final boolean reducedMotion;
+ /** The focus zoom may overshoot (config.xml, focus_overshoot). */
+ private final boolean focusOvershoot;
/** Package to the action its tile sends instead of the start screen (config.xml, launch_actions). */
private final Map<String, String> launchActions;
++ /** Hold OK opens the activity's tile menu (config.xml, tile_menu); false opens App info, as before. */
++ private final boolean tileMenu;
/** Tile names and bundled banners that replace the app's own (config.xml, app_labels and app_banners). */
private final Map<String, String> appLabels, appBanners;
private final List<Entry> items = new ArrayList<>();
@@@ -223,6 -218,6 +227,7 @@@
this.restNameAlpha = cfg.alwaysShowNames ? 0.75f : 0f;
this.cinematic = cfg.cinematicHome;
this.launchActions = cfg.launchActions;
++ this.tileMenu = cfg.tileMenu;
this.appLabels = cfg.appLabels;
this.appBanners = cfg.appBanners;
// Tiles keep their identity across reload(), so a focused tile stays on its app instead of
@@@ -442,12 -437,8 +447,17 @@@
}
h.card.setOnClickListener(v -> launch(e));
h.card.setOnLongClickListener(v -> {
- int pos = h.getBindingAdapterPosition();
- if (pos != RecyclerView.NO_POSITION) listener.onTileLongPress(pos, v);
++ if (tileMenu) {
++ int pos = h.getBindingAdapterPosition();
++ if (pos != RecyclerView.NO_POSITION) listener.onTileLongPress(pos, v);
++ return true;
++ }
+ Intent i = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse("package:" + e.pkg));
+ i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
+ try {
+ ctx.startActivity(i);
+ } catch (ActivityNotFoundException ignored) {
+ }
return true;
});
}
diff --cc launcher/app/src/main/java/com/gathin/tvhome/Config.java
index f56a54dad,b55b5a100..262a93990
--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java
@@@ -151,39 -126,21 +151,42 @@@ final class Config
final boolean cinematicHome;
/** The glow in the focused app's colour behind the dock (config.xml, ambient_glow); false keeps the background plain. */
final boolean ambientGlow;
+ /** The focus highlight in the focused app's colour on every tile (config.xml, app_glow), as cinematic_home does for the dock. */
+ final boolean appGlow;
/** Minutes Home may sit untouched before the clock screensaver (config.xml, home_idle_clock_minutes); 0 is off. */
final int homeIdleClockMinutes;
+ /** The dock band as light frosted glass like the pills (config.xml, dock_glass); false keeps the solid band. */
+ final boolean dockGlass;
+ /** Shape of the glow behind the focused app (config.xml, glow_style): {@link #GLOW_RADIAL} or {@link #GLOW_HORIZON}. */
+ final String glowStyle;
+
+ static final String GLOW_RADIAL = "radial", GLOW_HORIZON = "horizon";
+ /** Show each rotating wallpaper's name from wallpapers/captions.txt (config.xml / theme wallpaper_captions). */
+ final boolean wallpaperCaptions;
+ /** Answer VIEW_INPUTS with the Inputs menu (handle_view_inputs); see InputsRequestActivity. */
+ 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;
private Config(List<String> dockApps, boolean fillDock, List<String> hiddenApps, String liveTvPackage,
- String liveTvAction, Map<String, String> launchActions, Map<String, String> appLabels,
- Map<String, String> appBanners, String sourcePanelService, String sourcePanelAction, String inputAction,
- int columns, int rowsBelowDock, boolean animations, boolean advancedEffects,
- boolean shamsiDate, String greetingName, boolean moduleCards, boolean reducedMotion, boolean dockTitle, boolean dockRow, boolean reorderButton, boolean showNetworkPill, boolean iconOnlyButtons, boolean libraryButton, int wifiLabelWidth, boolean alwaysShowNames, boolean wallpaperTrueColor, String vpnApp,
+ String liveTvAction, String liveTvInputId, Map<String, String> launchActions, Map<String, String> appLabels,
+ 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, String greetingName, boolean moduleCards, boolean reducedMotion, boolean bootToLiveTv, boolean dockTitle, boolean dockRow, boolean topMenu, boolean reorderButton, boolean showNetworkPill, boolean showInputsPill, boolean iconOnlyButtons, boolean libraryButton, int wifiLabelWidth, boolean alwaysShowNames, boolean wallpaperTrueColor, boolean focusOvershoot, String vpnApp,
boolean showHomeSettingsShortcut, boolean showStats, boolean appLibrary, int backgroundColor, int skyIntensity,
- int[] settingsKeycodes, boolean settingsKeyPanel, boolean wallpaperEnabled, File wallpaper, List<File> wallpapers,
- int wallpaperRotationMinutes, int wallpaperDim, String wallpaperOrder, boolean overlayApplied,
- Festival festival, int[] inputKeycodes, List<String> appKeys,
- List<RaceWeekend.Race> raceCalendar, boolean cinematicHome, boolean ambientGlow, int homeIdleClockMinutes) {
+ int[] settingsKeycodes, boolean settingsKeyPanel, boolean restoreKeyServices, boolean wallpaperEnabled, File wallpaper, List<File> wallpapers,
+ int wallpaperRotationMinutes, int wallpaperDim, int dockOpacity, String wallpaperOrder, boolean overlayApplied,
+ Festival festival, int[] inputKeycodes, List<String> appKeys, String stockHomeRedirect,
+ List<RaceWeekend.Race> raceCalendar, boolean cinematicHome, boolean ambientGlow, boolean appGlow, int homeIdleClockMinutes,
+ boolean keyFilter, boolean dockGlass, String glowStyle, boolean wallpaperCaptions,
- boolean handleViewInputs) {
++ boolean handleViewInputs, boolean tileMenu) {
+ this.handleViewInputs = handleViewInputs;
++ this.tileMenu = tileMenu;
this.inputKeycodes = inputKeycodes;
this.appKeys = Collections.unmodifiableList(appKeys);
+ this.keyFilter = keyFilter;
+ this.stockHomeRedirect = stockHomeRedirect;
this.dockApps = Collections.unmodifiableList(dockApps);
this.fillDock = fillDock;
this.hiddenApps = Collections.unmodifiableList(hiddenApps);
@@@ -295,8 -226,6 +298,9 @@@
int wifiLabelWidth = res.getInteger(R.integer.wifi_label_width);
boolean alwaysShowNames = res.getBoolean(R.bool.always_show_names);
boolean wallpaperTrueColor = res.getBoolean(R.bool.wallpaper_true_color);
+ boolean focusOvershoot = res.getBoolean(R.bool.focus_overshoot);
+ boolean wallpaperCaptions = res.getBoolean(R.bool.wallpaper_captions);
++ boolean tileMenu = res.getBoolean(R.bool.tile_menu);
String vpn = res.getString(R.string.vpn_app).trim();
boolean homeSettings = res.getBoolean(R.bool.show_home_settings_shortcut);
boolean showStats = res.getBoolean(R.bool.show_stats);
@@@ -360,8 -275,6 +364,9 @@@
wifiLabelWidth = integer(json, "wifi_label_width", wifiLabelWidth, 0, 300);
alwaysShowNames = bool(json, "always_show_names", alwaysShowNames);
wallpaperTrueColor = bool(json, "wallpaper_true_color", wallpaperTrueColor);
+ focusOvershoot = bool(json, "focus_overshoot", focusOvershoot);
+ wallpaperCaptions = bool(json, "wallpaper_captions", wallpaperCaptions);
++ tileMenu = bool(json, "tile_menu", tileMenu);
vpn = string(json, "vpn_app", vpn);
homeSettings = bool(json, "show_home_settings_shortcut", homeSettings);
showStats = bool(json, "show_stats", showStats);
@@@ -435,15 -339,15 +440,15 @@@
Festival festival = json == null ? Festival.NONE : Festival.parse(string(json, "festival", ""),
string(json, "festival_until", ""), string(json, "greeting", ""), string(json, "accent_color", ""));
- return new Config(dock, fillDock, hidden, liveTv, liveTvAction, packageMap(launchActions), packageMap(appLabels),
+ return new Config(dock, fillDock, hidden, liveTv, liveTvAction, liveTvInputId, packageMap(launchActions), packageMap(appLabels),
packageMap(appBanners), panelService,
- panelAction, inputAction,
+ panelAction, panelExtra, coocaaSources, inputAction, inputUriScheme,
Math.max(1, columns), Math.max(0, rowsBelow), animations, advancedEffects,
- shamsi, greetingName, moduleCards, reducedMotion, dockTitle, dockRow, reorderButton, showNetworkPill, iconOnlyButtons, libraryButton, wifiLabelWidth, alwaysShowNames, wallpaperTrueColor, vpn, homeSettings, showStats, library, background,
- Math.max(0, Math.min(100, skyIntensity)), settingsKeycodes, settingsKeyPanel, wallpaperEnabled, wallpaper,
- wallpapers, rotationMinutes, wallpaperDim, wallpaperOrder, applied,
- festival, inputKeycodes, appKeys, json == null ? Collections.emptyList() : raceCalendar(json), cinematic, ambientGlow,
- Math.max(0, idleClockMinutes));
+ shamsi, greetingName, moduleCards, reducedMotion, bootToLiveTv, dockTitle, dockRow, topMenu, reorderButton, showNetworkPill, showInputsPill, iconOnlyButtons, libraryButton, wifiLabelWidth, alwaysShowNames, wallpaperTrueColor, focusOvershoot, vpn, homeSettings, showStats, library, 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,
- Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs);
++ Math.max(0, idleClockMinutes), keyFilter, dockGlass, glowStyle, wallpaperCaptions, handleViewInputs, tileMenu);
}
/**
diff --cc launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
index 183e582af,b28d58d9a..8a8074ed6
--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
@@@ -115,13 -108,11 +115,15 @@@ public class MainActivity extends Activ
private long idleClockMs;
private final Runnable showIdleClock = () -> startActivity(new Intent(this, ClockActivity.class));
private String liveTvAction;
+ private String liveTvInputId;
+ /** The app library is on (config.xml, app_library): only then can the tile menu take an app off Home. */
+ private boolean appLibraryEnabled;
private String inputAction;
+ private String inputUriScheme;
private String sourcePanelService;
private String sourcePanelAction;
+ private String sourcePanelExtra;
+ private boolean coocaaSources;
private AppAdapter adapter;
private RecyclerView grid;
@@@ -355,15 -318,11 +357,16 @@@
festive = festival.active(LocalDate.now());
liveTvPkg = cfg.liveTvPackage;
idleClockMs = cfg.homeIdleClockMinutes * MINUTE_MS;
+ bootToLiveTv = cfg.bootToLiveTv;
liveTvAction = cfg.liveTvAction;
+ liveTvInputId = cfg.liveTvInputId;
+ appLibraryEnabled = cfg.appLibrary;
inputAction = cfg.inputAction;
+ inputUriScheme = cfg.inputUriScheme;
sourcePanelService = cfg.sourcePanelService;
sourcePanelAction = cfg.sourcePanelAction;
+ sourcePanelExtra = cfg.sourcePanelExtra;
+ coocaaSources = cfg.coocaaSources;
root = findViewById(R.id.root);
root.setBackgroundColor(cfg.backgroundColor);
diff --cc launcher/app/src/main/res/values-fi/strings.xml
index 8353381fc,571f7880d..357531cab
--- a/launcher/app/src/main/res/values-fi/strings.xml
+++ b/launcher/app/src/main/res/values-fi/strings.xml
@@@ -66,9 -65,10 +66,10 @@@
<string name="card_state_new_label">Uusi nimi</string>
<string name="greeting_with_name">%1$s, %2$s</string>
<string name="stats_cpu">Suoritin %1$d %%</string>
- <string name="stats_memory">Muistia vapaana %1$d Mt</string>
+ <string name="stats_memory">Muisti %1$d / %2$d Mt</string>
<string name="stats_storage">Tallennustilaa vapaana %1$s</string>
<string name="reorder">Järjestä sovellukset</string>
+ <string name="tile_move">Siirrä</string>
<string name="reorder_hint">OK nostaa sovelluksen, nuolet siirtävät sitä ja Takaisin laskee sen paikalleen. Lopeta painamalla Takaisin uudelleen.</string>
<string name="reorder_not_saved">Uutta järjestystä ei voitu tallentaa</string>
<string name="app_library">Sovelluskirjasto</string>
diff --cc launcher/app/src/main/res/values-uk/strings.xml
index e601b9e96,000000000..429e91c4f
mode 100644,000000..100644
--- a/launcher/app/src/main/res/values-uk/strings.xml
+++ b/launcher/app/src/main/res/values-uk/strings.xml
@@@ -1,143 -1,0 +1,144 @@@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">Головний екран</string>
+ <string name="inputs">Джерела</string>
+ <string name="wifi">Wi-Fi</string>
+ <string name="settings">Налаштування</string>
+ <string name="choose_input">Джерела</string>
+ <string name="connected">Під’єднано</string>
+ <string name="standby">Очікування</string>
+ <string name="not_connected">Немає пристрою</string>
+ <string name="live_tv">Телеканали</string>
+ <string name="no_inputs">Джерел не знайдено</string>
+ <string name="good_morning">Доброго ранку</string>
+ <string name="good_afternoon">Добрий день</string>
+ <string name="good_evening">Добрий вечір</string>
+ <string name="good_night">Доброї ночі</string>
+ <string name="festival_dussehra_greeting">Зі святом Дашахра!</string>
+ <string name="festival_diwali_greeting">Зі святом Дівалі!</string>
+ <string name="ethernet">Ethernet</string>
+ <string name="offline">Не в мережі</string>
+ <string name="not_available">Недоступно на цьому телевізорі</string>
+ <string name="cant_open">Не вдалося відкрити %1$s</string>
+ <string name="date_format">EEEE, d MMMM</string>
+ <string name="date_format_home">EEEE\nd MMMM</string>
+ <string name="shamsi_month_farvardin">фарвардина</string>
+ <string name="shamsi_month_ordibehesht">ордібехешта</string>
+ <string name="shamsi_month_khordad">хордада</string>
+ <string name="shamsi_month_tir">тіра</string>
+ <string name="shamsi_month_mordad">мордада</string>
+ <string name="shamsi_month_shahrivar">шахрівара</string>
+ <string name="shamsi_month_mehr">мехра</string>
+ <string name="shamsi_month_aban">абана</string>
+ <string name="shamsi_month_azar">азара</string>
+ <string name="shamsi_month_dey">дея</string>
+ <string name="shamsi_month_bahman">бахмана</string>
+ <string name="shamsi_month_esfand">есфанда</string>
+ <string name="stats_cpu">CPU %1$d%%</string>
+ <string name="stats_memory">Пам’ять %1$d / %2$d МБ</string>
+ <string name="stats_storage">Сховище: %1$s вільно</string>
+ <string name="storage_gb_whole">%1$.0f ГБ</string>
+ <string name="storage_gb_decimal">%1$.1f ГБ</string>
+ <string name="dream_name">Годинник</string>
+ <string name="vpn">VPN</string>
+ <string name="vpn_off">VPN вимкнено</string>
+ <string name="home_settings">Головний екран за замовчуванням</string>
+ <string name="home_settings_help">Виберіть оригінальний головний екран, щоб більше не використовувати CleanYourTV як головний екран, або CleanYourTV, щоб повернутися. Оригінальний головний екран має бути увімкнений, а телевізор має показувати вибір головного екрана; якщо його було вимкнено, спершу скористайтеся скриптом відновлення.</string>
+ <string name="launcher_settings">Налаштування лаунчера</string>
+ <string name="columns_label">Застосунків у рядку</string>
+ <string name="rows_below_dock_label">Рядків під доком</string>
+ <string name="wallpaper_label">Шпалери</string>
+ <string name="wallpaper_state">Шпалери: %1$s</string>
+ <string name="wallpaper_none">Немає</string>
+ <string name="wallpaper_applied">Шпалери змінено</string>
+ <string name="wallpaper_theme_default">Як у темі</string>
+ <string name="animations_state">Анімації: %1$s</string>
+ <string name="advanced_effects">Розширені ефекти</string>
+ <string name="advanced_effects_state">Розширені ефекти: %1$s</string>
+ <string name="advanced_effects_warning">Додає ефект піднятої плитки, наближення значків і плавні переходи кольору. Може збільшити використання пам’яті; фактична різниця залежить від вашого телевізора.</string>
+ <string name="follow_theme">Скинути мої зміни (повернути налаштування теми)</string>
+ <string name="follow_theme_hint">Повертає кількість застосунків у рядку, рядки під доком, анімації, розширені ефекти та шпалери до значень із поточної теми. Установка нової теми також скидає ці налаштування.</string>
+ <string name="tv_settings">Системні налаштування ТБ</string>
+ <string name="quick_picture">Зображення</string>
+ <string name="quick_network">Мережа</string>
+ <string name="quick_apps">Застосунки</string>
+ <string name="quick_apps_hint">Увімкнути знову</string>
+ <string name="on">Увімк.</string>
+ <string name="off">Вимк.</string>
+ <string name="enable">Увімкнути</string>
+ <string name="input_key_service_description">Відкриває перемикач джерел під час натискання кнопки Input на пульті.</string>
+ <string name="home_key_name">Кнопка Home</string>
+ <string name="home_key_description">Кнопка Home на пульті відкриває цей лаунчер.</string>
+ <string name="card_prompt_title">Нова картка від %1$s</string>
+ <string name="card_prompt_body">%1$s може показувати картку на головному екрані. Якщо залишити її прихованою, звичайна плитка застосунку не зміниться.</string>
+ <string name="card_prompt_names">Картка має назву «%1$s». Застосунок — «%2$s».</string>
+ <string name="card_prompt_resigned">%1$s оновлено з іншим ключем підпису, тому ваш попередній вибір більше не діє. Виберіть ще раз, показувати чи приховувати картку.</string>
+ <string name="card_prompt_relabelled">Назву картки для %1$s змінено після вашого вибору. Виберіть ще раз.</string>
+ <string name="card_prompt_hint">Це можна змінити пізніше: утримуйте OK на плитці «Налаштування», потім виберіть «Картки застосунків».</string>
+ <string name="card_prompt_identity">%1$s, ключ %2$s</string>
+ <string name="card_keep_hidden">Не показувати</string>
+ <string name="card_show">Показати картку</string>
+ <string name="card_not_saved">Не вдалося зберегти вибір</string>
+ <string name="module_cards">Картки застосунків</string>
+ <string name="no_module_cards">Немає застосунків з картками</string>
+ <string name="card_app_name">Застосунок: %1$s</string>
+ <string name="card_state_shown">Показано</string>
+ <string name="card_state_over_limit">Увімкнено, але не показано: ліміт 8</string>
+ <string name="card_state_hidden">Приховано</string>
+ <string name="card_state_new">Нова</string>
+ <string name="card_state_new_key">Новий ключ</string>
+ <string name="card_state_new_label">Нова назва</string>
+ <string name="dock_edit">Редагувати док</string>
+ <string name="dock_edit_hint">Виберіть місце в доку, яке треба змінити, і натисніть OK. «Назад» — завершити.</string>
+ <string name="dock_edit_pick_app">Тепер виберіть застосунок для цього місця та натисніть OK. «Назад» — вибрати інше місце.</string>
+ <string name="reorder">Упорядкувати застосунки</string>
++ <string name="tile_move">Перемістити</string>
+ <string name="reorder_hint">OK бере застосунок, стрілки переміщують, «Назад» ставить на місце. Ще раз «Назад» — завершити.</string>
+ <string name="reorder_not_saved">Не вдалося зберегти новий порядок</string>
+ <string name="app_library">Бібліотека застосунків</string>
+ <string name="library_empty">Не знайдено застосунків, які можна запустити</string>
+ <string name="library_on_home">На головному екрані</string>
+ <string name="library_add_home">Додати на головний екран</string>
+ <string name="library_remove_shortcut">Прибрати з головного екрана</string>
+ <string name="library_open">Відкрити</string>
+ <string name="library_app_info">Про застосунок</string>
+ <string name="library_save_failed">Не вдалося зберегти ярлик</string>
+ <string name="library_recent">Новий · Додати на головний екран</string>
+ <string name="library_hint_add">Натиснути: додати на головний екран · Утримати: опції</string>
+ <string name="library_hint_open">Натиснути: відкрити · Утримати: опції</string>
+ <plurals name="library_app_count">
+ <item quantity="one">%1$d застосунок</item>
+ <item quantity="few">%1$d застосунки</item>
+ <item quantity="many">%1$d застосунків</item>
+ <item quantity="other">%1$d застосунка</item>
+ </plurals>
+ <string name="greeting_with_name">%1$s, %2$s</string>
+
+ <!-- Race-weekend panel (RaceWeekend). -->
+ <string name="race_kicker">Етап %1$d · %2$s · %3$s</string>
+ <string name="race_kicker_no_place">Етап %1$d · %2$s</string>
+ <string name="race_next">%1$s через %2$s</string>
+ <string name="race_lights_out">Старт гонки через %1$s</string>
+ <string name="race_live">%1$s · у прямому ефірі</string>
+ <string name="race_finished">Клітчастий прапор</string>
+ <string name="race_practice_1">Вільний заїзд 1</string>
+ <string name="race_practice_2">Вільний заїзд 2</string>
+ <string name="race_practice_3">Вільний заїзд 3</string>
+ <string name="race_sprint_qualifying">Кваліфікація спринту</string>
+ <string name="race_sprint">Спринт</string>
+ <string name="race_qualifying">Кваліфікація</string>
+ <string name="race_race">Гонка</string>
+ <string name="race_practice_1_short">ВЗ1</string>
+ <string name="race_practice_2_short">ВЗ2</string>
+ <string name="race_practice_3_short">ВЗ3</string>
+ <string name="race_sprint_qualifying_short">СК</string>
+ <string name="race_sprint_short">СПРИНТ</string>
+ <string name="race_qualifying_short">КВАЛ.</string>
+ <string name="race_race_short">ГОНКА</string>
+ <string name="race_countdown_minutes">%1$d хв</string>
+ <string name="race_countdown_hours">%1$d год %2$d хв</string>
+ <string name="race_countdown_days">%1$d дн %2$d год</string>
+ <!-- Cinematic top shelf (cinematic_home): the line under the focused dock app's name; %1$s is when it was
+ last opened, e.g. "5 minutes ago" or "yesterday, 9:40 pm". -->
+ <string name="last_opened">Востаннє відкрито %1$s</string>
+</resources>
diff --cc launcher/app/src/main/res/values-vi/strings.xml
index 03277318a,6840ec2e9..4e3c92af1
--- a/launcher/app/src/main/res/values-vi/strings.xml
+++ b/launcher/app/src/main/res/values-vi/strings.xml
@@@ -69,47 -68,5 +69,48 @@@
<string name="dock_edit">Chỉnh sửa dock</string>
<string name="dock_edit_hint">Chọn vị trí trên dock cần đổi rồi nhấn OK. Nhấn Quay lại để kết thúc.</string>
<string name="dock_edit_pick_app">Giờ chọn ứng dụng để đặt vào đó rồi nhấn OK. Nhấn Quay lại để chọn vị trí khác.</string>
+ <string name="festival_dussehra_greeting">Chúc mừng lễ Dussehra</string>
+ <string name="festival_diwali_greeting">Chúc mừng lễ Diwali</string>
+ <string name="stats_memory">Bộ nhớ %1$d / %2$d MB</string>
+ <string name="stats_storage">Còn trống %1$s</string>
+ <string name="rows_below_dock_label">Số hàng dưới dock</string>
+ <string name="wallpaper_label">Hình nền</string>
+ <string name="wallpaper_state">Hình nền: %1$s</string>
+ <string name="wallpaper_none">Không có</string>
+ <string name="wallpaper_applied">Đã đổi hình nền</string>
+ <string name="wallpaper_theme_default">Theo theme</string>
+ <string name="reorder">Sắp xếp ứng dụng</string>
+ <string name="reorder_hint">Bấm OK để nhấc ứng dụng, phím mũi tên để di chuyển, Back để đặt xuống. Bấm Back lần nữa để xong.</string>
+ <string name="reorder_not_saved">Không lưu được thứ tự mới</string>
+ <string name="app_library">Thư viện ứng dụng</string>
+ <string name="library_empty">Không tìm thấy ứng dụng nào mở được</string>
+ <string name="library_on_home">Trên màn hình chính</string>
+ <string name="library_add_home">Thêm vào màn hình chính</string>
+ <string name="library_remove_shortcut">Bỏ khỏi màn hình chính</string>
+ <string name="library_open">Mở</string>
+ <string name="library_app_info">Thông tin ứng dụng</string>
+ <string name="library_save_failed">Không lưu được lối tắt</string>
+ <string name="library_recent">Mới · Thêm vào màn hình chính</string>
+ <string name="library_hint_add">Bấm để thêm vào màn hình chính · Giữ để xem tùy chọn</string>
+ <string name="library_hint_open">Bấm để mở · Giữ để xem tùy chọn</string>
+ <plurals name="library_app_count">
+ <item quantity="other">%1$d ứng dụng</item>
+ </plurals>
+ <string name="race_kicker">Chặng %1$d · %2$s · %3$s</string>
+ <string name="race_kicker_no_place">Chặng %1$d · %2$s</string>
+ <string name="race_next">%1$s sau %2$s</string>
+ <string name="race_lights_out">Xuất phát sau %1$s</string>
+ <string name="race_live">%1$s · đang diễn ra</string>
+ <string name="race_finished">Cờ ca-rô</string>
+ <string name="race_practice_1">Chạy thử 1</string>
+ <string name="race_practice_2">Chạy thử 2</string>
+ <string name="race_practice_3">Chạy thử 3</string>
+ <string name="race_sprint_qualifying">Phân hạng sprint</string>
+ <string name="race_qualifying">Phân hạng</string>
+ <string name="race_race">Đua chính</string>
+ <string name="race_countdown_minutes">%1$d phút</string>
+ <string name="race_countdown_hours">%1$d giờ %2$d phút</string>
+ <string name="race_countdown_days">%1$d ngày %2$d giờ</string>
+ <string name="last_opened">Mở lần cuối %1$s</string>
+ <string name="tile_move">Di chuyển</string>
</resources>
diff --cc launcher/app/src/main/res/values/config.xml
index 141d9dd14,4ca1b963c..aca85da5d
--- a/launcher/app/src/main/res/values/config.xml
+++ b/launcher/app/src/main/res/values/config.xml
@@@ -219,10 -132,6 +219,14 @@@
<!-- Wallpapers decode as RGB_565 (2 bytes a pixel, 4 MB at 1080p), which bands dark gradients such as a night
sky, most of all under wallpaper_dim. true decodes them in 32-bit colour: 8 MB, for TVs with 2 GB or more. -->
<bool name="wallpaper_true_color">false</bool>
+ <!-- Rotating wallpapers: show each picture's name under the top-right buttons, from a captions.txt next to the
+ pictures in wallpapers/ ("01-dusk.jpg<TAB>Dusk over the peaks", one per line). A picture without a line
+ shows no name. Can also be set with "wallpaper_captions": true in a theme's config.json. -->
+ <bool name="wallpaper_captions">false</bool>
++ <!-- Hold OK on a tile opens a small menu: Move (picks the tile up for reordering), Remove from Home (only with
++ app_library) and App info. false keeps the old behaviour: holding OK opens the app's App info page.
++ Can also be set with "tile_menu": true in a theme's config.json. -->
++ <bool name="tile_menu">false</bool>
<!-- Grid rows left visible under the dock on the home screen. 0 = dock sits at the very bottom. Tiles shrink if
the dock, its title and this many rows would not otherwise fit the screen height. -->
diff --cc themes/README.md
index d43bc1a52,e9ae32cfe..b6091e0c5
--- a/themes/README.md
+++ b/themes/README.md
@@@ -78,8 -63,6 +78,9 @@@ is ignored, and a file that doesn't par
| `wallpaper_rotation_minutes` | 0 to 1440 | Rotate images in the theme's `wallpapers/` folder at this interval; 0 keeps the single-image behaviour. A negative or non-numeric value is ignored, and 0 means "no rotation", not "every minute" |
| `wallpaper_order` | `shuffle` or `sequential` | How a collection advances. `shuffle` (the default, and what launchers did before this key existed) avoids repeating the current picture; `sequential` walks the folder in filename order and wraps at the end. An unknown value falls back to `shuffle` |
| `wallpaper_dim` | 0 to 90 | Black overlay over wallpaper images, in percent; 0 by default and no shade view at all |
+| `dock_opacity` | 30 to 100 | Opacity of the dock's band, in percent, so a wallpaper shows through it; 100 by default (the cinematic shelf keeps its own translucent band). Launcher settings on the TV offers 100, 70, 50 or 30, which wins until the next theme push or Follow theme |
+| `wallpaper_captions` | bool | With a rotating collection, the shown picture's name under the top-right buttons, from `wallpapers/captions.txt` (`001.jpg<TAB>Dusk over the peaks`, one per line); a picture without a line shows no name (`false` by default) |
++| `tile_menu` | bool | Hold OK on a tile opens a small menu: Move, Remove from Home (with `app_library`) and App info. `false` (the default) keeps holding OK as a shortcut to the app's App info page |
| `festival` | string | Turns on a festive skin: the network pill becomes a diya whose flame follows the connection, Inputs a temple bell, Settings a marigold, and the first Home of the day gets a petal shower. `dussehra` and `diwali` have built-in greetings |
| `festival_until` | `YYYY-MM-DD` | Last day the festive skin shows; it switches itself off after that. A malformed date turns it off |
| `greeting` | string | Replaces the time-of-day greeting while the festive skin is on |