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
README: one card for stats, Featured in and the before/after (Wi-Fi name blurred); intro line moves to How it works
Gathin23bf54d61e3c7d
diff --git a/README.md b/README.mdindex 99db9772d..84e1dc5b9 100644--- a/README.md+++ b/README.md@@ -1,5 +1,5 @@<p align="center">- <a href="https://cleanyour.tv"><img src="https://raw.githubusercontent.com/Gathin23/cleanyourtv/main/docs/banner.png" alt="CleanYourTV. Your TV, minus the ads." width="800"></a>+ <a href="https://cleanyour.tv"><img src="https://raw.githubusercontent.com/Gathin23/cleanyourtv/main/docs/banner.png" alt="CleanYourTV. Your TV, minus the ads. Strip the bloatware from any Android TV or Google TV over Wi-Fi and replace the ad-filled home screen with a clean launcher that looks like an Apple TV. No root, no cable, nothing uninstalled, and a one-line restore." width="800"></a></p><p align="center">@@ -13,21 +13,9 @@</p><p align="center">- <img src="docs/stats.png" alt="123 TV models · 42 brands · 19 languages · 390 KB launcher" width="800">+ <a href="docs/PRESS.md"><img src="docs/card.jpg" alt="123 TV models · 42 brands · 19 languages · 390 KB launcher. Featured in TechCrunch, Mashable, Android Authority, XDA, FlatpanelsHD, It's FOSS, Phandroid, GIGAZINE, Xataka, WinFuture, Frandroid, Macitynet, Techaeris, TechPP, The Daily Star, detikINET and 54 more: 70 articles from 21 countries. Before: stock Google TV home with a sponsored ad. After: the Clean Your TV launcher." width="800"></a></p>-<p align="center">- <a href="docs/PRESS.md"><img src="docs/featured.png" alt="Featured in TechCrunch, Mashable, Android Authority, XDA, FlatpanelsHD, It's FOSS, Phandroid, GIGAZINE, Xataka, WinFuture, Frandroid, Macitynet, Techaeris, TechPP, The Daily Star, detikINET and 54 more: 70 articles from 21 countries" width="800"></a>-</p>--<p align="center">- Strip the bloatware from any Android TV or Google TV over Wi-Fi, and replace the ad-filled home screen<br>- with a clean launcher that looks like an Apple TV. <b>No root, no cable, nothing uninstalled,<br>- and a one-line restore if you change your mind.</b>-</p>---> Vibe coded my parents' TV this afternoon! It was showing a sponsored ad before you could even get> to Netflix. Gave Claude Code the model number, it found the TV on wifi, removed 25 Xiaomi packages> and wrote a new launcher. Looks like an Apple TV now lol.@@ -45,6 +33,8 @@ developer options, allow your computer once, and the rest is standard Android to`pm disable-user`. Nothing is uninstalled, so a restore script can undo every step.3. **Install** a small native launcher and make it the default home screen.+**No root, no cable, nothing uninstalled, and a one-line restore if you change your mind.**+The bloat differs by brand, so the prompt has your coding assistant discover it on your TV and askbefore touching anything you might use.diff --git a/docs/card.jpg b/docs/card.jpgnew file mode 100644index 000000000..eed9f9357Binary files /dev/null and b/docs/card.jpg differdiff --git a/docs/featured.png b/docs/featured.pngindex 207c40823..f100753a5 100644Binary files a/docs/featured.png and b/docs/featured.png differdiff --git a/docs/stats.png b/docs/stats.pngindex 5f8031798..214d4e819 100644Binary files a/docs/stats.png and b/docs/stats.png differdiff --git a/tools/readme_card.py b/tools/readme_card.pynew file mode 100644index 000000000..547ba0bb4--- /dev/null+++ b/tools/readme_card.py@@ -0,0 +1,43 @@+"""Stacks the README stat strip, the Featured in panel and the before/after TVs into one card (docs/card.png).++Run tools/readme_stats.py and tools/readme_featured.py first, then:+python3 tools/readme_card.py Fredoka.ttf docs/card.png+"""+import sys+from PIL import Image, ImageDraw, ImageFilter, ImageFont+FONT, OUT = sys.argv[1], sys.argv[2]+BG, LINE, DIM, GREEN = "#15181e", "#2c313a", "#aab3bd", "#cfffcf"+W = 1600+def f(size, wt):+ x = ImageFont.truetype(FONT, size); x.set_variation_by_axes([wt]); return x+def spaced(d, cx, y, t, font, sp, fill):+ w = sum(d.textlength(c, font=font) for c in t) + sp * (len(t) - 1); x = cx - w / 2+ for c in t: d.text((x, y), c, font=font, fill=fill); x += d.textlength(c, font=font) + sp++# the TV screens, cropped to the bezel; the Wi-Fi name on the after shot is blurred+before = Image.open("docs/stock-home.jpg").convert("RGB").crop((130, 216, 1317, 864))+after = Image.open("docs/new-home.jpg").convert("RGB")+box = (1150, 236, 1240, 280); after.paste(after.crop(box).filter(ImageFilter.GaussianBlur(9)), box)+after = after.crop((203, 138, 1467, 792))+PAD, ARROW = 70, 90+tw = (W - 2 * PAD - ARROW) // 2+shots = [im.resize((tw, round(im.height * tw / im.width)), Image.LANCZOS) for im in (before, after)]+th = max(s.height for s in shots)+tv = Image.new("RGB", (W, 90 + th + 80), BG); d = ImageDraw.Draw(tv)+lab = f(30, 500)+for i, (s, t, c) in enumerate(zip(shots, ("BEFORE", "AFTER"), (DIM, GREEN))):+ x = PAD + i * (tw + ARROW); y = 90 + (th - s.height) // 2+ spaced(d, x + tw / 2, 34, t, lab, 8, c)+ tv.paste(s, (x, y)); d.rectangle([x - 1, y - 1, x + s.width, y + s.height], outline=LINE, width=2)+ax, ay = W / 2, 90 + th / 2+d.line([(ax - 26, ay), (ax + 26, ay)], fill=GREEN, width=5)+d.line([(ax + 8, ay - 16), (ax + 27, ay), (ax + 8, ay + 16)], fill=GREEN, width=5, joint="curve")++parts = [Image.open("docs/stats.png").convert("RGB"), Image.open("docs/featured.png").convert("RGB"), tv]+SEP = 24 # extra air on each side of a divider+H = sum(p.height for p in parts) + 2 * SEP * (len(parts) - 1)+card = Image.new("RGB", (W, H), BG); d = ImageDraw.Draw(card); y = 0+for i, p in enumerate(parts):+ if i: y += SEP; d.line([(PAD, y), (W - PAD, y)], fill=LINE, width=2); y += SEP+ card.paste(p, (0, y)); y += p.height+card.save(OUT, quality=88, optimize=True)diff --git a/tools/readme_featured.py b/tools/readme_featured.pyindex 34f6140bd..777b9e4ca 100644--- a/tools/readme_featured.py+++ b/tools/readme_featured.py@@ -1,14 +1,14 @@-"""Renders the README 'Featured in' panel (docs/featured.png) in the banner's style.+"""Renders the Featured in panel (docs/featured.png), the middle part of the README card.Update LOGOS / MORE, then: python3 tools/readme_featured.py Fredoka.ttf docs/featured.png-Fredoka is the variable TTF from Google Fonts. Logos come from docs/press/."""+and rebuild the card with tools/readme_card.py. Logos come from docs/press/."""import sysfrom PIL import Image, ImageDraw, ImageFontFONT, OUT = sys.argv[1], sys.argv[2]LOGOS = ["techcrunch", "mashable", "androidauthority", "xda", "flatpanelshd", "itsfoss", "phandroid", "gigazine","xataka", "winfuture", "frandroid", "macitynet", "techaeris", "techpp", "thedailystar", "detikinet"]MORE = "+54 more · 70 articles from 21 countries"-W, LH, GAP, ROWGAP, PAD = 1600, 54, 40, 36, 60+W, LH, GAP, ROWGAP, PAD = 1600, 54, 40, 36, 80def f(size, wt):x = ImageFont.truetype(FONT, size); x.set_variation_by_axes([wt]); return xlogos = []@@ -32,8 +32,8 @@ for r in rows:x = (W - (sum(i.width for i in r) + GAP * (len(r) - 1))) / 2for im in r: img.alpha_composite(im, (round(x), y)); x += im.width + GAPy += LH + ROWGAP-m = f(34, 500); w = d.textlength(MORE, font=m) + 56; x0 = (W - w) / 2; ty = y + 26-d.text((x0, ty), MORE, font=m, fill="#cfffcf")+m = f(32, 500); w = d.textlength(MORE, font=m) + 56; x0 = (W - w) / 2; ty = y + 26+d.text((x0, ty), MORE, font=m, fill="#e6e9ee") # soft white; green stays for numbers, AFTER and arrowsax, ay = x0 + w - 26, ty + 22 # arrow: Fredoka has no U+2192d.line([(ax - 12, ay), (ax + 12, ay)], fill="#cfffcf", width=4)d.line([(ax + 2, ay - 10), (ax + 13, ay), (ax + 2, ay + 10)], fill="#cfffcf", width=4, joint="curve")diff --git a/tools/readme_stats.py b/tools/readme_stats.pyindex a26fa13cf..a7a0b05d3 100644--- a/tools/readme_stats.py+++ b/tools/readme_stats.py@@ -1,7 +1,7 @@-"""Renders the README stat strip (docs/stats.png) in the banner's style.+"""Renders the stat strip (docs/stats.png), the top part of the README card.-Update STATS (and the README alt text), then: python3 tools/readme_stats.py Fredoka.ttf docs/stats.png-Fredoka is the variable TTF from Google Fonts."""+Update STATS, then: python3 tools/readme_stats.py Fredoka.ttf docs/stats.png+and rebuild the card with tools/readme_card.py. Fredoka is the variable TTF from Google Fonts."""import sysfrom PIL import Image, ImageDraw, ImageFontFONT, OUT = sys.argv[1], sys.argv[2]@@ -11,11 +11,12 @@ img = Image.new("RGB", (W, H), "#15181e"); d = ImageDraw.Draw(img)def f(size, wt):x = ImageFont.truetype(FONT, size); x.set_variation_by_axes([wt]); return xnum, lab = f(92, 600), f(30, 500)-col = W / len(STATS)+PAD = 70+col = (W - 2 * PAD) / len(STATS)for i, (n, l) in enumerate(STATS):- cx = col * i + col / 2+ cx = PAD + col * i + col / 2w = d.textlength(n, font=num); d.text((cx - w / 2, 40), n, font=num, fill="#cfffcf")sp = 5; w = sum(d.textlength(c, font=lab) for c in l) + sp * (len(l) - 1); x = cx - w / 2for c in l: d.text((x, 160), c, font=lab, fill="#aab3bd"); x += d.textlength(c, font=lab) + sp- if i: d.line([(col * i, 56), (col * i, H - 56)], fill="#2c313a", width=3)+ if i: d.line([(PAD + col * i, 56), (PAD + col * i, H - 56)], fill="#2c313a", width=3)img.save(OUT, optimize=True)