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

Before beginning, I wanted to precise that I'm rly dumb hehe :

=> I flashed the new 5.1.3 OOS without flahsing magisk 16.0 :D 't'is the second time I made this mistake

So I wanted to make sure the steps I'm going to take are fine :

- Install ADB on my computer

- and then follow the exact same steps from the page 1 guide (eg TWRP steps and after) = TWRP + reflash magisk

Is that right?

Thanks for the replies :fingers-crossed:
[OnePlus 5 Guides, News, & Discussion] shadowstep:
Hi everyone! I've created an Index Thread for the OnePlus 5. It covers everything that might be useful/important for you, like OOS zips (with mirrors and hashes), OOS changelogs, flashable firmware+radio zips, list of guides, ROMs, kernels, recoveries, mods, etc. Feel free to bookmark it! :)

Link: [INDEX] OnePlus 5 (cheeseburger)
[OnePlus 5 Guides, News, & Discussion] saumil007:
Everytime I reboot my recovery reverts back to stock. Why so? I'm on OB13
[OnePlus 5 Guides, News, & Discussion] strongst:
Have you flashed magisk after twrp?
[OnePlus 5 Guides, News, & Discussion] laupuy:
Read again OP.

You need to patch the stock kernel to prevent it (DM-Verity) replacing twrp by stock recovery.

In other words, flash magisk after twrp and BEFORE reboot system.

Edit

Arf, ninja'd :p
[OnePlus 5 Guides, News, & Discussion] bryangb:
I have the same problem - unlocked bootloader successfully, enabled USB debugging and so on, flashed TWRP and SuperSU. So far so good.

But then it hangs on the reboot - all I see is the 1+ boot logo, for over an hour.

I've reflashed TWRP & SuperSU, but no change.

Am I not waiting long enough (an hour!), or am I going to have to revert to stock?

This is just after the OTA updated to 5.1.3

Not a noob, just frustrated!
[OnePlus 5 Guides, News, & Discussion] ardvrk571:
You mention "This is just after the OTA updated to 5.1.3". Did you install the full update or just the OTA patch? The full update is 1.6 GB. Reboot into TWRP. Install the full update from sdcard - .Ota - OnePlus5Oxygen_*** file. Install Magisk or SuperSU. Wipe Dalvik/cache. Reboot.
[OnePlus 5 Guides, News, & Discussion] bryangb:
Thanks - yeah, it must've just been the patch. I solved it by flashing the full zip of 5.1.3, then reflashing TWRP and this time trying Magisk.
[OnePlus 5 Guides, News, & Discussion] darkandshadow:
I'm kind of in a middle of a conundrum:

I love Magisk, but unfortunately, it does not work with a rooted app that I must always have: Root Call Blocker Pro.

I had to revert back to Nougat (4.5.15 / 7.1.1) in order to get the TWRP + SuperSU combo to work with the app.

I would like to go back to (5.1.3 / 8.1) but am wondering what that combo of TWRP + SuperSU that would require.

I've tried a few different combos, but either my WiFi stops working completely, or app stops working again.

I know it sounds stupid, but I've tried many many other apps similar to this, but it's the only one that works (almost)

perfect with whitelisting. I'm friggn tired of getting robo calls all day every day and they take up my voicemail

once every 72 hours.

Or, since I know Magisk quite well, if somebody can tell me how they got Root Call Blocker Pro working on Magisk.

Either way works for me.
[OnePlus 5 Guides, News, & Discussion] ranga.hari:
Need help with One Plus 5

Installed ADB

Unlocked bootloader

Installed TWRP by blu_spark

Installed magisk

Moved GPS app to system using link2sd. However it does not work. There is an OTA waiting to be updated , but keep failing . What am I doing wrong ?

Kindda noob with Android .
[OnePlus 5 Guides, News, & Discussion] strongst:
You need to uninstall magisk before the ota installation. If you're on the beta channel please read instructions here https://xdaforums.com/oneplus-5/how-to/official-oxygenos-beta-1-android-oreo-t3710003
[OnePlus 5 Guides, News, & Discussion] sirbizzle033:
I followed the instructions to unlock the bootloader but in Oxygen OS 5.1.5 doesn't work. Any ideas?
[OnePlus 5 Guides, News, & Discussion] strongst:
It works on every stock rom I guess, so without further details it's not possible to help you.

So please provide a full log from the commands and output you've entered according to the instructions. So we can have a look where exactly the process stops for you(pastebin).

Thanks!
[OnePlus 5 Guides, News, & Discussion] sirbizzle033:
In cmd it doesn't show the serial number for example after using the command 'fastboot devices', but I'll try again when I get home. Thank you very much
[OnePlus 5 Guides, News, & Discussion] strongst:
Then the issue can be a driver firewall, cable, USB port or your PC in general. OEM unlocking and USB debugging should be enabled too. Check the instructions in post 2.
[OnePlus 5 Guides, News, & Discussion] sirbizzle033:
See, I swear I made everything before trying it, I checked it all, it just doesn't work in 5.1.5

https://prnt.sc/kph39e
[OnePlus 5 Guides, News, & Discussion] strongst:
You did not mention what you did already, I must ask you or give you possible solutions.

It's also a good idea that you provide step by step what you did. Prevents guessing around ;)

Your phone is in fastboot mode? Your phone is recognized by your pc(device manager, visible withing windows explorer)?
[OnePlus 5 Guides, News, & Discussion] sirbizzle033:
Sorry, I followed step by step the main post. In developer settings I have oem unlocking on, and usb debugging on.

Then I turn my device in fastboot mode, plug into the pc (I already installed the abd, fastboot, and oneplus drivers), Once it is plugged the phone (when pc makes a sound that is connected) , I open PowerShell window in my pc, tip 'fastboot devices' and that's it.
[OnePlus 5 Guides, News, & Discussion] sirbizzle033:
Any news?
[OnePlus 5 Guides, News, & Discussion] strongst:
Did you tried another usb port? Is your device visible within windows explorer or is mtp working? Is it possible to try another PC?
[OnePlus 5 Guides, News, & Discussion] sirbizzle033:
Yes I tried, in a youtube video comments I saw that someone said that it didn't work in 5.1.5 for him too.

I'll try again anyway
[OnePlus 5 Guides, News, & Discussion] simo6:
hi there, after the treble update (oos 5.1.5 and OP16) i have an issue in my nandroid backups (twrp). Backup works good but when i try to restore a backup at the end i get an error on the system partition: failed to mount /system structure needs cleaning

this is making my backup completely useless cos i always need to clean everything and reflash stock oos 5.1.5

i am using latest blu twrp 8.83. Any ideas how to fix this?
[OnePlus 5 Guides, News, & Discussion] digger16309:
Do you get a notification on your phone when you plug in to USB? If so, you need to press it and select file transfer.

Also, as noted, if you don't see it in Explorer, that is likely a firewall or driver fail. Windows 10 blocks unsigned drivers by default. I had the same issue with my OP3 and has to change a Windows firmware setting to allow for unsigned drivers. I still couldn't see the device in Explorer. But I could access it via command prompt and fast boot commands.
[OnePlus 5 Guides, News, & Discussion] sirbizzle033:
Yes I do, I select file transfer but when I'm on PowerShell and use 'fastboot devices' it doesn't show my serial number and I can't continue.

How can I do that with the firmware?
[OnePlus 5 Guides, News, & Discussion] strongst:
As I said already... Try another PC. That helped out most people with same issue on other devices.
[OnePlus 5 Guides, News, & Discussion] sirbizzle033:
K, I'll try in another pc thank you
[OnePlus 5 Guides, News, & Discussion] sirbizzle033:
Well I tried in another PC and still doesn't work, maybe is the oxygen os 5.1.5
[OnePlus 5 Guides, News, & Discussion] Gambo_7:
Same for me, I lost TWRP after updating to 5.1.5 and can't access fastboot on my Windows 10 to flash it....
[OnePlus 5 Guides, News, & Discussion] ardvrk571:
Might be worth trying FWUL: https://xdaforums.com/android/software-hacking/live-iso-adb-fastboot-driver-issues-t3526755

I usually do most Android work from Linux. It usually just works
[OnePlus 5 Guides, News, & Discussion] Gambo_7:
I found the solution: it seems that ADB bootloader drivers were not properly installed.

I managed to install SDK platform-tools and ADB Interface drivers and then it went well!
[OnePlus 5 Guides, News, & Discussion] ardvrk571:
I'm glad you got it sorted. Issues like that are why I prefer Linux to do Android work. Don't have to worry about drivers and ADB and Fastboot get updated by the system
[OnePlus 5 Guides, News, & Discussion] ab_bras8:
hello, is this method works till now ?

5.1.5 ? I'm new in OP5 .

thanks .
[OnePlus 5 Guides, News, & Discussion] strongst:
Hello and welcome, yes this method is working also on 5.1.5. Have a look at the last 3 pages.

We have also a dedicated help thread if you have some more general questions: https://xdaforums.com/oneplus-5/help/qa-help-thread-newbies-post-t3624656
[OnePlus 5 Guides, News, & Discussion] ab_bras8:
thanks a lot sir, I successfully rooted my OP5 :)

btw, is this normal when booting up the phone a warning appears ?
[OnePlus 5 Guides, News, & Discussion] strongst:
Yes that's normal, cause when you're unlocking your bootloader, your vulnerable in general. That's why oneplus informs you this way. Before unlocking the bootloader you're also informed about that if you proceed.

Did you used windows 10 to unlock the bootloader? Some users reported that you cannot unlock 5.1.5, but that's not true in general since others like you did it ;)
[OnePlus 5 Guides, News, & Discussion] ab_bras8:
ok thanks for the infos sir.

I'm using Windows 7 sir , when doing the process.
[OnePlus 5 Guides, News, & Discussion] zeadd:
Is there a signed boot image available to remove "unlocked bootloader" warning for cheeseburger?

Unlocked bootloader warning message is annoying ?
[OnePlus 5 Guides, News, & Discussion] strongst:
Like this one https://xdaforums.com/oneplus-5/themes/mod-bootloader-changer-t3800862 ?
[OnePlus 5 Guides, News, & Discussion] shadowstep:
Nope, that mod changes the bootloader to an older version so that the option to use volume button for the advanced options to show up is visible. It does not remove the bootloader unlocked warning that is still present (and will always remain until the bootloader is locked). :)
[OnePlus 5 Guides, News, & Discussion] Faraday84:
TWRP
[OnePlus 5 Guides, News, & Discussion] LykanthricAura:
Hello, from what I can gather from this guide. This method to Unlock and root OP5 will also wipe all my data.

I am rooting my phone because I deleted an entire folder of data from my phone and I want to run some data rocovery. I don't want to make it harder to recover it after some kind of overwrite or wipe. Is there a non-data-destructive method to root an OP5?
[OnePlus 5 Guides, News, & Discussion] strongst:
AFAIK: no, almost every device method to unlock bootloader will wipe your devices data
[OnePlus 5 Guides, News, & Discussion] sekk:
Does it work with oxygen os 5.1.7? My bootloader is still locked and i want to know if this guide is still working with OOS 5.1.7
[OnePlus 5 Guides, News, & Discussion] ahmed.ismael:
the steps is the same for any oos version
[OnePlus 5 Guides, News, & Discussion] strongst:
Have a look at page 116 and before if you have issues ;)
[OnePlus 5 Guides, News, & Discussion] Escribis:
What about Pie.Is the procedure the same now that Pie comes to oxygen os for OnePlus 5?
[OnePlus 5 Guides, News, & Discussion] strongst:
Yes, I'm sure. But try it and tell us :svetius:
[OnePlus 5 Guides, News, & Discussion] EmirSc:
just did it with pie update 23_181218

all working fine, just have a problem (but this is outside the root process), it gives me error when i try to do a back up

so yeah you can go ahead and follow this guide if you're on android pie :good:

look at the video i attached as proof. :cool:
[OnePlus 5 Guides, News, & Discussion] articuz:
hi everybody! A quick question...

Is there a way to flash stock kernel only without reflashing the whole ROM zip?
[OnePlus 5 Guides, News, & Discussion] khalisz:
Hello :)

This post is at any time so use full !!!!

Thanks again to keep it alive. ;)
[OnePlus 5 Guides, News, & Discussion] strongst:
Just extract the boot.img from the rom zip and flash it withing twrp(install image).
[OnePlus 5 Guides, News, & Discussion] Sgace:
Thnx m8, will do.

One more question: if I only want twrp do I need to flash anything else except twrp.img?

Cheers
[OnePlus 5 Guides, News, & Discussion] DaSoul:
Thanks for your fast reply.

I have 5.0.2 installed.

What i found out now, i guess it is not correctly installed. If i go to "Module" and it is empty, even i installed "magisk-v12.0.zip" and it showed as "successfully installed" afterwards.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
FYI

Magisk v13+ is NOT compatible with Magisk Manager lower than v5.0.0

Magisk Manager v5+ is NOT compatible with Magisk lower than v13.0

Both have to be upgraded together in order to work properly
[OnePlus 5 Guides, News, & Discussion] DaSoul:
Okay, thanks for the hint.

Wiped the phone and installed the apk from you, than i flashed SuperSU.

Magisk Manager is correctly installed, root is correctly installed, downloaded and installed Magisk via Manager, but still the settings are not showing up :/

You have any more tips left?

Edit:

I think i make a mistake. I saw you updated the initial post, which confuses me.

I unlocked bootloader, made initial android setup, flashed SU, installed magisk apk and hit the "download & install" within magisk. I guess this is wrong?
[OnePlus 5 Guides, News, & Discussion] cultofluna:
You need to flash magisk zip ... on TWRP..not supersu....and install magisk manager afterwards...
[OnePlus 5 Guides, News, & Discussion] dansou901:
Before flashing Magisk, you also need to unroot first.
[OnePlus 5 Guides, News, & Discussion] cultofluna:
Sorry my bad ..I didn't mentioned

Or just dirty flash the ROM and magisk afterwards..

Thanks for the adjustment...
[OnePlus 5 Guides, News, & Discussion] DaSoul:
If i wipe and go back to install all the files i previously copied to the phone are also deleted?

Now all i see is /sdcard

Tried to adb push the magisk zip to the sdcard but get an error:

Thanks for your help, and sorry..i'm a newbie :/
[OnePlus 5 Guides, News, & Discussion] dansou901:
I've got a question to that encryption stuff which is quite new to me because I skipped the Oneplus 3/3t. Would you recommend using it when you're primarily on custom ROMs? I guess that might be problematic if there is a bug in TWRP that breaks encryption, also the ROMs need to support it. From what I read and the experience I have until now, I would disable it from the beginning and never use it. Or is it stable enough to use already? Also, could it interfere with rooting via Magisk?
[OnePlus 5 Guides, News, & Discussion] Lavarock:
I don't understand what do you mean by: "place it in the Android Folder under the Platform Tools folder in C Drive "

(After I have renamed the file as recovery.img)

Thanks in advance
[OnePlus 5 Guides, News, & Discussion] dansou901:
It means copy the file from the download folder to the folder where the fastboot binary is in (which usually should be the Platform Tools folder)
[OnePlus 5 Guides, News, & Discussion] Lavarock:
And this Platform Tools folder is created after I unlock the bootloader isnt it?
[OnePlus 5 Guides, News, & Discussion] dansou901:
That folder is created when you install the adb and fastboot tools.
[OnePlus 5 Guides, News, & Discussion] DaSoul:
Place it in C:\adb so you can easily use it with command prompt from there.
[OnePlus 5 Guides, News, & Discussion] Lavarock:
On the computer? Not on the phone?
[OnePlus 5 Guides, News, & Discussion] dansou901:
Yes, on the computer.
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Well you can stay encrypted and enjoy all the roms. Decrypt if you wish to use multirom which inst even out yet.

Just make sure whenever you wish to decrypt copy all data as you would have to format user data which will wipe your internal.

I added the decryption part on the guide so that people can do so in one go | unlock and decrypt without loosing any data.

However its totally fine to stay encrypted and there is no noticable difference on performance. on OOS Data and Cache is by default on F2FS and other partitions would be on EXT4

Let me know if you have any questions/doubts
[OnePlus 5 Guides, News, & Discussion] dansou901:
Thanks for the answers. I think I'll go for decryption then, I guess we will get multirom at some point and I intend to use it.
[OnePlus 5 Guides, News, & Discussion] DaSoul:
so i'm totally lost now and hope someone can help me out fast, as i'm trying to fix this for hours now.

after installing twrp and flashing no verity, manual says you should do a wipe. After the wipe the magisk zip is deleted. How do i copy it on the phone again?

It says i should not boot into os, so i need to adb push it? What's the path for the internal sd card? I tried a lot and the file never shows up in twrp.

Thanks for help!

Using file manager i see the magisk zip, but under "install" i can't navigate to other folders. It just shows /sdcard and i can't do anything.

Edit:

! Boot image patched by other programs !

!Please restore stock boot image

got this when i tried to flash magisk.

What is restore stock boot image?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Exactly as you intend to use Multirom, i recommend you to stay Decrypted and do it in the beginning along with the bootloader unlock as there would be no data loss.

Pro Tip: Please make sure, whenever you flash OOS zip, always flash Super SU or Magisk immediately after the rom/update flash before you boot into OS. If you reboot system without flashing SupersSU/Magisk after the rom flash / rom update OOS will force encrypt in the background which will take anywhere from 15 minutes to an hour or boot loop depending upon the amount of data on your device. Also if its interrupted and you make a force reboot in the middle of the process thinking that you are stuck in a bootloop you would end up loosing internal on your device.
[OnePlus 5 Guides, News, & Discussion] istvanszucs:
Hi Everyone,

I've been trying to upgrade from the factory rom 5.1.4 with BlueSpark and Magisk 17.1.

Regardless of which image I try to burn, 038, 039, or 040, I always get the boot animation indefinitely. I've tried Magisk 17.1 and 18.0 and Blu_spark 8.68, as well as 9.85. Does anyone have any ideas what could be wrong, or how I could diagnose what's wrong?

A clean flash would be a real hassle :(

Cheers,

Istvan
[OnePlus 5 Guides, News, & Discussion] wartomato:
I think you first need to update to 5.1.5 to enable the treble partition.
[OnePlus 5 Guides, News, & Discussion] drjat:
No. Treble is at 5.1.4

I think this chap probably forgot to flash No-Verity-V3 or format internal storage. Clean flash is indeed recommended for the above poster

---------- Post added at 07:54 PM ---------- Previous post was at 07:52 PM ----------

Try also flashing No-Verity-V3 if you were decrypted otherwise clean flash
[OnePlus 5 Guides, News, & Discussion] istvanszucs:
OK, I bit the bullet and did a clean flash. Now it will not boot into the system, only into the recovery 3.2.3-x|blu_spark v9.85.

Now what gives?

---------- Post added at 07:17 PM ---------- Previous post was at 07:10 PM ----------

BTW I was encrypted...
[OnePlus 5 Guides, News, & Discussion] drjat:
When you did clean flash - did you format internal storage? (format, not wipe). If you followed the instructions correctly for clean flash then it has to succeed. You said that you were on 5.1.4 - that means you had treble partition and a recovery which supports treble - like BluSpark Treble version 9.85
[OnePlus 5 Guides, News, & Discussion] wartomato:
https://www.xda-developers.com/oneplus-5-oneplus-5t-oxygenos-project-treble/
[OnePlus 5 Guides, News, & Discussion] drjat:
He has already tried flashing 5.1.5 (which he calls 038) but it did not succeed. I could be wrong as I wrote from my memory that 5.1.4 created vendor partition (which I typed it as treble support in my post above). My understanding is that you can jump from 5.1.4 to 5.1.7 and Pie if clean flashing - obviously the recovery has to be with treble support.
[OnePlus 5 Guides, News, & Discussion] istvanszucs:
I tried to flash a new recovery, (the newest bluspark) but from that point on I couldn't access recovery either.

For a while I couldn't even connect through fastboot. Finally after some attempts through Fastboot I managed to reflash the newest TWRP official recovery, and after formatting again I could flash Pie.

Looks good now :)

THanks for all your support.
[OnePlus 5 Guides, News, & Discussion] FredUpdate:
Hi mate! I can't figure out why I can't flash a recovery expect the 3.1.1 and even then I don't have access to any files once in the recovery, How did you flash yours?
[OnePlus 5 Guides, News, & Discussion] XirT-D:
Good day, rooted my phone and flashed theOne5OS pie rom, if i want to flash a nougat rom, do i need to flash first stock nougat rom? Or could i directly flash the custom nougat rom?
[OnePlus 5 Guides, News, & Discussion] strongst:
You can directly flash the custom nougat rom
[OnePlus 5 Guides, News, & Discussion] griMa010100:
Unable to mount /vendor

close
[OnePlus 5 Guides, News, & Discussion] reganEZ:
Hello Everyone,

got a brand spanking new op5 on Feb and I love it!!!. I was running it stock so far and now i want to root it.

quick questions.

1) i am in OOS 9.0.4. If i want to go to beta and then flash, what do i need to do? I am ok with clean flash.

2) what recovery is the best for me?

3) what is encrypted and decrypted? what diff does it make? I would like to stay encrypeted if i could.

4) does treble make a diff? do i even have that?

Thank you so much. I am familiar with ADB and magisk but this is the 1st Oneplus phone i am rooting so i just want to be safe.

Thanks in advance.

P.S: I have read the OP post, i just couldnt get clear answers of the above questions.
[OnePlus 5 Guides, News, & Discussion] strongst:
According to :

1 clean flash OpenBeta 28 according to the instructions in the beta thread, you can simply flash the open beta with locked bootloader and stock recovery and afterwards root it

2 latest codeworkx or Blu spark, links in op

3 your data partition is encrypted by default from OxygenOS and forced to, except you flash no verity patch of if you want to go for a decrypted partition (security, minimal speed improvement)

4 no difference, oxygenOS is a full rom with drivers etc. and treble won't be benefit here.

Unlocking bootloader is a flawless process on OnePlus ;)

You just need to need to know that if you flash a new update of Oxygenos you need to follow instructions in the post for it to keep twrp recovery and root cause OxygenOS will reset your twrp recovery by stock recovery, hence a simple ota like on rooted custom roms isn't possible that way.
[OnePlus 5 Guides, News, & Discussion] reganEZ:
thank you very much for the quick help. I am gonna root it tonight :)

Thank you very much once again
[OnePlus 5 Guides, News, & Discussion] pinto83:
Just follow your guide and successfully rooted my OP5 after 2.2 years on stock. finally the itch came back to root it. all done well.

thanks a ton bro.

just want to know, which is best Rom now for OP5 - camera and battery?
[OnePlus 5 Guides, News, & Discussion] strongst:
The stock rom. But here are some of the treads you can read/search https://xdaforums.com/oneplus-5/how-to/op5-battery-life-thread-t3624705

https://xdaforums.com/oneplus-5/review/standby-drain-t3646101

https://xdaforums.com/oneplus-5/review/screen-time-t3646100

https://xdaforums.com/showthread.php?t=1179809

https://xdaforums.com/oneplus-5/how-to/screen-time-leaderboard-post-longest-sot-t3780178