0

Is a way I can make a batch file that'll run "adb shell twrp decrypt 0000" and go all the way to 9999?

0

Yes you can! It will be just like that.

#!/bin/bash
for i in {0000..9999}; do
    adb shell twrp decrypt $i
done 
  • mmm, batch, not bash – iBug Oct 29 '18 at 16:15
0

Try this (note: you will need to have adb.exe in the same folder as this script):

set n = 0;

:run
adb shell twrp decrypt "%n%"
set /A n = n + 1
if /i "%n%" == "9999" goto :EOF
goto :run

Save it as a batch script (like decrypt.bat) and run it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.