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


Yes you can! It will be just like that.

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

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

set n = 0;

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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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