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
launcher: open the AOSP TV settings when nothing answers the Settings action
Moaz Emad Ahmed Awad Hussein9d0f88f909a9
diff --git a/launcher/app/src/main/java/com/gathin/tvhome/SystemSettings.java b/launcher/app/src/main/java/com/gathin/tvhome/SystemSettings.javaindex 20eb8e01f..3b9e1d013 100644--- a/launcher/app/src/main/java/com/gathin/tvhome/SystemSettings.java+++ b/launcher/app/src/main/java/com/gathin/tvhome/SystemSettings.java@@ -9,7 +9,8 @@ import android.net.Uri;import android.provider.Settings;/** The standard settings intent, or, when nothing usable answers it, the first vendor settings entry- * from settings_fallback_components that is installed (Xiaomi China, TCL / FFALCON, Fire OS). */+ * from settings_fallback_components that is installed (Xiaomi China, TCL / FFALCON, Fire OS), else the+ * AOSP TV settings app's main screen where it is installed. */final class SystemSettings {private SystemSettings() {}@@ -21,9 +22,22 @@ final class SystemSettings {// treat it as missing so the vendor fallback runs.if (resolved != null && !resolved.activityInfo.name.contains("CTSDummy")) return standard;Intent vendor = vendorIntent(context);- return vendor != null ? vendor : standard;+ if (vendor != null) return vendor;+ // Some firmware ships the AOSP TV settings app with no filter for the standard actions (HY300 Pro++ // projector, rk3566, Android 14): open its main screen directly. Not a vendor entry, so the Settings+ // menu's "Native settings" row stays as it was.+ Intent aosp = new Intent().setComponent(AOSP_TV_SETTINGS);+ try {+ pm.getPackageInfo(AOSP_TV_SETTINGS.getPackageName(), 0);+ return aosp;+ } catch (PackageManager.NameNotFoundException e) {+ return standard;+ }}+ private static final ComponentName AOSP_TV_SETTINGS =+ new ComponentName("com.android.tv.settings", "com.android.tv.settings.MainSettings");+/** The first vendor settings entry from settings_fallback_components that is installed, or null* when none is. China-market firmware keeps pages the AOSP TV settings has no row for -* Xiaomi's Account & Security, where the ADB switch lives - in the vendor's own settings app;