DCX
DCX
echo.
echo.
echo.
echo %d% " ________ ________ ___ ___ "
echo "|\ ___ \ |\ ____\ |\ \ / /|"
echo "\ \ \_|\ \\ \ \___| \ \ \/ / /"
echo " \ \ \ \\ \\ \ \ \ \ / / "
echo " \ \ \_\\ \\ \ \____ / \/ "%w%
echo " \ \_______\\ \_______\ / /\ \ "
echo " \|_______| \|_______|/__/ /\ __\ "
echo " |__|/ \|__| "
echo.
echo.
echo.
:benchmark
cls
title Benchmark [Beta]
adb push bnchmrk.sh sdcard/Download > nul
echo [%g%+%w%]Lower is better !
echo [-]This Benchmark May Take A While To Complete
echo [-]Take A Cup Of Coffee And Wait.
echo.
echo.
adb shell "time for i in $(seq 1 8000000); do :;done"
timeout /t 2 /nobreak > nul
echo.
echo.
echo Press Any Button To Go Back
pause > nul
goto menu
:shell
@echo off
cls
title Shell
adb shell
goto menu
:exit
@echo off
cls
title Exit
echo.
echo.
echo %d%██████╗ ██████╗██╗ ██╗
echo ██╔══██╗██╔════╝╚██╗██╔╝
echo ██║ ██║██║ ╚███╔╝ %w%
echo ██║ ██║██║ ██╔██╗
echo ██████╔╝╚██████╗██╔╝ ██╗
echo ╚═════╝ ╚═════╝╚═╝ ╚═╝
echo.
echo.
echo.
echo.
echo.
echo %d%Thank For Using My Script, Good Bye And Have A Good Day!!
%w%
echo.
echo.
timeout /t 3 /nobreak > nul
adb shell cmd notification post -S bigtext -t '⚙DCX⚙' 'Tag' 'Restart = Remove All
Settings Applied, Please Use This Script At Least Once A Month To Keep Your Device
Smooth, Bye!!' > nul 2>&1
adb kill-server
exit
:reboot
adb reboot
timeout /t 1 /nobreak > nul
adb disconnect
goto menu
:github
start https://github.com/AnOrmaluser12/DroidCmdX
goto menu
:check
cls
title Check Settings
echo.
echo.
echo %r%Im Sorry But Currently This Feature Is Disabled%w%.
echo.
echo.
echo Press Any Button To Go Back
pause > nul
goto menu
:Auto
cls
title Auto Setup
echo.
echo.
echo %d%██████╗ ██████╗██╗ ██╗
echo ██╔══██╗██╔════╝╚██╗██╔╝
echo ██║ ██║██║ ╚███╔╝ %w%
echo ██║ ██║██║ ██╔██╗
echo ██████╔╝╚██████╗██╔╝ ██╗
echo ╚═════╝ ╚═════╝╚═╝ ╚═╝
echo.
echo.
echo %g%Easy To Use And Safe For Daily Use If You Don't Know Anything About This
Script%w%
echo.
echo.
echo %b%[%w%1%b%]%w% Run Auto Setup
echo %b%[%w%2%b%]%w% Go Back
:setupautorun
cls && title SurfaceFlinger Setup!
call :logo
echo.
echo.
echo [%g%+%w%] Check Refresh Rate
timeout /t 1 /nobreak > nul
for /f "tokens=3 delims= " %%i in ('adb shell dumpsys SurfaceFlinger ^| findstr
"refresh-rate"') do (
set refresh_rate=%%i
)
set refresh_rate=%refresh_rate: =%
echo [%b%!%w%]Refresh rate : %refresh_rate%
timeout /t 1 /nobreak > nul
for /f "delims=" %%i in ('powershell -Command "[math]::Round(1 / %refresh_rate%,
10)"') do set result=%%i
for /f "delims=" %%i in ('powershell -Command "[math]::Round(%result% * 1000000000,
0)"') do set final=%%i
echo [%g%+%w%] Check Result . . . .
echo.
timeout /t 1 /nobreak > nul
echo.
echo.
echo [%b%!%w%] SurfaceFlinger Setup. . .
for /f "delims=" %%i in ('powershell -Command "[math]::Round(%final% / 18.518520,
0)"') do set eaglpos=%%i
for /f "delims=" %%i in ('powershell -Command "[math]::Round(%final% / 8.771929,
0)"') do set apsofs=%%i
for /f "delims=" %%i in ('powershell -Command "[math]::Round(%final% / 4.7619050,
0)"') do set elfpsofsasdasx=%%i
for /f "delims=" %%i in ('powershell -Command "[math]::Round(%final% / 3.7037029 -
1, 0)"') do set elrdur=%%i
for /f "delims=" %%i in ('powershell -Command "[math]::Round(%final% /
3.3333336900, 0)"') do set sfelpoassd=%%i
for /f "delims=" %%i in ('powershell -Command "[math]::Round(%final% / 1.851852 +
1, 0)"') do set rgsmplsa=%%i
for /f "delims=" %%i in ('powershell -Command "[math]::Round(%final% / 0.8771929 -
2, 0)"') do set rgstis=%%i
timeout /t 2 /nobreak > nul
::elrdur
adb shell setprop debug.sf.region_sampling_duration_ns %elrdur%
adb shell setprop debug.sf.cached_set_render_duration_ns %elrdur%
adb shell setprop debug.sf.early.app.duration %elrdur%
adb shell setprop debug.sf.early.sf.duration %elrdur%
adb shell setprop debug.sf.earlyGl.app.duration %elrdur%
adb shell setprop debug.sf.earlyGl.sf.duration %elrdur%
::apsofs
adb shell setprop debug.sf.early_app_phase_offset_ns %apsofs%
adb shell setprop debug.sf.early_gl_app_phase_offset_ns %apsofs%
::sfelpoassd
adb shell setprop debug.sf.early_gl_phase_offset_ns %sfelpoassd%
adb shell setprop debug.sf.early_phase_offset_ns %sfelpoassd%
::eaglpos
adb shell setprop debug.sf.high_fps_early_app_phase_offset_ns %eaglpos%
adb shell setprop debug.sf.high_fps_early_gl_app_phase_offset_ns %eaglpos%
::elfpsofsasdasx
adb shell setprop debug.sf.high_fps_early_gl_phase_offset_ns %elfpsofsasdasx%
adb shell setprop debug.sf.high_fps_early_phase_offset_ns %elfpsofsasdasx%
::rgstis
adb shell setprop debug.sf.region_sampling_timer_timeout_ns %rgstis%
::rgsmplsa
adb shell setprop debug.sf.region_sampling_period_ns %rgsmplsa%
adb shell setprop debug.sf.phase_offset_threshold_for_next_vsync_ns %rgsmplsa%
adb shell setprop debug.sf.high_fps_late_app_phase_offset_ns %rgsmplsa%
adb shell setprop debug.sf.high_fps_late_sf_phase_offset_ns %rgsmplsa%
adb shell setprop debug.sf.late.app.duration %rgsmplsa%
adb shell setprop debug.sf.late.sf.duration %rgsmplsa%
echo [%g%+%w%] Done !
echo.
echo.
timeout /t 2 /nobreak > nul
echo [!] SurfaceFlinger Setup Is Complete, 2nd Setup Is Ready!
echo [!] Please Wait!
timeout /t 10 /nobreak > nul
set count=0
title 2nd Setup
cls
call :logo
adb shell cmd package bg-dexopt-job
cls
call :logo
set /a count+=1
echo Done %b%%count%%w%/5
timeout /t 1 /nobreak > nul
cls
call :logo
adb shell dumpsys battery reset
cls
call :logo
set /a count+=1
echo Done %b%%count%%w%/5
timeout /t 1 /nobreak > nul
cls
call :logo
adb shell sm fstrim
cls
call :logo
set /a count+=1
echo Done %b%%count%%w%/5
timeout /t 1 /nobreak > nul
cls
call :logo
adb shell am kill-all
adb shell am kill --user 0 all
adb shell am kill --user 0 current
adb shell cmd looper_stats disable
adb shell cmd dropbox add-low-priority system_server
adb shell cmd dropbox add-low-priority system_server/Subject
adb shell cmd dropbox add-low-priority data_app_wtf
adb shell cmd dropbox add-low-priority storage_trim
adb shell cmd dropbox add-low-priority SYSTEM_BOOT
adb shell cmd dropbox add-low-priority SYSTEM_AUDIT
adb shell cmd dropbox add-low-priority system_server_wtf
adb shell cmd dropbox add-low-priority SYSTEM_LAST_KMSG
adb shell cmd dropbox set-rate-limit 20000000000000
adb shell cmd autofill set log_level off
adb shell cmd thermalservice override-status 1
adb shell setprop log.tag.stats_log S
adb shell setprop log.tag.APM_AudioPolicyManager S
adb shell setprop log.tag.ALL S
adb shell settings put global settings_enable_monitor_phantom_procs false
adb shell simpleperf --log fatal --log-to-android-buffer 0 > nul 2>&1
adb shell cmd autofill set max_visible_datasets 0
adb shell cmd voiceinteraction set-debug-hotword-logging false
adb shell wm logging disable-text WM_ERROR > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_ORIENTATION > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_FOCUS_LIGHT > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_BOOT > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_RESIZE > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_ADD_REMOVE > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_CONFIGURATION > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_SWITCH > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_CONTAINERS > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_FOCUS > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_IMMERSIVE > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_LOCKTASK > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_STATES > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_TASKS > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_STARTING_WINDOW > nul 2>&1
adb shell wm logging disable-text WM_SHOW_TRANSACTIONS > nul 2>&1
adb shell wm logging disable-text WM_SHOW_SURFACE_ALLOC > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_APP_TRANSITIONS > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_ANIM > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_APP_TRANSITIONS_ANIM > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_RECENTS_ANIMATIONS > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_DRAW > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_REMOTE_ANIMATIONS > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_SCREEN_ON > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_KEEP_SCREEN_ON > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_WINDOW_MOVEMENT > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_IME > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_WINDOW_ORGANIZER > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_SYNC_ENGINE > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_WINDOW_TRANSITIONS > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_WINDOW_TRANSITIONS_MIN > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_WINDOW_INSETS > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_CONTENT_RECORDING > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_WALLPAPER > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_BACK_PREVIEW > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_DREAM > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_DIMMER > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_TPL > nul 2>&1
adb shell wm logging disable-text WM_DEBUG_EMBEDDED_WINDOWS > nul 2>&1
adb shell wm logging disable WM_ERROR > nul 2>&1
adb shell wm logging disable WM_DEBUG_ORIENTATION > nul 2>&1
adb shell wm logging disable WM_DEBUG_FOCUS_LIGHT > nul 2>&1
adb shell wm logging disable WM_DEBUG_BOOT > nul 2>&1
adb shell wm logging disable WM_DEBUG_RESIZE > nul 2>&1
adb shell wm logging disable WM_DEBUG_ADD_REMOVE > nul 2>&1
adb shell wm logging disable WM_DEBUG_CONFIGURATION > nul 2>&1
adb shell wm logging disable WM_DEBUG_SWITCH > nul 2>&1
adb shell wm logging disable WM_DEBUG_CONTAINERS > nul 2>&1
adb shell wm logging disable WM_DEBUG_FOCUS > nul 2>&1
adb shell wm logging disable WM_DEBUG_IMMERSIVE > nul 2>&1
adb shell wm logging disable WM_DEBUG_LOCKTASK > nul 2>&1
adb shell wm logging disable WM_DEBUG_STATES > nul 2>&1
adb shell wm logging disable WM_DEBUG_TASKS > nul 2>&1
adb shell wm logging disable WM_DEBUG_STARTING_WINDOW > nul 2>&1
adb shell wm logging disable WM_SHOW_TRANSACTIONS > nul 2>&1
adb shell wm logging disable WM_SHOW_SURFACE_ALLOC > nul 2>&1
adb shell wm logging disable WM_DEBUG_APP_TRANSITIONS > nul 2>&1
adb shell wm logging disable WM_DEBUG_ANIM > nul 2>&1
adb shell wm logging disable WM_DEBUG_APP_TRANSITIONS_ANIM > nul 2>&1
adb shell wm logging disable WM_DEBUG_RECENTS_ANIMATIONS > nul 2>&1
adb shell wm logging disable WM_DEBUG_DRAW > nul 2>&1
adb shell wm logging disable WM_DEBUG_REMOTE_ANIMATIONS > nul 2>&1
adb shell wm logging disable WM_DEBUG_SCREEN_ON > nul 2>&1
adb shell wm logging disable WM_DEBUG_KEEP_SCREEN_ON > nul 2>&1
adb shell wm logging disable WM_DEBUG_WINDOW_MOVEMENT > nul 2>&1
adb shell wm logging disable WM_DEBUG_IME > nul 2>&1
adb shell wm logging disable WM_DEBUG_WINDOW_ORGANIZER > nul 2>&1
adb shell wm logging disable WM_DEBUG_SYNC_ENGINE > nul 2>&1
adb shell wm logging disable WM_DEBUG_WINDOW_TRANSITIONS > nul 2>&1
adb shell wm logging disable WM_DEBUG_WINDOW_TRANSITIONS_MIN > nul 2>&1
adb shell wm logging disable WM_DEBUG_WINDOW_INSETS > nul 2>&1
adb shell wm logging disable WM_DEBUG_CONTENT_RECORDING > nul 2>&1
adb shell wm logging disable WM_DEBUG_WALLPAPER > nul 2>&1
adb shell wm logging disable WM_DEBUG_BACK_PREVIEW > nul 2>&1
adb shell wm logging disable WM_DEBUG_DREAM > nul 2>&1
adb shell wm logging disable WM_DEBUG_DIMMER > nul 2>&1
adb shell wm logging disable WM_DEBUG_TPL > nul 2>&1
adb shell wm logging disable WM_DEBUG_EMBEDDED_WINDOWS > nul 2>&1
adb shell dumpsys binder_calls_stats --disable > nul 2>&1
adb shell dumpsys binder_calls_stats --disable-detailed-tracking > nul 2>&1
adb shell settings put global binder_calls_stats
sampling_interval=200000000,detailed_tracking=disable
adb shell dumpsys batterystats disable full-history > nul 2>&1
adb shell ime tracing stop
cls
call :logo
set /a count+=1
echo Done %b%%count%%w%/5
timeout /t 1 /nobreak > nul
cls
call :logo
adb shell logcat -c
cls
call :logo
set /a count+=1
echo Done %b%%count%%w%/5
timeout /t 1 /nobreak > nul
cls
call :logo
echo Done , Press Any Button To Exit
adb shell cmd notification post -S bigtext -t 'Auto Setup Is Complete⚙️
' 'Tag' 'Auto
Setup Is A Bunch Of Tweaks That Can Be Use For Daily Or Dont Know Anything About
This Script' > nul 2>&1
pause > Nul
exit
:Optimize
cls
title Optimize Android
mode 100,37
echo.
echo.
echo %d%██████╗ ██████╗██╗ ██╗
echo ██╔══██╗██╔════╝╚██╗██╔╝
echo ██║ ██║██║ ╚███╔╝ %w%
echo ██║ ██║██║ ██╔██╗
echo ██████╔╝╚██████╗██╔╝ ██╗
echo ╚═════╝ ╚═════╝╚═╝ ╚═╝
echo ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
for /f "tokens=3,4,5,6,7 delims= " %%a in ('adb shell uptime') do echo
[%g%+%w%]Uptime: %%a %%b %%c
for /f "tokens=1 delims=:" %%i in ('adb shell dumpsys cpuinfo') do set cpucheck=%%i
echo [%g%+%w%]%cpucheck% LOAD | findstr TOTAL
echo ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
echo.
echo.
echo.
echo %g%[%w%1%g%]%w% Run bg-dexopt-job
echo %g%[%w%2%g%]%w% Run Fstrim
echo %g%[%w%3%g%]%w% Run Kill-all
echo %g%[%w%4%g%]%w% Run Compile App
echo %g%[%w%5%g%]%w% Run Clear Cache
echo %g%[%w%6%g%]%w% Run Tweak SurfaceFlinger
echo %g%[%w%7%g%]%w% Back
echo.
set /p kb="Choose An Option >> "
if %kb% == 1 goto dexopt
if %kb% == 2 goto fstrim
if %kb% == 3 goto killall
if %kb% == 4 goto compile
if %kb% == 5 goto cache
if %kb% == 6 goto sftmenu
if %kb% == 7 goto menu
:sftmenu
title SF Menu
cls
echo.
echo.
call :logo
echo [%g%1%w%] 60hz
echo [%g%2%w%] 90hz
echo [%g%3%w%] 120hz
echo [%g%4%w%] Remove
echo [%g%5%w%] Back
set /p set="Choose An Option >> "
:sf60
cls
title 60hz menu
echo.
echo.
call :logo
echo [%g%1%w%] Balance Mode
echo [%g%2%w%] Gaming Mode
echo [%g%3%w%] Battery Saver Mode
echo [%g%4%w%] Back
echo.
echo.
set /p set="Choose An Option >> "
if %set% == 1 goto sf60balance
if %set% == 2 goto sf60gaming
if %set% == 3 goto sf60battery
if %set% == 4 goto sftmenu
:sf60battery
cls
title 60hz SF : Battery Saver Mode
set chm=6500000
adb shell setprop debug.sf.phase_offset_threshold_for_next_vsync_ns %chm%
adb shell setprop debug.sf.region_sampling_period_ns %chm%
adb shell setprop debug.sf.late.app.duration %chm%
adb shell setprop debug.sf.late.sf.duration %chm%
adb shell setprop debug.sf.high_fps_late_app_phase_offset_ns %chm%
adb shell setprop debug.sf.high_fps_late_sf_phase_offset_ns %chm%
::3100000
set chh=3500000
adb shell setprop debug.sf.earlyGl.app.duration %chh%
adb shell setprop debug.sf.early.sf.duration %chh%
adb shell setprop debug.sf.region_sampling_duration_ns %chh%
adb shell setprop debug.sf.early.app.duration %chh%
adb shell setprop debug.sf.earlyGl.app.duration %chh%
adb shell setprop debug.sf.cached_set_render_duration_ns %chh%
adb shell setprop debug.sf.earlyGl.sf.duration %chh%
::13900000
set chb=14000000
adb shell setprop debug.sf.region_sampling_timer_timeout_ns %chb%
::1400000
set chbb=1300000
adb shell setprop debug.sf.early_app_phase_offset_ns %chbb%
adb shell setprop debug.sf.early_gl_app_phase_offset_ns %chbb%
::700000
set chn=750000
adb shell setprop debug.sf.high_fps_early_app_phase_offset_ns %chn%
adb shell setprop debug.sf.high_fps_early_gl_app_phase_offset_ns %chn%
::4700000
set chsss=4000000
adb shell setprop debug.sf.early_gl_phase_offset_ns %chsss%
adb shell setprop debug.sf.early_phase_offset_ns %chsss%
::3000000
set chbay=2800000
adb shell setprop debug.sf.high_fps_early_gl_phase_offset_ns %chbay%
adb shell setprop debug.sf.high_fps_early_phase_offset_ns %chbay%
echo Done , Press Any Button To Go Back
pause > nul
goto sftmenu
:sf60gaming
cls
title 60hz SF : Gaming Mode
call :logo
set chm=8500000
adb shell setprop debug.sf.phase_offset_threshold_for_next_vsync_ns %chm%
adb shell setprop debug.sf.region_sampling_period_ns %chm%
adb shell setprop debug.sf.late.app.duration %chm%
adb shell setprop debug.sf.late.sf.duration %chm%
adb shell setprop debug.sf.high_fps_late_app_phase_offset_ns %chm%
adb shell setprop debug.sf.high_fps_late_sf_phase_offset_ns %chm%
::3100000
set chh=5100000
adb shell setprop debug.sf.earlyGl.app.duration %chh%
adb shell setprop debug.sf.early.sf.duration %chh%
adb shell setprop debug.sf.region_sampling_duration_ns %chh%
adb shell setprop debug.sf.early.app.duration %chh%
adb shell setprop debug.sf.earlyGl.app.duration %chh%
adb shell setprop debug.sf.cached_set_render_duration_ns %chh%
adb shell setprop debug.sf.earlyGl.sf.duration %chh%
::13900000
set chb=15000000
adb shell setprop debug.sf.region_sampling_timer_timeout_ns %chb%
::1400000
set chbb=1550000
adb shell setprop debug.sf.early_app_phase_offset_ns %chbb%
adb shell setprop debug.sf.early_gl_app_phase_offset_ns %chbb%
::700000
set chn=800000
adb shell setprop debug.sf.high_fps_early_app_phase_offset_ns %chn%
adb shell setprop debug.sf.high_fps_early_gl_app_phase_offset_ns %chn%
::4700000
set chsss=4800000
adb shell setprop debug.sf.early_gl_phase_offset_ns %chsss%
adb shell setprop debug.sf.early_phase_offset_ns %chsss%
::3000000
set chbay=3200000
adb shell setprop debug.sf.high_fps_early_gl_phase_offset_ns %chbay%
adb shell setprop debug.sf.high_fps_early_phase_offset_ns %chbay%
echo Done , Press Any Button To Go Back
pause > nul
goto sftmenu
:sf60balance
cls
title 60hz SF : Balance Mode
call :logo
::6500000
set chm=6500000
adb shell setprop debug.sf.phase_offset_threshold_for_next_vsync_ns %chm%
adb shell setprop debug.sf.region_sampling_period_ns %chm%
adb shell setprop debug.sf.late.app.duration %chm%
adb shell setprop debug.sf.late.sf.duration %chm%
adb shell setprop debug.sf.high_fps_late_app_phase_offset_ns %chm%
adb shell setprop debug.sf.high_fps_late_sf_phase_offset_ns %chm%
::3100000
set chh=2900000
adb shell setprop debug.sf.earlyGl.app.duration %chh%
adb shell setprop debug.sf.early.sf.duration %chh%
adb shell setprop debug.sf.region_sampling_duration_ns %chh%
adb shell setprop debug.sf.early.app.duration %chh%
adb shell setprop debug.sf.earlyGl.app.duration %chh%
adb shell setprop debug.sf.cached_set_render_duration_ns %chh%
adb shell setprop debug.sf.earlyGl.sf.duration %chh%
::13900000
set chb=13000000
adb shell setprop debug.sf.region_sampling_timer_timeout_ns %chb%
::1400000
set chbb=1350000
adb shell setprop debug.sf.early_app_phase_offset_ns %chbb%
adb shell setprop debug.sf.early_gl_app_phase_offset_ns %chbb%
::700000
set chn=750000
adb shell setprop debug.sf.high_fps_early_app_phase_offset_ns %chn%
adb shell setprop debug.sf.high_fps_early_gl_app_phase_offset_ns %chn%
::4700000
set chsss=4500000
adb shell setprop debug.sf.early_gl_phase_offset_ns %chsss%
adb shell setprop debug.sf.early_phase_offset_ns %chsss%
::3000000
set chbay=3200000
adb shell setprop debug.sf.high_fps_early_gl_phase_offset_ns %chbay%
adb shell setprop debug.sf.high_fps_early_phase_offset_ns %chbay%
echo Done , Press Any Button To Go Back
pause > nul
goto sftmenu
:sf90
cls
call :logo
title 90hz menu
echo [%g%1%w%] Balance Mode
echo [%g%2%w%] Gaming Mode
echo [%g%3%w%] Battery Saver Mode
echo [%g%4%w%] Back
echo.
echo.
set /p set="Choose An Option >> "
if %set% == 1 goto sf90balance
if %set% == 2 goto sf90gaming
if %set% == 3 goto sf90battery
if %set% == 4 goto sftmenu
:sf90battery
cls
title 90hz SF : Battery Mode
call :logo
::Battery Saver Mode 90Hz
set px=533333
adb shell setprop debug.sf.high_fps_early_app_phase_offset_ns %px%
adb shell setprop debug.sf.high_fps_early_gl_app_phase_offset_ns %px%
set pxl=4733333
adb shell setprop debug.sf.high_fps_late_sf_phase_offset_ns %pxl%
adb shell setprop debug.sf.late.app.duration %pxl%
adb shell setprop debug.sf.late.sf.duration %pxl%
adb shell setprop debug.sf.high_fps_late_app_phase_offset_ns %pxl%
adb shell setprop debug.sf.region_sampling_period_ns %pxl%
adb shell setprop debug.sf.phase_offset_threshold_for_next_vsync_ns %pxl%
set chxl=2533333
adb shell setprop debug.sf.earlyGl.app.duration %chxl%
adb shell setprop debug.sf.early.sf.duration %chxl%
adb shell setprop debug.sf.region_sampling_duration_ns %chxl%
adb shell setprop debug.sf.cached_set_render_duration_ns %chxl%
adb shell setprop debug.sf.early.app.duration %chxl%
adb shell setprop debug.sf.earlyGl.app.duration %chxl%
adb shell setprop debug.sf.earlyGl.sf.duration %chxl%
set dhbx=13333333
adb shell setprop debug.sf.region_sampling_timer_timeout_ns %dhbx%
set dhbxz=753333
adb shell setprop debug.sf.early_app_phase_offset_ns %dhbxz%
adb shell setprop debug.sf.early_gl_app_phase_offset_ns %dhbxz%
set xcxz=2800000
adb shell setprop debug.sf.early_gl_phase_offset_ns %xcxz%
adb shell setprop debug.sf.early_phase_offset_ns %xcxz%
set xcfs=1733333
adb shell setprop debug.sf.high_fps_early_gl_phase_offset_ns %xcfs%
adb shell setprop debug.sf.high_fps_early_phase_offset_ns %xcfs%
echo Done , Press Any Button To Go Back
pause > nul
goto sftmenu
:sf90gaming
cls
title 90hz SF : Gaming Mode
call :logo
::Gaming Mode 90Hz
set px=653333
adb shell setprop debug.sf.high_fps_early_app_phase_offset_ns %px%
adb shell setprop debug.sf.high_fps_early_gl_app_phase_offset_ns %px%
set pxl=5533333
adb shell setprop debug.sf.high_fps_late_sf_phase_offset_ns %pxl%
adb shell setprop debug.sf.late.app.duration %pxl%
adb shell setprop debug.sf.late.sf.duration %pxl%
adb shell setprop debug.sf.high_fps_late_app_phase_offset_ns %pxl%
adb shell setprop debug.sf.region_sampling_period_ns %pxl%
adb shell setprop debug.sf.phase_offset_threshold_for_next_vsync_ns %pxl%
set chxl=2933333
adb shell setprop debug.sf.earlyGl.app.duration %chxl%
adb shell setprop debug.sf.early.sf.duration %chxl%
adb shell setprop debug.sf.region_sampling_duration_ns %chxl%
adb shell setprop debug.sf.cached_set_render_duration_ns %chxl%
adb shell setprop debug.sf.early.app.duration %chxl%
adb shell setprop debug.sf.earlyGl.app.duration %chxl%
adb shell setprop debug.sf.earlyGl.sf.duration %chxl%
set dhbx=15333333
adb shell setprop debug.sf.region_sampling_timer_timeout_ns %dhbx%
set dhbxz=883333
adb shell setprop debug.sf.early_app_phase_offset_ns %dhbxz%
adb shell setprop debug.sf.early_gl_app_phase_offset_ns %dhbxz%
set xcxz=3833333
adb shell setprop debug.sf.early_gl_phase_offset_ns %xcxz%
adb shell setprop debug.sf.early_phase_offset_ns %xcxz%
set xcfs=2333333
adb shell setprop debug.sf.high_fps_early_gl_phase_offset_ns %xcfs%
adb shell setprop debug.sf.high_fps_early_phase_offset_ns %xcfs%
echo Done , Press Any Button To Go Back
pause > nul
goto sftmenu
:sf90balance
cls
title 90hz SF : Balance Mode
call :logo
set px=533333
adb shell setprop debug.sf.high_fps_early_app_phase_offset_ns %px%
adb shell setprop debug.sf.high_fps_early_gl_app_phase_offset_ns %px%
::**
set pxl=4833333
adb shell setprop debug.sf.high_fps_late_sf_phase_offset_ns %pxl%
adb shell setprop debug.sf.late.app.duration %pxl%
adb shell setprop debug.sf.late.sf.duration %pxl%
adb shell setprop debug.sf.high_fps_late_app_phase_offset_ns %pxl%
adb shell setprop debug.sf.region_sampling_period_ns %pxl%
adb shell setprop debug.sf.phase_offset_threshold_for_next_vsync_ns %pxl%
::***
set chxl=2533333
adb shell setprop debug.sf.earlyGl.app.duration %chxl%
adb shell setprop debug.sf.early.sf.duration %chxl%
adb shell setprop debug.sf.region_sampling_duration_ns %chxl%
adb shell setprop debug.sf.cached_set_render_duration_ns %chxl%
adb shell setprop debug.sf.early.app.duration %chxl%
adb shell setprop debug.sf.earlyGl.app.duration %chxl%
adb shell setprop debug.sf.earlyGl.sf.duration %chxl%
::****
set dhbx=11333333
adb shell setprop debug.sf.region_sampling_timer_timeout_ns %dhbx%
set dhbxz=833333
adb shell setprop debug.sf.early_app_phase_offset_ns %dhbxz%
adb shell setprop debug.sf.early_gl_app_phase_offset_ns %dhbxz%
::*****
set xcxz=3333333
adb shell setprop debug.sf.early_gl_phase_offset_ns %xcxz%
adb shell setprop debug.sf.early_phase_offset_ns %xcxz%
::******
set xcfs=1833333
adb shell setprop debug.sf.high_fps_early_gl_phase_offset_ns %xcfs%
adb shell setprop debug.sf.high_fps_early_phase_offset_ns %xcfs%
echo Done , Press Any Button To Go Back
pause > nul
goto sftmenu
:sf120
cls
title 120hz menu
call :logo
echo [%g%1%w%] Balance Mode
echo [%g%2%w%] Gaming Mode
echo [%g%3%w%] Battery Saver Mode
echo [%g%4%w%] Back
echo.
echo.
set /p set="Choose An Option >> "
if %set% == 1 goto sf120balance
if %set% == 2 goto sf120gaming
if %set% == 3 goto sf120battery
if %set% == 4 goto sftmenu
:sf120gaming
cls
title 120hz SF : Gaming Mode
call :logo
::Gaming Mode 120Hz
set qk=3666666
adb shell setprop debug.sf.region_sampling_duration_ns %qk%
adb shell setprop debug.sf.cached_set_render_duration_ns %qk%
adb shell setprop debug.sf.early.app.duration %qk%
adb shell setprop debug.sf.early.sf.duration %qk%
adb shell setprop debug.sf.earlyGl.app.duration %qk%
adb shell setprop debug.sf.earlyGl.sf.duration %qk%
set fsk=1666666
adb shell setprop debug.sf.early_app_phase_offset_ns %fsk%
adb shell setprop debug.sf.early_gl_app_phase_offset_ns %fsk%
set erl=3866666
adb shell setprop debug.sf.early_gl_phase_offset_ns %erl%
adb shell setprop debug.sf.early_phase_offset_ns %erl%
set pos=586666
adb shell setprop debug.sf.high_fps_early_app_phase_offset_ns %pos%
adb shell setprop debug.sf.high_fps_early_gl_app_phase_offset_ns %pos%
set fpsos=2766666
adb shell setprop debug.sf.high_fps_early_gl_phase_offset_ns %fpsos%
adb shell setprop debug.sf.high_fps_early_phase_offset_ns %fpsos%
set tons=19666666
adb shell setprop debug.sf.region_sampling_timer_timeout_ns %tons%
set ltsdur=5966666
adb shell setprop debug.sf.late.app.duration %ltsdur%
adb shell setprop debug.sf.late.sf.duration %ltsdur%
adb shell setprop debug.sf.region_sampling_period_ns %ltsdur%
adb shell setprop debug.sf.phase_offset_threshold_for_next_vsync_ns %ltsdur%
adb shell setprop debug.sf.high_fps_late_app_phase_offset_ns %ltsdur%
adb shell setprop debug.sf.high_fps_late_sf_phase_offset_ns %ltsdur%
echo Done , Press Any Button To Go Back
pause > nul
goto sftmenu
:sf120battery
cls
title 120hz SF : Battery Mode
call :logo
::Battery Saver Mode 120Hz
set qk=2066666
adb shell setprop debug.sf.region_sampling_duration_ns %qk%
adb shell setprop debug.sf.cached_set_render_duration_ns %qk%
adb shell setprop debug.sf.early.app.duration %qk%
adb shell setprop debug.sf.early.sf.duration %qk%
adb shell setprop debug.sf.earlyGl.app.duration %qk%
adb shell setprop debug.sf.earlyGl.sf.duration %qk%
set fsk=796666
adb shell setprop debug.sf.early_app_phase_offset_ns %fsk%
adb shell setprop debug.sf.early_gl_app_phase_offset_ns %fsk%
set erl=2166666
adb shell setprop debug.sf.early_gl_phase_offset_ns %erl%
adb shell setprop debug.sf.early_phase_offset_ns %erl%
set pos=396666
adb shell setprop debug.sf.high_fps_early_app_phase_offset_ns %pos%
adb shell setprop debug.sf.high_fps_early_gl_app_phase_offset_ns %pos%
set fpsos=1166666
adb shell setprop debug.sf.high_fps_early_gl_phase_offset_ns %fpsos%
adb shell setprop debug.sf.high_fps_early_phase_offset_ns %fpsos%
set tons=8466666
adb shell setprop debug.sf.region_sampling_timer_timeout_ns %tons%
set ltsdur=3966666
adb shell setprop debug.sf.late.app.duration %ltsdur%
adb shell setprop debug.sf.late.sf.duration %ltsdur%
adb shell setprop debug.sf.region_sampling_period_ns %ltsdur%
adb shell setprop debug.sf.phase_offset_threshold_for_next_vsync_ns %ltsdur%
adb shell setprop debug.sf.high_fps_late_app_phase_offset_ns %ltsdur%
adb shell setprop debug.sf.high_fps_late_sf_phase_offset_ns %ltsdur%
echo Done , Press Any Button To Go Back
pause > nul
goto sftmenu
:sf120balance
cls
title 120hz SF : Balance Mode
call :logo
::p1
set qk=1966666
adb shell setprop debug.sf.region_sampling_duration_ns %qk%
adb shell setprop debug.sf.cached_set_render_duration_ns %qk%
adb shell setprop debug.sf.early.app.duration %qk%
adb shell setprop debug.sf.early.sf.duration %qk%
adb shell setprop debug.sf.earlyGl.app.duration %qk%
adb shell setprop debug.sf.earlyGl.sf.duration %qk%
::p2
set fsk=896666
adb shell setprop debug.sf.early_app_phase_offset_ns %fsk%
adb shell setprop debug.sf.early_gl_app_phase_offset_ns %fsk%
::p3
set erl=2466666
adb shell setprop debug.sf.early_gl_phase_offset_ns %erl%
adb shell setprop debug.sf.early_phase_offset_ns %erl%
::p4
set pos=446666
adb shell setprop debug.sf.high_fps_early_app_phase_offset_ns %pos%
adb shell setprop debug.sf.high_fps_early_gl_app_phase_offset_ns %pos%
::p5
set fpsos=1466666
adb shell setprop debug.sf.high_fps_early_gl_phase_offset_ns %fpsos%
adb shell setprop debug.sf.high_fps_early_phase_offset_ns %fpsos%
::p6
set tons=4666666
adb shell setprop debug.sf.region_sampling_timer_timeout_ns %tons%
::p7
set ltsdur=4466666
adb shell setprop debug.sf.late.app.duration %ltsdur%
adb shell setprop debug.sf.late.sf.duration %ltsdur%
adb shell setprop debug.sf.region_sampling_period_ns %ltsdur%
adb shell setprop debug.sf.phase_offset_threshold_for_next_vsync_ns %ltsdur%
adb shell setprop debug.sf.high_fps_late_app_phase_offset_ns %ltsdur%
adb shell setprop debug.sf.high_fps_late_sf_phase_offset_ns %ltsdur%
echo Done , Press Any Button To Go Back
pause > nul
goto sftmenu
:removesf
cls
title Remove SF
call :logo
echo.
echo.
echo [%r%!%w%] Please Restart Device To Finish The Process
echo.
echo.
timeout /t 2 /nobreak > nul
echo.
echo.
echo.
echo Press Any Button To Go Back
pause > nul
goto sftmenu
:dexopt
@echo off
cls
title bg-dexopt-job is running
echo.
echo.
echo %d%██████╗ ██████╗██╗ ██╗
echo ██╔══██╗██╔════╝╚██╗██╔╝
echo ██║ ██║██║ ╚███╔╝ %w%
echo ██║ ██║██║ ██╔██╗
echo ██████╔╝╚██████╗██╔╝ ██╗
echo ╚═════╝ ╚═════╝╚═╝ ╚═╝
echo.
echo.
echo.
adb shell cmd package bg-dexopt-job
echo %c%Done%w%, Press Any Button To Go Back
pause > nul
goto Optimize
:fstrim
@echo off
cls
title fstrim is running
echo.
echo.
echo %d%██████╗ ██████╗██╗ ██╗
echo ██╔══██╗██╔════╝╚██╗██╔╝
echo ██║ ██║██║ ╚███╔╝ %w%
echo ██║ ██║██║ ██╔██╗
echo ██████╔╝╚██████╗██╔╝ ██╗
echo ╚═════╝ ╚═════╝╚═╝ ╚═╝
echo.
echo.
echo.
adb shell sm fstrim
echo %c%Done%w%, Press Any Button To Go Back
pause > nul
goto Optimize
:killall
@echo off
cls
title kill process
for /f "tokens=2 delims=:" %%a in ('adb shell pm list package -3') do (
echo Kill %%a
adb shell cmd activity force-stop %%a > nul 2>&1
adb shell am force-stop %%a
)
adb shell am kill --user 0 all
adb shell am kill --user 0 current
adb shell am kill-all --user 0 %%a
adb shell am kill-all
echo %d%Done%w%, Press Any Button To Go Back
pause > nul
goto Optimize
:compile
@echo off
cls
title Compile App
echo.
echo.
echo.
echo Enter The Mode You Want !
echo example : speed
echo.
echo.
set /p mode="Choose An Option >> "
set /p package="Put Your Package Name Here >> "
adb shell cmd package compile -m %mode% -f %package%
timeout /t 2 /nobreak > nul
echo Done , Press Any Button To Go Back
pause > nul
goto Optimize
:cache
mode 45,12
cls
title Clear Cache
echo [1] %c%Clear Cache%w%
echo [2] %c%Back%w%
:sdgb
cls
title . . .
adb shell pm trim-caches 1200G
echo Done, Press Any Button To Go Back.
pause > nul
goto Optimize
rem battery
:Battery
@echo off
cls
title Battery Mode
cls
echo
Page%g%[%w%1/2%g%]
echo.
echo.
echo %d%██████╗ ██████╗██╗ ██╗
echo ██╔══██╗██╔════╝╚██╗██╔╝
echo ██║ ██║██║ ╚███╔╝ %w%
echo ██║ ██║██║ ██╔██╗
echo ██████╔╝╚██████╗██╔╝ ██╗
echo ╚═════╝ ╚═════╝╚═╝ ╚═╝
echo ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
for /f "tokens=3,4,5,6,7 delims= " %%a in ('adb shell uptime') do echo
[%g%+%w%]Uptime: %%a %%b %%c
for /f "tokens=1 delims=:" %%i in ('adb shell dumpsys cpuinfo') do set cpucheck=%%i
echo [%g%+%w%]%cpucheck% LOAD | findstr TOTAL
echo ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
echo.
echo.
echo %gold%[%w%1%gold%]%w% Toggle Power Saver
echo %gold%[%w%2%gold%]%w% Toggle Animation
echo %gold%[%w%3%gold%]%w% Toggle Auto Wifi
echo %gold%[%w%4%gold%]%w% Toggle Sync
echo %gold%[%w%5%gold%]%w% Toggle Motion
echo %gold%[%w%6%gold%]%w% Toggle ZRAM
echo %gold%[%w%7%gold%]%w% Toggle Extreme Power
Saver
echo %gold%[%w%8%gold%]%w% Toggle Send Error
echo %gold%[%w%9%gold%]%w% Toggle Lock
Profilling
echo %gold%[%w%10%gold%]%w% Toggle Logs/etc
echo %gold%[%w%11%gold%]%w% Next Page
echo %gold%[%w%12%gold%]%w% Back
:nextpage
cls
title Battery Mode
echo
Page%g%[%w%2/2%g%]
echo.
echo.
echo.
call :logo
echo %gold%[%w%1%gold%]%w% Toggle Log (For User
Apps)
echo %gold%[%w%2%gold%]%w% Universal Toggle
Logs\etc
echo %gold%[%w%3%gold%]%w% Back
echo.
echo.
echo.
echo.
set /p ksd="Choose An Option >> "
if %ksd% == 1 goto logappsuser
if %ksd% == 2 goto universallogs
if %ksd% == 3 goto Battery
:universallogs
cls
title Universal Toggle Logs\etc
echo.
echo.
call :logo
echo.
echo.
echo.
echo [%d%1%w%] Off
echo [%d%2%w%] On
echo [%d%3%w%] Back
set /p ksd="Choose An Option >> "
if %ksd% == 1 goto offlogsuni
if %ksd% == 2 goto onlogsuni
if %ksd% == 3 goto nextpage
:offlogsuni
cls
title Universal Toggle Logs\etc : Off
call :logo
for /f "tokens=1 delims=[]" %%a in ('adb shell getprop ^| findstr "log.tag"') do (
echo %%a | findstr /i "persist" > nul
if errorlevel 1 (
adb shell setprop %%a S
adb shell setprop log.tag.event OFF
)
)
echo Press Any Button To Go Back
pause > nul
goto nextpage
:onlogsuni
cls
title Universal toggle Logs\etc : On
call :logo
echo [%r%!%w%] Please Restart Device To Finish The Process
echo.
echo.
echo.
echo Press Any Button To Go Back
pause > nul
goto nextpage
:logappsuser
cls
title Toggle Log For User Apps
echo.
echo.
call :logo
echo.
echo.
echo.
echo [%d%1%w%] Off
echo [%d%2%w%] On
echo [%d%3%w%] Back
set /p ksd="Choose An Option >> "
if %ksd% == 1 goto offlogsuserapp
if %ksd% == 2 goto onlogsuserapp
if %ksd% == 3 goto nextpage
:offlogsuserapp
cls
title Log For User Apps : Off
call :logo
for /f "tokens=2 delims=:" %%a in ('adb shell pm list package -3') do (
adb shell cmd package log-visibility --disable %%a > nul 2>&1
echo Log disabled : %%a
)
echo.
echo.
echo Done , Press Any Button To Go Back
pause > nul
goto nextpage
:onlogsuserapp
cls
title Log For User Apps : On
call :logo
for /f "tokens=2 delims=:" %%a in ('adb shell pm list package -3') do (
adb shell cmd package log-visibility --enable %%a > nul 2>&1
echo Log enabled : %%a
)
echo.
echo.
echo Done , Press Any Button To Go Back
pause > nul
goto nextpage
:togglelogs
cls
title Toggle Logs/etc
echo.
echo.
echo Toggle Your Logs/etc Here
echo.
echo [%r%1%w%] Off
echo [%r%2%w%] On
echo [%r%3%w%] Back
set /p toggle="Choose An Option >> "
if %toggle% == 1 goto offlogss
if %toggle% == 2 goto onlogss
if %toggle% == 3 goto Battery
:offlogss
cls
title Logs/etc : Off
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::adb shell setprop security.perf_harden 1 ::
::adb shell dumpsys procstats --stop-testing > nul 2>&1 ::
::adb shell dumpsys batterystats disable full-history > nul 2>&1 ::
::adb shell wm tracing level critical > nul 2>&1 ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
cls
echo.
echo.
echo Do You Want To Use Custom Debug.prop From Tecno Pova 6 Neo?
echo.
echo.
echo [1] Skip And Continue
echo [2] Yes
echo [3] Back
:mainlogv
cls
::debugprop from tecno pova 6 neo
adb shell setprop debug.ae.dump.enable false
adb shell setprop debug.ae.dump.stat 0
adb shell setprop debug.ae.dump_level 0
adb shell setprop debug.ae.log.enable false
adb shell setprop debug.ae.log.level 0
adb shell setprop debug.ae.logi.enable false
adb shell setprop debug.af.log.enable false
adb shell setprop debug.bq.dump 0
adb shell setprop debug.camera.dump 0
adb shell setprop debug.stagefright.mediacodec.trace 0
adb shell setprop debug.sf.log_transaction false
adb shell setprop debug.sf.stats false
adb shell setprop debug.mtkcam.systrace.level 0
adb shell setprop debug.dump.enable false
adb shell setprop debug.dump 0
adb shell setprop debug.camera.log 0
adb shell setprop debug.ae.stat.log.level 0
adb shell setprop debug.ae.stat.perf.enable false
adb shell setprop debug.Stats 0
adb shell setprop debug.DumpCalls 0
adb shell setprop debug.af.systrace 0
adb shell setprop debug.awb.systrace.db.enable false
adb shell setprop debug.flicker.systrace false
adb shell setprop debug.flicker.log 0
adb shell setprop debug.pdsystrace 0
adb shell setprop debug.syncawbsystrace.enable false
adb shell setprop debug.trace.print.video false
adb shell setprop debug.trace.print.audio false
adb shell setprop debug.trace.info 0
adb shell setprop debug.gpu.dump.texture 0
adb shell setprop debug.sf.cpupolicy.log false
adb shell setprop debug.hwc.wdt_trace false
adb shell setprop debug.apusys.loglevel 0
adb shell setprop debug.awb.latency.log.level 0
adb shell setprop debug.awb_alg.log.level 0
adb shell setprop debug.edma.loglevel 0
adb shell setprop debug.ae.pline.table.log 0
adb shell setprop debug.ae_alg.log.level 0
adb shell setprop debug.atms.dump 0
adb shell setprop debug.eis.dumpdisplay 0
adb shell setprop debug.featureProfile.dump 0
adb shell setprop debug.flk_dump 0
adb shell setprop debug.fpipe.force.dump 0
adb shell setprop debug.hwc.dump_buf_log_enable false
adb shell setprop debug.ai3a_log.enable false
adb shell setprop debug.aiawb.ga.log.enable false
adb shell setprop debug.alsflk.log 0
adb shell setprop debug.awb.p1ggm.log.enable false
adb shell setprop debug.awb.sa.log.enable false
adb shell setprop debug.mediatek.vklayer.dump_analysis_enabled false
adb shell setprop debug.mediatek.vklayer.dump_blas_info_enabled false
adb shell setprop debug.mediatek.vklayer.dump_debug_enabled false
adb shell setprop debug.mediatek.vklayer.dump_debug_mem_at_QSubmit false
adb shell setprop debug.mediatek.vklayer.dump_debug_mem_enabled false
adb shell setprop debug.loglevel 0
adb shell setprop debug.log.enable false
adb shell setprop debug.thread_raw.log 0
adb shell setprop debug.apusyslog false
adb shell setprop debug.neuropilot.gpu.systrace 0
adb shell setprop debug.neuron.runtime.ProfilingLevel 0
adb shell setprop debug.neuron.runtime.EnableDebugger false
adb shell setprop debug.hwc.aibld_dump_enable false
adb shell setprop debug.tkflow.bokeh.log 0
adb shell setprop debug.tone.log.enable false
adb shell setprop debug.vpustream.loglevel 0
adb shell setprop debug.smvrb.loglevel 0
adb shell setprop debug.pipeline.trace 0
adb shell setprop debug.mtk_tflite.vlog 0
adb shell setprop debug.sensors.color.log 0
adb shell setprop debug.P1STT.log 0
adb shell setprop debug.af_alg.log.level 0
adb shell setprop debug.awb.sa.log.level 0
adb shell setprop debug.gpud.gl.state.error.dump 0
adb shell setprop debug.gpud.log 0
adb shell setprop debug.3alog.enable false
adb shell setprop debug.STEREO.Log 0
adb shell setprop debug.STEREO.dump 0
adb shell setprop debug.ThreadPool.log 0
::testing
adb shell setprop debug.edma.loglevel 0
adb shell setprop debug.sync3A.log 0
adb shell setprop debug.camera.3dnr.log.level 0
adb shell setprop debug.sync3AWrapper.log 0
adb shell setprop debug.sf.wdlog 0
adb shell setprop debug.sf.display_dejitter_log 0
adb shell setprop debug.sensors.flicker.log 0
adb shell setprop debug.tpi.s.log 0
adb shell setprop debug.pip.logLevel 0
adb shell setprop debug.EntryPool.log 0
adb shell setprop debug.log.rpt 0
adb shell setprop debug.ltm.smth.log.enable false
adb shell setprop debug.fsc.log_level 0
adb shell setprop debug.gpunn.enable_profiler false
adb shell setprop debug.hal3av3.log 0
adb shell setprop debug.pq.enable.trace false
adb shell setprop debug.pd.dump.enable false
adb shell setprop debug.p2f.dump.enable false
adb shell setprop debug.neuron.runtime.DumpVerbose 0
adb shell setprop debug.vendor.sys.camfilelock.log 0
:skiplogv
cls
::if something is wrong , revert this prop by reboot
adb shell setprop debug.vendor.gpu.record_sbwc false
adb shell setprop debug.egl.blobcache.multifile false
adb shell setprop debug.tracefpunwindoff 1
adb shell setprop log.tag.LAUNCHER_TRACE S > nul 2>&1
adb shell device_config put systemui com.android.systemui.coroutine_tracing false
adb shell setprop persist.log.tag.DisplayPowerController S > nul 2>&1
adb shell setprop debug.met_log_d.user null
adb shell cmd wifi set-verbose-logging disabled > nul 2>&1
adb shell device_config put profcollect_native_boot enabled false
adb shell setprop debug.sf.boot_animation false
adb shell setprop debug.sf.edge_extension_shader false
:::::::::::::::::::::::::::::::::::::::::::::::::::::::
::testing adb shell setprop debug.atrace.app_number 0::
::testing adb shell setprop debug.force_low_ram true ::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::
::changed
adb shell setprop debug.sf.prime_shader_cache.transparent_image_dimmed_layers false
adb shell setprop debug.sf.prime_shader_cache.solid_dimmed_layers false
adb shell setprop debug.sf.prime_shader_cache.shadow_layers false
adb shell setprop debug.egl.force_msaa false
adb shell setprop debug.sf.showupdates 0
adb shell setprop debug.sf.showcpu 0
adb shell setprop debug.sf.showbackground 0
adb shell setprop debug.sf.showfps 0
adb shell setprop debug.rs.debug 0
adb shell setprop debug.sf.show_refresh_rate_overlay_spinner 0
adb shell setprop debug.sf.show_refresh_rate_overlay_render_rate 0
adb shell setprop debug.sf.show_refresh_rate_overlay_in_middle 0
adb shell setprop debug.hwc.showfps 0
adb shell setprop debug.hwui.overdraw false
adb shell setprop debug.hwui.webview_overlays_enabled false
adb shell setprop debug.sf.enable_hwc_vds false
adb shell setprop debug.hwui.profile.maxframes 0
adb shell setprop debug.hwui.show_non_rect_clip hide
adb shell setprop debug.hwui.show_layers_updates false
adb shell setprop debug.assert 0
adb shell setprop debug.hwui.show_dirty_regions false
adb shell setprop debug.angle.capture.frame_start 0
adb shell setprop debug.rs.reduce 1
adb shell setprop debug.sf.gpuoverlay 0
adb shell setprop debug.stagefright.fps false
adb shell setprop debug.sf.disable_hwc_vds 1
adb shell setprop debug.hwc.simulate 0
adb shell setprop debug.enable_remote_input false
adb shell setprop debug.angle.markers 0
adb shell setprop debug.stagefright.experiments false
adb shell setprop debug.stagefright.enableshaping 0
::changed
adb shell cmd dropbox add-low-priority system_server
adb shell cmd dropbox add-low-priority system_server/Subject
adb shell cmd dropbox add-low-priority data_app_wtf
adb shell cmd dropbox add-low-priority storage_trim
adb shell cmd dropbox add-low-priority SYSTEM_BOOT
adb shell cmd dropbox add-low-priority SYSTEM_AUDIT
adb shell cmd dropbox add-low-priority system_server_wtf
adb shell cmd dropbox add-low-priority SYSTEM_LAST_KMSG
adb shell cmd dropbox set-rate-limit 20000000000000
adb shell device_config put runtime_native metrics.reporting-mods 0
adb shell device_config put runtime_native metrics.reporting-mods-server 0
adb shell device_config put runtime_native metrics.write-to-statsd false
adb shell device_config put runtime_native metrics.reporting-num-mods 0
adb shell device_config put runtime_native metrics.reporting-num-mods-server 0
adb shell device_config put runtime_native metrics.reporting-spec S
adb shell device_config put runtime_native metrics.reporting-spec-server S
adb shell device_config put odad enable_fa_stats_log_logging false
adb shell device_config put device_personalization_services
StatsLog__active_users_logger_enabled false
adb shell device_config put device_personalization_services
StatsLog__active_users_logger_non_persistent false
adb shell device_config put device_personalization_services
StatsLog__enable_new_logger_api false
adb shell device_config put adservices cobalt_logging_enabled false
adb shell device_config put adservices adservice_error_logging_enabled false
adb shell device_config put adservices measurement_enable_app_package_name_logging
false
adb shell device_config put adservices measurement_enable_source_debug_report false
adb shell device_config put odad westworld_logging false
adb shell device_config put odad log_error_model_id_westworld_enabled false
adb shell device_config put odad log_model_id_westworld false
adb shell device_config put odad log_model_version_westworld false
adb shell device_config put on_device_personalization
odp_enable_client_error_logging false
adb shell device_config put on_device_personalization
fcp_enable_client_error_logging false
adb shell device_config put on_device_personalization
odp_background_jobs_logging_enabled false
adb shell device_config put on_device_personalization
fcp_enable_background_jobs_logging false
adb shell device_config put device_personalization_services
Captions__enable_clearcut_logging false
adb shell device_config put device_personalization_services
PlatformLogging__enable_metric_wise_populations false
adb shell device_config put device_personalization_services
Superpacks__use_logging_listener false
adb shell device_config put device_personalization_services
Overview__enable_pir_clearcut_logging false
adb shell device_config put device_personalization_services
Overview__enable_pir_westworld_logging false
:onlogss
cls
title Logs/etc : On
adb shell device_config put device_personalization_services
Overview__enable_pir_westworld_logging true
adb shell device_config put device_personalization_services
Overview__enable_pir_clearcut_logging true
adb shell settings delete global dropbox:dumpsys:procstats > nul 2>&1
adb shell settings delete global dropbox:dumpsys:usagestats > nul 2>&1
adb shell setprop security.perf_harden 1
adb shell settings delete global enable_opengl_traces > nul 2>&1
adb shell device_config put odad log_model_version_westworld true
adb shell device_config put odad log_model_id_westworld true
adb shell device_config put odad log_error_model_id_westworld_enabled true
adb shell device_config put device_personalization_services
Superpacks__use_logging_listener true
adb shell device_config put on_device_personalization
fcp_enable_background_jobs_logging true
adb shell device_config put device_personalization_services
Captions__enable_clearcut_logging true
adb shell device_config put device_personalization_services
PlatformLogging__enable_metric_wise_populations true
adb shell device_config put runtime_native metrics.reporting-spec 1,5,30,60,600
adb shell device_config put runtime_native metrics.reporting-spec-server
1,10,60,3600,*
adb shell device_config put runtime_native metrics.write-to-statsd true
adb shell device_config put runtime_native metrics.reporting-num-mods 100
adb shell device_config put runtime_native metrics.reporting-num-mods-server 100
adb shell device_config put runtime_native metrics.reporting-mods 2
adb shell device_config put runtime_native metrics.reporting-mods-server 2
adb shell settings delete global netstats_sample_enabled > nul 2>&1
adb shell settings put global bluetooth_disabled_profiles 0
adb shell wm tracing level trim > nul 2>&1
adb shell settings delete global binder_calls_stats > nul 2>&1
adb shell settings delete global foreground_service_starts_logging_enabled_uri >
nul 2>&1
adb shell settings delete global activity_starts_logging_enabled_uri > nul 2>&1
adb shell device_config delete profcollect_native_boot enabled > nul 2>&1
adb shell setprop persist.log.tag.DisplayPowerController ''
adb shell device_config delete systemui com.android.systemui.coroutine_tracing >
nul 2>&1
adb shell settings delete global nene_log > nul 2>&1
adb shell settings delete global wifi_link_speed_metrics_enabled > nul 2>&1
adb shell settings delete global wifi_is_unusable_event_metrics_enabled > nul 2>&1
adb shell settings delete global wait_for_debugger > nul 2>&1
adb shell settings delete global contacts_database_wal_enabled > nul 2>&1
adb shell settings delete global logcat_for_system_server_anr > nul 2>&1
adb shell settings delete global enable_gnss_raw_meas_full_tracking > nul 2>&1
adb shell settings delete force_enable_pss_profiling > nul 2>&1
adb shell settings delete verbose_logging_level_disabled > nul 2>&1
adb shell settings delete enable_gpu_debug_layers > nul 2>&1
adb shell cmd autofill set max_visible_datasets 10
adb shell settings delete global sys_traced > nul 2>&1
adb shell settings delete system user_log_enabled > nul 2>&1
adb shell settings delete system window_orientation_listener_log > nul 2>&1
adb shell settings delete global enable_automatic_system_server_heap_dumps > nu
2>&1
adb shell settings delete global sys.wifitracing.started > nul 2>&1
adb shell settings delete global opengl_trace > nul 2>&1
adb shell settings delete global settings_enable_monitor_phantom_procs > nul 2>&1
adb shell settings delete global dropbox_max_files > nul 2>&1
adb shell settings delete global dropbox:dumpsys:usagestats > nul 2>&1
adb shell settings delete global dropbox:dumpsys:procstats > nul 2>&1
adb shell settings delete global activity_starts_logging_enabled > nul 2>&1
adb shell settings delete global enable_diskstats_logging > nul 2>&1
adb shell settings delete global sys.lmk.reportkills > nul 2>&1
adb shell settings delete global foreground_service_starts_logging_enabled > nul
2>&1
adb shell settings delete global wifi_verbose_logging_enabled > nul 2>&1
adb shell settings delete global enable_automatic_system_server_heap_dumps > nul
2>&1
adb shell cmd looper_stats enable
adb shell settings delete system anr_debugging_mechanism > nul 2>&1
adb shell setprop persist.traced.enable 1 > nul 2>&1
adb shell settings delete global idle_loglevel > nul 2>&1
adb shell settings delete global persist.sampling_profiler > nul 2>&1
adb shell settings delete system Logcat.live > nul 2>&1
adb shell setitngs delete system remote_control > nul 2>&1
adb shell settings delete system log.closeguard.Animation > nul 2>&1
adb shell cmd dropbox add-low-priority system_server
adb shell cmd dropbox add-low-priority system_server/Subject
adb shell cmd dropbox add-low-priority data_app_wtf
adb shell cmd dropbox add-low-priority storage_trim
adb shell cmd dropbox add-low-priority SYSTEM_BOOT
adb shell cmd dropbox add-low-priority SYSTEM_AUDIT
adb shell cmd dropbox add-low-priority system_server_wtf
adb shell cmd dropbox add-low-priority SYSTEM_LAST_KMSG
adb shell cmd dropbox set-rate-limit 2000
adb shell setprop persist.traced_perf.enable 1 > nul 2>&1
adb shell device_config put odad enable_fa_stats_log_logging false
adb shell device_config put device_personalization_services
StatsLog__active_users_logger_enabled true
adb shell device_config put device_personalization_services
StatsLog__active_users_logger_non_persistent true
adb shell device_config put device_personalization_services
StatsLog__enable_new_logger_api true
adb shell device_config put adservices cobalt_logging_enabled true
adb shell device_config put adservices adservice_error_logging_enabled true
adb shell device_config put odad westworld_logging true
adb shell device_config put adservices measurement_enable_source_debug_report true
adb shell cmd display ab-logging-enable > nul 2>&1
adb shell cmd display dwb-logging-enable > nul 2>&1
adb shell cmd display dmd-logging-enable > nul 2>&1
adb shell device_config put on_device_personalization
odp_enable_client_error_logging true
adb shell device_config put adservices measurement_enable_app_package_name_logging
true
adb shell device_config put on_device_personalization
fcp_enable_client_error_logging true
adb shell logcat -c
adb shell logcat -G 64k
echo.
echo.
echo [%r%!%w%] Please Restart Device To Finish The Process
echo.
echo.
timeout /t 2 /nobreak > nul
echo Done , Press Any Button To Go Back
pause > nul
goto Battery
:saverpower
@echo off
cls
title Toggle Power Saver
echo.
echo.
echo Toggle Your Power Saver Here
echo.
echo.
echo [%r%1%w%] Off
echo [%r%2%w%] On
echo [%r%3%w%] Back
set /p toggle="Choose An Option >> "
if %toggle% == 1 goto offsv
if %toggle% == 2 goto onsv
if %toggle% == 3 goto Battery
:offsv
@echo off
cls
title Power Saver : Off
adb shell settings delete global low_power
adb shell settings delete global low_power_sticky
echo Presss Any Button To Go Back
pause > nul
goto Battery
:onsv
@echo off
cls
title Power Saver : On
adb shell settings put global low_power 1
adb shell settings put global low_power_sticky 0
echo Press Any Button To Go Back
pause > nul
goto Battery
:animation
@echo off
cls
title Toggle Animation
echo.
echo.
echo Toggle Your Animation Here
echo.
echo [%r%1%w%] Off
echo [%r%2%w%] On
echo [%r%3%w%] Back
set /p toggle="Choose An Option >> "
if %toggle% == 1 goto offani
if %toggle% == 2 goto onani
if %toggle% == 3 goto Battery
:offani
@echo off
cls
title Animation : Off
adb shell settings put global enable_back_animation 0
adb shell settings put global fancy_ime_animations 0
adb shell settings put secure accessibility_disable_animations 1
adb shell settings put global recent_app_transition_duration_scale 0
adb shell settings put global recent_app_transition_scale 0
adb shell settings put global app_transition_animation_duration_scale 0
adb shell settings put global app_transition_animation_scale 0
adb shell settings put global reduce_transitions 1
adb shell settings put global shadow_animation_scale 0
adb shell settings put global remove_animations 1
adb shell settings put global fade_duration 0
adb shell settings put secure reduce_motion 1
adb shell settings put global animator_slow_preview 0
adb shell settings put global animation_scale_animator_duration 0.0
adb shell settings put global animation_scale_window_transition 0
adb shell settings put global activity_open_enter_animation 0
adb shell settings put global activity_open_exit_animation 0
adb shell settings put global activity_close_enter_animation 0
adb shell settings put global activity_close_exit_animation 0
adb shell settings put global app_transition_scale 0.0
adb shell settings put global app_transition_duration_scale 0.0
adb shell settings put global app_close_animate_level 0
adb shell settings put global windows_anim_duration_scale 0.0
adb shell settings put global windows_anim_scale 0.0
adb shell settings put global windows_transition_anim_scale 0.0
adb shell settings put global windows_transition_animation_duration_scale 0.0
adb shell settings put global window_animation_duration_scale 0.0
adb shell settings put global transition_animation_duration_scale 0.0
adb shell settings put global display_animation_duration_scale 0.0
adb shell settings put global display_animation_scale 0.0
adb shell settings put global window_move_animation_duration_scale 0.0
adb shell settings put global window_move_animation_scale 0.0
adb shell settings put global window_animation_scale 0.0
adb shell settings put global transition_animation_scale 0.0
adb shell settings put global animator_duration_scale 0.0
adb shell settings put global accessibility_reduce_transparency 1
adb shell settings put global disable_window_blurs 1
adb shell device_config put systemui window_cornerRadius 0
adb shell device_config put systemui window_blur 0
adb shell device_config put systemui window_shadow 0
adb shell device_config put systemui reduce_animations true
adb shell device_config put battery_saver reduce_animations true
adb shell setprop debug.hwui.disable.motionblur true
adb shell setprop debug.animation_scale 0
adb shell setprop debug.hwui.disable_transparency true
adb shell setprop debug.usercontroller.disable_user_switching_dialog_animations
true
adb shell setprop debug.renderengine.blur_algorithm none
adb shell setprop debug.sf.nobootanimation 1
adb shell setprop debug.sf.boot_animation false
adb shell setprop debug.hwui.render_dirty_regions false
echo Press Any Button To Go Back
pause > nul
goto Battery
:onani
@echo off
cls
title Animation : On
adb shell settings delete global enable_back_animation > nul 2>&1
adb shell settings delete global fancy_ime_animations > nul 2>&1
adb shell settings delete secure accessibility_disable_animations > nul 2>&1
adb shell settings delete global recent_app_transition_duration_scale > nul 2>&1
adb shell settings delete global recent_app_transition_scale > nul 2>&1
adb shell settings delete global app_transition_animation_duration_scale > nul 2>&1
adb shell settings delete global app_transition_animation_scale > nul 2>&1
adb shell settings delete global reduce_transitions > nul 2>&1
adb shell settings delete global shadow_animation_scale > nul 2>&1
adb shell settings delete global remove_animations > null 2>&1
adb shell settings delete global fade_duration > nul 2>&1
adb shell settings delete secure reduce_motion > nul 2>&1
adb shell settings delete global animator_slow_preview > nul 2>&1
adb shell settings delete global animation_scale_animator_duration > nul 2>&1
adb shell settings delete global animation_scale_window_transition > nul 2>&1
adb shell settings delete global activity_open_enter_animation > nul 2>&1
adb shell settings delete global activity_open_exit_animation > nul 2>&1
adb shell settings delete global activity_close_enter_animation > nul 2>&1
adb shell settings delete global activity_close_exit_animation > nul 2>&1
adb shell settings delete global app_transition_scale > nul 2>&1
adb shell settings delete global app_transition_duration_scale > nul 2>&1
adb shell settings delete global app_close_animate_level > nul 2>&1
adb shell settings delete global windows_anim_duration_scale > nul 2>&1
adb shell settings delete global windows_anim_scale > nul 2>&1
adb shell settings delete global windows_transition_anim_scale > nul 2>&1
adb shell settings delete global windows_transition_animation_duration_scale > nul
2>&1
adb shell settings delete global window_animation_duration_scale > nul 2>&1
adb shell settings delete global transition_animation_duration_scale > nul 2>&1
adb shell settings delete global display_animation_duration_scale > nul 2>&1
adb shell settings delete global display_animation_scale > nul 2>&1
adb shell settings delete global window_move_animation_duration_scale > nul 2>&1
adb shell settings delete global window_move_animation_scale > nul 2>&1
adb shell settings put global window_animation_scale 1.0 > nul 2>&1
adb shell settings put global transition_animation_scale 1.0 > nul 2>&1
adb shell settings put global animator_duration_scale 1.0 > nul 2>&1
adb shell settings put global disable_window_blurs 0 > nul 2>&1
adb shell settings put global accessibility_reduce_transparency 0 > nul 2>&1
adb shell device_config delete systemui window_cornerRadius > nul 2>&1
adb shell device_config delete systemui window_blur > nul 2>&1
adb shell device_config delete systemui window_shadow > nul 2>&1
adb shell device_config delete systemui reduce_animations > nul 2>&1
adb shell device_config delete battery_saver reduce_animations > nul 2>&1
echo.
echo.
echo [%r%!%w%] Please Restart Device To Finish The Process
echo.
echo.
timeout /t 2 /nobreak > nul
echo Press Any Button To Go Back
pause > nul
goto Battery
::wifisettings
:autowifi
@echo off
cls
title Toggle Auto Wifi
echo.
echo.
echo Toggle Auto Wifi Here
echo.
echo [%r%1%w%] Off
echo [%r%2%w%] On
echo [%r%3%w%] Back
set /p toggle="Choose An Option >> "
if %toggle% == 1 goto offaut
if %toggle% == 2 goto onaut
if %toggle% == 3 goto Battery
:offaut
@echo off
cls
title Auto Wifi : Off
adb shell settings put global wifi_supplicant_scan_interval_ms 240000
adb shell settings put global wifi_networks_available_notification_on 0 default
adb shell settings put global wifi_watchdog_on 0 default
adb shell settings put global wifi_watchdog_poor_network_test_enabled 0 default
adb shell settings put global auto_wifi 0 default > nul 2>&1
adb shell settings put global wifi_scan_always_enabled 0 default > nul 2>&1
adb shell settings put global bluetooth_scan_always_enabled 0 default > nul 2>&1
adb shell settings put global network_recommendations_enabled 0 default > nul 2>&1
adb shell settings put global netstats_enabled 0 > nul 2>&1
adb shell settings put global network_scoring_ui_enabled 0 > nul 2>&1
adb shell settings put global wifi_watchdog_poor_network_test_enabled 0 > nul 2>&1
echo Press Any Button To Go Back
pause > nul
goto Battery
:onaut
@echo off
cls
title Auto Wifi : On
adb shell settings delete global wifi_supplicant_scan_interval_ms > nul 2>&1
adb shell settings delete global wifi_networks_available_notification_on > nul 2>&1
adb shell settings delete global wifi_watchdog_on > nul 2>&1
adb shell settings delete global wifi_watchdog_poor_network_test_enabled > nul 2>&1
adb shell settings put global auto_wifi 1 default > nul 2>&1
adb shell settings put global wifi_scan_always_enabled 1 default > nul 2>&1
adb shell settings put global bluetooth_scan_always_enabled 1 default > nul 2>&1
adb shell settings delete global network_recommendations_enabled > nul 2>&1
adb shell settings put global netstats_enabled 1 > nul 2>&1
adb shell settings put global network_scoring_ui_enabled 1 > nul 2>&1
adb shell settings delete global wifi_watchdog_poor_network_test_enabled > nul 2>&1
::sync
:sync
cls
title Toggle Sync
echo.
echo.
echo Toggle Sync Here
echo.
echo [%r%1%w%] Off
echo [%r%2%w%] On
echo [%r%3%w%] Back
set /p toggle="Choose An Option >> "
if %toggle% == 1 goto offsync
if %toggle% == 2 goto onsync
if %toggle% == 3 goto Battery
:offsync
@echo off
cls
title Sync : Off
adb shell settings put global auto_sync 0 default
adb shell settings put global master_sync_enabled 0 default
adb shell device_config set_sync_disabled_for_tests persistent > nul 2>&1
echo Press Any Button To Go Back
pause > nul
goto Battery
:onsync
@echo off
cls
title Sync : On
adb shell settings put global auto_sync 1 default
adb shell settings put global master_sync_enabled 1 default
adb shell device_config set_sync_disabled_for_tests none > nul 2>&1
echo Press Any Button To Go Back
pause > nul
goto Battery
::motion
:motion
@echo off
cls
title Toggle Motion
echo.
echo.
echo Toggle Your Motion Here
echo.
echo [%r%1%w%] Off
echo [%r%2%w%] On
echo [%r%3%w%] Back
set /p toggle="Choose An Option >> "
if %toggle% == 1 goto offmotion
if %toggle% == 2 goto onmotion
if %toggle% == 3 goto Battery
:offmotion
@echo off
cls
title Motion : Off
adb shell settings put system master_motion 0 default > nul 2>&1
adb shell settings put system motion_engine 0 default > nul 2>&1
adb shell settings put system air_motion_engine 0 default > nul 2>&1
adb shell settings put system air_motion_wake_up 0 default > nul 2>&1
echo Press Any Button To Go Back
pause > nul
goto Battery
:onmotion
@echo off
cls
title Motion : On
::zram
:zram
@echo off
cls
title Toggle ZRAM
echo.
echo.
echo Toggle Your ZRAM Here
echo.
echo [%r%1%w%] Off
echo [%r%2%w%] On
echo [%r%3%w%] Back
set /p toggle="Choose An Option >> "
if %toggle% == 1 goto offzram
if %toggle% == 2 goto onzram
if %toggle% == 3 goto Battery
:offzram
@echo off
cls
title ZRAM : Off
adb shell settings put global zram 0 default
adb shell settings put global zram_enabled 0 default
echo Press Any Button To Go Back
pause > nul
goto Battery
:onzram
@echo off
cls
title ZRAM : On
adb shell settings put global zram 1 default
adb shell settings put global zram_enabled 1 default
echo Press Any Buttn To Go Back
pause > nul
goto Battery
::extreme
:extremepower
@echo off
cls
title Toggle Extreme Power Saver
echo.
echo.
echo Toggle Your Extreme Power Saver Here
echo.
echo [%r%1%w%] Off
echo [%r%2%w%] On
echo [%r%3%w%] Back
set /p toggle="Choose An Option >> "
if %toggle% == 1 goto offsvpp
if %toggle% == 2 goto onsvpp
if %toggle% == 3 goto Battery
:offsvpp
@echo off
cls
title Exetrem Power Saver : Off
adb shell device_config delete activity_manager
bg_current_drain_auto_restrict_abusive_apps_enabled
adb shell device_config delete activity_manager bg_auto_restrict_abusive_apps
adb shell cmd power set-adaptive-power-saver-enabled false
adb shell cmd power set-mode 0
echo.
echo.
echo [%r%!%w%] Please Restart Device To Finish The Process
echo.
echo.
timeout /t 2 /nobreak > nul
:senderror
cls
title Toggle Send Error
echo.
echo.
echo Toggle Your Send Error Here
echo.
echo [%r%1%w%] Off
echo [%r%2%w%] On
echo [%r%3%w%] Back
set /p toggle="Choose An Option >> "
if %toggle% == 1 goto offerr
if %toggle% == 2 goto onerr
if %toggle% == 3 goto Battery
:offerr
cls
title Send Error : Off
adb shell settings put secure send_action_app_error 0 default > nul 2>&1
adb shell settings put global send_action_app_error 0 default > nul 2>&1
adb shell settings put global enable_diagnostic_data 0 default > nul 2>&1
adb shell settings put system send_security_reports 0 default > nul 2>&1
adb shell settings put secure upload_debug_log_pref 0 default > nul 2>&1
adb shell settings put secure upload_log_pref 0 default > nul 2>&1
adb shell settings put system profiler.force_disable_ulog 1 > nul 2>&1
adb shell settings put system profiler.force_disable_err_rpt 1 > nul 2>&1
adb shell settings put secure usage_metrics_marketing_enabled 0 > nul 2>&1
adb shell settings put secure USAGE_METRICS_UPLOAD_ENABLED 0 > nul 2>&1
echo Done , Press Any Button To Go Back
pause > nul
goto Battery
:onerr
cls
title Send Error : On
adb shell settings put secure send_action_app_error 1 default > nul 2>&1
adb shell settings put global send_action_app_error 1 default > nul 2>&1
adb shell settings put global enable_diagnostic_data 1 default > nul 2>&1
adb shell settings put system send_security_reports 1 default > nul 2>&1
adb shell settings delete secure upload_debug_log_pref > nul 2>&1
adb shell settings delete secure upload_log_pref > nul 2>&1
adb shell settings delete system profiler.force_disable_ulog > nul 2>&1
adb shell settings delete system profiler.force_disable_err_rpt > nul 2>&1
adb shell settings delete secure usage_metrics_marketing_enabled > nul 2>&1
adb shell settings delete secure USAGE_METRICS_UPLOAD_ENABLED > nul 2>&1
echo Done , Press Any BUtton To Go Back
pause > nul
goto Battery
:toggleprofilling
cls
title Toggle Lock Profiling
echo.
echo.
echo Toggle Your Lock Profiling Here
echo.
echo [%r%1%w%] Off
echo [%r%2%w%] On
echo [%r%3%w%] Back
set /p toggle="Choose An Option >> "
if %toggle% == 1 goto offprof
if %toggle% == 2 goto onprof
if %toggle% == 3 goto Battery
:offprof
cls
title Lock Profiling : Off
adb shell device_config put runtime_native_boot disable_lock_profiling true
echo Done , Press Any Button To Go Back
pause > nul
goto Battery
:onprof
cls
title Lock Profiling : ON
adb shell device_config put runtime_native_boot disable_lock_profiling false
echo Done , Press Any Button To Go Back
pause > nul
goto Battery
rem gaming
:Gaming
@echo off
title Gaming Mode
cls
echo.
echo.
echo %d%██████╗ ██████╗██╗ ██╗
echo ██╔══██╗██╔════╝╚██╗██╔╝
echo ██║ ██║██║ ╚███╔╝ %w%
echo ██║ ██║██║ ██╔██╗
echo ██████╔╝╚██████╗██╔╝ ██╗
echo ╚═════╝ ╚═════╝╚═╝ ╚═╝
echo ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
for /f "tokens=3,4,5,6,7 delims= " %%a in ('adb shell uptime') do echo
[%g%+%w%]Uptime: %%a %%b %%c
for /f "tokens=1 delims=:" %%i in ('adb shell dumpsys cpuinfo') do set cpucheck=%%i
echo [%g%+%w%]%cpucheck% LOAD | findstr TOTAL
echo ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
echo.
echo.
echo.
echo %r%[%w%1%r%]%w% Toggle GMS
echo %r%[%w%2%r%]%w% Toggle Thermal-Service
echo %r%[%w%3%r%]%w% Toggle Package Verifier
echo %r%[%w%4%r%]%w% Toggle Game-Overlay
echo %r%[%w%5%r%]%w% Toggle Performance
echo %r%[%w%6%r%]%w% Back
set /p game="Choose An Option >> "
rem gms
:gms
@echo off
cls
title Toggle GMS
echo.
echo.
echo Toggle Your GMS Here
echo.
echo [%r%1%w%] Off
echo [%r%2%w%] On
echo [%r%3%w%] Back
:offgms
@echo off
cls
adb shell am force-stop com.google.android.gms
adb shell pm disable-user --user 0 com.google.android.gms
adb shell settings put global zen_mode 4
adb shell cmd appops set com.google.android.gms RUN_ANY_IN_BACKGROUND ignore
adb shell cmd appops set com.google.android.gms RUN_IN_BACKGROUND ignore
adb shell cmd appops set com.google.android.gms WAKE_LOCK ignore
adb shell cmd appops set com.google.android.gms START_FOREGROUND ignore
adb shell cmd appops set com.google.android.gms INSTANT_APP_START_FOREGROUND ignore
adb shell am set-inactive --user 0 com.google.android.gms true
adb shell am set-standby-bucket --user 0 com.google.android.gms never
title GMS : Off
echo Press Any Button To Go Back
pause > nul
goto Gaming
:ongms
@echo off
cls
adb shell pm enable com.google.android.gms
adb shell settings put global zen_mode 0
adb shell cmd appops set com.google.android.gms RUN_ANY_IN_BACKGROUND allow
adb shell cmd appops set com.google.android.gms RUN_IN_BACKGROUND allow
adb shell cmd appops set com.google.android.gms WAKE_LOCK allow
adb shell cmd appops set com.google.android.gms START_FOREGROUND allow
adb shell cmd appops set com.google.android.gms INSTANT_APP_START_FOREGROUND allow
adb shell am set-inactive --user 0 com.google.android.gms false
adb shell am set-standby-bucket --user 0 com.google.android.gms active
title GMS : On
echo Press Any Button To Go Back
pause > nul
goto Gaming
rem thermal
:thermal
@echo off
cls
title Toggle Thermal
echo.
echo.
echo Toggle Thermal Service
echo.
echo [%r%1%w%] Process To Setting Thermal
echo [%r%2%w%] Go Back
:settingthermal
@echo off
cls
echo Put A Number Between 0 To 6 To Change
echo How Thermal Service Work!
set /p kb=">> "
cls
adb shell cmd thermalservice override-status %kb%
echo Press Any Button To Go Back.
pause > nul
goto Gaming
:offpck
@echo off
cls
title Package Verifier : Off
adb shell settings put global package_verifier_enable 0
echo Press Any Button To Go Back
pause > nul
goto Gaming
:onpck
@echo off
cls
title Package Verifier : On
adb shell settings put global package_verifier_enable 1
echo Press Any Button To Go Back
pause > nul
goto Gaming
rem game-overlay
:overlay
@echo off
cls
title Setting Game-Overlay
echo.
echo.
echo.
echo %b%[Remove]%w% 1
echo %b%[Low]%w% 2
echo %b%[Medium]%w% 3
echo %b%[Back] %w% 4
:removeset
cls
title Remove Settings
set /p package="Put Your Package Name Here >> "
adb shell device_config delete game_overlay %package% > nul
adb shell cmd game reset --user 0 %package%
cls
echo.
echo.
echo [%r%!%w%] If %package% Is Glitching , Please Clear %package% Cache And Try it
again.
echo.
echo.
echo %package% Settings Is Removed , Press Any Button To Go Back
pause > nul
goto Gaming
:low
@echo off
cls
title Low Settings
set /p package="Put Your Package Name Here >> "
adb shell device_config put game_overlay %package% mode=1
adb shell cmd game downscale 0.55 %package%
cls
echo.
echo.
echo [%r%!%w%] If %package% Is Glitching , Please Clear %package% Cache And Try it
again.
echo.
echo.
echo Press Any Button To Go Back
pause > nul
goto Gaming
:med
@echo off
cls
title Medium Settings
set /p package="Put Your Package Name Here >> "
adb shell device_config put game_overlay %package% mode=1
adb shell device_config get game_overlay %package%
adb shell cmd game downscale 0.75 %package%
cls
echo.
echo.
echo [%r%!%w%] If %package% Is Glitching , Please Clear %package% Cache And Try it
again.
echo.
echo.
echo Press Any Button To Go Back
pause > nul
goto Gaming
rem Performance
:performance
@echo off
cls
title Toggle Performance
echo.
echo.
echo Toggle Your Performance Here
echo.
echo [%r%1%w%] Toggle
echo [%r%2%w%] Back
set /p kb="Choose An Option >> "
if %kb% == 1 goto toggleperf
if %kb% == 2 goto Gaming
:toggleperf
cls
title Performance Mode
echo.
echo.
echo [%r%1%w%] Off
echo [%r%2%w%] On
echo [%r%3%w%] Back
:offperf
@echo off
cls
title Performance Mode : Off
adb shell device_config delete performance cpu_boost > nul 2>&1
adb shell device_config delete performance gpu_boost > nul 2>&1
adb shell settings delete global restricted_device_performance > nul 2>&1
adb shell settings delete global boost_cpu > nul 2>&1
adb shell settings delete global enhanced_processing > nul 2>&1
adb shell settings delete global enable_hw_3d > nul 2>&1
adb shell settings delete global enable_hw_2d > nul 2>&1
adb shell settings delete system hw_accelerating > nul 2>&1
adb shell settings delete system performance_mode_on > nul 2>&1
adb shell settings delete system high_priority > nul 2>&1
adb shell settings delete system persist_sys.NV_FPSLIMIT > nul 2>&1
adb shell settings delete system persist_sys.NV_POWERMODE > nul 2>&1
adb shell settings delete system persist_sys.NV_PROFVER > nul 2>&1
adb shell settings delete system persist_sys.NV_STEREOCTRL > nul 2>&1
adb shell settings delete system persist_sys.NV_STEREOSEPCHG > nul 2>&1
adb shell settings delete system persist_sys.NV_STEREOSEP > nul 2>&1
adb shell settings delete system persist_sys.purgeable_assets > nul 2>&1
adb shell settings delete global activity_manager_constants > nul 2>&1
adb shell device_config put runtime_native_boot iorap_readahead_enable false > nul
2>&1
echo.
echo.
echo [%r%!%w%] Please Restart Device To Finish The Process
echo.
echo.
timeout /t 2 /nobreak > nul
echo Press Any Button To Go Back
pause > nul
goto Gaming
:onperf
@echo off
cls
title Performance Mode : On
echo.
echo.
echo [%r%!%w%] All Saving Power Mode Is Disabled!
echo [%r%!%w%] If You Want To Enable Power Saver Again , You Need To Disable
Performance Mode
echo [%r%!%w%] And Enable Power Saver Mode In Battery Mode
::disablepowersaver
adb shell cmd power set-mode 0 > nul 2>&1
adb shell cmd thermalservice override-status 0
adb shell settings put global low_power 0
adb shell cmd power set-adaptive-power-saver-enabled false
adb shell setprop debug.power_management_mode pref_max
adb shell cmd shortcut reset-all-throttling > nul 2>&1
::disablepowersaver
:logo
echo.
echo.
echo %d%██████╗ ██████╗██╗ ██╗
echo ██╔══██╗██╔════╝╚██╗██╔╝
echo ██║ ██║██║ ╚███╔╝ %w%
echo ██║ ██║██║ ██╔██╗
echo ██████╔╝╚██████╗██╔╝ ██╗
echo ╚═════╝ ╚═════╝╚═╝ ╚═╝
echo.
echo.
echo.
@echo off