Skip to content

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

Merge PR #27: Launcher: keep the remote's Input button working without the stock launcher

Gathin232595f70cde16
diff --cc launcher/app/src/main/res/values-de/strings.xml
index d78ead3bf,34c94d6ed..2321d859a
--- a/launcher/app/src/main/res/values-de/strings.xml
+++ b/launcher/app/src/main/res/values-de/strings.xml
@@@ -19,5 -19,5 +19,6 @@@
<string name="not_available">Auf diesem TV nicht verfügbar</string>
<string name="cant_open">%1$s lässt sich nicht öffnen</string>
<string name="date_format">EEEE, d. MMMM</string>
+ <string name="dream_name">Uhr</string>
+ <string name="input_key_service_description">Öffnet die Quellenauswahl, wenn die Input-Taste der Fernbedienung gedrückt wird.</string>
</resources>
diff --cc launcher/app/src/main/res/values/strings.xml
index b95bf7720,e9c6268b4..a36caed1e
--- a/launcher/app/src/main/res/values/strings.xml
+++ b/launcher/app/src/main/res/values/strings.xml
@@@ -20,7 -20,5 +20,8 @@@
<string name="cant_open">Can\'t open %1$s</string>
<string name="date_format">EEEE d MMMM</string>
<string name="dream_name">Clock</string>
+ <string name="vpn">VPN</string>
+ <string name="home_settings">Default home</string>
+ <string name="home_settings_help">Choose a home screen in system settings, then press Home.</string>
+ <string name="input_key_service_description">Opens the input switcher when the remote\'s Input button is pressed.</string>
</resources>
diff --cc launcher/build-and-install.sh
index 50ac208c1,ffcb7553e..60c35cd63
--- a/launcher/build-and-install.sh
+++ b/launcher/build-and-install.sh
@@@ -29,8 -18,8 +29,9 @@@ printf '%s\n'
"pm install -r /data/local/tmp/tvhome.apk" \
"rm -f /data/local/tmp/tvhome.apk" \
"pm grant com.gathin.tvhome android.permission.ACCESS_FINE_LOCATION 2>/dev/null; echo location-granted" \
+ "cmd package compile -m speed -f com.gathin.tvhome" \
"cmd package set-home-activity --user 0 com.gathin.tvhome/.MainActivity" \
"pm disable-user --user 0 $STOCK_LAUNCHER" \
+ 's=$(settings get secure enabled_accessibility_services); case "$s" in *InputKeyService*) ;; null|"") settings put secure enabled_accessibility_services com.gathin.tvhome/.InputKeyService ;; *) settings put secure enabled_accessibility_services "$s:com.gathin.tvhome/.InputKeyService" ;; esac; settings put secure accessibility_enabled 1; echo input-button-enabled' \
| "$PY" -I ../tools/tv.py --batch
echo "Installed. Press Home on the remote to see it."