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
Merge PR #779: launcher: switch HDMI/AV on YaOS through its source player
Gathin23bddea4264a38
diff --cc launcher/app/src/main/java/com/gathin/tvhome/Config.javaindex 687265818,27daef067..568affeb1--- a/launcher/app/src/main/java/com/gathin/tvhome/Config.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/Config.java@@@ -57,11 -56,9 +57,13 @@@ final class Configfinal Map<String, String> appBanners;final String sourcePanelService;final String sourcePanelAction;+ /** One int extra for the source panel, "name=value" (config.xml source_panel_extra); empty for none. */+ final String sourcePanelExtra;+ /** List Coocaa OS sources from com.skyworth.tv in the Inputs menu (config.xml coocaa_sources). */+ final boolean coocaaSources;final String inputAction;+ /** Scheme an Inputs row's passthrough URI is sent with instead of content:// (config.xml input_uri_scheme). */+ final String inputUriScheme;final int columns;final boolean animations;final boolean advancedEffects;@@@ -138,10 -132,9 +140,10 @@@final int homeIdleClockMinutes;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,+ 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,- int columns, int rowsBelowDock, boolean animations, boolean advancedEffects,+ String inputUriScheme, 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,boolean showHomeSettingsShortcut, boolean showStats, boolean appLibrary, int backgroundColor, int skyIntensity,int[] settingsKeycodes, boolean settingsKeyPanel, boolean wallpaperEnabled, File wallpaper, List<File> wallpapers,@@@ -163,9 -153,8 +165,10 @@@this.appBanners = Collections.unmodifiableMap(appBanners);this.sourcePanelService = sourcePanelService;this.sourcePanelAction = sourcePanelAction;+ this.sourcePanelExtra = sourcePanelExtra;+ this.coocaaSources = coocaaSources;this.inputAction = inputAction;+ this.inputUriScheme = inputUriScheme;this.columns = columns;this.rowsBelowDock = rowsBelowDock;this.animations = animations;@@@ -223,9 -211,8 +226,10 @@@List<String> appBanners = new ArrayList<>(Arrays.asList(res.getStringArray(R.array.app_banners)));String panelService = res.getString(R.string.source_panel_service).trim();String panelAction = res.getString(R.string.source_panel_action).trim();+ String panelExtra = res.getString(R.string.source_panel_extra).trim();+ boolean coocaaSources = res.getBoolean(R.bool.coocaa_sources);String inputAction = res.getString(R.string.input_action).trim();+ String inputUriScheme = res.getString(R.string.input_uri_scheme).trim();int columns = res.getInteger(R.integer.columns);int rowsBelow = res.getInteger(R.integer.rows_below_dock);boolean animations = res.getBoolean(R.bool.animations);@@@ -276,9 -261,8 +280,10 @@@appBanners = stringList(json, "app_banners", appBanners);panelService = string(json, "source_panel_service", panelService);panelAction = string(json, "source_panel_action", panelAction);+ panelExtra = string(json, "source_panel_extra", panelExtra).trim();+ coocaaSources = bool(json, "coocaa_sources", coocaaSources);inputAction = string(json, "input_action", inputAction);+ inputUriScheme = string(json, "input_uri_scheme", inputUriScheme).trim();columns = integer(json, "columns", columns, 1, 8);rowsBelow = integer(json, "rows_below_dock", rowsBelow, 0, 3);animations = bool(json, "animations", animations);@@@ -361,9 -344,9 +366,9 @@@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, panelExtra, coocaaSources, inputAction,- panelAction, inputAction, inputUriScheme,++ 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,diff --cc launcher/app/src/main/java/com/gathin/tvhome/MainActivity.javaindex 4c88e809f,148612c65..d109264d3--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java@@@ -108,12 -108,10 +108,13 @@@ public class MainActivity extends Activprivate long idleClockMs;private final Runnable showIdleClock = () -> startActivity(new Intent(this, ClockActivity.class));private String liveTvAction;+ private String liveTvInputId;private String inputAction;+ private String inputUriScheme;private String sourcePanelService;private String sourcePanelAction;+ private String sourcePanelExtra;+ private boolean coocaaSources;private AppAdapter adapter;private RecyclerView grid;@@@ -329,12 -318,10 +330,13 @@@liveTvPkg = cfg.liveTvPackage;idleClockMs = cfg.homeIdleClockMinutes * MINUTE_MS;liveTvAction = cfg.liveTvAction;+ liveTvInputId = cfg.liveTvInputId;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/config.xmlindex 45fef092b,cc93533cb..8f7d16ee4--- a/launcher/app/src/main/res/values/config.xml+++ b/launcher/app/src/main/res/values/config.xml@@@ -76,13 -59,11 +76,17 @@@Live TV app handles. Where nothing answers that, this action is sent with the same URI instead(XGIMI projectors: com.xgimi.action.hdmiPlayer). Leave empty to omit. --><string name="input_action" translatable="false"></string>+ <!-- Inputs menu: a scheme to send the input's passthrough URI with instead of content:// (and no channel MIME+ type). YaOS: live-tv. Its source player answers live-tv://android.media.tv/passthrough/<input>, while the+ content:// URI goes to its channel player, which resumes the last film it played. Leave empty to omit. -->+ <string name="input_uri_scheme" translatable="false"></string>+ <!-- Whether HomeKeyService and InputKeyService actually request key filtering (config.xml or a theme's+ "key_filter"). Some firmware (TCL Google TV on Android 12) drops key auto-repeat once ANY service+ filters keys, so long-pressing volume only steps once: set false and the service keeps running but+ stops filtering, which brings repeat back at the price of the remote buttons below doing nothing. -->+ <bool name="key_filter">true</bool>+<!-- Remote buttons that open Settings, by Linux scancode (HOME_KEY_SERVICE=1 build-and-install.sh). Remotesthat send KEYCODE_SETTINGS need no entry. Some send a code Android does not map: the Xiaomi/Fengmiprojector remote's gear button is scancode 384 (KEY_TAPE). Find yours with