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
PR #40 follow-up: keep class names in the release build, update the README
Gathin230eb8ae47196a
diff --git a/README.md b/README.mdindex c0eb26820..1c3d5f3c9 100644--- a/README.md+++ b/README.md@@ -156,7 +156,7 @@ rewriting themselves.## The launcher-A small native Android TV app (`com.gathin.tvhome`, about 1.6 MB), written in plain Java with+A small native Android TV app (`com.gathin.tvhome`, about 250 KB installed), written in plain Java withAndroidX RecyclerView and nothing heavier. It is built for sets with 1 GB of RAM: no blur, novideo, no network, no background services.@@ -177,8 +177,9 @@ sdkmanager "platforms;android-34" "build-tools;34.0.0"```Without Homebrew, the script also finds a JDK 17 known to `/usr/libexec/java_home` and an SDK in-`~/Library/Android/sdk`, Android Studio's default. A release build (`./gradlew assembleRelease`)-is smaller and faster on 1 GB sets; sign it yourself before installing.+`~/Library/Android/sdk`, Android Studio's default. The script installs a shrunk release build+(about 250 KB instead of 1.6 MB, signed with the debug key so it installs over an older build)+and asks the TV to precompile it, so the first launch doesn't wait for the JIT.**Navigation** is deliberate: Up and Down move exactly one row, Up from the dock goes to the topbuttons, the ends of the button row don't fall through to tiles, and the last focused app isdiff --git a/launcher/app/build.gradle b/launcher/app/build.gradleindex b59f19fcb..dce5f7f41 100644--- a/launcher/app/build.gradle+++ b/launcher/app/build.gradle@@ -19,7 +19,7 @@ android {// R8 strips and optimises the code (AndroidX included): smaller APK, faster start on a slow TV CPU.minifyEnabled trueshrinkResources true- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt')+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'// Sideloaded over ADB, never published: sign with the debug key so it installs over a debug build.signingConfig signingConfigs.debug}diff --git a/launcher/app/proguard-rules.pro b/launcher/app/proguard-rules.pronew file mode 100644index 000000000..7bb3d36ed--- /dev/null+++ b/launcher/app/proguard-rules.pro@@ -0,0 +1,4 @@+# Shrink and optimise, but keep class and method names: the size win comes from dropping unused+# AndroidX code, not from renaming, and readable stack traces matter more in a sideloaded app+# where crash reports arrive as screenshots.+-dontobfuscate