Skip to content

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

Merge PR #30: Launcher: open default-home settings from the TV

Gathin23a5f4d7bee235
diff --cc launcher/app/src/main/AndroidManifest.xml
index 7df0e8a8c,34f36ed27..54899520f
--- a/launcher/app/src/main/AndroidManifest.xml
+++ b/launcher/app/src/main/AndroidManifest.xml
@@@ -41,13 -30,15 +41,20 @@@
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
+ <!-- Listed in the TV's own app list, so it can be opened from the stock home screen too. -->
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
+ </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 --cc launcher/app/src/main/res/values/config.xml
index d92065120,5b0523361..dc11d81ba
--- a/launcher/app/src/main/res/values/config.xml
+++ b/launcher/app/src/main/res/values/config.xml
@@@ -22,13 -22,9 +22,16 @@@
<!-- The TV's Live TV / tuner app, offered at the end of the Inputs menu. Leave empty to omit. -->
<string name="live_tv_package" translatable="false">com.mediatek.wwtv.tvcenter</string>
+ <!-- Show the Solar Hijri (Shamsi) date used in Iran and Afghanistan, e.g. "27 Mehr 1405", above the
+ Gregorian date. -->
+ <bool name="shamsi_date">false</bool>
+ <!-- Optional VPN app the network pill opens (hold the pill for Wi-Fi settings), e.g. the package of the
+ VPN you use. Empty: the pill opens Wi-Fi settings. The VPN badge shows for any VPN either way. -->
+ <string name="vpn_app" translatable="false"></string>
+
<!-- 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 --cc launcher/app/src/main/res/values/strings.xml
index 1cc3c0994,ef6a69ef6..b95bf7720
--- a/launcher/app/src/main/res/values/strings.xml
+++ b/launcher/app/src/main/res/values/strings.xml
@@@ -20,5 -20,6 +20,7 @@@
<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="vpn">VPN</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>