Flash Custom ROMs when Internal Storage is Encrypted

flash custom rom encrypted storage

In this guide, we will show you various methods to flash custom ROMs on your device when its Internal Storage is encrypted. For tech enthusiasts, a custom ROM is probably the best tool that they can have in their arsenal. Apart from giving them an opportunity to break free from the shackles of the stock ecosystem, it also allows them to welcome abode tons of new and intriguing features on their device.

Not to mention the fact that they could even enjoy a taste of the latest Android OS even if their OEM has stopped the official upgrade cycle. If we turn our attention towards flashing these ROMs, most of them can be directly flashed via a custom recovery like TWRP. However, things can take a turn for the worse if your device’s internal storage is encrypted.

Fix TWRP Encryption

When that happens, the recovery will not be able to read the contents on your device and hence it will end up displaying the names of all the files and folders with random alphanumeric characters. As a result of this, you wouldn’t be able to identify the required ROM files and hence flash them. Fortunately, there does exist a couple of handy methods that will help you address this issue once and for all. So without further ado, let’s check them out.

Flash Custom ROMs when Internal Storage is Encrypted

flash custom rom encrypted storage

It is recommended that you go through each of the methods once and only then try out the one that is in sync with your requirements. Moreover, take a backup of all the data on your device beforehand. Thedroidwin will not be held responsible if something happens to your device and data after performing the below steps.

FIX 1: Use any other directory

If the Internal Storage is encrypted, then only the sdcard directory will be encrypted, rest all the other ones will still remain decrypted. Therefore, you can transfer the ROM to a directory other than sdcard and then flash it from there. But since you cannot access any other directory apart from sdcard via your PC’s File Explorer, you’ll have to take the help of the ADB Push command to get this job done. Here’s how:

  1. First off, download and extract the Android SDK Platform Tools on your PC.
  2. Then type in cmd in its address bar and hit Enter. This will launch the CMD.
  3. Then enable USB Debugging on your device and connect it to PC via USB.flash custom rom encrypted storage
  4. Now install TWRP Recovery and boot your device to the said recovery via:
    adb reboot recovery
  5. Next up rename the file to rom.zip and transfer it to the platform-tools folder.
  6. Now type in the below command to transfer the ROM to the /data partition.
    adb push rom.zip /data
  7. From TWRP, go to Install > Up A Level > /data partition > select the rom.zip.
  8. Proceed with the ROM’s associated instructions to flash it onto your device.
  9. Once done, you may now restart your device to the OS via Reboot > System.

FIX 2: Use ADB Sideload

This fix occupies a middle ground. While there are a few AOSP ROMs that can be flashed via Sideload, a plethora of others cannot. So if you don’t want to play this probability game, then you may head over to our next fix. The rest of the users may proceed with ADB Sideload- a feature that tends to concurrently transfer and then flash the file, as opposed to ADB Push which only transfers the file to your device. With that in mind, here’s how to make full use of this functionality:

 

  1. First off, download and extract the Android SDK Platform Tools on your PC.
  2. Then type in cmd in its address bar and hit Enter. This will launch the CMD.
  3. Next up rename the file to rom.zip and transfer it to the platform-tools folder.
  4. Then enable USB Debugging on your device and connect it to PC via USB.flash custom rom encrypted storage
  5. Now install TWRP Recovery and boot your device to the said recovery via:
    adb reboot recovery
  6. Then from TWRP, go to Advanced > ADB Sideload > Swipe to start sideload
  7. Now type in the below command to sideload and then flash the ROM zip file.
    adb sideload rom.zip

    adb sideload rom

  8. Wait for the process to complete and then follow the rest of the ROM flashing instructions.

FIX 3: Format Data

If none of the aforementioned methods spelled out success, then your last course of action should be to do a format data. While this will surely rectify the underlying issue but it will also wipe off all the data from your device, so make sure that you have taken a backup beforehand.

  1. First off, download and extract the Android SDK Platform Tools on your PC.android sdk platform tools
  2. Then type in cmd in its address bar and hit Enter. This will launch the CMD.
  3. Next up rename the file to rom.zip and transfer it to the platform-tools folder.
  4. Then enable USB Debugging on your device and connect it to PC via USB.
  5. Now install TWRP Recovery and boot your device to the said recovery via:
    adb reboot recovery
  6. From TWRP, go to Wipe > Format Data > Type in YES > hit the blue check.flash custom rom encrypted storage
  7. Internal Storage is now decrypted and you may flash the desired ROM file.

That’s it. These were the steps to flash custom ROMs on your device when its Internal Storage is encrypted. 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 at the earliest.


Leave a Reply

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