Skip to content

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

Launcher: strict resource shrinking, 888 B more room under the APK size gate

Vitor Camillo5082b561cf80
diff --git a/launcher/app/src/main/res/raw/keep.xml b/launcher/app/src/main/res/raw/keep.xml
index f5ab67661..c8ec2c9bb 100644
--- a/launcher/app/src/main/res/raw/keep.xml
+++ b/launcher/app/src/main/res/raw/keep.xml
@@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- app_banners names drawables at run time, which resource shrinking cannot see: keep every banner_*. -->
+<!-- app_banners names drawables at run time, which resource shrinking cannot see: keep every banner_*.
+ Strict: that is the launcher's only getIdentifier, and safe mode also keeps every resource whose name
+ matches a string literal anywhere in the code (AndroidX translations among them). -->
<resources xmlns:tools="http://schemas.android.com/tools"
- tools:keep="@drawable/banner_*" />
+ tools:keep="@drawable/banner_*"
+ tools:shrinkMode="strict" />