yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 Guides, News, & Discussion] Shubhayudatta:
Hi,

Thanks.

As I said I tried to unlock OEM. It should wipe everything clean....and then I proceed to flash twrp and other stuffs. But OEM unlock is doing nothing. Rather it's showing me an error that it's failed as it's already unlocked. And that's true, as it's my 2nd attempt, the 1st attempt couldn't root the phone (as per the root checker apps).
[OnePlus 5 Guides, News, & Discussion] Luit_:
Magisk issues

When I try to find the Magisk zip in the TWRP interface I can't seem to find it. I put the Magisk v12 zip on the internal storage, and I know it's there because I checked. But all the folders are encrypted and I don't want to decrypt them.
[OnePlus 5 Guides, News, & Discussion] néonaloj:
Flash that zip, it saved my day when I had same issue.
[OnePlus 5 Guides, News, & Discussion] linuxares:
Hi, so I just got a new update on the Oneplus 5. Now I can't flash TWRP to it anymore. It say the size of the recovery image is too big. Tried the 58 and the official one.

EDIT: After reading, I shouldn't have applied the partial one. I need to sideload the full one then everything should be fine.
[OnePlus 5 Guides, News, & Discussion] jrosaly:
Im still a bit confused about the partial update warning in the instructions. I just downloaded the Ota update to 4.5.5,but do I need to instead download a full 4.5.5 install? Is that what the warning means? I have the official twrp version and I am encrypted. If I need the full os install, where do we get it? After flashing, am I going to have to reinstall twrp and su? Sorry for the repeat question, but I want to make sure I don't get in trouble.
[OnePlus 5 Guides, News, & Discussion] Flint2:
To apply partial OTA you need unmodified system an d stock recovery

You can download full from http://downloads.oneplus.net/oneplus-5/oneplus_5_oxygenos_4.5.5/

After flashing, don't boot and flash again twrp and root of your choice.
[OnePlus 5 Guides, News, & Discussion] jrosaly:
Thanks for the clarification, see the way I interpreted this statement:

! If you want to use partial OTAs, you must first flash a full OTA that it applies to, and then flash the partial OTA from stock recovery.

was that if you are at 4.5.x, you're safe to do an incremental update like. 3 to. 5
[OnePlus 5 Guides, News, & Discussion] Flint2:
If you want to use partial OTA, system must be pristine. For example I did update partial OTA un installing Magisk and flashing stock kernel and recovery, then updating via OOS update,and finally flash twrp, Magisk and ex kernel.

Is tricky because you must be sure system was not modified, that's why on almost every guide recommend flashing full OTA.
[OnePlus 5 Guides, News, & Discussion] netsonic:
I rooted the device using Supersu, now I want to try Magisk root, how to switch to it?
[OnePlus 5 Guides, News, & Discussion] jrosaly:
Slightly off topic, but is magisk better than su?
[OnePlus 5 Guides, News, & Discussion] Shubhayudatta:
Unable to root

Hi guys,

I wonder where did I go wrong while rooting the device. This is my 2nd post here asking for help, hope someone takes the pain to reply.

The problem (note: this is my 2nd attempt to root. So, its already unlocked, and TWRP is already there)

1. I have downloaded TWRP, SU as mentioned in the links.

2. 'Fastboot Devices' is fine, it detects the phone.

3. 'Fastboot OEM unlock' gives me an error on screen that its "Failed, its already unlocked".

4. I reboot to TWRP recovery, format, or wipe the cache.

5. Reboot the device. Prompts me to set it up. I do so. So far so good.

6. At this point I check and find that I can not copy any file from my PC to the device (USB debugging ON, connection mode is set to transfer files). It just doesnt let copy anything, the progress bar just gets freezed. Also, if I click any pic, it doesnt get saved to the gallery. Means, definitely some storage access issue. Also, the TWRP folder which was generated during my 1st attempt to root/flash TWRP is still there (should be wiped out after OEM UNLOCK, isnt so? )

All in all. OEM UNLOCK is not doing what its supposed to do.

7. Proceeding further is redundant. Still, flashing the TWRP (Again) is successful. Reboot to TWRP, wipe cache.

8. After TWRP fresh flashing, can not copy SU file to the phone (due to the above-mentioned reason).

9. Normal reboot, and I install a root checker app, and it finds that the phone is not rooted (which is not a surprise by now).

Thats the entire story. Would be thankful to any kind-heart who can give me some insight on this.

Thanks.
[OnePlus 5 Guides, News, & Discussion] laupuy:
Hi,

You need to flash twrp via fastboot, reboot twrp and not system, then flash su (supersu or magisk), then reboot system.

Maybe you should flash latest OOS and start a fresh install of twrp and root ;)
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
If you already have TWRP just flash Magisk or Supersu to gain root access, where is the confusion
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
You need to first dirty flash the stock rom to clean up the system partition and then flash Magisk V13

Reboot to recovery

Wipe dalvik and cache

Flash latest 4.5.5

Flash Magisk V13

Reboot system

Done :)
[OnePlus 5 Guides, News, & Discussion] viking_vp3:
Hi There

Thanks to [MENTION=6143932]Funk Wizard[/MENTION] for his efforts and great topics in various OP products.

I am coming from OP3T so familiar with whole procedure mentioned in the beginning of topic.

I want to flash a custom rom i.e. xXx ROM

So I must unlocked the bootloader and instal TWRP through steps which mentioned in a first topic.

Then for a clean Flash the ROM we must go to advanced wipe and clean data+system+cach&dalvic cash. 1- Does this step decrypte the phone or just click on "format data" in “Wipe” section " do the decryption ??? 2- Do i need to flash "no-verity-opt-encrypt" zip in this steps ??

P.S1: I want to remain Encrypted + having costum ROM

***

P.S2:

And what did you mean by that : " Warning: Decryption not working on Stock OOS for now, Do not try the below if you are on Stock OOS "

It means we can only decrypte on costum ROM with modified kernel ??

***

P.S3: by new TWRP we still have problem for decryption ??? or it been solved ???

Since xXx mentioned some problem about decryption here:

https://xdaforums.com/showpost.php?p=72855344&postcount=118

***

Sorry for my bad english and nubish Question

Thanks
[OnePlus 5 Guides, News, & Discussion] Shubhayudatta:
Hi,

I do have TWRP in place.

But, even if I flash SU or Magisk, I am unable to gain root access (checked by root checker apps), and the issue to access storage persists, example: Camera cant save a pic, I cant copy any file to the device.

May be I need to go back to the original factory state of the OP5. Not sure how to do that. Can you give me some insight on that?

Thanks.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Thanks for your support buddy

To begin with format userdata decrypts the device and you need to flash the verity zip before that also all custom roms for now require you to be decrypted so you can unlock flash TWRP then flash xxx and then wipe and decrypt as oos creates problem on decryption for now

Use the latest TWRP 3.1.1-1 should be all ok
[OnePlus 5 Guides, News, & Discussion] Shubhayudatta:
Hi,

I understood what you are saying. I'm following exactly the same flow what you mentioned here.

Would be great if you can give me some details on this:

Maybe you should flash latest OOS and start a fresh install of twrp and root.

Thanks.
[OnePlus 5 Guides, News, & Discussion] Shubhayudatta:
Hi,

Attached a few screenshots.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Use this version

https://xdaforums.com/attachment.php?attachmentid=4192170&d=1498316366

Also dirty flash the stock rom first to clean system partition and then flash Magisk
[OnePlus 5 Guides, News, & Discussion] rickysidhu_:
Might be a really dumb question, but I have a bit of confusion regarding decryption:

If I choose to decrypt, does that mean I have to use the phone without lockscreen security (i.e. passcode/pattern)? Will my device re-encrypt if I do this?

Or is the decryption done in TWRP different from the lockscreen security?
[OnePlus 5 Guides, News, & Discussion] Flint2:
When data partition is encrypted, in order to decrypt (use it) oos and twrp needs the encryption keys, that are protected by pattern or pin password.

Removing encryption is independent of pattern. You can remove encryption and set pattern or pin and device will remain decrypted , but someone with physical access can boot in twrp, remove security files and boot on OOS without pattern / pin.
[OnePlus 5 Guides, News, & Discussion] netsonic:
Reboot to recovery——Can I use TWRP to do the recovery?
[OnePlus 5 Guides, News, & Discussion] rickysidhu_:
Ahh, thanks for the super clear explanation! Appreciate it a ton:)
[OnePlus 5 Guides, News, & Discussion] Hrithan2020:
Was able to successfully flash the magisk. (went by the encryption option).

But, now I'm finding that /data is encrypted (file manager or via MTP) not able to copy or create any data in /data.

Request your help in solving this. If i try to flash the no-verity after all of this, it will not work right? One plus forums, I was finding that the option said that
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Yes TWRP is preferred recovery :good:

Try flashing the SD card fix to update premissions if you don't have access. Don't relate decryption to data permissions

Please report once solved, thanks
[OnePlus 5 Guides, News, & Discussion] zgmf-x322a:
Hi, simple question, my op5 bootloader is unlocked, if i relock it, will the op5 have any problems? Thanks in advance

Urgent! :crying:
[OnePlus 5 Guides, News, & Discussion] Hrithan2020:
Thanks so much. That fixed it :)
[OnePlus 5 Guides, News, & Discussion] magicmaia:
Custom rom and recovery? No problem

EDIT

STOCK should be no problem (thank you flint2)
[OnePlus 5 Guides, News, & Discussion] Flint2:
Don't relock bootloader with custom ROM, kernel or recovery. Go back to stock before relock
[OnePlus 5 Guides, News, & Discussion] SynisterWolf:
I would not suggest to lock the bootloader when on a custom rom or recovery. It could cause issues and you will be stuck with a fancy brick. Just because you can doesnt mean you should. If you do so, you are doing it at your own risk and no one but yourself is responsible for doing so.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
As mentioned above to look the bootloader you have to be completely stock with no modifications to any partition like system or recovery. If you are planning to keep the device I recommend you keep it unlocked and even if you are planning to return the device you can return it unlocked with no questions asked.
[OnePlus 5 Guides, News, & Discussion] JelloB:
I'm sorry if this has been addressed but I'm at my wit's end just trying to get twrp to flash. I've read through the first seven pages or so of this thread and didn't see anything.

My device is recognized on adb. I had no issues unlocking. I placed the latest and official twrp image in the android folder that contains my adb and fastboot. I renamed it "recovery". Still, no matter how many times I attempt to flash the image I get the same "error: cannot load" message. There's nothing about it being too big a file. Just "cannot load".

I've rebooted everything. I've uninstalled/reinstalled... Basically I've spent way too much freaking time trying to get this and I'm stuck.
[OnePlus 5 Guides, News, & Discussion] gursimar:
Hi , I just got my op5 today:laugh:. So thr first thing I did was unlock it. Everything happened succesfully. But the thing is after flashing twrp and booting into twrp I can flash anything. But as soon as I boot into OS and reboot back to recovery it automatically goes back to stock recovery!! What am I doing wrong?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Check if the device is recognized in fastboot by doing fastboot devices.

If you see your reply confirming your device id you are good to go. Just make sure the command prompt is open in the same location where you've downloaded the TWRP image.

Rename is also optional, you can copy past name of the recovery and flash it

like if you are flashing the latest official twrp the command will be as below:

Fastboot Flash Recovery twrp-3.1.1-1-cheeseburger.img
[OnePlus 5 Guides, News, & Discussion] rickysidhu_:
I'm still waiting on my device to arrive but I believe you are supposed to

1. Reboot to recovery and not system after flashing twrp

2. Flash supersu or magisk before going into the system
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
As mentioned by [MENTION=4691727]rickysid[/MENTION]hu as soon as twrp flash is complete, use the vol rocker a couple of times till it says reboot to recovery and then press power for selection. The device would reboot into twrp. There on follow the OP and flash the desired root method. Once done then you can reboot system to boot into OS
[OnePlus 5 Guides, News, & Discussion] amskhan1:
I have been following the instructions in the OP. I have encountered a problem. I am trying to flash the OPT no verify file, but every file in my recovery has an encrypted file name. Was there an instruction i missed that made it possible for the phone recovery to be able to unencrypt the files?
[OnePlus 5 Guides, News, & Discussion] JelloB:
The device is recognized. Like I said, I unlocked it fastboot with no problems. What do you mean by "make sure the command prompt is open in the same location where you've downloaded the TWRP image"?, and how do I determine whether it is? I've tried running command in every path I can think of. The adb folder is just on the root of my C drive and the recovery image is in that folder along with adb.exe and fastboot.exe. I've run command from there and still the same message.
[OnePlus 5 Guides, News, & Discussion] SynisterWolf:
you might need to run CMD as administrator.

search CMD in the start menu right click run as administrator.

cd C:\adb\

fastboot devices <should show device serial number>

fastboot flash recovery recovery.img
[OnePlus 5 Guides, News, & Discussion] JelloB:
I've tried it as an admin but not with the adb path added in. I'm heading out the door but I'll try your suggestion when I get home. Thanks.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
I am not sure what you are looking for. Are you looking to decrypt the device or format ? Follow the OP it have all the info.

If you run the command as an admin try the drag and drop file method if that works or try the other folder say Android folder in the same C drive

Paste the recovery in the folder

Hold shift and Right click and open command prompt there

Flash recovery by the command or drag drop if that works
[OnePlus 5 Guides, News, & Discussion] zgmf-x322a:
Thanks m8
[OnePlus 5 Guides, News, & Discussion] JelloB:
Yes. Solved.

Well....I'm getting the 'file too big' error, but I think I've seen a solution for that somewhere. It's at least finding the file now, so thank you very much. Thanks to Funk Wizard also for...everything.
[OnePlus 5 Guides, News, & Discussion] Flint2:
Please use the Thanks button in the post that helped you. Much more appreciated (don't waste a thanks on this one, you have 8 a day)
[OnePlus 5 Guides, News, & Discussion] JelloB:
ok... wtf. I tried the zip to allow large files fix. It's not working for me.

When I attempt to flash the image I get first "FAILED (remote: unknown command)

When I try again I get FAILED (remote: Requested download size is more than max allowed)

I thought this phone was going to be a breeze to rom with. I can't even get a custom recovery to flash.
[OnePlus 5 Guides, News, & Discussion] Gonik:
Hey Funk Wizard... Fantastic guide!

I do have the OnePlus 5, stock unrooted so far. I was waiting for the official TWRP (and some more free personal time :P) to come along.

From what I understood, if I unlock, put custom recovery and root the device, I cannot flash OTAs as they come.

The only way to install the update is to flash the "full" image rom from here? Won't this erase the entire phone and everything must be installed from scratch?

Wow this is quite time consuming.
[OnePlus 5 Guides, News, & Discussion] SkyDemon1:
Hi!

so what if i unlocked the boatloader and then updated the system using OTA, will it work ?
[OnePlus 5 Guides, News, & Discussion] Hetalk:
ummm ... i'm sure you must have done it, but did you try to download the twrp image again. Maybe it's a bad download :confused:

---------- Post added at 04:53 PM ---------- Previous post was at 04:52 PM ----------

Yes. Unlocking bootloader will not kill OTAs. But, if you flash twrp or any other mod, OTAs will fail and you need to follow the full zip install procedure.

---------- Post added at 04:55 PM ---------- Previous post was at 04:53 PM ----------

Nope. It wont erase everything if you do a dirty flash. Only time system will erase everything is when you unlock(or relock) bootloader or wipe everything manually.

But yes, that full rom zip will overwrite twrp with stock oos recovery, and you wont be rooted. You'll have to flash both again.
[OnePlus 5 Guides, News, & Discussion] Gonik:
Hello Hetalk, thank you for the reply. This is very reassuring. In order for me to apply the OTA, should I flash the stock recovery first or I can flash it over TWRP?
[OnePlus 5 Guides, News, & Discussion] Hetalk:
Yes, you can flash the full zip (1+ gb file) using twrp.
[OnePlus 5 Guides, News, & Discussion] 2hdq:
Hi!

Forget me if I ask something that has been already covered.

Just today I found that TWRP is now officially out for OP5. It says however that it won't work with dm-verity, so I do have to format and sideload the no-verity-opt-encrypt in order to get magisk and safetynet bypass to work?

I searched xda for disabling dm-verity and patched images, but all the answers I could find were for OP3/T. This is my first OP device since the One, and that was easier to customrecover/boot, so it seems.

Thanks for the help.
[OnePlus 5 Guides, News, & Discussion] rapdes:
after unlocking the bootloader is there any way to remove the unsecure message and 5 second wait every time you reboot the phone?
[OnePlus 5 Guides, News, & Discussion] JelloB:
Ok, I feel like I'm making progress but I still can't get it to work. I have downloaded different versions of both platform tools and twrp. I get the failed max download size message. If I try again, I get the message again. If I try a third time it says sending recovery (24496 KB)...

...

and then hangs. It just never finishes.

Thoughts/ideas/solutions?
[OnePlus 5 Guides, News, & Discussion] 3DSammy:
Not at this time. I read a post commenting they experienced the same thing on the OP3T but someone eventual found a work around. You do know that if you press the power button it will start the phone rather than wait for the 5 second delay? That's the same whether your boot into the system or recovery.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Well you just need to download the full rom and dirty flash it, no data loss no app loss no media loss no nothing.

The OS would get updated and you are done. Just need to download the full zip instead of the OTA :fingers-crossed:

I shall always be around and i also have an update thread OOS 4.5.5 where you can find all the info on how to update and install the OTA for both stock or custom users :highfive:

Unlocking the bootloader would not make any difference and you should be able to flash the OTA just fine.

Only if you make some changes to your system partition like rooting or some other modifications, OTA flash would fail and then you would need to flash the full zip :fingers-crossed:
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
You are making it complicated. You don't need the verity zip unless you want to decrypt the data partition which is only needed if you want to run custom roms for now or rum multirom/dual boot patcher.

Magisk works fine as i have personally tested V13.1 yesterday and both root and safetynet pass can be achieved. Let me know if you have any questions.

Download from the official twrp section, latest available here

Not possible and the secure boot message will always be there, there is no workaround, also the 3T thing is the removal of second DM Verity Screen which could be done via fastboot. OP5 Does not have that issue, so no need for it as of now :good:
[OnePlus 5 Guides, News, & Discussion] JelloB:
I did. Still no luck. Reinstalled platform tools directly from Google too. Same issue. I get the max download size error two times, then on the third try the install/flash just hangs and never completes.

I'm coming to the conclusion that I might not be able to get this thing rooted at this time. Maybe a future version of twrp will work for me. Does clockwork mod still make a recovery?? Any other alternatives or is twrp the only game in town these days?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
If the device is recognized in fastboot, Try: fastboot boot (recovery name).img

If the device boots into twrp just flash from within twrp as an img

else you have to find a different machine/pc. Keep us posted :fingers-crossed:
[OnePlus 5 Guides, News, & Discussion] JelloB:
Thanks, but no luck with this either. It acts like it's going to work but it just hangs. I tried flashing twrp using an all in one tool just now. It just hangs until I press a button on the phone and then it responds with a fail message.

I think I'm officially giving up for now. Doesn't seem like is possible for me to flash twrp through adb currently. :shrugs:
[OnePlus 5 Guides, News, & Discussion] KOLIOSIS:
I have/had similar experiences w/LG devices/toolkits/software on my home PC (so much so that I've owned my last LG Device,recently selling it on Swappa),so,FWIW,I know the level of frustration you're experiencing.

Hopefully,you have access to a different computer to try again...............
[OnePlus 5 Guides, News, & Discussion] JelloB:
I knew it would be something simple. Switching usb ports did the trick for me. I'm rooted with twrp finally.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
It's a Windows 10 issue are you on 4.5.5 if yes, turn off and turn on debugging again from developer options and try connecting again, else you have to find a different computer/machine
[OnePlus 5 Guides, News, & Discussion] JelloB:
Funk, I posted above that I finally got it. It was the usb port. Thanks again for everything.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Oh m glad you finally made it. Let me know if anything else is required. Happy flashing :laugh:
[OnePlus 5 Guides, News, & Discussion] Flying Fox:
It´s always the same - it doesn´t seem to work with USB 3 port. Changing to a USB 2 port normally helps. So the PC should have a USB 2 port. We should keep this in mind, if we have only one computer ;)
[OnePlus 5 Guides, News, & Discussion] mufraver:
What are the steps to revert back to 100% stock? (remove root, remove twrp, relock bootloader etc..)

Can't find any guides for that
[OnePlus 5 Guides, News, & Discussion] laupuy:
Hi,

You can take a look at this https://forums.oneplus.net/threads/...-3-3t-and-go-back-completely-to-stock.456232/

It's for OP3 /3T but it's same thing for OP5.

Or simply flash stock OOS rom with twrp (wipe data factory reset) without flashing root. You should be on stock OOS, with stock recovery, without root then fastboot oem lock to relock bootloader.

@+
[OnePlus 5 Guides, News, & Discussion] funkyirishman:
Ok its been a while since I flashed phone previously so bear with me. I want to root to install adblock etc but I still want to receive OTA. So if I do root do I just then follow the instructions for rooting when I receive an OTA and everything else should be done ie bootloader unlocked etc. and I don't need to repeat these steps?

T