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
Merge PR #1237: tools: verify key helpers after a theme restart (#994)
Gathin234fc390d0802f
diff --cc tools/theme.ps1index b07e5ac78,5c6c1c957..7c75198fb--- a/tools/theme.ps1+++ b/tools/theme.ps1@@@ -60,10 -49,13 +49,13 @@@ function Drop($name) { "rm -f $dir/$nam# empty it too: the launcher's wallpaper picker lists that folder itself, and an on-TV pick of one of its# pictures is read back from it, so a reset that left the pictures behind still shows the theme it just removed.# Both paths use this one string (the same one theme.sh has).-$clearWallpapers = "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"+$clearWallpapers = "mkdir -p $dir/wallpapers 2>/dev/null; rm -f $dir/wallpapers/*.[jJ][pP][gG] $dir/wallpapers/*.[jJ][pP][eE][gG] $dir/wallpapers/*.[pP][nN][gG] $dir/wallpapers/*.[wW][eE][bB][pP] 2>/dev/null; content delete --uri $uri/wallpapers 2>/dev/null"if ($Reset) {- Invoke-Tv tv.py "mkdir -p $dir 2>/dev/null; $(Drop 'config.json'); $(Drop 'wallpaper.jpg'); $(Drop 'wallpapers/captions.txt'); $clearWallpapers; printf '%s' '$revision' > $tmp-theme_revision; $(Put 'theme_revision'); $restart; echo reset"+ Invoke-Tv tv.py "mkdir -p $dir 2>/dev/null; $(Drop 'config.json'); $(Drop 'wallpaper.jpg'); $(Drop 'wallpapers/captions.txt'); $clearWallpapers; printf '%s' '$revision' > $tmp-theme_revision; $(Put 'theme_revision')" | Out-Null+ & $py -I theme_restart.py+ if ($LASTEXITCODE) { throw 'Home restart recovery failed' }+ Write-Host 'reset'exit 0}if (-not $Theme) { throw 'usage: theme.ps1 <theme folder> | -Reset' }