This guide explains how to use DaCrypt to manage Internal Storage in Recovery by modifying your phone's vendor.img. The tool will help you encrypt or decrypt the storage in the recovery environment. This process is applicable for any custom recovery, such as TWRP, Orange Fox, SHRP, PBRP, etc.
- DaCrypt.exe (Download from Releases)
- Your device's
vendor.img(Usually located in thevendorpartition) - Custom recovery (TWRP, Orange Fox, SHRP, PBRP, etc.) installed on your device
-
Obtain and Unpack Your
vendor.img- Obtain the
vendor.imgfile from your device. - After extracting the image from your device’s firmware or backup, use a tool to unpack the
vendor.img.
- Obtain the
-
Download DaCrypt Tool
- Download DaCrypt.exe from the provided link.
- Place the executable in a folder on your computer where you can easily access it.
-
Run DaCrypt.exe
- Double-click on DaCrypt.exe to launch the tool.
- The tool will prompt you to enter the path to the
fstabfile. This file is located in theetcfolder of your unpackedvendor.img.
-
Get the
fstabPath- Navigate to your unpacked
vendor.img. - Go to the
etcfolder within the unpacked image. - Locate the
fstab.<SoC>file (the name will depend on your system on chip). - Copy the full path of this
fstabfile.
- Navigate to your unpacked
-
Choose Encryption or Decryption
- After entering the path to the
fstabfile, DaCrypt will ask you to choose whether you want to encrypt or decrypt the storage.
Option 1: Decrypt
- If you choose decrypt, the tool will allow you to use Internal Storage in Recovery. This means you will have access to your device’s internal storage while in recovery mode (with any custom recovery like TWRP, Orange Fox, etc.).
Option 2: Encrypt
- If you choose encrypt, Internal Storage in Recovery will be disabled. This option will encrypt the storage, and you will not be able to access internal storage from recovery.
- After entering the path to the
-
Complete the Process
- After completing the encryption or decryption step, the tool will finish the process.
-
Rebuild and Flash Your
vendor.img- After DaCrypt has finished its work, rebuild the
vendor.imgwith the changes you made. - Flash the modified
vendor.imgback to your device using fastboot or any suitable flashing method.
- After DaCrypt has finished its work, rebuild the
-
Format Data in Recovery
- Once the flash is complete, boot into your custom recovery and format data to ensure the changes take effect properly.
-
Reboot the System
- Reboot your device into the system, and the changes will be active.
- If you decrypted the
fstab, you should now have access to Internal Storage in Recovery. If you encrypted it, Internal Storage will be unavailable in Recovery.
You have successfully used DaCrypt to either enable or disable access to Internal Storage in Recovery by modifying the vendor.img. Whether you chose to encrypt or decrypt, follow the steps to rebuild, flash, and format data for a smooth experience.
