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
theme.ps1: rename Del to Drop, the del alias shadowed it
AndresDiagoMc59889460551
diff --git a/tools/theme.ps1 b/tools/theme.ps1index 3912c8046..ee5a36c56 100644--- a/tools/theme.ps1+++ b/tools/theme.ps1@@ -35,10 +35,10 @@ $tmp = '/data/local/tmp/cyt-theme'# A file's staging path; wallpapers/a.jpg is staged as $tmp-wallpapers-a.jpg.function Stage($name) { "$tmp-$($name -replace '/', '-')" }function Put($name) { $t = Stage $name; "cp $t $dir/$name 2>/dev/null || content write --uri $uri/$name < $t; rm -f $t" }-function Del($name) { "rm -f $dir/$name 2>/dev/null; content delete --uri $uri/$name 2>/dev/null" }+function Drop($name) { "rm -f $dir/$name 2>/dev/null; content delete --uri $uri/$name 2>/dev/null" }if ($Reset) {- & $py -I tv.py "mkdir -p $dir 2>/dev/null; $(Del 'config.json'); $(Del 'wallpaper.jpg'); printf '%s' '$revision' > $tmp-theme_revision; $(Put 'theme_revision'); $restart; echo reset"+ & $py -I tv.py "mkdir -p $dir 2>/dev/null; $(Drop 'config.json'); $(Drop 'wallpaper.jpg'); printf '%s' '$revision' > $tmp-theme_revision; $(Put 'theme_revision'); $restart; echo reset"exit 0}if (-not $Theme) { throw 'usage: theme.ps1 <theme folder> | -Reset' }@@ -50,7 +50,7 @@ try { Get-Content $config -Raw | ConvertFrom-Json | Out-Null } catch { throw "$c& $py -I tv.py --push $config "$tmp-config.json" | Out-Null& $py -I tv.py (Put 'config.json')$wall = Join-Path $Theme 'wallpaper.jpg'-if (Test-Path $wall) { & $py -I b64push.py $wall "$tmp-wallpaper.jpg"; & $py -I tv.py (Put 'wallpaper.jpg') } else { & $py -I tv.py (Del 'wallpaper.jpg') | Out-Null }+if (Test-Path $wall) { & $py -I b64push.py $wall "$tmp-wallpaper.jpg"; & $py -I tv.py (Put 'wallpaper.jpg') } else { & $py -I tv.py (Drop 'wallpaper.jpg') | Out-Null }& $py -I tv.py "mkdir -p $dir/wallpapers 2>/dev/null; rm -f $dir/wallpapers/*.jpg $dir/wallpapers/*.jpeg $dir/wallpapers/*.png $dir/wallpapers/*.webp $dir/wallpapers/*.JPG $dir/wallpapers/*.JPEG $dir/wallpapers/*.PNG $dir/wallpapers/*.WEBP 2>/dev/null; content delete --uri $uri/wallpapers 2>/dev/null" | Out-Null$wallpapers = Join-Path $Theme 'wallpapers'if (Test-Path $wallpapers -PathType Container) {