yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
You first need to download the Magisk file and paste it on your internal in order to search for it and install from TWRP.

Just download latest stable Magisk 13.3 on your device and the flash the same from TWRP via install menu with default location from downloads or wherever your kept the file.
[OnePlus 5 Guides, News, & Discussion] FromtheSuburbs:
I'm a dope. I was trying to flash from within the zip file, instead of using the zip itself. Everything is working like a charm now. Thanks!
[OnePlus 5 Guides, News, & Discussion] morgan.zen:
restore nandroid backup from OP5 64GB to 128GB

Hello.

I have an OP5 64GB where I did a nandroid backup.

Now I want to restore the nandroid backup on an other OP5 of 128GB (with same ROM, root, etc). Are there any contraindications or problems?

Thanks
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
That's not recommend I recommend rather use Titanium backup to restore apps but as the device keys are different nandroid restore is not recommend
[OnePlus 5 Guides, News, & Discussion] Cyber.droid:
Can I still receive the official OS update when I unlocked the Bootloader, Install a Custom Recovery and Gaining Root?
[OnePlus 5 Guides, News, & Discussion] laupuy:
Hi, yes.

take a look here https://xdaforums.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003

post#3 for update (you need full rom in your case).

;)
[OnePlus 5 Guides, News, & Discussion] ToneLa:
Why doesn't SuperSu install? it just says failed. I moved the Zip and I'm trying to install that.

I can't install a new ROM either - install failed

i can get into recovery by holding down - install from zip - this isn't working, any idea why? thanks
[OnePlus 5 Guides, News, & Discussion] gunther82:
Hi, in case of update performed by flashing the full ROM, all the app need to be re-installed?
[OnePlus 5 Guides, News, & Discussion] laupuy:
No, just perform a dirty flash rom +root
[OnePlus 5 Guides, News, & Discussion] ToneLa:
Guys I fixed my issue by re flashing alternative TWRP

One thing about the guide, the Platform Tools folder is misleading, why mention it? If you do command prompt from the location where your image is or change your directory with the CD command, you'll be fine.

Platform Tools refers to the Android sdk which isn't needed.

All rooted and happy now, thanks for the guide :)
[OnePlus 5 Guides, News, & Discussion] gunther82:
Ok, perfect, thanks!
[OnePlus 5 Guides, News, & Discussion] Ashutosh Sundresh:
There is a thanks button ,you know
[OnePlus 5 Guides, News, & Discussion] alexchandra:
Hi, I already have my OP5 working with 4.5.8, unlocked bootloader, decrypted, twrp-3.1.1-k3, and rooted with magisk 13.6.. Just now, I flashed 4.5.10 full zip (I checked the md5), flashed magisk, wipe dalvik and cache, then rebooted.. It kept rebooted back to recovery (bootlooped).. What did I do wrong? Do I need to flash the no verity op5 again? Thanks in advance..

Update: yep, apparently it's the no_verity_op5 zip file.. ?
[OnePlus 5 Guides, News, & Discussion] almahdi10:
Hello... Can u give me a walk through of hownto. Install the latest update without losing any data

---------- Post added at 04:26 AM ---------- Previous post was at 04:25 AM ----------

Whats a no verity?
[OnePlus 5 Guides, News, & Discussion] alexchandra:
It's the zip file that is used to allow decryption. I think you'll need it only if you're decrypted. By default, OP5 is encrypted, so if you've never heard of that zip file, chances are you're still encrypted and don't need that file even if you're rooted.
[OnePlus 5 Guides, News, & Discussion] laupuy:
Come on...:rolleyes: and this is Off Topic here, we should talk OOS rom in the other thread !

all is explicated by Funk Wizzard https://xdaforums.com/showpost.php?p=72799070&postcount=3

- wipe cache and dalvik: dirty flash, no data lost

- flash rom and root

- reboot

please read OP (in this thread) and post #6 https://xdaforums.com/showpost.php?p=72748922&postcount=6

---------- Post added at 09:09 AM ---------- Previous post was at 09:00 AM ----------

Hi,

Why do you want a decrypt OOS?

You should do a format data and flash latest OOS rom to stay encrypt and no more problems.

Did you try blu_spark twrp?

And this is Off Topic, better talk OOS rom in OOS thread https://xdaforums.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003

;)
[OnePlus 5 Guides, News, & Discussion] atf2m4:
Thank you for detailed guide
[OnePlus 5 Guides, News, & Discussion] swords90:
Hello to all!!!

I have a problem.

1. I installed ADB For Windows from the link.

2. Then i enabled USB debugging and OEM Unlocking.

3. Then i turn off the op5, and put it in fastboot mode, then i plug it and opened the command prompt window.

4. Then i wrote: fastboot devices, but nothing happens, the pc cant find my phone. I reinstalled the adb drivers and opened the command window with administrator rigths.

Can someone help me?? I have windows 10.

Thanks to all!!
[OnePlus 5 Guides, News, & Discussion] ChefChaudart:
Usb 3 ?
[OnePlus 5 Guides, News, & Discussion] rirri:
Thank you! Perfect guide!
[OnePlus 5 Guides, News, & Discussion] seedubya:
This happened to me but was fixed with a reboot of my PC and Phone.
[OnePlus 5 Guides, News, & Discussion] bormo:
Is there a specific blu_spark twrp for OP5? I see you're using OP3...
[OnePlus 5 Guides, News, & Discussion] laupuy:
Hi,

Yes, take a look here https://xdaforums.com/devdb/project/?id=21949#downloads

;)
[OnePlus 5 Guides, News, & Discussion] bormo:
Thanks!
[OnePlus 5 Guides, News, & Discussion] nathlynn2201:
Can I relock the bootloader after unlocking it flashing TWRP and Rooting with Magisk? Thanks

---------- Post added at 06:25 AM ---------- Previous post was at 06:18 AM ----------

Last night I've rooted my One plus 5 using official twrp. Is it best to switch to blue spark. I guess I'll have no problems flashing it over the top of the twrp I have now. And won't cause any problems with the stock ROM and Magisk root I have?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
No you can't lock the bootloader with twrp and Magisk, you have to be completely stock in order to lock it. I do not recommend locking the bootloader as it does not make a difference.

Also I recommend use of latest bluspark V43 twrp and yes you can flash it over your current twrp :good:
[OnePlus 5 Guides, News, & Discussion] nathlynn2201:
Great thanks I'll reflash that tonight. I won't need to reflash the no verity file will I? Thanks
[OnePlus 5 Guides, News, & Discussion] kevwang47:
success?

Has anyone tried this method of rooting as per https://xdaforums.com/oneplus-5/how-to/oneplus-5-unlock-bootloader-flash-twrp-t3624877 with success?
[OnePlus 5 Guides, News, & Discussion] Liam1694u:
Too much info to digest.

Hey all!

My new Oneplus 5 is arriving in 2 days and I plan to root right away. I'm reviewing what needs to be done, but there are 80+ pages in this thread. Too much to go through. Can anybody let me know if there are any major changes to the proceedures, software versions, etc since the first few posts that I should be aware of before proceeding?

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

read OP (post#1 and the following by Funk Wizard), this thread is up to date and fully working :good:

Read is the key ;)

And use blu_spark twrp !
[OnePlus 5 Guides, News, & Discussion] Leinad35:
I agree, except that the link to the bluspark TWRP seems to be broken, at least for myself...

Anyone else?
[OnePlus 5 Guides, News, & Discussion] laupuy:
here we go: https://xdaforums.com/devdb/project/?id=21949#downloads (there're kernel.zip and twrp.img, be carfull).
[OnePlus 5 Guides, News, & Discussion] Liam1694u:
Thanks guys! I appreciate it. Yeah, I read through the first few posts and skimmed the other 80 pages a bit. I noticed the blue spark twrp.

So once the new phone comes in, I'll make sure the rom is up to date with the latest OTA and then get to work. I appreciate the advice and help.
[OnePlus 5 Guides, News, & Discussion] laupuy:
And don't forget this thread: https://xdaforums.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003

You can flash official OOS rom with twrp also (for rooted users, post#3) ;)
[OnePlus 5 Guides, News, & Discussion] mrjuniork:
K3 ok too :)
[OnePlus 5 Guides, News, & Discussion] D168:
What (if any) are the benefits to the bluspark kernel over stock?
[OnePlus 5 Guides, News, & Discussion] Liam1694u:
Awesome! Thanks.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
No need of verify zip unless you'd want to manually decrypt your data partition, stay default is what I recommend with encryption :good:
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Congratulations and welcome to the Oneplus Family :highfive: Just follow the OP, the posts on the first page are enough and will guide you to unlock and root your cheeseburger in the right way :good: I'll be around to answer your questions if you face any issues :fingers-crossed:

Link updated, the links keeps changing so I've updated it now. Blu Spark recovery recommend over official for now.

For the update to the latest os I am running a separate thread as below, keep an eye on it as well

https://xdaforums.com/oneplus-5/how...-7-1-1-ota-t3627003/post72799046#post72799046
[OnePlus 5 Guides, News, & Discussion] Danielci58:
Not working for me

PD : Tried in 2 different PCs and 6 usb ports 2.0 and 3.0

Windows 8 and windows 10.
[OnePlus 5 Guides, News, & Discussion] Leinad35:
You're trying to flash 'boot' img onto recovery partition ?
[OnePlus 5 Guides, News, & Discussion] mrjuniork:
You might reconsider flashing (rooting) , if those simple commands can't be used properly. Or at least conduct a thorough research before even plugging in your device.
[OnePlus 5 Guides, News, & Discussion] lollyjay:
Should be fastboot flash recovery <name of your recovery>.img for example fastboot flash recovery twrp.img if the name of the recovery image you downloaded is twrp.img
[OnePlus 5 Guides, News, & Discussion] avlis88:
I'm trying to unlock the boootloader, but the device does not appear after the fastboot devices command. I followed the tutorial and phone is in fastboot mode. When I use adb devices command it works.

edit: adb devices work only in started mode, in fastboot dont work.
[OnePlus 5 Guides, News, & Discussion] Danielci58:
It was just a random name xD. I just made it shorter for the command line lul.

Anyway I updated to last OTA and redid the CMD part and worked.
[OnePlus 5 Guides, News, & Discussion] Liam1694u:
The phone arrived today and the rooting went flawlessly :good:. Exceptional walk-through of the process. THANK YOU Funk Wizard for setting this thread up. It was painless compared to the circus I had to go through to root most of my Galaxy devices over the years (my fault for always choosing the "Active" models :confused:).

Thanks Again!
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Glad I could contribute, keep an eye on my other update thread for the latest updates and on how you install them error free while keeping your recovery and root intact. More to come soon :highfive:
[OnePlus 5 Guides, News, & Discussion] nathlynn2201:
Just wondered what's the oneplus twrp on the o p or is it a flashable theme. Thanks
[OnePlus 5 Guides, News, & Discussion] patr_:
It's a theme by [MENTION=6044723]Morphine1[/MENTION] . Check out his Thread:

https://xdaforums.com/oneplus-5/themes/theme-black-themed-official-twrp-t3651669/post73290454
[OnePlus 5 Guides, News, & Discussion] nathlynn2201:
Any problems using that 1 [MENTION=6143932]Funk Wizard[/MENTION] the themed twrp from morphine?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
I would recommend to use bluspark twrp and u can flash the theme zip only to skin the twrp on top :good:
[OnePlus 5 Guides, News, & Discussion] prozo:
Thanks for the guide, it's very much appreciated
[OnePlus 5 Guides, News, & Discussion] TheHellSite:
I just unlocked bootloader and backed up EFS and modem. Now I want to root my OP5 with latest Magisk.

The OP states that rooting will "break" the OTA ability in some way, which I don't understand exactly.

OTA will break if we flash a custom recovery (and root?), is this correct?

Since Magisk 14.0 gives us the ability to install it using a fastboot image created from the stock boot image, will this give us root + OTA without any issues?

For what I read I have two possibilities to keep OTAs working:

1. Flash Magisk using the fastboot method.

or

2. Use "fastboot boot recovery" and install Magisk via zip.

Both methods won't touch recovery partition and should therefore keep OTAs working, is this right?

Since I won't be using this device everything needs to be as easy as possible, including OTAs.

Because of that it would be nice to keep OTAs working without any issues or workarounds and also pass SafetyNet, ctsProfile and basicIntegrity.

Oh and will a OTA (not a full OTA above 1 GB) remove Magisk?

I hope someone can help me out a little bit here. :confused:
[OnePlus 5 Guides, News, & Discussion] laupuy:
[MENTION=5632406]TheHellSite[/MENTION]

Take a look at rom thread (post#3) https://xdaforums.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003

You can root with magisk and you wil receive ota (full zip because root detection by system) and you can flash full rom by twrp (and again root to remain twrp and root because stock rom will erase root and twrp if not) but not the small incremental ota (<1GB).

;)

Edit: ota will be download in /sdcard/.ota so best way is to move this file to /sdcard and dirty flash rom (aka ota full zip) + root with twrp
[OnePlus 5 Guides, News, & Discussion] TheHellSite:
Thanks for the answer but I already knew that.

What if I don't flash twrp permanantly and just boot twrp with fastboot all the time I would need/want to flash zips?

Wouldn't that enable the system to apply the ota on its own since the stock recovery is still present?

Again if the device would belong to me, installing the OTAs manually wouldn't be an issue at all. But it is for a friend of mine and he doesn't know that much about it.
[OnePlus 5 Guides, News, & Discussion] kallekula33:
Perhaps a noob question (sorry for that in advance) but what is the difference between BlueSpark TWRP and the official TWRP?

Why should I choose one over the other? Is there any benefit doing that? If someone could explain I would be most grateful before

going ahead with rooting my device.
[OnePlus 5 Guides, News, & Discussion] laupuy:
[MENTION=5632406]TheHellSite[/MENTION]

Why make things so complicated?

Stock recovery without root: just do the (small) OTA, recommended method for your friend

Custom recovery or rooted device: flash full rom, for advanced users

---------- Post added at 04:06 PM ---------- Previous post was at 03:58 PM ----------

Hi,

blu_spark twrp is made by [MENTION=3873953]eng.stk[/MENTION] and frequently updated what is not the official twrp.

You can use the official, should work, but in case of problem, try blu_spark and it should be fine :good:
[OnePlus 5 Guides, News, & Discussion] TheHellSite:
[MENTION=6849132]laupuy[/MENTION]

I don't want to piss anybody off or make things complicated. :laugh:

Just would like to know, if this is possible:

Stock recovery with root: apply (small) OTA (and maybe even while keeping root, this is of course not mandatory)

My friend wants to use root with Cerberus, AdAway, etc.
[OnePlus 5 Guides, News, & Discussion] kallekula33:
I will go ahead with blu_spark as you mention, thanks for a quick and prompt reply ! :good:
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
As [MENTION=6849132]laupuy[/MENTION] said follow the post below to update safely.

Take a look at rom thread (post#3) https://xdaforums.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003

Once the device is rooted you need to flash the full zip for update followed by the latest Magisk, twrp would stay as your default recovery.

My thread would always be updated so just follow the instructions or you can get in touch with me on TG Group for the latest first, link on my signature :highfive:
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Small answer, Not possible, if rooted you need to flash full zip instead of small OTA
[OnePlus 5 Guides, News, & Discussion] laupuy:
[MENTION=5632406]TheHellSite[/MENTION]

I don't recommend that (I never tested so I'm not sure) I think you will have a bootloop or this message "your device has encountered an issue and will be factory reset"

The rule is the one I gave earlier:

device stock -> ota

not stock -> full zip

But you can try and let us know

Edit: arf, ninja'd by Funk Wizzard :D
[OnePlus 5 Guides, News, & Discussion] TheHellSite:
[MENTION=6849132]laupuy[/MENTION]

[MENTION=6143932]Funk Wizard[/MENTION]

Just a short question for Funk Wizard.

Did you ever try stock recovery with root and applying small OTA?

If not I would of course offer myself for testing. The phone is anyway not configured completely.

So no problem with data loss or factory reset.

I would however need to downgrade the rom. Just download previous full rom zip from oneplus and install via twrp right?
[OnePlus 5 Guides, News, & Discussion] kallekula33:
In adb I'm getting Unauthorised when running ADB devices ... fist time I've even seen this

I have installed OnePlus USB drivers and I can see the Android ADB interface. It says Samsung Android phone for some weird reason though. Could this be the problem?

Any advice that could lead me in the right direction. Perhaps uninstalling all drivers might do the trick ? I run Win 8.1 professional.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Stock recovery is equipt to flash both full zip or ota, however when you have root if you reinstall stock recovery and try to flash incremental ota instead of full zip it would fail or the device would go into a boot loop.

Thus full zip flash is recommended to wipe clean the system partition and then root again on top

You need systemwide fastboot and ADB installed and first time you type ADB devices you have to authorize the device key

As i said above stock recovery is capable of flashing full zip so you can flash it via stock recovery or twrp and skip the sideload part. If you still wish to sideload try using usb 2.0 port and check ADB connectivity in OS first to authorize the device and then reboot to recovery and continue with sideload once device is authorized
[OnePlus 5 Guides, News, & Discussion] alteristkang:
Nandroid backup and fingerprint

Hi all,

Anyway we can save our fingerprints to be restored before we change our security settings to None or Swipe so that we can have our fingerprints again after a NANDROID backup.

It is a hassle to always have to reconfigure my fingers.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
No need to remove the finger print, you can take and restore nandroid with it. If you still remove it there is no way to restore it as it will get deleted along with the lock screen

Sent from Funk Tuned Cheeseburger
[OnePlus 5 Guides, News, & Discussion] alteristkang:
Hi Funk Wizard,

I accidentally entered TWRP, wanted to backup nandroid and realised in change my unlock screen from PIN to swipe. Then I rebooted to my phone, changed to swipe, went back to make a nandroid backup, installed Magisk 14.0. Then when it rebooted it was fine like normal, I could enter the magisk app to see that I have the latest magisk installed.

I went to sleep and woke up then checked my phone and it shows that my phone is encrypted. So i tried to restore my backup nandroid. it says i need to decrypt it using my password. I used the pin i set up and it failed, removed all the files below and I still am facing the error.

locksettings.db

locksettings.db-shm

locksettings.db-wal.

gatekeeper.password.key

gatekeeper.pattern.key

When I boot into my phone, i can access it but the screen shows as blank and I can't access any apps, seems like it is encrypted. I checked the security and lockscreen is swipe, and there are 2 fingerprints inside. Whenever I try to change to None or any pin, the change does not work.

Please do help me on this.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Ok once encrypted, you can't restore backup that was taken when you were decrypted. You should try to dirty flash your ROM followed by Magisk.

Report back once done.
[OnePlus 5 Guides, News, & Discussion] alteristkang:
How do i dirty flash my rom? Since my ROM is in my internal data and I don't have a USB OTG
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Try to boot into os and create a new pin/pattern and then boot into twrp to be able to update it's crypto. Use the latest bluspark twrp
[OnePlus 5 Guides, News, & Discussion] kallekula33:
Thanks for your reply. I managed to get by the Unauthorised issue. So now that is OK. However now the issue giving the fastboot devices at command prompt will not result in anything. It all empty. Could this still be drivers issues? Perhaps I should attempt this in Linux instead. I have on old PC running Manjaro distro.

Oneplus two
[OnePlus 5 Guides, News, & Discussion] alteristkang:
Now when I boot into OS, it just shows a blank screen, I think I will just reset all the data. Sigh...
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Yes if fastboot devices does not come up with your device key then it seems a deriver issue. Please note fastboot devices would only work when you are in bootloader/fastboot mode so try the 15 sec adb/fastboot drivers
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Sorry mate, try flashing the latest bluspark recovery from fastboot and try booting into the recovery to see if its able to decrypt your data, else you'll have to factory reset I am afraid
[OnePlus 5 Guides, News, & Discussion] kallekula33:
Sure thing. I'm giving the fastboot reboot command from command prompt. The phone reboots nicely but then nothing.

Then it says Waiting for device. And that's it.

What driver might be failing? I have the fastboot, ADB and the 2 other files present in the ADB folder. Anything else that I miss? I didn't install the complete platform tools. But that is not needed? Or is it? What should I remove and reinstall? Perhaps this is a sign that I should not root my phone [emoji12].

Oneplus two
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Well if fastboot devices does not respond with your device key you can't continue as that's needed for the commands to execute.

Unlocking bootloader and flashing recovery both need fastboot comments.

You need systemwide fastboot installed and make sure you are running the command prompt as a administration
[OnePlus 5 Guides, News, & Discussion] aeonix_05:
Hi [MENTION=6143932]Funk Wizard[/MENTION]

If I want to go back to stock recovery and flash the zips via Flashfire instead. Do I need to download the full zip when using Flashfire or just the incremental update will do for OTAS? And also, how can I flash back the stock recovery?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Well if you are rooted you have to flash the full zips only and ota flash would fail. You can flash stock recovery via fastboot or an IMG flash via twrp however if you are rooted I would recommend to stay on twrp as it offers you better functionality over stock recovery.

For any doubts on how to update I have a separate thread running below and I have mentioned the update method for both rooted and unrooted users with clear instructions.

The thread is updated whenever we have the new ota so you would never be left out.

https://xdaforums.com/oneplus-5/how...-7-1-1-ota-t3627003/post72799046#post72799046

Hope that helps :fingers-crossed:
[OnePlus 5 Guides, News, & Discussion] fidzi_1981:
Hi [MENTION=6143932]Funk Wizard[/MENTION]

First thank you so much for this great guide....very helpful

Can you tell me what is the difference between encrypted or decrypted data partition? is there a benefit for one over the other?

Also, can i used magisk or superSU to root whether my dat partition is encrypted or decrypted?

I am coming from Honor 8 and I always got the red message in twrp that dat partition could not be mounted or unmounted due to encryption

Thanks