Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.
Python adbadblockandroid-tvandroid-tv-launcherapple-tvbloatware-removalclaude-codedebloatfire-tvgoogle-tvlauncherprivacysmart-tvsony-braviatclvibe-codingxiaomi
addons: report Smart Home config write failures (#1752)
GaneshVarma15c1cf496d732
diff --git a/addons/smart-home/README.md b/addons/smart-home/README.mdindex ed1274077..45773a1a4 100644--- a/addons/smart-home/README.md+++ b/addons/smart-home/README.md@@ -70,7 +70,7 @@ To build only: `cd addons/smart-home && ./gradlew assembleRelease`; the JVM test## Tested on-MOKA R8G (Android 14), on a home app that implements the module-card spec, against a stand-in server on the home network answering with Home Assistant's documented response shapes: the config pushed through `ConfigProvider`, reading the states, running a scene and dimming a light (the requests arrived as the REST API documents them). **Not yet tried against a real Home Assistant:** the author's server was down; a report from someone with one is welcome. The screenshot shows that demo data, with the address blurred. The JVM tests cover parsing, the service calls, the request headers against a local stand-in, and errors.+MOKA R8G (Android 14), on a home app that implements the module-card spec, against a stand-in server on the home network answering with Home Assistant's documented response shapes: the config pushed through `ConfigProvider`, reading the states, running a scene and dimming a light (the requests arrived as the REST API documents them). On a TCL Smart TV Pro (G08, Android 14), [#1752](https://github.com/Gathin23/cleanyourtv/issues/1752) reports a connection to a real Home Assistant server and lists entities with their current states; running a scene and toggling a light were not tested there. The screenshot shows the stand-in data, with the address blurred. The JVM tests cover parsing, the service calls, the request headers against a local stand-in, and errors.## Maintainerdiff --git a/addons/smart-home/install.sh b/addons/smart-home/install.shindex 8e37cb94c..56a8c042c 100755--- a/addons/smart-home/install.sh+++ b/addons/smart-home/install.sh@@ -32,7 +32,13 @@ case "$OUT" in *Success*) ;; *) echo "ERROR: pm install failed" >&2; exit 1 ;; eif [ -n "$CONFIG" ]; thenSTAGE=/data/local/tmp/smart-home-config.jsontv --push "$CONFIG" "$STAGE" >/dev/null- tv "content write --uri content://$PKG.config/config.json < $STAGE; rm -f $STAGE; echo config pushed"+ # The provider can take a moment to appear after pm install. tv.py does not pass the remote+ # shell's exit status through, so require a success marker from content write itself.+ OUT=$(tv "ok=0; for attempt in 1 2 3; do if content write --user 0 --uri content://$PKG.config/config.json < $STAGE; then ok=1; break; fi; [ \"\$attempt\" -eq 3 ] || sleep 1; done; if rm -f $STAGE && [ \"\$ok\" -eq 1 ]; then echo __SMART_HOME_CONFIG_OK__; fi")+ case "$OUT" in+ *__SMART_HOME_CONFIG_OK__*) echo "config pushed" ;;+ *) echo "$OUT" >&2; echo "ERROR: config write failed (or staged config could not be removed)" >&2; exit 1 ;;+ esacfitv "am start -n $PKG/.MainActivity >/dev/null; echo opened"echo "Installed. Smart Home is open on the TV; press Home and answer Show card for the card."