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:
- 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
- Install TWRP Recovery on OnePlus 5T.
- Magisk
Download
- no_verity_op5_v2.zip Download.
Process
Decrypt /data partition with Magisk
- Transfer ROM and the ZIP file downloaded above to your device over MTP.
- Boot your OnePlus 5 to TWRP Recovery.
- Go to Wipe section, tap Format Data, and type “yes”.
- Go to Install section, select ROM, and swipe to confirm the flash.
- Go to Install section, select magisk.zip, and swipe to confirm the flash.
- Go to Install section, select no_verity_op5_v2.zip, and swipe to confirm the flash.
- Reboot.
NOTE: Make sure you wipe your device data before carrying out this process.
Re-Encrypt data partition
- From TWRP Recovery, go to Wipe section, tap Format Data, and type “yes”.
- Transfer stock Oxygen Rom to the device over MTP.
- Go to Install section, select the Oxygen ROM, and swipe to confirm the flash.
- Reboot.