Skip to content

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

Add a TV-side shortcut to system default-home settings

roninriddlefaf5e640a787
diff --git a/README.md b/README.md
index 89c5b11cc..fa374fe0f 100644
--- a/README.md
+++ b/README.md
@@ -189,6 +189,16 @@ tools/venv/bin/python -I tools/tv.py 'settings put secure screensaver_components
It starts after the TV's "screen off" idle time (`settings get system screen_off_timeout`).
</details>
+### Changing the default home from the TV
+
+The **Default home** tile at the end of the app grid opens Android's system home-screen settings.
+Choose the launcher you want, then press Home. The choice is confirmed in the system UI; this
+tile does not silently set a default, re-enable disabled apps, or require ADB after installation.
+If the stock launcher was disabled during installation, re-enable it before trying to select it
+(see the restore instructions). Some TV firmware does not expose this settings page; in that
+case the tile shows “Not available on this TV”. Set `show_home_settings_shortcut` to `false`
+in `config.xml` to hide it.
+
## Troubleshooting
Things that bit us or contributors, so they don't bite you.
diff --git a/docs/home-settings-shortcut-sony.png b/docs/home-settings-shortcut-sony.png
new file mode 100644
index 000000000..3f8e9a0d3
Binary files /dev/null and b/docs/home-settings-shortcut-sony.png differ
diff --git a/docs/home-settings-shortcut.md b/docs/home-settings-shortcut.md
new file mode 100644
index 000000000..dd49da116
--- /dev/null
+++ b/docs/home-settings-shortcut.md
@@ -0,0 +1,41 @@
+# Default-home shortcut
+
+The shortcut opens the platform `Settings.ACTION_HOME_SETTINGS` page. The user makes the
+choice in Android settings, then presses Home. It does not grant itself a role, issue shell
+commands, start a background service, or enable a disabled launcher. Firmware without an
+accessible HOME-settings activity gets the existing “Not available on this TV” message.
+
+`show_home_settings_shortcut` in `config.xml` controls whether the tile is appended to the grid.
+There are no vendor package names in Java. The small internal activity has no intent filters,
+is not exported, and finishes immediately after handing off to settings. Its separate task
+affinity prevents the launcher's single-task configuration from swallowing the handoff.
+
+## Real-TV validation
+
+Tested on Sony K-85XR70 (China), Android 14/API 34, firmware 114.602.170.1, on 18 October 2026.
+The stock launcher stayed enabled. See compatibility report #29 for the device's scope and limits.
+
+The exact contribution code was compiled using JDK 17, Android SDK 34/build-tools 34.0.0 and
+the existing AndroidX dependencies, via local SDK compilation rather than the Gradle wrapper.
+APK signature verification passed. No launcher dependencies were added.
+
+For this test, the manifest used a separate application ID and omitted the HOME intent filter;
+the Java package and feature code were unchanged. The installed working launcher and its saved
+order remained separate. No location permission was granted to the test package.
+
+Verified through injected remote keys and UI hierarchy/screenshot checks:
+
+- Navigate down to the appended Default home tile.
+- Right and Down at that final tile keep focus on it.
+- Center opens the system chooser containing the stock home, the working custom home and Emotn UI.
+ The isolated test package is absent from HOME candidates.
+- Back cancels without changing the default; the launcher is usable again.
+- Up reaches the top bar; the top-bar end boundaries remain usable.
+- Home returns to the working launcher; the selected default remains `com.gathin.tvhome`.
+
+The earlier Sony-specific version's actual switch-to-stock and switch-back flow was verified
+in the same session. This isolated contribution test deliberately did not repeat a role switch.
+Unavailable-settings handling, other vendors, reboot behavior and low-memory devices were not
+verified on hardware. This is not a multi-day compatibility claim.
+
+![Default home tile on the Sony TV](home-settings-shortcut-sony.png)
diff --git a/launcher/app/src/main/AndroidManifest.xml b/launcher/app/src/main/AndroidManifest.xml
index 8cea721b9..34f36ed27 100644
--- a/launcher/app/src/main/AndroidManifest.xml
+++ b/launcher/app/src/main/AndroidManifest.xml
@@ -32,6 +32,13 @@
</intent-filter>
</activity>
+ <activity
+ android:name=".HomeSettingsActivity"
+ android:exported="false"
+ android:taskAffinity=""
+ android:excludeFromRecents="true"
+ android:theme="@android:style/Theme.NoDisplay" />
+
<!-- Screensaver: pick it in Settings, or `settings put secure screensaver_components
com.gathin.tvhome/.ClockDream` over adb. -->
<service
diff --git a/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java b/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java
index 6b4c1434b..50cc8036d 100644
--- a/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java
@@ -110,6 +110,12 @@ public class AppAdapter extends RecyclerView.Adapter<AppAdapter.Holder> {
}
return a.label.compareToIgnoreCase(b.label);
});
+ // An internal shortcut: do not discover our own activities as ordinary app entries.
+ if (ctx.getResources().getBoolean(R.bool.show_home_settings_shortcut)) {
+ fresh.add(new Entry(ctx.getString(R.string.home_settings),
+ new ComponentName(ctx, HomeSettingsActivity.class), null,
+ ctx.getDrawable(R.drawable.ic_home_settings)));
+ }
items.clear();
items.addAll(fresh);
notifyDataSetChanged();
@@ -157,6 +163,11 @@ public class AppAdapter extends RecyclerView.Adapter<AppAdapter.Holder> {
}
private void launch(Entry e) {
+ if (e.component.equals(new ComponentName(ctx, HomeSettingsActivity.class))) {
+ ctx.startActivity(new Intent(ctx, HomeSettingsActivity.class)
+ .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
+ return;
+ }
Intent i = new Intent(Intent.ACTION_MAIN)
.addCategory(Intent.CATEGORY_LEANBACK_LAUNCHER)
.setComponent(e.component)
diff --git a/launcher/app/src/main/java/com/gathin/tvhome/HomeSettingsActivity.java b/launcher/app/src/main/java/com/gathin/tvhome/HomeSettingsActivity.java
new file mode 100644
index 000000000..ef0b22b3c
--- /dev/null
+++ b/launcher/app/src/main/java/com/gathin/tvhome/HomeSettingsActivity.java
@@ -0,0 +1,24 @@
+package com.gathin.tvhome;
+
+import android.app.Activity;
+import android.content.ActivityNotFoundException;
+import android.content.Intent;
+import android.os.Bundle;
+import android.provider.Settings;
+import android.widget.Toast;
+
+/** Lets the user change HOME through the system UI, without shell or privileged permissions. */
+public class HomeSettingsActivity extends Activity {
+ @Override
+ protected void onCreate(Bundle state) {
+ super.onCreate(state);
+ try {
+ startActivity(new Intent(Settings.ACTION_HOME_SETTINGS));
+ Toast.makeText(this, R.string.home_settings_help, Toast.LENGTH_LONG).show();
+ } catch (ActivityNotFoundException | SecurityException unavailable) {
+ Toast.makeText(this, R.string.not_available, Toast.LENGTH_LONG).show();
+ } finally {
+ finish();
+ }
+ }
+}
diff --git a/launcher/app/src/main/res/drawable/ic_home_settings.xml b/launcher/app/src/main/res/drawable/ic_home_settings.xml
new file mode 100644
index 000000000..cc319d69d
--- /dev/null
+++ b/launcher/app/src/main/res/drawable/ic_home_settings.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="48dp" android:height="48dp"
+ android:viewportWidth="24" android:viewportHeight="24">
+ <path android:fillColor="#FFFFFFFF"
+ android:pathData="M12,3L2,12H5V21H10V15H14V21H19V12H22Z" />
+</vector>
diff --git a/launcher/app/src/main/res/values/config.xml b/launcher/app/src/main/res/values/config.xml
index c3dd51ca8..5b0523361 100644
--- a/launcher/app/src/main/res/values/config.xml
+++ b/launcher/app/src/main/res/values/config.xml
@@ -24,4 +24,7 @@
<!-- Tiles per row in the grid; the dock always has this many slots. -->
<integer name="columns">4</integer>
+
+ <!-- Open Android's default-HOME picker from a tile; the user confirms the choice there. -->
+ <bool name="show_home_settings_shortcut">true</bool>
</resources>
diff --git a/launcher/app/src/main/res/values/strings.xml b/launcher/app/src/main/res/values/strings.xml
index 81b72f54a..ef6a69ef6 100644
--- a/launcher/app/src/main/res/values/strings.xml
+++ b/launcher/app/src/main/res/values/strings.xml
@@ -20,4 +20,6 @@
<string name="cant_open">Can\'t open %1$s</string>
<string name="date_format">EEEE d MMMM</string>
<string name="dream_name">Clock</string>
+ <string name="home_settings">Default home</string>
+ <string name="home_settings_help">Choose a home screen in system settings, then press Home.</string>
</resources>