[Guide] How to Flash Encrypted ROMs on a Decrypted Device (Without Losing Data)

sjamie

Senior Member
Aug 6, 2011
8,452
4,239
253
Most custom ROMs for the OnePlus 5 are now supporting encrypted devices only. However, some users choose to keep their device in a decrypted state for MultiROM support and for other reasons. If you follow the steps below, you can flash any encrypted ROM on your decrypted device (without losing data) and your device will remain decrypted! I found this information in one of the many threads I've read (I don't remember which one) and thought I'd post it here to help others and for easy reference. Enjoy!

Follow These Steps:
1. Boot into TWRP
2. Wipe caches, data, and system partitions
3. Flash encrypted ROM
4. Flash GApps
5. Flash Magisk
6. Flash no-verity-op5.zip (not created by me)
7. Reboot
8. Enjoy!

If you closely follow the instructions above, you can enjoy any ROM on your decrypted OnePlus 5 and have the best of both worlds! :highfive:

Note 1: If device gets stuck at OnePlus boot animation after following all of the steps above, hold the power button for 10 seconds to turn off device. Power the device back on and it will boot successfully into the ROM.

Note 2: Some ROMs are not compatible with MultiROM without the inclusion of additional commits by ROM developer.
 
Last edited:

Matze060906

Senior Member
May 13, 2014
1,249
1,578
0
Haste
Is this confirmed working? Has anyone actually tried the process and confirmed that any data on the phone's internal storage is there?
Tested it yesterday with aosip and all data are on internal storage. Flashed validus today without no-verity-op5.zip and it worked too. Didn't lose data on internal storage...

Gesendet von meinem ONEPLUS A5000 mit Tapatalk
 
  • Like
Reactions: bigjailerman

sjamie

Senior Member
Aug 6, 2011
8,452
4,239
253
After wipes, its Flash ROM.. Flash optional Kernel.. Flash Gapps.. Flash No-verity.. Flash optional root (magisk or SuperSU).. Flash optional Viper4Arise?
I've found that flashing SuperSU (instead of Magisk) on encrypted ROMs often ends in a bootloop on my decrypted device. Flashing Magisk seems to be a requirement.
 
  • Like
Reactions: buski and k4get1

nico2195x

Senior Member
Sep 21, 2014
57
20
28
Not working for me. Tried with AICP release from 9/11. Wiped caches, system, data. Flashed rom. flashed gapps (tried stock/full/micro). Flashed magisk (also tried without). -> Bootloop

//edit
sorry i think i misunderstood the post. i thought i can flash decrypted roms on encrypted device xD is that possible too?
 
Last edited:

shadowstep

Forum Moderator
Staff member
Jun 6, 2014
4,178
7,861
263
30
Ambala

glockman4519

Senior Member
Jun 5, 2013
2,582
1,509
0
Central Pa
plus.google.com
I have a quick question. I just unlocked the Bootloader on my Plus 5 and installed TWRP 3.1.1-1 and Magisk 14.0 on it. The firmware is 4.5.0 as I didn't let it update at all and did all this to the device upon first bootup. I did not decrypt.

I've tried installing latest RR release (final for N cheeseburger) and the install stops with errors. I tried a different rom in the same Android version (7.1.2) and get same results. MD5 checks out on both downloads.

Do I have to flash the latest OnePlus 5 update (full OTA 4.5.10) before flashing a 7.1.2 rom? And should I decrypt my device for easier flashing?

If no one answers, I completely understand and will search some more but this seems to be a cloudy subject that gets many different answers and I thought I would post it here. Thank you all in advance.

Sent from my Nexus 6 using XDA Premium HD app
 

arjunarora

Senior Member
Feb 13, 2017
756
457
0
I have a quick question. I just unlocked the Bootloader on my Plus 5 and installed TWRP 3.1.1-1 and Magisk 14.0 on it. The firmware is 4.5.0 as I didn't let it update at all and did all this to the device upon first bootup. I did not decrypt.

I've tried installing latest RR release (final for N cheeseburger) and the install stops with errors. I tried a different rom in the same Android version (7.1.2) and get same results. MD5 checks out on both downloads.

Do I have to flash the latest OnePlus 5 update (full OTA 4.5.10) before flashing a 7.1.2 rom? And should I decrypt my device for easier flashing?

If no one answers, I completely understand and will search some more but this seems to be a cloudy subject that gets many different answers and I thought I would post it here. Thank you all in advance.
Yes.. U need to flash the latest firmware and then flash roms.. There's a thread for firmware.. Flash the whole zip would again give you stock recovery and you have to re do the fastboot stuff so makes no sense..
 
  • Like
Reactions: glockman4519

sjamie

Senior Member
Aug 6, 2011
8,452
4,239
253
Yes.. U need to flash the latest firmware and then flash roms.. There's a thread for firmware.. Flash the whole zip would again give you stock recovery and you have to re do the fastboot stuff so makes no sense..
In addition to what is stated here, if you flash Magisk immediately after flashing the full firmware zip (no rebooting between steps), TWRP won't get replaced with the stock recovery. This is a great time saver!
 
Last edited:

glockman4519

Senior Member
Jun 5, 2013
2,582
1,509
0
Central Pa
plus.google.com
I just wanted to thank you for this thread. All of the information you provided helped me immensely. I was struggling with this device and flashing roms at first but one I unencrypted it, with your guide, everything worked great. I was going to leave it encrypted for easier flashing since most all the roms for this device are encrypted only. But I was having more issues than ever. And many, of the posts in here have also answered quite a few questions I had. This should be a pinned tread.
Anyways thank you again. Your thread is a must read for anyone with an Opo5.

"Chance Favors the Prepared"
 

sjamie

Senior Member
Aug 6, 2011
8,452
4,239
253
Any method to get oxygen os as a secondary ROM with multirom?
Have you tried flashing OxygenOS, the no-verity zip and Magisk?

I just wanted to thank you for this thread. All of the information you provided helped me immensely. I was struggling with this device and flashing roms at first but one I unencrypted it, with your guide, everything worked great. I was going to leave it encrypted for easier flashing since most all the roms for this device are encrypted only. But I was having more issues than ever. And many, of the posts in here have also answered quite a few questions I had. This should be a pinned tread.
Anyways thank you again. Your thread is a must read for anyone with an Opo5.

"Chance Favors the Prepared"
Thanks for the feedback and I'm glad this thread could provide you the guidance you needed. :cool:
 
  • Like
Reactions: glockman4519