Skip to content

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

Merge branch 'pr-15' into xiaomi-tv-adb-debloat-67357739

Gathin23e032cec0642c
diff --cc tools/tv.py
index 1b89d00a5,cd45ce079..ab25568ea
--- a/tools/tv.py
+++ b/tools/tv.py
@@@ -52,10 -52,12 +52,12 @@@ def main()
dev.push(args[1], args[2], transport_timeout_s=300.0, read_timeout_s=300.0)
print(f"pushed {args[1]} -> {args[2]}")
elif args[0] == "--pull" and len(args) == 3:
- dev.pull(args[1], args[2])
+ dev.pull(args[1], args[2], transport_timeout_s=300.0, read_timeout_s=300.0)
print(f"pulled {args[1]} -> {args[2]}")
elif args[0] == "--batch":
- # one shell command per stdin line, each run separately on the same connection
+ # one shell command per stdin line, each run separately on the same connection.
+ # utf-8-sig drops the BOM Windows PowerShell may prepend to piped stdin.
+ sys.stdin.reconfigure(encoding="utf-8-sig")
for line in sys.stdin:
line = line.strip()
if not line or line.startswith("#"):