Android How To

How To Set Password Code In TWRP Recovery

How To Set Password Code In TWRP Recovery
5 (100%) 1 vote

How To Set Password Code In TWRP Recovery ?

Using TWRP recovery and trying to set password to the recovery?What if you lose your device and someone who stole it wiped all your data?Don’t worry,there are so many workouts for locking the recovery.Although many devices stock recovery wont support locking recovery but some custom recovery like philz,twrp do!

If you are using latest philz touch recovery then locking the recovery is quite easy process as philz recovery has an option to set a password using volume keys.

TWRP-Recovery passwordBut what if you are using TWRP recovery and thriving to set a passcode to lock the recovery?For this problem we have come forward to provide you the method to lock your TWRP recovery and set a password code so that no can wipe your data except you!Yes,we can set a password code to TWRP recovery and protect our devices.

This can be helpful for those who lost there mobiles with locked TWRP recovery it will be a big troll for the thief as he can’t reset the android mobile password because he can’t access the recovery and hence your mobile will be only a plastic toy for the thief.Wow yeah?


You don’t need flashing any new TWRP recovery for this process!Just follow the below steps and you will be good to goΒ  πŸ˜€

Steps to lock TWRP recovery with a passcode:

  1. First you have to download a file that enables passcode lock in TWRP recovery.
  2. Download file HERE
  3. Then move that download file toΒ /sdcard/TWRP/theme folder.
  4. Now just reboot to your TWRP recovery.
  5. Go to “Settings” and there you can set a password to your liking.


To check whether the passcode is working or not just restart your phone into recovery and check it by entering your passcode.Hope this method helps youΒ  πŸ˜€

Don’t Forget Your Password.You Have Been Warned!

If you anything more about this article feel free to commentΒ  πŸ˜€


    1. Hello Harsh,
      If you are using twrp recovery then you should have noticed a “twrp” folder in your internal memory.Open twrp folder,there you should notice “theme” folder.If theme folder is not present then create one.Now move file into twrp/theme/ folder.
      Restart your phone into recovery.Twrp will ask you a password,default password is David98.
      If you want to change the password go to settings>click on change password>type default password first(David98)>then enter your new password!
      Thats it πŸ™‚

  1. I’m not sure what else you would like for him to explain? This is pretty straight forward. This is for people that use TWRP and want to put a password so non authorized users can’t have access to resetting the phone to factory settings or attempt to use TWRP without having the new issued password. Understand?

    1. For those who forget the password, simply flash stock recovery, reboot, delete from the phone, reflash TWRP.. This is not meant as a bulletproof solution but rather from preventing trusted people from tampering with the device in recovery without reflashing.

  2. Nice idea….BUT when I follow the steps here the TWRP UI on my little phone screen is so huge, that I cannot even see the keyboard as just about 25% of the screen are visible. Therefore, I cannot change the password or use twrp anymore. Is there a way to shrink this theme so that it will fit on my little screen (samsung galaxy s plus i9001)?

    ps.: In some unintended wayt this bug is quite effective, as indeed any potential thief will run into the same problem to get into twrp (lol)
    pps.: For anyone having the same issue: I can still get access to twrp by normally booting into my os, connecting the phone to a computer and then again deleting the from the /sdcard/twrp/themes and then rebooting the phone

        1. Hi Sai,
          I wasn’t expecting you to have a Samsung i9001 to test it :). But perhaps you have some idea on which parameters one could change in the xml file inside the zip archive to ‘shrink’ the ui for use on phones with smaller displays.

          1. Sorry thomas i dont know about the internal files.But you can try changing your phone DPI.You can google it πŸ™‚

            As you can see this ui file is developed by “david98” , not me πŸ˜›

  3. I’ve followed the steps but it isn’t working for me:
    sdcard/twrp/themes (themes folder was created by me). Any tips? BTW, nice idea and inittiative with this addon!
    My specs:
    XT1068 (MotoG2)
    TWRP 3.0.0

    1. Hey bruno, its not “themes” it is just “theme” .If you have created a folder with the name “themes” it wont work.Rename it to “theme” and it will work πŸ™‚

  4. LOL I didn’t noticed it! hahaha
    I’ve renamed the folder but it still not working… πŸ™
    Using the twrp folder manager the only thing I can see in “TWRP” folder is a hidden file, not the “theme” folder created by me or the file…
    Any tips? Should I update TWRP?

  5. I’m using phiz recovery with password protection enabled. In the password screen, it is requested to type my password with 3 attempts to enter it correctly. What does happen if I mistake all 3 times? Does Philz reboot the mobile and i can try again by entering on recovery mode or it locks the recovery permanently?

      1. Sorry, i couldn’t understand. πŸ™‚ Will the phone be rebooted and i can try the password again or the recovery will get locked?


Post Comment