How to Fix TWRP Encryption Issues on Android

Fix TWRP Encryption

Fix TWRP Encryption

In this guide, we will show you various methods to fix the TWRP encryption issue on your Android device. If you are planning to step into custom development, then a custom recovery could prove to be the best tool that you could have at your disposal. And the reason for the same is hardly a secret either.

Right from the ability to take a backup of all the data on your device with the help of Nandroid backup to deleting data from the partitions before flashing custom ROM, there’s a lot to look forward to. However, its biggest asset is the ability to easily flash ZIP and IMG files in just a few taps. Just head over to the Install section, navigate to the desired file, select it, and do a right swipe to flash it.

Fix TWRP Encryption

However, in some instances, this navigation could prove to be a tough nut to crack. This is because all the files and folders on your device might be renamed with random alphabets and you wouldn’t be able to identify any of the files that you want to flash. So why is this happening?

Well, the root cause of this issue is the fact that the data partition on your device is encrypted and TWRP is unable to decrypt it.Fortunately, though, there exist quite a few methods through which you could easily rectify this issue [and a method to bypass it as well]. And in this guide, we will make you aware of all those tweaks. So without further ado, let’s check them out.

How to Fix TWRP Encryption Issues on Android

It is recommended that you try out each of the below-listed workarounds and then see which one spells out success. Moreover, please take a backup of all the data on your device, just to be on the safer side. TheDroidwin will not be held responsible if something happens to your device or  data after performing the below steps:

Prerequisite: Boot to TWRP Recovery

Throughout the course of this guide, we will advise you numerous times to boot your device to the TWRP Recovery. So you may refer to the steps given here and get the job done.

  1. First off, head over to Settings > About Phone > Tap on Build Number 7 times.
  2. This will enable Developer Options, which could be accessed via Settings > System.
  3. From there, enable USB Debugging and connect your device to PC via USB cable.usb debugging
  4. Now download and extract the Android SDK Platform Tools on your PC.
  5. Then type in cmd in its address bar and hit Enter. This will launch Command Prompt.
  6. Now, type in the below command to boot your device to TWRP Recovery:
    adb reboot recovery

FIX 1: Remove Screen Lock

Your first course of action should be to remove all the screen locks from your device, including PIN, Password, Pattern, and Face Unlock. So carry out this task via the below-listed steps and check out the results

  1. Go to Settings > Security and Privacy > Device Unlock.
  2. Then go to Screen Lock and choose None from the list.Fix TWRP Encryption
  3. Once done, boot your device to the TWRP and go to Install.
  4. Check if the TWRP Encryption issue has been fixed or not.

FIX 2: Mount Data Partition

Your next course of action should be to mount the data partition. If it’s already mounted, then unmount and remount it [as shown below]. Here’s how all of this could be carried out:

  1. Boot your device to TWRP Recovery via the below command:
    adb reboot recovery
  2. Then go to Mount and checkmark the Data partition.Fix TWRP Encryption
  3. If it is already checked, then uncheck and recheck it.
  4. Now go to Reboot and select Recovery. The device will reboot to TWRP.
  5. Check if the TWRP Encryption issue has been fixed or not.

FIX 3: Bypass Encryption

Before opting for the nuclear approach, you could also consider bypassing this issue instead of rectifying it under certain circumstances. For instance, I’m currently using Samsung Galaxy S20 FE and the custom. recovery wouldn’t be able to decrypt the storage till I’m on the stock firmware. The only way through which the encryption issue would be fixed is to move over to a custom ROM. However, as of now, I don’t wish to make this switch from the stock to custom OS.

And in my case, even if I opt for the last-ditch fix [given below], I wouldn’t be able to achieve success, since I’ll still be on the stock firmware. So what could be done in such instances? Well, in these cases, you could do an ADB push of the file and then flash it. Even if the data is currently encrypted, it will have no impact whatsoever on the file being pushed to your device. Moreover, TWRP will be able to easily read the file and you ould then flash it without any issues. So let’s give this tweak a try and check out the result:

  1. First off, boot your device to TWRP Recovery via the below command:
    adb reboot recovery
  2. Now download and extract Android SDK Platform Tools on your PC.
  3. Then transfer the desired ZIP file to the platform-tools folder as well.
  4. Now type in cmd in the platform-tools folder address bar and hit Enter.
  5. This will launch Command Prompt. So type in the below command now:
    adb push filename.zip /tmp
  6. From TWRP, go to Install > tmp directory and the file will be present there.Fix TWRP Encryption
  7. If you cannot transfer to tmp, then try transferring it to the data directory:
    adb push filename.zip /data
  8. Now select the file and flash it. Once done, go to Advanced > File Manager.
  9. Then choose that file and hit Delete [if it is no longer needed]. That’s it.Fix TWRP Encryption

FIX 4: Factory Reset

If none of the aforementioned methods spelled out success, then your last course of action should be to do a factory reset which should definitely fix the issue [unless you are stuck in a fiasco similar to mine, as discussed in the above fix]. However, this process will also wipe off all the data from your device. So make sure to take a backup beforehand and only then proceed with the below steps:

  1. Boot your device to TWRP via the below command
    adb reboot recovery
  2. Then go to Wipe > Format Data > and type in YES.
  3. Hit the checkmark and wait for the wipe to complete.Fix TWRP Encryption
  4. Once that is done, go to Reboot and select Recovery.
  5. The data partition should now be decrypted on your device.

That’s it. These were the various methods to fix the TWRP Encryption issues on your Android device.  If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution as soon as possible.


Leave a Reply

Your email address will not be published. Required fields are marked *