Skip to content

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

addons/game-day: allow TCL's AUTO_START app-op in setup, so TCL firmware lets Home reach the add-on

Justin Newmand03d3a519813
diff --git a/addons/game-day/README.md b/addons/game-day/README.md
index e663a3076..faa3efe84 100644
--- a/addons/game-day/README.md
+++ b/addons/game-day/README.md
@@ -85,6 +85,11 @@ TV_HOST=<tv ip> ../../tools/venv/bin/python -I ../../tools/tv.py 'pm install -r
Press Home: the launcher asks once whether to show the card.
+**TCL sets:** the firmware's app boot manager (`TclAppBoot`) refuses to start an app for another app unless it
+has TCL's `AUTO_START` app-op, so Home sees no games and the script gets "Could not find provider". The setup
+scripts allow it for Game Day; to do it by hand: `tools/tv.py 'appops set io.github.justinnewman.gameday AUTO_START allow'`.
+Seen on a TCL 55Q77K (Google TV 14); `appops reset io.github.justinnewman.gameday` undoes it.
+
## Permissions
| Permission | Why |
diff --git a/addons/game-day/setup.ps1 b/addons/game-day/setup.ps1
index 73a5d9465..1ffe22df6 100644
--- a/addons/game-day/setup.ps1
+++ b/addons/game-day/setup.ps1
@@ -25,6 +25,9 @@ function Tv([string]$cmd) { & $py -I tv.py $cmd; if ($LASTEXITCODE) { throw "tv.
if (-not ((Tv "pm path $pkg; true") -match 'package:')) { throw 'Game Day is not on the TV: build and install it first (README.md)' }
Write-Host 'Game Day is installed.'
+# TCL firmware (TclAppBoot) refuses to start an app for another app's request without its AUTO_START app-op, so
+# neither this script nor Home could reach Game Day. Allow it where the op exists; elsewhere this does nothing.
+Tv "appops set $pkg AUTO_START allow 2>/dev/null; true" | Out-Null
& $py -I b64push.py $Calendars $tmp | Out-Null
if ($LASTEXITCODE) { throw 'sending the calendars failed' }
Tv "content write --uri $uri/calendars.txt < $tmp; rm -f $tmp" | Out-Null
diff --git a/addons/game-day/setup.sh b/addons/game-day/setup.sh
index 36f07e97f..d72aceba1 100644
--- a/addons/game-day/setup.sh
+++ b/addons/game-day/setup.sh
@@ -28,6 +28,9 @@ tv() { "$PY" -I tv.py "$@"; }
tv "pm path $PKG; true" | grep -q package: || { echo "Game Day is not on the TV: build and install it first (README.md)" >&2; exit 1; }
echo "Game Day is installed."
+# TCL firmware (TclAppBoot) refuses to start an app for another app's request without its AUTO_START app-op, so
+# neither this script nor Home could reach Game Day. Allow it where the op exists; elsewhere this does nothing.
+tv "appops set $PKG AUTO_START allow 2>/dev/null; true" >/dev/null
# Git Bash: the venv's Windows Python needs a Windows path for the file.
"$PY" -I b64push.py "$(cygpath -w "$FILE" 2>/dev/null || printf '%s' "$FILE")" "$TMP" | grep -q md5 \
|| { echo "sending the calendars failed" >&2; exit 1; }