@echo off
setlocal EnableExtensions
cd /d "%~dp0\.."
set "ADB=platform-tools\adb.exe"
set "MODULE=Components\Optional\STESHA_ATV_Wallpaper_v1.0.zip"
echo Install optional STESHA ATV wallpaper module over USB ADB.
"%ADB%" push "%MODULE%" /data/local/tmp/STESHA_ATV_Wallpaper_v1.0.zip
"%ADB%" shell su 0 /debug_ramdisk/magisk --install-module /data/local/tmp/STESHA_ATV_Wallpaper_v1.0.zip
if errorlevel 1 (
  echo ERROR: module installation failed.
  pause
  exit /b 1
)
echo Reboot the TV box to activate the wallpaper module.
pause
