0% found this document useful (0 votes)
403 views51 pages

DCX

The document is a batch script for managing Android devices using ADB (Android Debug Bridge). It provides a menu-driven interface for various functions such as checking device information, optimizing settings, and rebooting the device. The script includes features for benchmarking and setting properties related to the device's performance.

Uploaded by

sauqi2019
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
403 views51 pages

DCX

The document is a batch script for managing Android devices using ADB (Android Debug Bridge). It provides a menu-driven interface for various functions such as checking device information, optimizing settings, and rebooting the device. The script includes features for benchmarking and setting properties related to the device's performance.

Uploaded by

sauqi2019
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 51

@echo off

chcp 65001 > nul


mode 100,37
title DCX Menu
cd adb
set g=#[92m
set r=#[91m
set red=#[04m
set l=#[1m
set w=#[0m
set b=#[94m
set m=#[95m
set p=#[35m
set c=#[35m
set d=#[96m
set u=#[0m
set z=#[91m
set n=#[96m
set y=#[40;33m
set g2=#[102m
set r2=#[101m
set t=#[40m
set gold=#[93m

echo.
echo.
echo.
echo %d% " ________ ________ ___ ___ "
echo "|\ ___ \ |\ ____\ |\ \ / /|"
echo "\ \ \_|\ \\ \ \___| \ \ \/ / /"
echo " \ \ \ \\ \\ \ \ \ \ / / "
echo " \ \ \_\\ \\ \ \____ / \/ "%w%
echo " \ \_______\\ \_______\ / /\ \ "
echo " \|_______| \|_______|/__/ /\ __\ "
echo " |__|/ \|__| "

echo.
echo.
echo.

echo %m%DCX Developed By HungHoaBinh%d%


echo %r%Use It At Your Own Risk%w%
echo %y%A Restart Is Required If Something Is Misbehaving!
echo.
echo.
echo %w%Press Any Button To Continue
pause > nul
title . . . . .
adb start-server
goto menu
:menu
cls

title Main Menu


echo.
echo.
echo %d%██████╗ ██████╗██╗ ██╗
echo ██╔══██╗██╔════╝╚██╗██╔╝
echo ██║ ██║██║ ╚███╔╝ %w%
echo ██║ ██║██║ ██╔██╗
echo ██████╔╝╚██████╗██╔╝ ██╗
echo ╚═════╝ ╚═════╝╚═╝ ╚═╝
echo ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
echo [%b%+%w%] Information
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
for /f "tokens=1,2,3" %%a in ('adb shell date') do echo [%g%+%w%]%%a %%b
%%c
echo [%g%+%w%]%cpucheck% LOAD | findstr TOTAL
echo ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
echo.
echo.
echo.
echo %r%Gaming%w% %gold%Battery%w% %g%Optimize
Android%w%
echo [1] [2] [3]
echo.
echo %d%Auto%w% %d%CheckSetting%w% %d%Github
%w%
echo [4] [5] [6]
echo.
echo.
echo %b%Reboot%w% %b%Exit%w% %b%Shell
%w%
echo [7] [8] [9]
echo.
echo.
echo. %b%Benchmark%w%
echo [10]
echo.
set /p kb=" Choose An Option >> "

if %kb% == 1 goto Gaming


if %kb% == 2 goto Battery
if %kb% == 3 goto Optimize
if %kb% == 4 goto Auto
if %kb% == 5 goto Check
if %kb% == 6 goto github
if %kb% == 7 goto reboot
if %kb% == 8 goto exit
if %kb% == 9 goto shell
if %kb% == 10 goto benchmark

: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

set /p kb="Choose An Option >> "


if %kb% == 1 goto setupautorun
if %kb% == 2 goto menu

: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 >> "

if %set% == 1 goto sf60


if %set% == 2 goto sf90
if %set% == 3 goto sf120
if %set% == 4 goto removesf
if %set% == 5 goto Optimize

: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%

set /p k="Choose An Option >> "


if %k% == 1 goto sdgb
if %k% == 2 goto Optimize

: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

set /p set="Choose An Option >> "


if %set% == 1 goto saverpower
if %set% == 2 goto animation
if %set% == 3 goto autowifi
if %set% == 4 goto sync
if %set% == 5 goto motion
if %set% == 6 goto zram
if %set% == 7 goto extremepower
if %set% == 8 goto senderror
if %set% == 9 goto toggleprofilling
if %set% == 10 goto togglelogs
if %set% == 11 goto nextpage
if %set% == 12 goto menu

: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

set /p conx="Choose An Option >> "


if %conx% == 1 goto skiplogv
if %conx% == 2 goto mainlogv
if %conx% == 3 goto Battery

: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

adb shell setprop debug.trace.p2.Cropper 0


adb shell setprop debug.trace.p2.CaptureNode 0
adb shell setprop debug.trace.p2.LMVInfo 0
adb shell setprop debug.trace.p2.Streaming_VSDOF 0
adb shell setprop debug.systrace.p2 0
adb shell setprop debug.sf.show_msync2_trace false
::testing

::debugprop from tecno pova 6 neo

: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

adb shell setprop debug.perf_event_max_sample_rate 10


adb shell setprop debug.perf_event_mlock_kb 4
adb shell setprop debug.perf_cpu_time_max_percent 1
adb shell setprop security.perf_harden 1
adb shell setprop security.perf_harden 0
adb shell setprop debug.lldb-rpc-server 0
adb shell setprop debug.MB.running 0

::if something is wrong , revert this propt by reboot

adb shell setprop debug.vendor.uxProgram FALSE


adb shell setprop log.tag.event OFF
adb shell setprop log.tag S
adb shell setprop log.tag.ALL S
adb shell setprop log.tag.APM_AudioPolicyManager S
adb shell setprop log.tag.stats_log S
adb shell setprop log.tag.GAv4 S
adb shell setprop log.tag.FA S
adb shell setprop log.tag.FA-SVC S
adb shell setprop log.tag.SQLiteLog S
adb shell setprop log.tag.SQLiteStatements S
adb shell setprop log.tag.MParticle S
adb shell setprop log.tag.ActivityManager S
adb shell setprop log.tag.SystemServer S
adb shell setprop log.tag.PackageManager S
adb shell setprop log.tag.WindowManager S
adb shell setprop log.tag.Telephony S
adb shell setprop log.tag.PowerManager S
adb shell setprop log.tag.dalvikvm S
adb shell setprop log.tag.ConnectivityService S
adb shell setprop log.tag.WifiService S
adb shell setprop log.tag.NetworkManagement S
adb shell setprop log.tag.Bluetooth S
adb shell setprop log.tag.SensorService S
adb shell setprop log.tag.LocationManagerService S
adb shell setprop log.tag.AudioFlinger S
adb shell setprop log.tag.MediaPlayer S
adb shell setprop log.tag.SurfaceFlinger S
adb shell setprop log.tag.Zygote S
adb shell setprop log.tag.filter S
adb shell setprop log.tag.debug S
adb shell setprop log.tag.verbose S
adb shell setprop log.tag.AndroidRuntime S
adb shell setprop log.tag.ActivityManagerService S
adb shell setprop log.tag.FuseDaemon S
adb shell setprop log.tag.SQLiteQueryBuilder S
adb shell setprop log.tag.FragmentManager S
adb shell setprop log.tag.libfuse S
adb shell setprop log.tag.AudioManager S
adb shell setprop log.tag.AudioPolicyManager S
adb shell setprop log.tag.InputManager S
adb shell setprop log.tag.AccountManager S
adb shell setprop log.tag.WallpaperManager S
adb shell setprop log.tag.NetworkStats S
adb shell setprop log.tag.StorageManager S
adb shell setprop log.tag.ServiceManager S
adb shell setprop log.tag.PrintManager S
adb shell setprop log.tag.VibratorService S
adb shell setprop log.tag.LocationManager S
adb shell setprop log.tag.SensorManager S
adb shell setprop log.tag.VpnManager S
adb shell setprop log.tag.ProcessStats S
adb shell setprop log.tag.InputMethodManagerService S
adb shell setprop log.tag.ConsumerIrService S
adb shell setprop log.tag.InputManagerService S
adb shell setprop log.tag.AudioService S
adb shell setprop log.tag.MediaPlayerService S
adb shell setprop log.tag.AudioPolicyService S
adb shell setprop log.tag.BluetoothService S
adb shell setprop log.tag.BluetoothGattService S
adb shell setprop log.tag.BluetoothHidService S
adb shell setprop log.tag.BluetoothPanService S
adb shell setprop log.tag.BluetoothMapService S
adb shell setprop log.tag.BluetoothPbapService S
adb shell setprop log.tag.BluetoothSapService S
adb shell setprop log.tag.NetworkTimeUpdateService S
adb shell setprop log.tag.AudioTrack S
adb shell setprop log.tag.AudioSystem S
adb shell setprop log.tag.AudioPolicyEffects S
adb shell setprop log.tag.FastMixerState S
adb shell setprop log.tag.FastThread S
adb shell setprop log.tag.FastCapture S
adb shell setprop log.tag.AudioPolicy S
adb shell setprop log.tag.AudioEffect S
adb shell setprop log.tag.FastMixer S
adb shell setprop log.tag.AudioRecord S
adb shell setprop log.tag.AudioAttributes S
adb shell setprop log.tag.AudioProductStrategy S
adb shell setprop log.tag.AudioTrackShared S
adb shell setprop log.tag.AudioVolumeGroup S
adb shell setprop log.tag.ToneGenerator S
adb shell setprop log.tag.AF::Track S
adb shell setprop log.tag.AF::TrackHandle S
adb shell setprop log.tag.AudioPolicyIntefaceImpl S
adb shell setprop log.tag.APM::AudioPolicyEngine S
adb shell setprop log.tag.MDnsDS S
adb shell setprop log.tag.AudioFlinger::EffectBase S
adb shell setprop log.tag.AudioFlinger::EffectChain S
adb shell setprop log.tag.AudioFlinger::EffectHandle S
adb shell setprop log.tag.AudioFlinger::EffectModule S
adb shell setprop log.tag.BatchInternal S
adb shell setprop sys.wifitracing.started 0 > nul 2>&1
adb shell setprop debug.rs.script 0
adb shell setprop debug.rs.shader 0
adb shell setprop debug.sensors 0
adb shell setprop debug.hwui.profile false
adb shell setprop debug.layout false
adb shell setprop debug.generate-debug-info false
adb shell setprop debug.egl.traceGpuCompletion false
adb shell setprop debug.rs.shader.attributes 0
adb shell setprop debug.rs.shader.uniforms 0
adb shell setprop debug.rs.visual 0
adb shell setprop debug.egl.callstack false
adb shell setprop debug.orientation.log false
adb shell setprop debug.ld.all 0
adb shell setprop debug.hwui.level 0
adb shell setprop debug.contacts.ksad 0
adb shell setprop debug.sf.layerdump 0
adb shell setprop debug.ldbase 0
adb shell setprop debug.perfmond.atrace 0
adb shell setprop debug.sf.enable_transaction_tracing false
adb shell setprop debug.gles.layers 0
adb shell setprop debug.angle.validation false
adb shell setprop debug.sf.layer_history_trace false
adb shell setprop debug.sf.layer_caching_highlight false
adb shell setprop debug.jni.logging 0
adb shell setprop debug.orientation.log false
adb shell setprop debug.track-associations 0
adb shell setprop debug.tracing.screen_state 0
adb shell setprop debug.synclog 0
::testing::adb shell setprop debug.sys.looper_stats_enabled 0::testing::
adb shell setprop debug.velocitytracker.alt 0
adb shell setprop debug.tflite.trace 0
adb shell setprop debug.adbd.logging 0
adb shell setprop debug.sf.enable_egl_image_tracker false
adb shell setprop debug.stagefright.omx-debug 0
adb shell setprop debug.stagefright.profilecodec 0
adb shell setprop debug.debuggerd.wait_for_gdb false
adb shell setprop debug.cp2.scan_all_packages 0
adb shell setprop debug.tracing.screen_brightness 0
adb shell setprop debug.servicemanager.log_calls 0
adb shell setprop debug.hwui.print_config 0
adb shell setprop debug.choreographer.frametime false
adb shell setprop debug.sf.vsp_trace false
adb shell setprop debug.egl.trace 0
adb shell setprop debug.egl.finish false
adb shell setprop debug.sf.trace_hint_sessions false
adb shell setprop debug.sf.vsync_trace_detailed_info false
adb shell setprop debug.sf.show_predicted_vsync false
adb shell setprop debug.atrace.tags.enableflags 0
adb shell setprop debug.debuggerd.wait_for_debugger false
adb shell setprop debug.hwui.capture_skp_enabled false
adb shell setprop debug.renderengine.skia_atrace_enabled 0
adb shell setprop debug.mdpcomp.logs 0
adb shell setprop debug.graphics.gpu.profiler.perfetto 0
adb shell setprop debug.NewDatabasePerformanceTests.enable_wal false
adb shell setprop debug.hwui.skia_atrace_enabled 0
adb shell setprop debug.rs.profile 0
adb shell setprop debug.sf.dump 0
adb shell setprop debug.debuggerd.disable 1
adb shell setprop debug.hwc_dump_en 0
adb shell setprop persist.traced.enable 0 > nul 2>&1
adb shell setprop debug.hwc.logvsync 0
adb shell setprop debug.malloc 0
adb shell setprop debug.enable.wl_log 0
adb shell setprop debug.sensors.logging.slpi false
adb shell setprop debug.tracing.battery_status 0
adb shell setprop debug.hwui.trace_gpu_resources false
adb shell setprop debug.hwui.skia_use_perfetto_track_events false
adb shell setprop debug.hwui.skia_tracing_enabled false
adb shell setprop debug.hwui.skip_eglmanager_telemetry true
adb shell setprop persist.traced_perf.enable false > nul 2>&1
adb shell setprop debug.renderengine.skia_use_perfetto_track_events false
adb shell setprop debug.tracing.ctl.renderengine.skia_tracing_enabled false
adb shell setprop debug.hwui.skp_filename false
adb shell setprop debug.sqlite.journalmode OFF
adb shell setprop debug.sqlite.syncmode OFF
adb shell setprop debug.sqlite.journalsizelimit 1mb
adb shell setprop debug.sqlite.wal.syncmode OFF
adb shell setprop debug.sf.dump.external false
adb shell setprop debug.sf.dump.primary false
adb shell setprop debug.sf.dump.png 0
adb shell setprop debug.checkjni 0
::adb shell setprop debug.egl.debug_proc 0::unsafevalue::::
adb shell setprop debug.apidump.detailed false
adb shell setprop debug.renderengine.skia_tracing_enabled false
adb shell setprop debug.adpf_cts_verbose_logging false
adb shell setprop debug.tracing.plug_type 0
adb shell setprop debug.tracing.profile_boot_classpath 0
adb shell setprop debug.tracing.profile_system_server 0
adb shell setprop debug.tracing.mnc 0
adb shell setprop debug.tracing.mcc 0
adb shell setprop debug.tracing.device_state 0
adb shell setprop debug.logging.enabled false
adb shell setprop debug.nn.fuzzer.dumpspec 0
adb shell setprop debug.nn.fuzzer.log 0
adb shell setprop debug.perfetto.sdk_sysprop_guard_generation 0
adb shell setprop debug.libbase.property_test false
adb shell setprop debug.tracing.ctl.perfetto.sdk_sysprop_guard_generation false
adb shell setprop debug.tracing.ctl.hwui.skia_use_perfetto_track_events false
adb shell setprop debug.tracing.ctl.hwui.skia_tracing_enabled false
adb shell setprop debug.sf.dump.enable false
adb shell setprop debug.hwc.enable_vds_dump 0
adb shell setprop debug.power.loghint 0
adb shell setprop debug.surface_trace 0
adb shell setprop debug.sf.ddms 0
adb shell setprop debug.sensors.diag_buffer_log false
adb shell setprop debug.systemui.latency_tracking 0
adb shell setprop debug.hwc.trace_hint_sessions false
adb shell setprop debug.vulkan.enable_callback false
adb shell setprop debug.angle.enable_vulkan_api_dump_layer 0
adb shell setprop debug.angle.capture.enabled 0
adb shell setprop debug.force_remoteinput_history false
adb shell setprop persist.debug.trace_layouts false > nul 2>&1
adb shell setprop debug.atrace.prefer_sdk false
adb shell setprop debug.tracing.desktop_mode_visible_tasks 0
adb shell setprop debug.msg_enable 0
adb shell setprop debug.hwc.normalize_hint_session_durations false
adb shell setprop db.log.detailed 0 > nul 2>&1
adb shell setprop debug.mdlogger.Running 0
adb shell setprop debug.sf.sa_log 0
adb shell setprop debug.hwc.fakevsync 0
adb shell setprop debug.rs.reduce-split-accum 1
adb shell setprop debug.hwui.nv_profiling false
adb shell setprop debug.hwui.filter_test_overhead false
adb shell setprop debug.trace.enable 0
adb shell setprop debug.sf.treble_testing_override false
adb shell setprop debug.sf.kernel_idle_timer_update_overlay false
adb shell setprop debug.choreographer.janklog 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

adb shell cmd display ab-logging-disable > nul 2>&1


adb shell cmd display dwb-logging-disable > nul 2>&1
adb shell cmd display dmd-logging-disable > nul 2>&1
adb shell settings put global netstats_sample_enabled 0
adb shell settings put global bluetooth_disabled_profiles 1
adb shell settings put global sqlite_compatibility_wal_flags wal_syncmode=OFF
adb shell settings put global foreground_service_starts_logging_enabled_uri false
adb shell settings put global activity_starts_logging_enabled_uri false
adb shell settings put global nene_log 0
adb shell settings put global wifi_link_speed_metrics_enabled 0
adb shell settings put global wifi_is_unusable_event_metrics_enabled 0
adb shell settings put global wait_for_debugger 0
adb shell settings put global contacts_database_wal_enabled 0
adb shell settings put global logcat_for_system_server_anr 0
adb shell settings put global enable_gnss_raw_meas_full_tracking 0
adb shell settings put global force_enable_pss_profiling 0
adb shell settings put global verbose_logging_level_disabled 1
adb shell settings put global enable_gpu_debug_layers 0
adb shell settings put global sys_traced 0
adb shell settings put global autofill_logging_level 0
adb shell settings put global dropbox_max_files 1
adb shell settings put global activity_starts_logging_enabled 0
adb shell settings put global enable_diskstats_logging 0
adb shell settings put global foreground_service_starts_logging_enabled 0
adb shell settings put global wifi_verbose_logging_enabled 0
adb shell settings put global enable_automatic_system_server_heap_dumps 0
adb shell settings put global settings_enable_monitor_phantom_procs false
adb shell settings put global enable_opengl_traces false

adb shell settings put global dropbox:dumpsys:procstats disabled


adb shell settings put global dropbox:dumpsys:usagestats disabled

adb shell settings put system anr_debugging_mechanism 0


adb shell settings put system remote_control 0
adb shell cmd looper_stats disable > nul 2>&1
adb shell simpleperf --log fatal --log-to-android-buffer 0 > nul 2>&1
adb shell cmd autofill set log_level off
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
adb shell logcat -c
adb shell wm tracing level critical > nul 2>&1
adb shell device_config set_sync_disabled_for_tests persistent > nul 2>&1
echo Done , Press Any Button To Go Back
pause > nul
goto Battery

: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

echo Press Any Button To Go Back


pause > nul
goto Battery

::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

adb shell settings remove system master_motion > nul 2>&1


adb shell settings remove system motion_engine > nul 2>&1
adb shell settings remove system air_motion_engine > nul 2>&1
adb shell settings remove system air_motion_wake_up > nul 2>&1
echo Press Any Button To Go Back
pause > nul
goto Battery

::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

echo Press Any Button To Go Back


pause > nul
goto Battery
:onsvpp
@echo off
cls
title Extreme Power Saver : On
adb shell device_config put activity_manager
bg_current_drain_auto_restrict_abusive_apps_enabled true default
adb shell device_config put activity_manager bg_auto_restrict_abusive_apps 1
default
adb shell settings put global protect_battery 1
adb shell cmd power set-mode 1
adb shell cmd power set-adaptive-power-saver-enabled true
adb shell setprop debug.power_management_mode low_power
adb shell setprop debug.zygote.preload.disable 1
adb shell debug.rs.max-threads 4
adb shell setprop debug.rs.precision rs_fp_relaxed

echo Press Any Button To Go Back


pause > nul
goto Battery

: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 >> "

if %game% == 1 goto gms


if %game% == 2 goto thermal
if %game% == 3 goto package
if %game% == 4 goto overlay
if %game% == 5 goto performance
if %game% == 6 goto menu

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

set /p toggle="Choose An Option >> "


if %toggle% == 1 goto offgms
if %toggle% == 2 goto ongms
if %toggle% == 3 goto Gaming

: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

set /p kb="Choose An Option >> "


if %kb% == 1 goto settingthermal
if %kb% == 2 goto Gaming

: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

rem Package verifier


:package
@echo off
cls
title Toggle Package Verifier
echo.
echo.
echo Toggle Your Package Verifier Here
echo.
echo [%r%1%w%] Off
echo [%r%2%w%] On
echo [%r%3%w%] Back
set /p kb="Choose An Option >> "
if %kb% == 1 goto offpck
if %kb% == 2 goto onpck
if %kb% == 3 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

set /p kb="Choose An Option >> "


if %kb% == 1 goto removeset
if %kb% == 2 goto low
if %kb% == 3 goto med
if %kb% == 4 goto Gaming

: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

set /p kb="Choose An Option >> "

if %kb% == 1 goto offperf


if %kb% == 2 goto onperf
if %kb% == 3 goto Gaming

: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

adb shell setprop debug.sf.enable_layer_caching 1


adb shell setprop debug.sf.max_igbp_list_size 7
adb shell setprop debug.hwc.fakevsync 0
adb shell setprop debug.enable.sglscale 1
adb shell setprop debug.enable.gamed 1
adb shell setprop debug.enabletr true
adb shell setprop debug.sf.enable_adpf_cpu_hint true
adb shell setprop debug.rs.precision rs_fp_full
adb shell setprop debug.hwui.high_performance_mode true
adb shell setprop debug.performance.sched_boost 7
adb shell setprop debug.cpuprio 7
adb shell setprop debug.gpuprio 7
adb shell setprop debug.ioprio 7
adb shell setprop debug.cpu_index 7
adb shell setprop debug.gpu_index 7
adb shell setprop debug.memory_index 7
adb shell setprop debug.sf.gpu_freq_index 10
adb shell setprop debug.sf.cpu_freq_index 10
adb shell setprop debug.sf.mem_freq_index 10
adb shell settings put global activity_manager_constants
power_check_max_cpu_1=95,power_check_max_cpu_2=5,power_check_max_cpu_3=3,power_chec
k_max_cpu_4=2
adb shell setprop debug.cpu.freq_boost 1
adb shell setprop debug.gpu.freq_boost 1
adb shell setprop debug.cpurend.vsync false
adb shell setprop debug.gpurend.vsync false
adb shell setprop debug.thread.cpu.max 8
adb shell setprop debug.thread.cpu.min 2
adb shell setprop debug.sf.hw 1
adb shell setprop debug.triple_buffering.enable true
adb shell setprop debug.gr.swapinterval 0
adb shell setprop debug.rs.max-threads 8
adb shell setprop debug.sf.gpuclock high
adb shell setprop debug.egl.turbo true
adb shell setprop debug.cpu.throttle_disable true
adb shell setprop debug.sqlite.journalmode OFF
adb shell setprop debug.sqlite.syncmode OFF
adb shell setprop debug.sqlite.journalsizelimit 1mb
adb shell setprop debug.sqlite.wal.syncmode OFF
adb shell setprop debug.choreographer.vsync false
adb shell setprop debug.power_management_mode pref_max
adb shell setprop debug.performance.memory 1
adb shell setprop debug.performance.high 1
adb shell setprop debug.perf.cpu.core_boost 1
adb shell setprop debug.sf.enable_multithread 1
adb shell setprop debug.multicore.processing 1
adb shell setprop debug.sf.vsync_reactor_ignore_present_fences true
adb shell setprop debug.sf.disable_hwc_vds 1
adb shell setprop debug.sf.enable_hwc_vds false
adb shell setprop debug.OVRManager.cpuLevel 1
adb shell setprop debug.OVRManager.gpuLevel 1
adb shell setprop debug.hwui.target_cpu_time_percent 100
adb shell setprop debug.hwui.target_gpu_time_percent 100
adb shell setprop debug.hwui.target_power_time_percent 100
adb shell settings put global boost_cpu 1
adb shell settings put global enhanced_processing 1
adb shell settings put global restricted_device_performance 0,0
adb shell settings put system performance_mode_on 1
adb shell settings put system high_priority 1
adb shell settings put system hw_accelerating 1
adb shell setprop debug.kill_allocating_task 1
adb shell settings put global enable_hw_3d 1
adb shell settings put global enable_hw_2d 1
adb shell setprop debug.hw3d.force 1
adb shell setprop debug.hw2d.force 1
adb shell setprop debug.sf3d.force 1
adb shell setprop debug.sf2d.force 1
adb shell setprop debug.performance.disturb false
adb shell setprop debug.dev.ssrm.turbo true
adb shell setprop debug.disable.hwacc 0
adb shell setprop debug.sf.throttle 0
adb shell setprop debug.thermal.force_throttling 0
adb shell setprop debug.egl.hw 1
adb shell setprop debug.performance.tuning_gpu 1
adb shell setprop debug.gpud.fbc.disable 1
adb shell setprop debug.fb.rgb565 1
adb shell setprop debug.rs.reduce-split-accum 1
adb shell setprop debug.rs.reduce-accum 1
adb shell setprop debug.performance.cap uncapped
adb shell setprop debug.performance.memory 1
adb shell setprop debug.performance.tuning 1
adb shell setprop debug.performance_schema 1
adb shell setprop debug.performance_schema_max_socket_classes 11
adb shell setprop debug.performance_schema_max_memory_classes 369
adb shell setprop debug.performance.force true
adb shell setprop debug.performance.gpu true
adb shell setprop debug.performance.boost 1
adb shell setprop debug.perf_enable 1
adb shell setprop debug.app.performance_restricted false
adb shell setprop debug.choreographer.skipwarning 16500000
adb shell setprop debug.gpu.scheduler_pre.emption 1
adb shell setprop debug.hwui.disabledither true
adb shell setprop debug.hwui.skip_empty_damage true
adb shell setprop debug.hw.accelerated 1
adb shell setprop debug.gr.numframebuffers 2
adb shell setprop debug.javafx.animation.fullspeed true
adb shell setprop debug.sf.luma_sampling 1
adb shell setprop debug.sys.sf.input_thread_vsync_alignment 0
adb shell setprop debug.cpu_efficiency 1
adb shell setprop debug.cpu_core_ctl_active 1
adb shell setprop debug.cpu_core_ctl_min_cores 4
adb shell setprop debug.cpu_core_ctl_max_cores 8
adb shell setprop debug.cpu_core_ctl_busy_down_thres 60
adb shell setprop debug.cpu_core_ctl_busy_up_thres 95
adb shell setprop debug.cpu_burst_perf_factor 0.8
adb shell setprop debug.composition.type dyn
adb shell setprop debug.hwui.use_buffer_age false
adb shell setprop debug.cgroup.cpu_boost 1
adb shell setprop debug.cgroup.cpu_limit unlimited
adb shell setprop debug.acceleration.cgroup.power unlimited
adb shell setprop debug.hwui.use_partial_updates true
adb shell setprop debug.powerhal.cgroups.unlimited_enabled 1
adb shell setprop debug.egl.swapinterval 0
adb shell setprop debug.gralloc.map_fb_memory 1
adb shell setprop debug.gralloc.enable_fb_ubwc 1
adb shell setprop debug.sf.swaprect 1
adb shell setprop debug.hwui.filter_test_overhead false
adb shell setprop debug.hwui.fps_divisor 1
adb shell setprop debug.graphics.game_default_frame_rate.disabled true
adb shell setprop debug.sf.latch_unsignaled 1
adb shell setprop debug.sf.auto_latch_unsignaled true
adb shell setprop debug.sf.disable_backpressure 1
adb shell setprop debug.gralloc.gfx_ubwc_disable 0
adb shell setprop debug.hwc.bq_count 4
adb shell setprop debug.hwc.compose_level 0
adb shell setprop debug.hwui.use_hint_manager true
adb shell setprop debug.sf.enable_gl_backpressure 0
adb shell setprop debug.sf.vsync_reactor_ignore_present_fences true
adb shell setprop debug.sf.set_idle_timer_ms 3500
adb shell setprop debug.sf.use_phase_offsets_as_durations 0
adb shell setprop debug.c2.use_dmabufheaps 1
adb shell setprop debug.sf.prime_shader_cache.image_layers true
adb shell setprop debug.sf.prime_shader_cache.solid_layers true
adb shell device_config put performance cpu_boost true
adb shell device_config put performance gpu_boost true
adb shell device_config put runtime_native_boot iorap_readahead_enable true
echo Press Any Button To Go Back
pause > nul
goto Gaming

:logo
echo.
echo.
echo %d%██████╗ ██████╗██╗ ██╗
echo ██╔══██╗██╔════╝╚██╗██╔╝
echo ██║ ██║██║ ╚███╔╝ %w%
echo ██║ ██║██║ ██╔██╗
echo ██████╔╝╚██████╗██╔╝ ██╗
echo ╚═════╝ ╚═════╝╚═╝ ╚═╝
echo.
echo.
echo.
@echo off

You might also like