Skip to content

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

addons: news-screensaver grants AUTO_START too, the op's name on TCL G08 builds

ZuberousMaximusc8ae5b05ed48
diff --git a/addons/news-screensaver/build-and-install.ps1 b/addons/news-screensaver/build-and-install.ps1
index 5a68e151a..22a8170ee 100644
--- a/addons/news-screensaver/build-and-install.ps1
+++ b/addons/news-screensaver/build-and-install.ps1
@@ -33,6 +33,7 @@ $apk = Join-Path $here 'app\build\outputs\apk\release\app-release.apk'
& $py -I (Join-Path $tools 'b64push.py') $apk /data/local/tmp/newsdream.apk | Out-Null
if ($LASTEXITCODE) { throw 'sending the APK failed' }
Tv 'pm install -r /data/local/tmp/newsdream.apk; rm -f /data/local/tmp/newsdream.apk'
-# TCL's TclAppBoot blocks the app's provider until it may auto-start; elsewhere the op doesn't exist.
-Tv "appops set $pkg APP_AUTO_START allow 2>/dev/null; appops write-settings 2>/dev/null; true" | Out-Null
+# TCL's TclAppBoot blocks the app's provider until it may auto-start (AUTO_START on G08 builds, APP_AUTO_START
+# on G10); elsewhere the op doesn't exist. write-settings saves it before the next reboot.
+Tv "appops set $pkg AUTO_START allow 2>/dev/null; appops set $pkg APP_AUTO_START allow 2>/dev/null; appops write-settings 2>/dev/null; true" | Out-Null
Write-Host "Installed. Now: addons\news-screensaver\setup.ps1 -TvHost $TvHost"
diff --git a/addons/news-screensaver/build-and-install.sh b/addons/news-screensaver/build-and-install.sh
index f55b2d359..c06270bac 100755
--- a/addons/news-screensaver/build-and-install.sh
+++ b/addons/news-screensaver/build-and-install.sh
@@ -26,6 +26,7 @@ fi
(cd "$HERE" && ./gradlew assembleRelease -q) || { echo "build failed (JDK 17 and Android SDK 34 needed; see launcher/README)" >&2; exit 1; }
"$PY" -I "$TOOLS/b64push.py" "$HERE/app/build/outputs/apk/release/app-release.apk" /data/local/tmp/newsdream.apk >/dev/null
tv "pm install -r /data/local/tmp/newsdream.apk; rm -f /data/local/tmp/newsdream.apk"
-# TCL's TclAppBoot blocks the app's provider until it may auto-start; elsewhere the op doesn't exist.
-tv "appops set $PKG APP_AUTO_START allow 2>/dev/null; appops write-settings 2>/dev/null; true" >/dev/null
+# TCL's TclAppBoot blocks the app's provider until it may auto-start (AUTO_START on G08 builds, APP_AUTO_START
+# on G10); elsewhere the op doesn't exist. write-settings saves it before the next reboot.
+tv "appops set $PKG AUTO_START allow 2>/dev/null; appops set $PKG APP_AUTO_START allow 2>/dev/null; appops write-settings 2>/dev/null; true" >/dev/null
echo "Installed. Now: TV_HOST=$TV_HOST addons/news-screensaver/setup.sh"