diff --git a/setup.bat b/setup.bat index fe9adeb..74edf28 100644 --- a/setup.bat +++ b/setup.bat @@ -1,4 +1,5 @@ @echo off +setlocal enabledelayedexpansion title T-Order Tablet Automation Tool (Multi-Device Loop) chcp 65001 > nul @@ -67,8 +68,8 @@ echo ^> 관련 앱(T-Order, YouTube 등) 패키지 스캔 후 순차적 제거 echo. echo ^> YouTube 등 불필요한 시스템 앱 제거 중... for %%a in (com.google.android.youtube com.google.android.projection.gearhead com.google.android.keep com.teamviewer.host.market com.teamviewer.quicksupport.market) do ( - "%ADB%" shell pm list packages %%a | findstr "%%a" >nul - if not errorlevel 1 ( + "%ADB%" shell pm list packages %%a 2>nul | findstr "%%a" >nul + if !errorlevel! equ 0 ( echo [제거] %%a - 데이터 초기화 후 제거 진행. "%ADB%" shell "am force-stop %%a; pm clear %%a; pm uninstall --user 0 %%a; pm disable-user --user 0 %%a" %LOG% ) else ( @@ -78,15 +79,52 @@ for %%a in (com.google.android.youtube com.google.android.projection.gearhead co echo ^> STEP 2 완료 echo. -echo STEP 3. 시스템 최적화 +echo STEP 3. 시스템 최적화 (디지털 사이니지 모드) echo ----------------------------------------------------------- +:: 애니메이션 비활성화 "%ADB%" shell settings put global window_animation_scale 0 %LOG% "%ADB%" shell settings put global transition_animation_scale 0 %LOG% "%ADB%" shell settings put global animator_duration_scale 0 %LOG% +echo ^> 애니메이션 비활성화 완료 + +:: 화면 꺼짐 방지 (최대값 설정) "%ADB%" shell settings put system screen_off_timeout 2147483647 %LOG% "%ADB%" shell settings put global stay_on_while_plugged_in 3 %LOG% -"%ADB%" shell "service call activity 51 i32 2" %LOG% -echo ^> 리소스 최적화 완료 +echo ^> 화면 상시 켜짐 설정 완료 + +:: 화면 밝기 최대화 및 자동 밝기 비활성화 +"%ADB%" shell settings put system screen_brightness_mode 0 %LOG% +"%ADB%" shell settings put system screen_brightness 255 %LOG% +echo ^> 화면 밝기 최대 설정 완료 + +:: 자동 화면 회전 비활성화 +"%ADB%" shell settings put system accelerometer_rotation 0 %LOG% +echo ^> 자동 회전 비활성화 완료 + +:: 터치/키 사운드 비활성화 +"%ADB%" shell settings put system sound_effects_enabled 0 %LOG% +"%ADB%" shell settings put system haptic_feedback_enabled 0 %LOG% +echo ^> 터치 사운드 비활성화 완료 + +:: 알림 숨김 (방해 금지 모드) +"%ADB%" shell settings put global zen_mode 2 %LOG% +echo ^> 알림 숨김 모드 활성화 완료 + +:: 자동 업데이트 비활성화 +"%ADB%" shell settings put global package_verifier_enable 0 %LOG% +"%ADB%" shell pm disable-user --user 0 com.google.android.gms.update %LOG% +echo ^> 자동 업데이트 비활성화 완료 + +:: 절전 모드 비활성화 +"%ADB%" shell settings put global low_power 0 %LOG% +"%ADB%" shell dumpsys deviceidle disable %LOG% +echo ^> 절전 모드 비활성화 완료 + +:: 개발자 옵션 - USB 디버깅 유지 +"%ADB%" shell settings put global adb_enabled 1 %LOG% +echo ^> USB 디버깅 유지 설정 완료 + +echo ^> STEP 3 시스템 최적화 완료 echo. echo STEP 4. 필수 앱 설치 및 배경화면