yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 Guides, News, & Discussion] CroW_D:
I am also tried now usind twrp like you descrypted but no sucess.

Flashed TWRP back then reboot to it and wipe data cache system and dalvik then flashed full oos zip and then reboot bootloader and tried to lock it no sucess.

I am even tried now to sideload the ota.zip and reboot then back to recovery and had no success... Literally all I can try I think
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Many thanks for your support buddy :highfive:
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
May be check developer settings if oem unlock is enabled
[OnePlus 5 Guides, News, & Discussion] CroW_D:
Its greyed out cannot switch it.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Try a tool kit maybe or just leave it as it is
[OnePlus 5 Guides, News, & Discussion] CroW_D:
Thanks again for ya help Funk gonna try a toolkit if this doesent help i leave it as is is :).
[OnePlus 5 Guides, News, & Discussion] J03llV:
Okay, unlocked bootloader but now when i try to install TWRP, i get error: Cannot load twrp.img

I don't have the platform-tools folder in C:/Android.. Where does CMD get the path from?

EDIT: Never mind, I got it working by dragging the file into the cmd prompt!
[OnePlus 5 Guides, News, & Discussion] sippinhenn:
That did it!
[OnePlus 5 Guides, News, & Discussion] Flint2:
In my case installed Magisk V12 with core only to pass safetynet

Steps I did

Upgrade OTA 160mb to OOS 4.5.3

Unlock bootloader

fastboot flash recovery last twrp beta

fastboot boot last twrp beta

Do not allow system modification

Flash ex kernel 1.0.1

Flash Magisk-v13.0(54e6a79)

Boot system (after hiding all, not pass safetynet)

Boot recovery

Flash Magisk-uninstaller-20170608

Flash Magisk-v12.0

Boot system

After hiding, safetynet passed

Do you see any issue with this setup?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
For Magisk V13 you need manager V5.0.2

V13 should work fine
[OnePlus 5 Guides, News, & Discussion] pratik_193:
[MENTION=6143932]Funk Wizard[/MENTION] - I removed the password from OS, rebooted to TWRP, it does not ask for any pin, but when i again set pin/fingerprint in OS, it again asks in TWRP. also i am not able to flash any zip file, the installation stucks at 0%, is it because of pin?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Try the same pin you've set for the os or maybe change to a pattern and see it same pattern works in twrp
[OnePlus 5 Guides, News, & Discussion] pratik_193:
the pin works, i am able to enter TWRP after entering the pin.. but not able to install zip file..
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Did you try updating the TWRP to the latest
[OnePlus 5 Guides, News, & Discussion] pratik_193:
Yup, i think its 58 if i am not wrong.. how do i check the version btw?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Update time, update to the latest.

There is a command for that in TWRP terminal I'll check and get back to you
[OnePlus 5 Guides, News, & Discussion] hardspartan360:
Did you solve it???
[OnePlus 5 Guides, News, & Discussion] CroW_D:
No still the same unlocked.
[OnePlus 5 Guides, News, & Discussion] User422:
Hey guys,

I couldn't get an answer to the following question.

I just wanted to ask if you'd recommend to root and flash custom ROMs. I have messed up (damaged motherboard according to xda community) my last device but it was also the first device that I've rooted so I started from scratch.

Is it safe to do this with some experience made by messing up a device and using it for months?

Thanks in advance.
[OnePlus 5 Guides, News, & Discussion] Vatumb:
THanks for the Guide, Posted the same on my blog to ROOT Oneplus 5. Hope this will work to your readers http://www.technobuzz.net/root-oneplus-5/
[OnePlus 5 Guides, News, & Discussion] Augustin79:
Does anyone here know why I can't flash TWRP? I've renamed the .img file to recovery for ease, but every time I try and flash it I get FAILED, and I don't know why. Unlocking bootloader worked fine.

fastboot flash recovery recovery.img

sending 'recovery' (25932 KB)...

FAILED (remote: Requested download size is more than max allowed

)

finished. total time: 0.016s
[OnePlus 5 Guides, News, & Discussion] unknownblkman:
What twrp 58?
[OnePlus 5 Guides, News, & Discussion] Augustin79:
The one from OP... Version 62 it seems.
[OnePlus 5 Guides, News, & Discussion] MSC238:
I have a couple of questions. First, I am looking into getting a OnePlus 5 and noticed there are two models, one with 6 gigs of ram and one with 8. This method works for both, correct? Also, what's the difference between SuperSU and Magisk? I've rooted a couple of my phones in the past but have only ever used SuperSU / Super User. Does each one offer advantages / disadvantages or is it more of a preference thing?
[OnePlus 5 Guides, News, & Discussion] pernaculos:
No need I unlock all my phone's bootloader with a white Mac 2008 and the process is the same just make sure Adb command start with ./
[OnePlus 5 Guides, News, & Discussion] GoodJPBoy:
Unable to flash twrp from fastboot mode

Hi,

I am unable to flash twrp img file from fastboot mode.

However, the Bootloader is unlocked.

Please help.
[OnePlus 5 Guides, News, & Discussion] Flint2:
First don't quote the OP,

Try copying the image to the same directory of fastboot, or CD to the path of the image and execute fastboot from there
[OnePlus 5 Guides, News, & Discussion] Eric214:
I'm coming from the Nexus 6P and I'm a bit confused on how to revert back to full stock. I see plenty or root and twrp and backups and such. But how I go back to full stock like if on a N6P you just flash the factory images. It doesn't appear to be that way with the OP5. I just want to go back to a full stock 4.5.3.
[OnePlus 5 Guides, News, & Discussion] rickysidhu_:
I've never had a OP device before and I'm still waiting for mine to ship out, but from reading a bit, I believe these are the steps

Transfer the full ota zip to your device

Wipe everything in twrp except internal storage

Flash the stock ota zip

Flash stock recovery if you want to get rid of twrp

Done

I could be way off, or have a step or two wrong, so I would wait until someone more knowledgable than me confirms or corrects these steps!
[OnePlus 5 Guides, News, & Discussion] ipredatorv:
from Hydrogen to rooted Oxygen OS

Hi guys, I have a quick question regarding the order of the process.

I bought my OP5 in China so it has HydrogenOS preinstalled. I would like to flash OOS, unlock the boot loader and root it. What is the best order to do it?

From reading this forum I would proceed with

Downloading the newest OOS (4.5.3 from downloads.oneplus.net) and flashing it unrooted with ADB

Then follow this guide to firstly unlock the bootloader and afterwards root.

Does this sound correct to you? Or do I need to unlock the bootloader BEFORE flashing OOS 4.5.3?

Thanks a lot, I am a first time Oneplus user and really appreciate any help.
[OnePlus 5 Guides, News, & Discussion] KOLIOSIS:
I (unintentionally,LOL) found out how to revert to stock,by flashing an OTA update .zip:

If you're still encrypted,flashing a stock OTA .zip (only,no other .zips) will remove root & install stock recovery w/o the need to flash any other .zips/.imgs.

If you're looking to go 100% out-of-box condition,all that's remaining is relocking the bootloader (I didn't do this,I re-rooted/TWRP'ed the stock ROM).

BTW,I was informed if I'd flashed a SU/Magisk .zip immediately following the OTA update .zip BEFORE booting into system,that TWRP/Root would remain intact.
[OnePlus 5 Guides, News, & Discussion] Han-Droid:
For those who want to relock the bootloader after decrypting it:

You need to reflash the current OS then reflash the stock recovery and then do the fastboot oem lock thing.

Otherwise locking the bootloader results in bootprompt saying phone is corrupt and can't be started.

Just in case you want to return your phone to the state it was delivered.

Good luck ;)
[OnePlus 5 Guides, News, & Discussion] Eric214:
Yeah thanks guys :) I was in the middle of trying that as you guys responded. I didn't think it was going to be that easy. I'm used to the 6P where you're dealing with vendors and such. I always flash root after a clean return to stock so all good there as well thanks!
[OnePlus 5 Guides, News, & Discussion] Pedimento:
I am decrypted now, tried to make it re-encrypted but no luck.

1- TWRP, wipe everything except internal SD.

2- Flash official OOS.

3- Reboot system but it says there is no OS and reboot to TWRP.

Do I need to flash stock recovery after flashing OOS in order to be re-encrypted again?

I want unlocked bootloader but encrypted data.

Can someone explain step by step?
[OnePlus 5 Guides, News, & Discussion] 3DSammy:
You've hit an issue many, many people including myself have hit. Here are the common attempts that various people have used to resolve the issue, in order of success that I've noted while reading the forum:

Make sure you have the latest ABD and fastboot installed (Google it)

Try a different PC (worked for me)

Try each USB port on your PC

Reboot your PC and try again as the issue may have something with your PC's USB power management

Try following post and it's link

I've read people having a Win10 PC have the most luck but that could simply be OS bias because at least one Linux Debian user had no problem. I've not specifically read any Mac user successfully flashing recovery but that in itself doesn't mean it can't work.
[OnePlus 5 Guides, News, & Discussion] Augustin79:
Thank you very much! I changed the USB-port and also the USB-cable and it worked. Now I have to try and figure out why there's nothing meaningful when navigating to sdcard in TWRP. Couldn't find any of my stored folders or files when looking via TWRP.

Also, after booting to recovery I get a keyboard asking for password... But I chose cancel the first time in TWRP... No idea what to do now. :(
[OnePlus 5 Guides, News, & Discussion] KOLIOSIS:
I'm guessing you're still encrypted.

Most,if not all,at the moment,cannot decrypt the stock Oxygen OS. (See note in the OP's instructions)

However,I believe that the ROMs that are available are able to be decrypted.

Another BTW:

Do not restore an encrypted TWRP backup if you manage to be decrypted, it's been reported nasty things will result....
[OnePlus 5 Guides, News, & Discussion] Augustin79:
Thanks! I'm still encrypted and on stock Oxygen OS indeed. Guess I'll have to wait before I do anything else. But is this not being able to decrypt the reason it asks for a password when booting into recovery?

One more question, do you know if official TWRP is usually able to decrypt the stock OS(for whenever that is out)?

Also thanks for the heads up about backups, good to be reminded even though that one I actually caught myself from OP :)
[OnePlus 5 Guides, News, & Discussion] KOLIOSIS:
IDK about the password while navigating TWRP,I haven't seen that (I also don't use a password/PIN/fingerprint/etc).

As for decryption questions,this varies from phone to phone & I honestly don't know what exact role TWRP (official or otherwise) has in that regard.

Sorry I couldn't have been of more help in regard to answering your questions, I'm still learning something new all the time,but,did want to share what I had to hopefully prevent getting into a bricking situation.
[OnePlus 5 Guides, News, & Discussion] RealGalaxyLink:
I've already unlocked my bootloader, now I want to flash twrp. Should I remove my lockscreen pattern/fingerprint from oos to install only twrp/root (no backups or other things)?
[OnePlus 5 Guides, News, & Discussion] 3DSammy:
With Nougat (OP5''s OOS 7.1.1) your internal storage is encrypted by defaults. TWRP will only see the directories and files if you enter your PIN, password, or swipe pattern when booting into recovery. If you have security set to none there is a default password which I've forgotten but you can Google it, good Luck.
[OnePlus 5 Guides, News, & Discussion] Augustin79:
*deleted
[OnePlus 5 Guides, News, & Discussion] GoodJPBoy:
Yes, I did the same.

That's why i provided the screenshot as well.
[OnePlus 5 Guides, News, & Discussion] Augustin79:
After flashing TWRP I can reboot into it and get it working by typing in my pin when it asks for password.

However if I boot to system and then boot back into recovery, the TWRP recovery is gone and I'm suddenly in the OP-recovery. Does anyone know why this keep happening? Is it because I'm running stock OS? I don't understand, never encountered this on my Nexus 6P.
[OnePlus 5 Guides, News, & Discussion] Flint2:
This is because Oxygen OS restores stock recovery on boot.

You need to flash root (Magisk or Supersu) or rename the script from twrp.
[OnePlus 5 Guides, News, & Discussion] Augustin79:
Thanks!

This means that after I flash TWRP and boot into it and flash SuperSU/Magisk the TWRP recovery will stick? Does this kill OTA updates?

Thanks again for any help
[OnePlus 5 Guides, News, & Discussion] Hilmesh:
Hi everyone,

I had followed complete procedure except i did the rooting process by booting with Fastboot boot twrp image and did not flash the custom recovery. I rooted first with Supersu and then got a unverified device in google play and then also some apps stopped working.

so then i did a factory reset using stock recovery and then rooted using Magisk and finally with some tweaking got a verified device status and now all apps are working.

In my developer options the Allow OEM Unlocking is still available for toggle and it is not completely greyed out. Is this normal?

I keep getting the Message on bootup for few seconds but it is irritating. Can i do anything about it now without much trouble or will I have to again reset and re root?

Please do advise.
[OnePlus 5 Guides, News, & Discussion] Flint2:
Yes, the only way to apply native OTA is to stay stock (you can unlock but don´t flash anything)

The fact that you flashed TWRP will make OTA download full version (or you can download from http://downloads.oneplus.net/ or https://xdaforums.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003 ), then from TWRP you can flash it.

Never flash partial OTA with TWRP
[OnePlus 5 Guides, News, & Discussion] néonaloj:
About the sdcard issue, try to flash the fix at the bottom of this post, it worked for me and for many others.

Indeed, when the phone is decrypted it doesn't ask for pin/code/schema anymore.

As for the version of TWRP, it has nothing to do because the first method to decrypt the phone (or to be accurate, so it was for the OP1 and OP3!) is to do it in fastboot mode!

Itvdoesn't change anything, in every case you'll be asked for a password/pin/schema to enter recovery ( at least if encrypted, as it must be the case), and there is no other reason to remove these stuff.

The Allow OEM Unlocking is still available for toggle and it is not completely greyed out because you still have the stock recovery so you can go back locking your Bootloader if you want to (OOS full stock + recovery OP).

You can do nothing about the warning screen but to lock back the BL.
[OnePlus 5 Guides, News, & Discussion] Hilmesh:
Hi [MENTION=6284795]néonaloj[/MENTION], while going through the thread i thought i read a post were it says that it can be taken care of. so right now in reality it just exists and we live with it. right?
[OnePlus 5 Guides, News, & Discussion] Ikkegwn:
Can't get bootloader

One way or another, i can't get the bootloader to work with my pc. Any help?

To top it off, I got the access denied on adb setup

Edit: nvm fixed
[OnePlus 5 Guides, News, & Discussion] néonaloj:
That's it, you have to live with that warning screen. ;)
[OnePlus 5 Guides, News, & Discussion] KOLIOSIS:
Just my 2¢ here:

The BL Unlocked/warning screen,it bothers me none.

Quite the opposite,I find it pleasing to know we have the freedom to easily unlock out bootloaders & wear it like a badge of honor,to let others know,who may notice & ask "What is that?"
[OnePlus 5 Guides, News, & Discussion] Flint2:
For me is a good way to boot to recovery also, in case you didn't notice is not only a screen, is a menu
[OnePlus 5 Guides, News, & Discussion] TDoric:
Hey guys, first time OnePlus user.

I'm on OOS 4.5.3, rooted with Magisk and TWRP installed. I have not decrypted my phone (is there a down side to this?) and I was wondering if anyone can share how to disable the warning message when booting? It's not a big deal, but if it's possible I would like to know how to do it.

Thanks in advance!
[OnePlus 5 Guides, News, & Discussion] Flint2:
Not possible, you have to live with the new warning and menu during boot.
[OnePlus 5 Guides, News, & Discussion] Hilmesh:
Hello. I am getting notification to download latest update 4.5.5 but it clearly shows that I am rooted and hence asks me to download full package of about 1.5GB. Should i go ahead? Also if I do then all I need to do is again follow same steps to get root using Magisk right.?
[OnePlus 5 Guides, News, & Discussion] ph1dft:
Yeah you need the full rom and flash root after that straight away.
[OnePlus 5 Guides, News, & Discussion] Hilmesh:
Thanks. So update with full ROM and let it reboot and then go back into fastboot and do the rest. Right? . Just confirming.
[OnePlus 5 Guides, News, & Discussion] ph1dft:
No flash full rom and then without reboot Magisk. After that you can reboot.
[OnePlus 5 Guides, News, & Discussion] pratik_193:
[MENTION=6143932]Funk Wizard[/MENTION] - need your help bro, i am on custom rom with stock kernel.. now, i want to go to stock rom with stock kernel but rooted..how is this doable?
[OnePlus 5 Guides, News, & Discussion] Flint2:
Follow the instructions for upgrade in https://xdaforums.com/showpost.php?p=72799070&postcount=3
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Yes you can install the latest 4.5.5 released today and then unlock the bootloader. For flashing oos you should download full zip and place it on internal and then select the same zip to upgrade via system update. Stock recovery would flash OOS on top of H2OS

Let me know if you have any questions
[OnePlus 5 Guides, News, & Discussion] Hilmesh:
Hi All,

I understand that if you have TWRP installed then you need to flash the full OTA and then the incremental zip files.

but what if you are only rooted by using twrp through fastboot boot and then still continue to have stock recovery. then you should not need the full rom right?
[OnePlus 5 Guides, News, & Discussion] rickysidhu_:
I'm a bit confused with the full OTA vs. incremental zips, let me explain:

Users are saying if twrp/root is installed, then the full zip should be installed, followed by an incremental zip

My confusion is, wouldn't an incremental zip be unnecessary once a full ota zip is flashed? Wouldn't we receive the entire update (including the updates in an incremental zip) with flashing a full ota zip?
[OnePlus 5 Guides, News, & Discussion] KOLIOSIS:
No, if you have TWRP, just the full OTA only.

The reason you're getting stock recovery afterwards is you need to flash SU or Magisk to keep TWRP (& root).

So, flash Full OTA,SU or Magisk, wipe Cache & Dalvik, reboot into system.

No incremental OTA's, that's for stock recovery/unrooted users only.
[OnePlus 5 Guides, News, & Discussion] netsonic:
My 1+5 was rooted by supersu 2.82 free according to thread: OnePlus 5: Unlock Bootloader | Flash TWRP | Root | Nandroid & EFS Backup & More !!.

1. The app "secure settings" didn't work properly at beginning, the "system+ module" can't get root access although "grant root access" is enabled in Supersu.

I followed

this method

, added "su" folder under system/bin/ and "system+ module" works now.

2. The Titanium Backup 8.02 can't get root access either, it shows "it attemps to use "/system/bin/su method".

3. Adaway can't get root access either
[OnePlus 5 Guides, News, & Discussion] jrosaly:
Updates after root?

Experts, so if I rooted my phone,do I need to follow special procedures to go from 4.5.3 to 4.5.5? Thanks!
[OnePlus 5 Guides, News, & Discussion] laupuy:
Hi,

You need to flash rom full zip and root.

All is explained post#3 here https://xdaforums.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003

;)
[OnePlus 5 Guides, News, & Discussion] jrosaly:
I missed that,thanks guys. my bad
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Official TWRP is Finally Out

https://xdaforums.com/oneplus-5/development/recovery-twrp-3-1-1-0-touch-recovery-t3632912

Download link - https://dl.twrp.me/cheeseburger/
[OnePlus 5 Guides, News, & Discussion] KOLIOSIS:
Have you tried decryption w/the official TWRP,or does the issue (for stock OOS) involve other items besides recovery?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
I am traveling this weekend, will try on Sunday and report
[OnePlus 5 Guides, News, & Discussion] KOLIOSIS:
I'll probably try it out before then & post the results here.

I have another phone w/identical setup, so, wiping the OP5 is no biggie.....
[OnePlus 5 Guides, News, & Discussion] freakzapster:
ii haaavee ffllsshedd ttheenn too iittsss asskkiinng ffor paattteern to decrypt
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Use the same pattern for the OS it will decrypt fine :good:
[OnePlus 5 Guides, News, & Discussion] magicmaia:
Oh Oh wat have I done? The last week I was unable to install TWRP, I ran into the "cannot load" and "too large files" problems; tried different USBports, reinstall drivers, the LAAzip, some things I've forgotten by now, even yelling at my devices didnt work. So today with the official TWRP everything should go smooth, right? But no. I got the "max download problem"again, so I closed CMD en wanted to reboot my phone. To my surprise it booted in TRWP. And that was the only thing my phone did. Go back into TWRP every! single! time! Tried to install stock recovery and tried to flash the full OTA. After about 8 attempts my phone rebooted but is now hanging on the bootscreen for 20 minutes yet. Guess I have to get some sleep now and figure out what to do tomorrow.

Edit: format user data solved it. But now my coffee machine is on a strike and refuses to make coffee. Guess it's one of those days...
[OnePlus 5 Guides, News, & Discussion] arktay:
I cannot flash the twrp. The stock recovery overwrite it each reboot into system. This is what a i do:

fastboot flash recovery twrp.img

turn off the phone, turn on and boot into recovery, now i'm the twrp. (it does not ask anymore "swipe to allow modification")

Flash super su. When it tries to patch boot image it just says "failure, aborted "

I can boot into system but I don't have root, and I lose twrp

EDIT: Tried to flash stock OOS and wiped cache/dalvik, superSU refues to work. Fixed it installing Magisk :)
[OnePlus 5 Guides, News, & Discussion] JelloB:
All I get is an error in fastboot that it can't load twrp. I'm sure it's probably addressed in this thread but I'm super frustrated right now and don't have the patience to find it.

Edit: cooled down a little and realized none of the information past this was relevant.
[OnePlus 5 Guides, News, & Discussion] Shubhayudatta:
Root not successful

Hi,

Facing some issue here.

I gone through the entire flow, and tried to check the root status by one of those apps. Found that root is unsuccessful.

Then I tried to repeat the process. Now, during "fastboot oem unlock" its throwing me error, and actually its not wiping/doing anything. The error is: OEM unlocking failed, device already unlocked. And, so the enitre process is failing.

I am not an expert, but sort of know a thing or two about rooting. I mean to say, I understand the basics.

Need some help!

Thanks.
[OnePlus 5 Guides, News, & Discussion] KOLIOSIS:
WELCOME TO XDA-DEVELOPERS! :good:

You're on the right track,but simply unlocking your bootloader does not root your device.

Continue reading the instructions past the bootloader unlock step & if you have questions ,ask away.

Here's a couple videos to help out,if needed:

https://www.youtube.com/watch?v=P3GDn7j0mz0

https://www.youtube.com/watch?v=fWZOrEbgoQo