yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 Guides, News, & Discussion] maddes1402:
hey guys,

I didn´t find anything about it in the search. I unlocked bootloader, made the latest system update , flashed the latest TWRP test built and tried to decrypt data . So I flasehed DM Verity Zip and format Data. Then I rooted with Magisk. Everything is fine but when I boot the device the next time Stock Recovery is back. I tried that several times with Stock ROM or Freedom OS but it always shows the same behaviour. When I understand that in a right way while reading the TWRP thread this problem shouldn´t exist anymore with the latest builds .

I know that there´s still the problem of backups in TWRP and that decryption usually isn´t working right now. But has anyone an idea what I do wrong to stick TWRP?

Thank you
[OnePlus 5 Guides, News, & Discussion] cultofluna:
After you format data...go to reboot...and reboot to twrp...flash magisk afterwards and then reboot to system...
[OnePlus 5 Guides, News, & Discussion] Chrislloydeley:
Hey there ! Thanks so much for your amazing post ! But I'm having an issue, I've managed to get all the way through the process with both super su at first and then magisk, however while attempting to flash either in twrp, they both return 'not installed' at first I thought it was an issue with super su so installed magisk the same way, I can't see any step that I'm missing, could you help me with what could be going wrong ?
[OnePlus 5 Guides, News, & Discussion] néonaloj:
Well, i eventually decided to perform a adb sideload, but got an "unauthorized" device as reply from pc... So, the device IS recognized, but I tried an adb logcat without any reply, see screenshot.

Any solution?

Thanks!
[OnePlus 5 Guides, News, & Discussion] carlese:
Guys what's the use of latest no-verity-opt-encrypt zip? I formatted data and internal storage, so I think i'm not encrypted now, but what happens if I flash this now? Will it erase all my data or is it just to remove the warning screen on boot?
[OnePlus 5 Guides, News, & Discussion] néonaloj:
How did you format data? Through fastboot or TWRP? Why don't you look into the settings (security) to see if you're decrypted?

The "normal" method for decryption should be, or :

- Boot into TWRP

- flash the no-verity-opt-encript.zip

- go to "wipe"

- there "format data"

- "Should" be decrypted

or :

in fastboot mode :

- type "fastboot format userdata"

But in both cases, it doesn't work for me, nor for many people at the moment...

(Attention : both process will erase your sdcard!!!)

So, if you flash only the zip now, it will sinply do nothing.
[OnePlus 5 Guides, News, & Discussion] carlese:
I wiped everything from twrp, before twrp always asked for a code, now it doesn't so I think I'm good? As for the zip, doesn't it remove the warning message at boot? If not, is there a way to remove it?

Inviato dal mio ONEPLUS A5000 utilizzando Tapatalk
[OnePlus 5 Guides, News, & Discussion] néonaloj:
You can see in the settings > secutity (at the bottom) if you're encrypted or not.

There is no way to get rid of the warning message at boot, it's some google stuff.
[OnePlus 5 Guides, News, & Discussion] carlese:
It says encrypt phone, so I think I'm good.. Didn't use that zip though :)

Inviato dal mio ONEPLUS A5000 utilizzando Tapatalk
[OnePlus 5 Guides, News, & Discussion] mashnoon731:
Okay so my phone shows up as QC_Refernce_Phone on the fastboot screen
[OnePlus 5 Guides, News, & Discussion] KOLIOSIS:
That's where I'm at,but,I followed the OP's instructions,including flashing the no verity .zip.

It's a bit confusing as it says Encrypt Phone then,Encrypted right underneath it:

When I tap on the Encryption > Encrypt Phone > Encrypted,it does nothing.

When I'm in TWRP,I looked around in the file manager & didn't see anything that looked encrypted,so,IDK what to think,(maybe a bug in the system settings indicating Encrypted ? )

Just wanted to share my findings.

AFAICT,everything is as it should be,BL Unlocked/TWRP Installed/Magisk 13 working & passing SafetyNet Check.
[OnePlus 5 Guides, News, & Discussion] carlese:
I don't know, I don't have the encrypted thing under encrypt phone.. And I never flashed the dm verity zip, so I think it's possible to decrypt without using that file.. At least that's what I did..
[OnePlus 5 Guides, News, & Discussion] dansou901:
I guess you need to enter your pattern or pin when booting into TWRP, correct? If that's the case, you're still encrypted.
[OnePlus 5 Guides, News, & Discussion] KOLIOSIS:
No pattern/PIN used.
[OnePlus 5 Guides, News, & Discussion] Jowhee:
So I've followed the steps in the OP, but I whenever I get the Boot into TWRP Recovery I never see the " allow system modifications.

Swipe right and enable modifications." part. I've oem unlocked the phone as well as enabled ADB debugging.

I can reboot twrp from twrp all day and it stick, but as soon as I reboot into system twrp is replaced by the stock recovery.
[OnePlus 5 Guides, News, & Discussion] dansou901:
Should still be encrypted as it says in settings, though I'm not sure.
[OnePlus 5 Guides, News, & Discussion] balander:
installed MagiSK in the first place from twrp but when i try to verify from root checker was failed. After i installed superSU and now in second try from root checker says "root access is not properly installed on this device"

Please help
[OnePlus 5 Guides, News, & Discussion] csmooth2001:
imgur.com/a/DVBqH

trying to root phone

keep getting a diff kind of recovery AND

a screen that tells me phone might be corrupt

I know that there are not that many ROMs for the op5 (hoping i could use op3T roms, but i doubt it)

im average (at best) at rooting a phone

i can follow instructions, which i have in the past

i've bricked and UNbricked phones since the nexus1

EDIT 2: disregard EDIT 1- I shall never lock bootloader on rooted phone

EDIT 1 : when should i LOCK THE BOOTLOADER after installing TWRP or after install TWRP, magisk & ROM ??
[OnePlus 5 Guides, News, & Discussion] néonaloj:
Why do you want to re-lock your BL???

If you do so with a rooted phone, you at least risk a soft-brick! Never lock the BL with a rooted device...
[OnePlus 5 Guides, News, & Discussion] csmooth2001:
I didn't know that. I thought we unlock, CHG stuff, then relock. No wonder I couldn't find anything on google search re: locking BL.

Thanks. What about the photos I linked?
[OnePlus 5 Guides, News, & Discussion] néonaloj:
We cannot see the pic you linked!

The screen that tells you phone might be corrupt is normal once unlocked. You have to live with that or flash back stock recovery (I should advice to adb sideload OOS again) and then only you can re-lock the BL.
[OnePlus 5 Guides, News, & Discussion] csmooth2001:
Couldn't do an http: link due to being new to forums. Cut&paste should work. I'll try uploading to imgur again
[OnePlus 5 Guides, News, & Discussion] néonaloj:
The pic shows the stock recovery of Oneplus ;)

EDIT : post your pics on the forum ulpoading them directly on xda : when you click on "reply", at the bottom, you've "Manage attachements" ; click on that, it will open a pop up windows where you can upload stuff from your pc.
[OnePlus 5 Guides, News, & Discussion] mayanks15603:
Unlocked , Rooted , with stock OOS 4.5.3 with DirtyCORE

THANKS for the amazingly detailed guide OP :D
[OnePlus 5 Guides, News, & Discussion] csmooth2001:
yea thanks but unless i post 10 items to xda forums it won't let me post links or pics for whatever...

won't be a problem soon with the activity i'm having since registering

h t t p : / / imgur.com/a/DVBqH
[OnePlus 5 Guides, News, & Discussion] néonaloj:
I told you what the pic is in my previous post...... Read and don't spam ;)
[OnePlus 5 Guides, News, & Discussion] KOLIOSIS:
If you could,point me to a specific file via TWRP's file manager,as an example,to verify encryption or decryption.

It's not much of an issue for me either way,just trying to help out by sharing what I have.

Worse case scenario, I wait for the how-to root tutorial video from TK Bay, he's got one coming up on his YouTube channel soon,see what he has/how things look on his rooted OP5.
[OnePlus 5 Guides, News, & Discussion] pmenon53@gmail.com:
Help Please!!!!

I had rooted my oneplus 5, also have twrp recovery installed. I accidently over the bootloader with the recover image, i ran fastboot flash boot recovery.img. This has screwed the bootloader of the device i think. The phone does not boot to the system anymore. i can go to the recovery no issues. Please help what is the solution.
[OnePlus 5 Guides, News, & Discussion] Flint2:
You flashed the recovery over the kernel

If you still can boot to recovery TWRP you can flash the kernel, download and flash the stock kernel (or full rom) or flash a custom kernel.
[OnePlus 5 Guides, News, & Discussion] pmenon53@gmail.com:
Thank you very much that did it.
[OnePlus 5 Guides, News, & Discussion] pratik_193:
[MENTION=6143932]Funk Wizard[/MENTION] - I installed TWRP, installed Freedom OS with stock kernel. everytime i enter twrp, i asks me for a pin, i enter the pin which i have set when boot.. and in security settings, it shows that i am encrypted.. what does this mean?

will i be able to install a custom kernel?
[OnePlus 5 Guides, News, & Discussion] $p00ky:
Thanks for the tutorial.

I am currently running 4.5.3 on my OP5 with unlocked bootloader and TWRP (no root yet).

I would like to root with MagiskSU: shall I use the beta v13 or is v12 working as well?

And especially: is SafetyNet bypassed correctly with v12/v13? (so that AndroidPay and bank applications work)

Also, no third-party's kernel seems to be required (franco/ElementalX), is that correct?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Yes you can install any custom kernel, OOS is by default encrypted so no need to worry. Just take backup of your boot and flash the custom kernel like EX or Boeffla and whenever you want to switch restore your boot before hopping to the other one.

Recommend V13 latest one as I use the same.
[OnePlus 5 Guides, News, & Discussion] cultofluna:
Nothing wrong.. you're supposed to be encrypted...

and yes you can flash a custom kernel...
[OnePlus 5 Guides, News, & Discussion] $p00ky:
And does it pass SafetyNet properly?
[OnePlus 5 Guides, News, & Discussion] pratik_193:
Thanks a ton..one more question, how do i disable asking for pin in twrp?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Indeed it does

Try removing all pin/password/pattern and reboot to TWRP to let it update crypto and then boot into os set it up again but do not select ask at boot. Reboot to TWRP again and it should decrypt fine

PS we still do not have on official TWRP so these issues may persist

Also make sure you stay on the latest stable from here
[OnePlus 5 Guides, News, & Discussion] Jopey_Meow:
I'm having the same issue. Frustrating, as I wiped my device for the unlock. Have you found any solution yet?
[OnePlus 5 Guides, News, & Discussion] sippinhenn:
First, thanks a ton for this guide! Very helpful! Small question about the recovery step. You gave a link for both TWRP and Stock Recovery. If rooting with Magisk do we need to flash both TWRP and the Stock Recovery?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Only TWRP needed, stock recovery provided for users who want to go back to stock :)
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
What TWRP are you using ?
[OnePlus 5 Guides, News, & Discussion] sippinhenn:
That's what I figured but just wanted to make sure before doing any steps. Thanks!

And I'll be sure to rename the twrp file to recovery.img as instructed.
[OnePlus 5 Guides, News, & Discussion] Jopey_Meow:
I'm using the one listed at the top of this thread. Windows 10. I followed the steps to the T in this tutorial, and the 'fastboot flash recovery' command always gives me 'Requested download size is more than max allowed' error.

I've been looking everywhere for a solution, as it's clearly a problem people are having, but no luck yet.

I installed oos 4.5.3 the minute I powered on my phone for the first time, wondering if that's the issue...
[OnePlus 5 Guides, News, & Discussion] Flint2:
Please don't quote the OP
[OnePlus 5 Guides, News, & Discussion] cultofluna:
Yes....
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Welcome buddy, thanks for your support

You place them after unlocking the bootloader or use a usb otg for flashing them. If you read again I have not mentioned any downloads before unlocking bootloader. Feel free to ask if you have any doubts and welcome to the oneplus community.
[OnePlus 5 Guides, News, & Discussion] 3DSammy:
Does anyone know if the USB type C cable included in the OP5 box is OTG enabled or will a separate OTG USB adapter be required? I have a non-USB type C OTG cable already. In one recently released phone a reviewer mention that that phone included a Type-C OTG adapter, unfortunately I can't remember which phone.
[OnePlus 5 Guides, News, & Discussion] FloyderE:
Thank you [MENTION=6143932]Funk Wizard[/MENTION]! I've ordered Op5 just yesterday and I can't wait to be able to unlock it!

Just two minor question :

- All the process of Rooting will affects somehow the speed and smoothness of the device?

- I don't totally understand when you said " Flash DM Verity and Format Data only if you want to stay Unencrypted else you may just skip and continue with flashing SuperSU/Magisk".

Basically I have to allow system modification, put no-verity-encrypt.zip on internal memory and format data to root ,but I will not be encrypted anymore or else I have to stay unroot but Encrypted? Sorry if this sounds stupid but I'm quite a newbie.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
No its not otg equipt, you need to buy a connector or a seperate OTG USB

Welcome to give community buddy. First unlocking is not mandatory, if you don't use rooted apps or don't want to experiment with different mods, you can stay locked and use the device as usual.

With OnePlus you have the liberty to unlock the device without voiding the warranty which unlockes the full potential of the device. You would have root access and would be able to command the device and OS as an Administrator.

Unlocking or rooting would not effect the smoothness of the device and it will remin the same. On the contrary you would be able to further fine tune the device as per your usability.

By default OOS is force encrypted so unless you want to manually decrypt you do not need to format data. You can stay unlocked and still encrypted by default.

The last bit you need to read again, you don't need to format data as its optional for users who want to decrypt to say use multirom as multirom does not support encryption on Oneplus devices.

I suggest you read about decryption and decide on it, else you can skip that format data part and continue with flashing the no verity zip followed by Magisk and you are all done mate ;)
[OnePlus 5 Guides, News, & Discussion] FloyderE:
Thank you so much for your kind answer! I've rooted and modded my old Nexus 4 , but there was no dm-verity encryption and so on xD

I think I'll root without formatting data, I can do all the decrypt/encrypt thing later if I want to run another ROM right?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
As i said keep things simple for now to start with and you can stay Encrypted and Rooted.

PS: Format Data is necessary in order to Decrypt so whenever you decide to do so please copy all data before you start.
[OnePlus 5 Guides, News, & Discussion] rickysidhu_:
Thank you for the kind words :) I shall patiently wait and I hope your device arrives sooner than mine as many more people will benefit haha

:victory:
[OnePlus 5 Guides, News, & Discussion] ToasteR1032:
Hey guys,

since there is no compatible TWRP version for the OP5 right now, I'm planning to only unlock the bootloader when I receive my phone and then to use it normally (installing some apps, setting some preferences etc.).

As soon as a compatible TWRP version is released, I'm going to flash TWRP and SuperSU.

It shouldn't be a problem to flash a custom recovery on a phone that's not at its factory state anymore, am I right?
[OnePlus 5 Guides, News, & Discussion] namartlu:
Any downside to stay encrypted? would it be slower? Thank you!
[OnePlus 5 Guides, News, & Discussion] xdvs23:
halogenOS is being worked on for the OP5. Hope this goes well.

And TWRP as well.
[OnePlus 5 Guides, News, & Discussion] iamelton:
yes, as long as the bootloader is unlocked..

and i plan to do the same like you.. unlock the bootloader first thing i get the phone.. :D
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Yeah thats the right approach, however the recovery should be out soon, latest by this weekend and can be flashed any time without any loss of data once the bootloader is unlocked.

Nope, none that you would notice.
[OnePlus 5 Guides, News, & Discussion] dansou901:
Great one! Shall I link to this thread from my Q&A thread? Could make life a bit easier.
[OnePlus 5 Guides, News, & Discussion] Kyrluckechuck:
Gah, got my device today but don't want to actually start using it until I can properly set it up using TWRP & Magisk (i.e. transferring my data over from OP3T using TitaniumBackup) --

This guide will be immensely helpful for all of the first-timers!
[OnePlus 5 Guides, News, & Discussion] FistFull95:
Thanks! Got my OP5 today, had to wait in line for about 7 hours, but I got it lol. Can't wait to root this beast!
[OnePlus 5 Guides, News, & Discussion] GraveDigger176:
I'm new on OnePlus, i order my OnePlus 5 tomorrow :good::D, i sold my Mate 9 and want to start the Journey with OnePlus 5 :cool::laugh::cowboy:
[OnePlus 5 Guides, News, & Discussion] twcobra:
This looks fun. I am waiting patiently for my dispatch notification. This will be my first Oneplus phone. I'm coming off of my nexus kick the Nexus 6 and 6p. Then a short run with my current phone the moto 5g plus. I needed a cheap phone since I dropped the 6p. All rooted so this looks like a piece of cake. The only thing I have really messed around with on the Roms is a little 3minit battery mod. I hope to see a lot of you around.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Sure thing, thanks

Thanks for your support

Sent from Funk Tuned 3T
[OnePlus 5 Guides, News, & Discussion] rage77:
Seems like a waste of time to set it up (initial set up) and then unlock bootloader, right?

I'm thinking I'll just charge it, plug in the USB and go unlock the bootloader before initial setup.

Or am I missing something vital here?
[OnePlus 5 Guides, News, & Discussion] goran_oh:
Thank you.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
I guess you have an old version of fastboot.exe
[OnePlus 5 Guides, News, & Discussion] AndroidGX:
Hiya [MENTION=6143932]Funk Wizard[/MENTION],

I just tried today to finally unlock my device, flash twrp, and root via Magisk.

I followed your post #6 and I don't know why, it seems my device keeps getting encrypted. I tried several things but none of them worked, still encrypted :(

Any idea ? :highfive:

Cheers'
[OnePlus 5 Guides, News, & Discussion] Jopey_Meow:
Where's the newest one? Version number/link if you'd be so kind. I'll definitely give it a shot.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Apologies for the inconvenience, I have tried myself and for some reason, decryption only works on OOS based roms say experience/freedom and only few have reported successful at it.

Stock OOS is not allowing to decrypt anymore for now but the process remains the same, i will add a note on the OP for the same.
[OnePlus 5 Guides, News, & Discussion] AndroidGX:
Your welcome mate! thanks for the clarification. I forgot to precise but yeah I'm on stock full OTA and not planning to go into a custom rom yet, now I understand better, hehe :highfive:

I was going crazy here :D

Cheers'
[OnePlus 5 Guides, News, & Discussion] néonaloj:
Me too, I tried many many times to decrypt the OP5, with both known methods, but without luck... But...

Some users say they had succesfully decrypted the phone on OOS, like [MENTION=7261711]_MartyMan_[/MENTION] for instance. I don't understand why it's working for some, and not for others...
[OnePlus 5 Guides, News, & Discussion] _MartyMan_:
The same for the jelly effect. Some phones have it, some not. I'm lucky. I can decrypt, and yes, i have the jelly effect too but very minor.
[OnePlus 5 Guides, News, & Discussion] sippinhenn:
Umm ok....
[OnePlus 5 Guides, News, & Discussion] sippinhenn:
Can't seem to pass Safety net on Magisk. Screenshot below. Any tips?
[OnePlus 5 Guides, News, & Discussion] Flint2:
Add gsf Google play to hide list
[OnePlus 5 Guides, News, & Discussion] sippinhenn:
Actually already had that. Android pay also not working even though it's hidden

I'll get some screenshots up in a bit
[OnePlus 5 Guides, News, & Discussion] KOLIOSIS:
That's the boat I'm in,the former,cannot decrypt.

Perhaps it has something to do with which revision/update one is on?

FWIW,I updated out of the box to OOS 4.5.3 & can't decrypt.
[OnePlus 5 Guides, News, & Discussion] J03llV:
When typing in fastboot devices, my device doesn't show. Drivers installed, adb and fastboot drivers installed.. Any fix?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Flash again works fine for me
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Need system wide fastboot and adb or try the platform tools folder
[OnePlus 5 Guides, News, & Discussion] J03llV:
Yeah I installed the system wide pack, where can I find the the platform tools folder?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
It should be C:\Android
[OnePlus 5 Guides, News, & Discussion] sippinhenn:
Dang I'll have to try that. mind sharing your Magisk settings and Magisk hide select item.

And I'm guessing I can just flash right over it?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
First use the uninstaller, then flash the latest 54e6a79, Nothing much in settings, just enabled hide
[OnePlus 5 Guides, News, & Discussion] CroW_D:
[MENTION=6143932]Funk Wizard[/MENTION] if want to relock the bootloader i use this command fastboot oem lock and the commandline says that flashing lock is not allowed.... What should i do ?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
You have to be completely stock to be able to do that, are you completely stock like stick boot stock system image stock recovery etc
[OnePlus 5 Guides, News, & Discussion] CroW_D:
i flashed trough twrp the full ota zip and rebooted so probaly yes i think. i did not wiped anything btw meiby thats was the mistake. i did it dirty.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Yes make a clean flash and also flash stock recovery in the end in case it doesn't overwrite then you can lock

I personally don't recommend doing it even if you are returning the product, warranty still valid
[OnePlus 5 Guides, News, & Discussion] CroW_D:
Why dont you recommend it ?. i know the warranty is still valid but why should i not lock it and put back the stock before sending back ?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Why are you sending it back ?
[OnePlus 5 Guides, News, & Discussion] CroW_D:
One more question i flashed it dirty the first time with now overwritten recovery (stock) should i flash back TWRP to make it clean or is there another way ?

Il send it back because private and finacial situation.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
You can either factory reset and flash the full zip via stock or just do fastboot boot recovery name to boot into TWRP, wipe dalvik system Data and cache and make the flash and then reboot to bootloader and lock it
[OnePlus 5 Guides, News, & Discussion] CroW_D:
There must be something i am missing i was now on stock recovery and made a wipe including data and videos and music in stock recovery reboot back to oos it and still no way to lock it something i am missing ?.
[OnePlus 5 Guides, News, & Discussion] unknownblkman:
Ty so much for this funk for beginners interested in learning more of the Android side of things this is a mini Bible.