Skip to content

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

Launcher: target Android 14 so Google TV installs it

Quico Domingo9b069bce17f4
diff --git a/launcher/app/build.gradle b/launcher/app/build.gradle
index ad63fe3d3..72eb3e8d3 100644
--- a/launcher/app/build.gradle
+++ b/launcher/app/build.gradle
@@ -9,7 +9,7 @@ android {
defaultConfig {
applicationId 'com.gathin.tvhome'
minSdk 26
- targetSdk 29
+ targetSdk 34
versionCode 2
versionName '2.0'
}
@@ -20,12 +20,6 @@ android {
}
}
- lint {
- // The launcher is sideloaded over ADB, never published to Google Play, so Play's minimum targetSdk
- // does not apply; without this, lintVitalRelease fails assembleRelease.
- disable 'ExpiredTargetSdkVersion'
- }
-
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
diff --git a/launcher/app/src/main/AndroidManifest.xml b/launcher/app/src/main/AndroidManifest.xml
index 3bff8f106..dc7ab73ec 100644
--- a/launcher/app/src/main/AndroidManifest.xml
+++ b/launcher/app/src/main/AndroidManifest.xml
@@ -9,6 +9,14 @@
<!-- Needed on Android 10 to read the Wi-Fi network name; granted over adb at install time. -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
+ <!-- Android 11+ package visibility: lets the launcher list the TV apps it shows as tiles. -->
+ <queries>
+ <intent>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
+ </intent>
+ </queries>
+
<application
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
@@ -30,6 +38,11 @@
<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>
</application>
</manifest>