Skip to content

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

Merge PR #410: theme.sh: write the theme through a ThemeProvider where the shell can't reach Android/data

Gathin23b3fd2b770972
diff --cc launcher/app/src/main/AndroidManifest.xml
index f56e008ea,b92398fa1..1f96dd066
--- a/launcher/app/src/main/AndroidManifest.xml
+++ b/launcher/app/src/main/AndroidManifest.xml
@@@ -112,6 -112,14 +112,14 @@@
</intent-filter>
</service>
+ <!-- tools/theme.sh writes the theme through this where the shell can't reach Android/data;
+ see ThemeProvider. WRITE_SECURE_SETTINGS: the adb shell has it, ordinary apps don't. -->
+ <provider
+ android:name=".ThemeProvider"
- android:authorities="com.gathin.tvhome.theme"
++ android:authorities="${applicationId}.theme"
+ android:exported="true"
+ android:permission="android.permission.WRITE_SECURE_SETTINGS" />
+
<!-- The remote's Input button (KEYCODE_TV or KEYCODE_TV_INPUT) opens the input switcher, and input_key_keycodes and
app_keys (config.xml or a theme) bring back other remote buttons; see InputKeyService. -->
<service