How to Decrypt and Re-Encrypt Data Partition on OnePlus 5

Over the past few weeks, one of the most asked questions about the OnePlus 5 is how to re-encrypt data and how to decrypt data. In this article, I’ll show you how to encrypt and re-encrypt data partition on OnePlus 5 easily.

The OnePlus 5 fast became the consumers’ favourite when it was launched into the market, and that’s because it brings high-quality specifications and features at a price point that’s significantly less than similar smartphones, and as expected many existing custom ROMs and kernels have been updated to support the flagship smartphone, and many ways to customize the phone have been devised on sites like XDA Developers Forum.

The questions on data partition decrypting and encrypting have been cropping up on the OnePlus 5 Thread on the XDA Developers Forum recently, and Senior Member of the forum, snowwolf725 has come up with a way to do these. This article will guide you through the process of decrypting and re-encrypting data on your OnePlus 5.

Why do you need to Decrypt and Re-Encrypt Data Partition on OnePlus 5

As its name suggests, the /data partition on your Android device is the part of the system that stores all of your apps, app data, user settings, and basically all of your device data. Encrypting the /data partition there gives you more security over the data contained in there, but there’s more to this process in the Android tweaking world.

  • Decrypting your /data partition allows you to install MultiROM and MultiBoot.
  • Some custom ROMs will only work on a decrypted device.

On the other hand, you might need to re-encrypt your /data partition if you want to revert to stock ROM to enjoy official software updates or to fix things that went wrong when you were tweaking your device.

However, there are some downsides to decrypting the /data partition on your Android smartphone. These include:

Advertisements
  • Reduction in device security. When you decrypt your /data partition, hackers can access your files and remove your lock screen PIN right from the TWRP Recovery interface.
  • You need to format your device data before carrying out the decryption process.

Requirements

Download

Process

Decrypt /data partition with Magisk

  1. Transfer ROM and the ZIP file downloaded above to your device over MTP.
  2. Boot your OnePlus 5 to TWRP Recovery.
  3. Go to Wipe section, tap Format Data, and type “yes”.
  4. Go to Install section, select ROM, and swipe to confirm the flash.
  5. Go to Install section, select magisk.zip, and swipe to confirm the flash.
  6. Go to Install section, select no_verity_op5_v2.zip, and swipe to confirm the flash.
  7. Reboot.

NOTE: Make sure you wipe your device data before carrying out this process.

Re-Encrypt data partition

  1. From TWRP Recovery, go to Wipe section, tap Format Data, and type “yes”.
  2. Transfer stock Oxygen Rom to the device over MTP.
  3. Go to Install section, select the Oxygen ROM, and swipe to confirm the flash.
  4. Reboot.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.