yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Welcome to the Oneplus family :highfive:

I would recommend you to stay encrypted and the only reason to decrypt I can think off is multirom. You can use Magisk or Su regardless of encryption so I would recommend Encrypted with Magisk as it would offer you better functionality.

Use the latest bluspark twrp from the op and it decrypts fine.

Keep your learning curve open, I'll be around if you need a hand :fingers-crossed:
[OnePlus 5 Guides, News, & Discussion] fidzi_1981:
Thanks for responding!

One clarification, where can I find the bluspark twrp to download it? and also are you suggesting to use Bluspark TWRP only if I want to decrypt?

My Oneplus 5 is the 128GB USA version...can I follow the guide you posted up here and use the same files to flash recovery and root? or do I need specific files for the 128GB?

Thanks again in advance!!
[OnePlus 5 Guides, News, & Discussion] jhs39:
You should use the Blu spark version because it is kept much more up to date. By decrypting I think he means when you are encrypted you need to enter your pin into TWRP after you boot into recovery so you have access to the phone's internal memory. If you go into ROMs, kernels and original development section for OP5 Blu spark TWRP link is included in the thread for Blu spark kernel.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
The link is there on the TWRP post on my thread, just follow the guide.

Yes the files are same and I also have the 128 gig variant. I recommend bluspark as it's updated often and synced with the latest changes.
[OnePlus 5 Guides, News, & Discussion] mrjuniork:
Is there a specific reason, why you don't link the K3 twrp in the OP anymore? I reckon it very stable and reliable.
[OnePlus 5 Guides, News, & Discussion] morfances:
I followed the procedure to run the root without decrypting the phone. I've already installed twrp and rom. If I wanted to decrypt what to do? Only flash the additional file? Lost the data? Can I go back? Thanks in advance.
[OnePlus 5 Guides, News, & Discussion] rapdes:
I see the link to directly download the blu_sprk twrp in your OP. But is there a thread to follow for this version of TWRP. How do I know what the changes are or if there's a new version of his TWRP? :confused:
[OnePlus 5 Guides, News, & Discussion] aeonix_05:
If I just want a stock recovery and flash the zip thru FLashfire by Chainfire. Where can I download the stock recovery zip?
[OnePlus 5 Guides, News, & Discussion] kallekula33:
Hi, still fighting with fastboot drivers on my Win 8.1 machine. Can't make this working. It's a bit frustrating.

Can someone point me to instructions how to do this on Linux instead?

I have an old laptop running Linux Manjaro. Perhaps I have better luck there.

Needless to say is that I need ADB and fastboot for Linux first on that machine. But how about commands to unlock bootloader and flash the custom recovery?

Oneplus two
[OnePlus 5 Guides, News, & Discussion] fidzi_1981:
I found it. Thank you!!
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
You can follow his kernel thread, he generally drops the extra goodies once a month. I will keep the post updated with the latest
[OnePlus 5 Guides, News, & Discussion] ridobe:
Same as OP. Fastboot is still fastboot regardless of OS.
[OnePlus 5 Guides, News, & Discussion] dipesh.bablani@gmail.com:
Hello all... I have been reading this thread since last couple of days. My one plus 5 arrived today. Just wanted to ask for your opinion if I should root it before starting to use it. I have an s5 which is rooted and I love the experience. Some ppl here keep repeating the fact that rooting one plus 5 is very difficult

Can someone please put some light on this. Thanks a lot
[OnePlus 5 Guides, News, & Discussion] magicmaia:
Unlock the bootloader for now, ( as it will wipe your device). You can root later f you want it. It's not that hard if you read all tips and tricks in this thread. Good luck and enjoy.
[OnePlus 5 Guides, News, & Discussion] gianton:
I'm waiting to receive my OP5 in a few days and I'll unlock the bootloader first (as it wipes the internal storage). Then I plan using it unrooted for a while as I do the same for the past few months on my Nexus 6P too. If you need root it's not hard at all, just follow the instructions on first posts and you'll be fine.
[OnePlus 5 Guides, News, & Discussion] jhs39:
Rooting the OP5 is very easy. I'm not sure why anyone would say it's difficult. Rooting the OP5 is about as easy as it gets when rooting any phone these days.

---------- Post added at 08:25 PM ---------- Previous post was at 08:23 PM ----------

It took me less than 5 minutes to root my OP5 but an entire day to root my PixelXL.
[OnePlus 5 Guides, News, & Discussion] dipesh.bablani@gmail.com:
Thanks a lot for the replies. But I am stuck at the first step only for such a long time. While connecting the adb I am getting an error

E:\ANDRIOD\sdk\platform-tools>adb start-server

* daemon not running. starting it now on port 5037

* error: Invalid argument: cannot open transport registration socketpair could not read ok from ADB Server

* failed to start daemon

* error: cannot connect to daemon

Have been googling in but nothing is helping. If someone can please help me here.

Thanks
[OnePlus 5 Guides, News, & Discussion] rickysidhu_:
What kinds of issues were you running into when trying to root the XL? When I had it, the process seemed simple enough - just flash the zip in TWRP, no?
[OnePlus 5 Guides, News, & Discussion] jhs39:
It was hard to get TWRP to install on the Pixel XL--it would keep getting stuck at the start up screen. I spent hours trying an assortment of things including different builds of TWRP and an automated installation tool. Eventually I figured out that I had to flash-all.bat the stock Google image separately to partitions a & b. After I did that I was able to install TWRP and root. That step was not included in any flashing instructions for the Pixel XL--at least not when I rooted mine. The dual partition set up frequently created flashing problems for people.

---------- Post added at 09:50 PM ---------- Previous post was at 09:39 PM ----------

You are probably using outdated ABD Tools on your Windows computer. Go to the Google Site and download the latest Platform Tools for Nougat. The ABD program is part of the platform tools. I would also personally recommend using the full version from Google rather than minimal ADB which some people use instead. If you download Android SDK from Google that allows you to choose what components you want to install. All you need are the latest platform tools for Nougat and possibly the generic Google USB Device Drivers if you continue to have problems --but I think the OP5 automatically installs compatible USB drivers when you connect it the first time to a computer so the Google USB Driver probably isn't necessary.

---------- Post added at 10:08 PM ---------- Previous post was at 09:50 PM ----------

One more thing--it's important that the command prompt window you open to do ABD commands has administrator access.
[OnePlus 5 Guides, News, & Discussion] rickysidhu_:
Ahh makes sense. Yeah I didn't know about the dual slots initially myself, but luckily didn't run into any issues! As soon as I discovered the whole slot layout thing, I started running flashall to both slots to avoid any potential issues in the future.

I'm definitely happier with flashing on this phone (OP5) compared to the Pixel lol, you're right, it is simpler.

However I think once you get the hang of things on the XL, it's more of a time inconvenience more so than complications.
[OnePlus 5 Guides, News, & Discussion] jhs39:
That's true I'm sure but one of the primary reasons I root is to flash a custom kernel so I can modify the phone performance. You can't do that on a Pixel because even custom kernels run Google's default governor which makes the phone run way too hot. If OP5 added EAS with Oreo I would stay on Nougat.
[OnePlus 5 Guides, News, & Discussion] rickysidhu_:
Yeah my XL ran very warm and my 5 has been ice cold no matter what I throw at it. There are a lot more kernel customizations on this device, that's for sure! :)
[OnePlus 5 Guides, News, & Discussion] kallekula33:
New windows 8.1 machine but still same problem, I think I'm going nuts with this. ADB devices works perfectly fine , but the fastboot just comes up empty :crying:

I tried to install legacy drivers from the device manager in Windows pointing to fastboot drivers but I get some strange error code 10 trying to execute that.

I'm beginning to think that I'm not supposed to root my device. All evidence point to that....
[OnePlus 5 Guides, News, & Discussion] jhs39:
Did you enable USB Debugging in the Developer Options? And enable OEM Unlock? On the OP5 did you actually boot the phone into fastboot? Also, I don't know what your level of computer proficiency is--are you sure the commands you are entering in the command prompt window properly point to the directory where your ADB Program is located?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Great to see you here buddy, glad that you are getting the cheeseburger. Hope you like it and welcome to the Oneplus family. I'll see you around.

Sent from Funk Tuned Cheeseburger
[OnePlus 5 Guides, News, & Discussion] raymund08:
What is the difference between encrypted and decrypted data? Pls help.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
I would recommend you to stay encrypted as now most custom ROMs have their encrypted versions. By default OOS is also encrypted.

Only if you wish to use Multirom you would need to decrypt the device, rest you can read more on decryption.
[OnePlus 5 Guides, News, & Discussion] raymund08:
Thanks a lot
[OnePlus 5 Guides, News, & Discussion] dipesh.bablani@gmail.com:
Finally I was able to complete the rooting yesterday. The issue was for my laptop. I switched on to another system and it was done within minutes. Thanks a lot for all the instructions mentioned here. PS OP5 after rooting feels just awesome :) :)
[OnePlus 5 Guides, News, & Discussion] jhs39:
Condradulations. :svetius:
[OnePlus 5 Guides, News, & Discussion] crisisbuster:
I got stuck at fastboot flash recovery.. had placed twrp.img in android folder as told.. but the command couldn't be executed:crying:

After many unsuccessful attempts had to relock the bootloader & go for stock recovery
[OnePlus 5 Guides, News, & Discussion] :
What is BluSpark TWRP?
[OnePlus 5 Guides, News, & Discussion] laupuy:
Please, don't quote OP!

It's the recovery made by eng.stk, the dev of blu_spark kernel, make a search.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
As stated above :good:
[OnePlus 5 Guides, News, & Discussion] Uzuchiha:
Will I lose my warranty? As that's not the case with Xiaomi phones.
[OnePlus 5 Guides, News, & Discussion] laupuy:
Hi,

Nope, take a look here https://oneplus.net/support/answer/will-rooting-or-unlocking-the-bootloader-void-my-warranty

;)
[OnePlus 5 Guides, News, & Discussion] mauronofrio:
Why do you use old adb and fastboot files? Snoop05 doesn't update it from October 2015...

If you want i make a new version and i update it when a new version comes. This is the link: https://xdaforums.com/android/software/windows-adb-fastboot-installer-sdk-t3516898

My installer doesn't include adb driver installer, but if you need i can give you only the adb driver installer
[OnePlus 5 Guides, News, & Discussion] marko94:
[MENTION=6143932]Funk Wizard[/MENTION] thanks for great guides :)
[OnePlus 5 Guides, News, & Discussion] Aakash Gupta:
Hi guys,

I was unlocking bootloader on one plus 5 using command "fastboot oem unlock". I had all the drivers installed as well as adb installed. I had enabled adb usb debugging and also enables option for OEM unlock.

As soon as I gave the command for fastboot oem unlock and pressed YES for wiping, my device went in bootloop. Its been 20 mins and its still booting. Any help is welcome.!

Thanks in advance.

Edit- powered off and switched on the mobile
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Thanks for your support buddy, I can link it to your setup if you have an updated version, let me know when you have both ADB and fastboot systemwide :highfive:
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
What's the current status, all good ?
[OnePlus 5 Guides, News, & Discussion] mauronofrio:
My installer make adb and fastboot systemwide like 15 seconds adb installer
[OnePlus 5 Guides, News, & Discussion] Killer-931:
Where do we place the files?

Enable Advanced Reboot:

On your phone go to Settings > Developer options. Then enable the 'Advanced Reboot' option.

Download all the files, place SuperSU or Magisk on Device Internal Memory and TWRP img in "the Android Folder under the Platform Tools folder in C Drive"

Right there is where I'm lost, I can't find that folder or don't know what I'm looking for. What is the Exact Directory?
[OnePlus 5 Guides, News, & Discussion] Aakash Gupta:
Yes. All good. I have booted with oreo. But now if I want to change to nougat or any other ROM, I am not able to format data from recovery.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Well use any folder on desktop then if you don't have platform tools installed. Try doing the following steps on a folder on desktop and if you have fastboot working systemwide you should be able to continue without any glitches

FYI no recovery is Oreo compatible for now and when I say Oreo it's OOS Oreo. Stay with 7.0 till the official release and try to dirty flash the same Oreo ROM first and then format data.

Clean flash is recommended for you :good:
[OnePlus 5 Guides, News, & Discussion] Killer-931:
Thank you Funk, I figured it out looking up a video, some things that I don't think were clearly explained were shown and I was able to figure it out quickly. Thank you for helping!
[OnePlus 5 Guides, News, & Discussion] ippocampos:
Killer-931 can you give us the link with the video you find?
[OnePlus 5 Guides, News, & Discussion] xcha0tic:
Just switched from a s8, going to be doing this later so when I do put a custom rom I can use titanium to back up my stuff
[OnePlus 5 Guides, News, & Discussion] observingi:
Updated to 4.5.11 and lost TWRP

I have booted in bootloader mode

fastboot devices returns empty

Where am I going wrong?

Thanks
[OnePlus 5 Guides, News, & Discussion] rickysidhu_:
Did you flash root right after? (Before leaving twrp)
[OnePlus 5 Guides, News, & Discussion] aeonix_05:
Need to flash SuperSU or Magisk after you flash the full zip so that the TWRP will stick. If the system detects there is no root, it will patch the stock recovery.
[OnePlus 5 Guides, News, & Discussion] observingi:
I did not.

However, it's sorted out. Had to reboot the pc !

Thanks
[OnePlus 5 Guides, News, & Discussion] androidnoob09:
Does anyone know if it's possible to activate a Oneplus 5 on boost mobile? I want to buy one but I feel like boost wouldn't activate it
[OnePlus 5 Guides, News, & Discussion] daobrabeza:
Can't find the Magisk file through TWRP

Hey guys, thank you all for this thread, it's amazing. This might sound a bit dumb, but how do I find the Magisk file so I can root my phone right after flashing TWRP? All I see are those folders "acct, boot, cache, config.."

When I placed the file through the computer in the internal memory it only showed the regular folders "Android, DCIM, etc".

To this day I still don't know why one can only access some folders through the phone lol.

Now I have to keep flashing TWRP, because the stock recovery won't let me have it without root access haha.

Thanks in advance!!! :)
[OnePlus 5 Guides, News, & Discussion] aeonix_05:
You have to copy the Magisk file in the phone's internal memory and flash it via TWRP
[OnePlus 5 Guides, News, & Discussion] daobrabeza:
That's what I've been doing..I copy it into the Internal Storage directory, which is the only one that shows up in my computer. The problem is I can't find the file while browsing through twrp.

Edit: Finally got it! It was under data/media/0/ :D Thanks a lot!!
[OnePlus 5 Guides, News, & Discussion] magicmaia:
This day can't get any worse! I thought I'd had the worst when my coffemachine broke down this morning but now my Op5 is stuck in bootloop. I had made a backup in TWRP but when I wanted to boot in system it failed. Now the only thing I can reach is fastbootmode. Booting in OOS or recovery keeps showing the red and white dots. Can anyone please guide me how to get back to a working state? Thanks in advance.

Update:

Attempt nr 6 or so got me in TWRP. Restoring the backup resulted in another bootloop. Flashing the old 4.5.10 and superSU that were still on my phone got me back to a full working state. Maybe this is just one of those days. Maybe I should have sticked to my original plan of not messing with a brand new device for at least 6 months.
[OnePlus 5 Guides, News, & Discussion] Androrax:
Hi, I've installed a rom on Android 8.0 Oreo.

I don't know why my TWRP can't show my data, so I can't flash magisk or other things...

I'm encrypted.

I know this bug is known, but I can't find any fix (or other twrp...)

Can you help me ? ?
[OnePlus 5 Guides, News, & Discussion] MrWilsonxD:
Are you using the official twrp?
[OnePlus 5 Guides, News, & Discussion] magicmaia:
Yes and never ran into this kind of problem before. I wasn't even doing anything weird or suspicious or potential damaging. Just one of those "just in case that will be unused and deleted next week" backups. Maybe I should try Bluespark but I am not familiar with that.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Yes you can use Titanium backup to backup and restore apps on different ROMs. Just make sure to make a fresh install if there is a delay in notifications
[OnePlus 5 Guides, News, & Discussion] MrWilsonxD:
Bluspark is the way to go around these parts. The twrp is flawless.
[OnePlus 5 Guides, News, & Discussion] xcha0tic:
Yep had to wipe data
[OnePlus 5 Guides, News, & Discussion] elitemeat:
How do I decide if I want to remain encrypted or not? How much of a hassle would it be to switch between either of these two after rooting?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Remain encrypted, make life easy :laugh:
[OnePlus 5 Guides, News, & Discussion] elitemeat:
How so?
[OnePlus 5 Guides, News, & Discussion] georgemb:
Thanks for helping with unlocking one plus 5 bootloader
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
By default the device is encrypted so there is no need to do anything.

Just unlock > flash twrp > flash root and you are done :good:
[OnePlus 5 Guides, News, & Discussion] Wimmme:
Hi guys, new here since i just got my OP5 (killed my Nexus 6P last week).

Followed the guide but this got me in a bootloop (i guess, bootlogo forever)

Anyone an idea ?

This is not my first unlock/twrp/root story, but I have no clue what to do next.

Used the decrypt option and magisk 14.
[OnePlus 5 Guides, News, & Discussion] mipirakas:
Can you get back into twrp (Hold power and volume down)? Because then you can just flash the latest OOS again.
[OnePlus 5 Guides, News, & Discussion] navinmholkar:
Does encrypted or decrypted device couses any issue while flashing rom? Which is more useful? Sorry for bad English
[OnePlus 5 Guides, News, & Discussion] Wimmme:
Went for xXx NoLimts ROM, it was a matter of time anyway, and managed to get my phone on the rails again.
[OnePlus 5 Guides, News, & Discussion] Muzaffar Ganja:
I'm facing the same issue, in CMD there is no AMD folder matching and when I command fastboot devices it shows connecting to device. I know it sounds funny but the drivers are installed correctly and the phone does not get connected with the system. :confused:
[OnePlus 5 Guides, News, & Discussion] observingi:
Once in download mode, unplug the usb cable from the phone(end) and plug it back. That worked for me.
[OnePlus 5 Guides, News, & Discussion] shadekh:
The launch of Xposed for Nougat has encouraged me to try rooting my device : the current OOS is otherwise pretty good for all my needs. However, could anyone answer some questions on this :

1.) Does TWRP work well with the OP5 file based encryption ?

2.) Is Xposed for Nougat working with OOS ?

4.) How will OTA's be handled?
[OnePlus 5 Guides, News, & Discussion] Muzaffar Ganja:
Thanks Buddy, I'll try and let you know if it works for me. :good:
[OnePlus 5 Guides, News, & Discussion] mauronofrio:
My installer make adb and fastboot systemwide like 15 seconds adb installer, but with updated adb and fastboot files. If you need more info please contact me
[OnePlus 5 Guides, News, & Discussion] alex.sharp.192:
Thank you so much for this awesome work!

Everything works significantly fine. GJ!
[OnePlus 5 Guides, News, & Discussion] tharmor:
Will unlocking bootloader erase all the user data ?
[OnePlus 5 Guides, News, & Discussion] mrjuniork:
Yes, since unlocking the bootloader will trigger a following factory reset :)
[OnePlus 5 Guides, News, & Discussion] 3RR0R404:
Hi all,

Followed all instructions 2 days earlier and everything went right ( unlock bootloader + flash TWRP + flash Magisk ) !

Thanks for such a precise and complete guide !

However today I received a notification about OOS update and it tells me I will lose root if I update my O+5.

Is it true I will lose root ? If yes, after update I still can flash Magisk again and get root again ?

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

if you want to update go here and read posts 1, 2 and 3 https://xdaforums.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003
[OnePlus 5 Guides, News, & Discussion] nazrulislambhat:
Restoring results in bootloop
[OnePlus 5 Guides, News, & Discussion] rapdes:
Quick question. I'm currently running OOS 4.5.13, rooted and encrypted with a fingerprint unlock. My TWRP is the latest blu_spark version. If I make a backup in twrp and install a different ROM, then decide to come back to this setup can I restore everything without issues from my backup?
[OnePlus 5 Guides, News, & Discussion] Absalom34:
Ota under 1G

Warning: Do not flash partial update OTAs (under 1 GB) on a modified device! 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. Flashing partial OTAs from TWRP will either fail or soft brick your device. You can return to a usable state by flashing full zips in recovery.

Can some one explain how do we do this??

What full OT we should flash?? Is this for Custom Roms, stock Roms or both?
[OnePlus 5 Guides, News, & Discussion] rickysidhu_:
I believe this is for stock OOS, and you do it by simply downloading the full zip. You will know it's the full zip because it should be over 1GB
[OnePlus 5 Guides, News, & Discussion] ippocampos:
I successfully unlocked bootloader but when I try to transfer the files from pc to phone this does not working what's going on? Any help please..
[OnePlus 5 Guides, News, & Discussion] JaffaMikael:
Any answer is better than not answering at all! If something wasn't right and now you just need to have an answer back?

You tell a huge warning and now you are not tell a little "What's up " on your phone or something about anything??
[OnePlus 5 Guides, News, & Discussion] Triple999:
Hello few questions if my actions are correct to install Magisk and lineage os on my device.

1.Unlock bootloader.

2.flash twrp

3.boot in twrp from bootloader

4.flash magisk root

5.reboot in to twrp

6.flash no dm verity

7.flash lineage os and gapps

Could you please correct me if iam wrong somewhere

Thank you in advance
[OnePlus 5 Guides, News, & Discussion] gianton:
When you unlock the bootloader you will loose all the data in your internal storage so make a backup first.

Then flash in fastboot mode the TWRP, reboot in TWRP and copy the ROM and gapps via MTP. Then wipe your system, data, cache and dalvik cache in TWRP and flash your ROM, gapps and magisk. No need to flash the no_verity zip.
[OnePlus 5 Guides, News, & Discussion] Triple999:
Thank you so much.

I need to root with magisk first otherwise i will loose twrp on a reboot happened to me several times:angel:
[OnePlus 5 Guides, News, & Discussion] ippocampos:
I tried with 2 pcs same issue