Skip to content

Commit

Permalink
Update optimizer_script
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinCrag authored Aug 7, 2020
1 parent 59049b4 commit aa8c5e7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions optimizer_script
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,19 @@ for /F "delims=" %%a in ('adb.exe shell getprop ro.build.id') do set ID=%%a
echo %NL%Detected: %DEVICE% (%PRODUCT%)
echo Firmware: %ID%

echo %NL%Optimizing using speed-profile. The time taken for this process to get completed is dependent on the amount of apps and SoC present in your device. Recent phones can complete this job under 5 mins while older mid range might take 15-20 mins. %NL%Note that disconnecting your device during this optimization will abort the process.
echo %NL%Optimizing using speed-profile. The time taken for this process to get completed is dependent on the amount of apps and SoC present in your device. Recent phones can complete this job under 5 mins while older mid range might take 15-20 mins%NL%Note that disconnecting your device during this optimization will abort the process

echo.
pause
cls

echo %NL%This is an automated process just wait until it's completed by itself%NL%(on Android 10 will display "Success", on Nougat-Pie it just a new prompt line). . .

adb.exe shell cmd package bg-dexopt-job

echo Optimization is now finished. %NL%Anytime you clean flash, complete restore apps from titanium backup/migrate or from Google (Play Store) and you face battery drain or lags, You may choose to open the script back and run this command. %NL%Press any key to exit.
echo %NL%Optimization is now finished!

echo %NL%Anytime you clean flash, complete restore apps from titanium backup/migrate or from Google (Play Store) and you face battery drain or lags, You may choose to open the script back and run this command

echo%NL%Press any key to exit. . .
pause>nul
exit

0 comments on commit aa8c5e7

Please sign in to comment.