yashsingh1/xdaforums huggingface dataset:
[OnePlus 6 Guides, News, & Discussion] Retteren:
I have tried to "fastboot boot patched_boot_magisk1642.img" (doesn't help) but not flashing it from inside TRWP.

Edit: flashed patched_boot_magisk1642.img from inside TRWP and got the system back, but now WIFI has gone. There is another user on the oneplus forums who lost WIFI as well.
[OnePlus 6 Guides, News, & Discussion] brown1178:
You should flash magisk.zip not your patched_boot.img.

Yes there are lot's of people who lost their wifi just search for a solution. I would suggest you to backup your personal data in advance. Now that you can boot your device you should be able to copy everything to your PC, just in case you need to go back to stock.

If you don't want to search and try, this link describes how to go back to completely stock without root.

https://xdaforums.com/oneplus-6/how-to/rom-stock-fastboot-roms-oneplus-6-t3796665

After flashed to stock, apply every update with the systemupdate app. Once you are on 5.1.6 place the TWRP_installer.zip and the Magisk1642.zip on your phones internal storage. Go to the folder on your PC where the TWRP.img is and open Terminal/Console

fastboot boot twrp-3.2.1-0-enchilada.img

Now once you are in TWRP, tap "Install" then locate the TWRP_installer.zip, tap on "add zip to queue" and choose the Magisk1642.zip and install.
[OnePlus 6 Guides, News, & Discussion] patrickdass:
My safety net passes but Play Store is uncertified.

Any ideas on how to fix?
[OnePlus 6 Guides, News, & Discussion] Retteren:
Oh. I wasn't aware that there was a standalone magisk.zip Good to know that there are ways to getting WIFI back.

Not sure if I'll install magisk again, but just twrp. On my OP2 I used SuperSU without issues, but OP6 root/twrp seems to have some teething problems due to advances from Google and Project Treble.

Full backup definitely incoming (tonight when I'm home). BTW, I lost Bluetooth as well. It looks like it can see BT-Classic devices, but not my Garmin BLE device.
[OnePlus 6 Guides, News, & Discussion] brown1178:
I can't promise, that flashing Magisk1642.zip will fix it at this point. I was in the same situation and decided to backup my data to my PC, and use the method to flash back to stock unrooted and start again.

If you follow the steps it is not complicated, a little different than before but it works if you follow the correct steps. I wrote down the steps how I achieved a stable and rooted ROM with stock recovery an safetynet pass.
[OnePlus 6 Guides, News, & Discussion] prajnay:
Is. There any way to not lose L1 wide one certification after unlocking the bootloader?
[OnePlus 6 Guides, News, & Discussion] Retteren:
Thanks. In the end I was unable to regain WIFI on 5.1.5 (despite installing the full OTA and flashing both boot slots). WHen I did a 'Local Upgrade' of the full v5.1.6 OTA I got my WIFI back. No data was harmed in the process :)
[OnePlus 6 Guides, News, & Discussion] brown1178:
Good to hear that it works now. But you could keep my guide for further updates. :fingers-crossed:
[OnePlus 6 Guides, News, & Discussion] seschaum:
Same here... I think that has to do with the Unlocked/Open Bootloader... (as this is also without having Magisk actually installed)
[OnePlus 6 Guides, News, & Discussion] brown1178:
Nope, my device is certified with unlocked bootloader and magisk rooted.
[OnePlus 6 Guides, News, & Discussion] gessi2000:
Question

: I have rooted my OP6 running Oxygen 5.1.6 with this method and works just fine.

Now I tried to flash TWRP using the official process from the TWRP website (booting the TWRP .img and flashing the TWRP .zip to both partitions) but the OP keeps now continously booting into TWRP? How to fix this and get TWRP + Magisk running?

I could fix the TWRP boot loop by booting your boot.img and installing Magisk again like you describe but next would be that I want TWRP but that ends-up in a bootloop into TWRP??
[OnePlus 6 Guides, News, & Discussion] brown1178:
You were rooted with Magisk before installing TWRP? Then you have to flash TWRP, reboot to TWRP and flash magisk1642.zip. This file is located at /sdcard/MagiskManager.

This was discused so often here, why is nobody reading the guides?
[OnePlus 6 Guides, News, & Discussion] czerdrill:
nevermind.
[OnePlus 6 Guides, News, & Discussion] ZataH:
I updated to 5.1.6 and followed your guide for OTA update. Safetynet is returning false. How to fix this?
[OnePlus 6 Guides, News, & Discussion] Alex240188:
You clearly didn't follow the instructions or you have modified something in the system partition or you have flashed xposed.

The update instructions are correct and do keep safetynet imtact
[OnePlus 6 Guides, News, & Discussion] brown1178:
Have you tried testing again after rebooting your phone? It happened to me once, that safetynet failed and root was gone, after restart all was good.
[OnePlus 6 Guides, News, & Discussion] ZataH:
Thank you, it was because of xposed. If it was mentioned in the first post, I must have missed it.

Removing xpose and reboot fixed it
[OnePlus 6 Guides, News, & Discussion] jeiem21:
How to revert back to stock on 5.1.6 for warranty purposes? as in clean as new? would factory reset will do? thank you!

-- sorry been a Sammy user for long time.
[OnePlus 6 Guides, News, & Discussion] brown1178:
Rooting doesn't void your warranty for Oneplus devices! But if you really like to go back to stock, use this tool (maybe you have to update to 5.16. afterwards):

https://xdaforums.com/oneplus-6/how-to/rom-stock-fastboot-roms-oneplus-6-t3796665
[OnePlus 6 Guides, News, & Discussion] SaiBork:
In case you need this, I have updated the link in the post.
[OnePlus 6 Guides, News, & Discussion] alirey:
Hi guys,

I just updated to 5.1.7

Location: Germany

Magisk rooted: yes

TWRP: no

1. OTA will automatically download full OTA

2. Do not restart when OTA finished

3. Magisk - install - second slot - restart

SafetyNet: success

Rooted: yes

Some members used VPN Germany or Kanada to get the OTA
[OnePlus 6 Guides, News, & Discussion] geoff5093:
I used OxygenUpdater to download 5.1.7. Did a local upgrade, used Magisk to install to the second slot, rebooted, and still have root and safetynet.
[OnePlus 6 Guides, News, & Discussion] yickhcr:
I confirm this worked; i was on 5.1.6 with magisk 16.4 without twrp, after step 1,2,3 i am now on 5.1.7 and still rooted.
[OnePlus 6 Guides, News, & Discussion] Alex240188:
I performed the same steps as above.

Banking app detected root and locked me out of application.

Disabled and reenabled Magisk hide.

Unticked and reticked relevant app in Magisk hide.

Cleared the relevent apps data as it won't work at all once it has detected root previously, and it now is properly hiding root and letting me log in.

Might be one to note if others have the same issue
[OnePlus 6 Guides, News, & Discussion] ulats07:
so we need to perform this for each update?
[OnePlus 6 Guides, News, & Discussion] geoff5093:
If you want to keep root
[OnePlus 6 Guides, News, & Discussion] Diablo2424:
After updating to 5.1.5, I ran through this process, (which BTW the OP's link to Magisk Manager app download is not working here's a new one: https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 - I downloaded 5.7.0 from https://github.com/topjohnwu/MagiskManager/releases) and now my phone is fully rooted, I was able to use ES File Explorer to browse the root partition, installed BusyBox and used Titanium Backup Root version! Thank you!
[OnePlus 6 Guides, News, & Discussion] Mennooo:
Love to you

Skickat från min ONEPLUS A6003 via Tapatalk
[OnePlus 6 Guides, News, & Discussion] mcdavid:
This works perfectly! Thank you! :good::good::good:
[OnePlus 6 Guides, News, & Discussion] snipking:
Great! Working for me.
[OnePlus 6 Guides, News, & Discussion] Sykojoe:
Thanks working as expected.
[OnePlus 6 Guides, News, & Discussion] Funk Wizard:
[MENTION=1894196]b1czu[/MENTION]: Thanks for your inputs buddy ☺️
[OnePlus 6 Guides, News, & Discussion] akaHardison:
Just flashing your kernel via

and

,it will also works.
[OnePlus 6 Guides, News, & Discussion] brown1178:
This only boots the patched system, after that I have to install Magisk again with MagiskManager App, like discribed above for the already patched image?
[OnePlus 6 Guides, News, & Discussion] freakzapster:
After using this method can i do ota updates directly??
[OnePlus 6 Guides, News, & Discussion] Funk Wizard:
Just make sure you use the full zip for update instead of using the incremental ota and you would be fine.
[OnePlus 6 Guides, News, & Discussion] brown1178:
I was just wondering, if I could put the OP6 boot.img to my OP3 storage and patch it with MagiskManger. Would that work?
[OnePlus 6 Guides, News, & Discussion] rickiesl:
Sorry guys, I am new for Magisk, and I got infinite load when I reboot my device on the last step. I tried to boot with the patch img file but it still the same. So is that mean I need to flash my rom? ****... I found that i forgot to unlock my bootloader.... Maybe thats why...
[OnePlus 6 Guides, News, & Discussion] megaslx:
this method works on h2os perfectly!

just need to patch h2os's boot.img manually .

Thx!
[OnePlus 6 Guides, News, & Discussion] SkandaH:
[MENTION=1894196]b1czu[/MENTION]

https://xdaforums.com/showpost.php?p=76607008&postcount=25

https://www.androidfilehost.com/?w=files&flid=271474

A repo for stock boot(/recovery) images for OP6.
[OnePlus 6 Guides, News, & Discussion] b1czu:
I haven't tested it but it should work.

Please unlock your bootloader and report back (Please remember that before you can succesfully do fastboot oem unlock you need first boot OOS and check "OEM unlock" in developer options). If you can't boot into rom at all you can download original/unpatched boot.img and try to fastboot boot boot.img with that image (fastboot boot because I think that fastboot won't let you flash original boot.img with locked bootloader).

Yes. At this step you've got the same patched boot image as I've uploaded to google drive and you only have booted using it - not flashed yet.

Have you tested it with success? Are you sure that boot_a and boot_b are correct partitions to flash and that both need to be flashed with same image?

Thank you very much. I've linked to your thread in first post.
[OnePlus 6 Guides, News, & Discussion] rickiesl:
Got it. Finally i delete everything in recovery mode and my phone is backed to normal. I will follow your structure and try it again. Thanks for your help
[OnePlus 6 Guides, News, & Discussion] shubham399:
Flashed and Direct Installed `Magisk` from the` Beta` Channel but i lost it after few Restarts. Don't know why don't have any log

Update : Lost it after sometime just keeping my phone idle <> Restarting the Phone got the Root back
[OnePlus 6 Guides, News, & Discussion] s3axel:
Haven't observed this so far, will have to look though as I'm just a few hours into using the OP6 with Magisk :)

One idea: maybe Magisk manager being stopped by battery optimization ?
[OnePlus 6 Guides, News, & Discussion] amulbaby:
Why is this thread not in Development section?

That would be more appropriate.
[OnePlus 6 Guides, News, & Discussion] :
thank you its working great!
[OnePlus 6 Guides, News, & Discussion] CRXed:
Thanks for this little guide, it worked for me too, even with TWRP.

But obviously after the reboot, TWRP is gone. Magisk and root still there.

Edit: Don't forget to flash Magisk AGAIN if you install TWRP after OTA update.
[OnePlus 6 Guides, News, & Discussion] Flying Fox:
This is a thread for root without twrp. If you have twrp installed you can flash the complete update zip via twrp and flash twrp installer zip BEFORE rebooting into system or somewhere else. The easiest way to keep twrp.
[OnePlus 6 Guides, News, & Discussion] A.Priori:
is there a way to pass SafetyNet with xposed and magisk?
[OnePlus 6 Guides, News, & Discussion] Flying Fox:
No way
[OnePlus 6 Guides, News, & Discussion] nietsab:
Hi,

I've rooted my phone by following your great procedure.

Safetynet check were both green.

Then I updated to version 5.1.7 via OTA. Full package as I was already rooted on 5.1.6

I followed too your OTA procedure.

Still rooted after update but safetynet check failed. See attached picture.

How to get them green again ?

Regards.
[OnePlus 6 Guides, News, & Discussion] coment:
I came from the same starting position, but unfortunately made a mistake:

I did a reboot after the OTA, therefore I lost root.

What ist the best way to get it Back?

Thank you!
[OnePlus 6 Guides, News, & Discussion] alirey:
Wait until patched 5.1.7 boot image is released from OP and follow the same procedure like before with 5.1.x
[OnePlus 6 Guides, News, & Discussion] brown1178:
Download twrp-3.2.1-0-enchilada.img to your PC - fastboot boot twrp-3.2.1-0-enchilada.img, enter your PIN, tap install, navigate to MagiskManager, select Magisk-v16.4(1642).zip and flash it, reboot to system.
[OnePlus 6 Guides, News, & Discussion] Flying Fox:
Don't forget to flash twrp installer zip from twrp before flashing magisk.
[OnePlus 6 Guides, News, & Discussion] brown1178:
This is missleading, it wasn't asked about flashing twrp, but regain root...

[MENTION=1841330]coment[/MENTION]: If you want to keep stock recovery, there is no need to flash twrp! If you just want to restore root, boot twrp and flash magisk.
[OnePlus 6 Guides, News, & Discussion] chrisjcks:
update from 5.1.5 to 5.1.7 went perfectly on the OTA.

kept root with the method mentioned in #1, but i do have an issue with something else.

both Clash Royale & Clash of Clans that i play both crash instantly when trying to load.

ive tried un-installing, clearing data & re-installing the games but it still does it - the games dont load now.

any ideas?

edit: Its happening on quite a few apps, however, after a few reboots & using titanium backup to put magisk as a system app - it now loads.
[OnePlus 6 Guides, News, & Discussion] b1czu:
Yes, really sorry for this! ;)
[OnePlus 6 Guides, News, & Discussion] coment:
Thank you very much, worked like a charm!

This community is awsome!
[OnePlus 6 Guides, News, & Discussion] JiiJii:
5.1.8 is out. I suppose this update can be rooted with this same method just as previous updates?
[OnePlus 6 Guides, News, & Discussion] brown1178:
I just tried it and ended up with a long boot logo, booting back to recovery in the end. I will now try to flash 5.1.7 again and stay there.
[OnePlus 6 Guides, News, & Discussion] CRXed:
Yeah no problem.

What I did was just Download update, install it manually in OnePlus Update screen, before reboot install Magisk to 2nd slot, reboot, done.
[OnePlus 6 Guides, News, & Discussion] JiiJii:
It did work. Thanks.
[OnePlus 6 Guides, News, & Discussion] brown1178:
Did you have any Substratum themes installed? I'm just curious what happend to me, because I know how to update and did it that way. Only things I can imagine caused problems are Substartum themes or that I flashed elementalX kernel before rebooting the updated system...
[OnePlus 6 Guides, News, & Discussion] dgunn:
Can we get a 5.1.8 walk through please? I didn't install 5.1.7 because of the pending 5.1.8 release, I figured why should I do this twice in one week.

I'm already rooted with twrp

Please and thank you
[OnePlus 6 Guides, News, & Discussion] CRXed:
Flash OTA zip, switch slots, then flash TWRP zip, then Magisk zip, reboot.
[OnePlus 6 Guides, News, & Discussion] trolfs:
could someone please patch the boot.img in magisk and upload it? Does not seem to work on my device, do you already need to be rooted to do so?
[OnePlus 6 Guides, News, & Discussion] CRXed:
You can download the stock boot.img and make a patched one yourself with Magisk. You don't need root.
[OnePlus 6 Guides, News, & Discussion] trolfs:
I tried that, but after selecting the boot.img in magisk nothing happens

Edit: worked now, apparently i had to (just) download the magisk 16.4 zip in the manager first, then it worked
[OnePlus 6 Guides, News, & Discussion] stanley08:
Does this procedure work for 5.1.8?

1. Open Magisk, Click Uninstall and select 'restore images'. (Maybe optional). (DO NOT REBOOT)

2. Download and install OTA regular way. (DO NOT REBOOT)

3. Open Magisk, Click install then Select the last thing on the list 'Second Slot'

4. Reboot.

I did this for 5.1.5 to 5.1.6 and 5.1.6 to 5.17.

Does it work for 5.1.7 to 5.1.8? Lol
[OnePlus 6 Guides, News, & Discussion] alirey:
You can skip the first step.

Rest is fine.
[OnePlus 6 Guides, News, & Discussion] stanley08:
I know in some scenario, you flash TWRP and your phone memory gets messed up and you have to wipe to decrypt.

What causes this exactly?

How can it be avoided?

I don not have TWRP installed yet because i don't want to get my phone memory encrypted like it happen on my OP5 back then or so.
[OnePlus 6 Guides, News, & Discussion] dgunn:
Okay so flash OTA with OnePlus installer I presume and then switch slots by means of rebooting your phone into recovery?
[OnePlus 6 Guides, News, & Discussion] brown1178:
You don't necesserley need a patched boot.img You can also just boot twrp and flash magisk.zip. See the link in my signature for more information.
[OnePlus 6 Guides, News, & Discussion] broomer68:
When the rom requires an encrypted phone, and you want it not encrypted, sometimes the rom wins and will encrypt with unknown password.

Just use/accept encryption, and the problem will not happen. There is no need for refusing to encrypt, as anything can be done to your phone, as long as you have the password. (and your data is safe when you lose your phone)

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk
[OnePlus 6 Guides, News, & Discussion] ditchmagnet:
I screwed something up and need help.

I was on 5.1.6 and had Magisk installed and everything was fine. I saw the 5.1.7 update in the notification and for some reason thought it had already installed, SO I opened magisk, and did the OTA 2nd slot install thing. Then I checked the notification again and realized it said it still needed to download 5.1.7 and install, so I had it do that.

After it was finished (I did NOT reboot yet) I went back to magisk to try to do the 2nd slot OTA install. After I tapped for it to do so, magisk just sat there doing nothing. So eventually I just rebooted - and lost root as I expected.

I downloaded the 5.1.7 img here and did fastboot and figured I would just install again from scratch. Magisk wasn't working right. when I would get to the point to install (recommended) it would say downloading and never actually do anything.

So I tried the complete uninstall of magisk, rebooted and then did the fastboot from the img. Now it says magisk not installed, but I cant get a Direct Install (recommend) option. I just seems broken.

What can I do?
[OnePlus 6 Guides, News, & Discussion] brown1178:
So you are on 5.1.7 right now, with stock recovery and no root. You downloaded the full 5.1.7.zip or boot.img? If you boot an unpatched image, you can not directly install because you have no root.

I would recommend, since TWRP is official, download the twrp.img from official website, fastboot boot twrp.img, then from twrp install (flash) the Magisk16X.zip located at /sdcard/MagiskManager, reboot and you are rooted.
[OnePlus 6 Guides, News, & Discussion] ditchmagnet:
Hey thanks, but I actually just got it working.

I had downloaded the 5.1.7 boot img from the first post of this thread (since I had updated and was now on 5.1.7.

I just tried using the 5.1.6 boot img instead - AND THAT WORKED! So I have root again and everything is fine. I think there might be something up with that 5.1.7 img posted here.
[OnePlus 6 Guides, News, & Discussion] brown1178:
That's why I prefer and recommend to boot the twrp.img and then flash the magisk.zip.

Anyway good to hear you got it working again.
[OnePlus 6 Guides, News, & Discussion] alirey:
Well this is interesting.

Patching a 5.1.7 image with a 5.1.6 boot image is working.

Thanks for trying :)
[OnePlus 6 Guides, News, & Discussion] ditchmagnet:
can I just temp boot the twrp img instead? I remember temp booting twrp on the nexus.

I don't know why, but I would rather just not have twrp perm installed.
[OnePlus 6 Guides, News, & Discussion] brown1178:
Yes of course, that's what I'm talking about. Just do fastboot boot twrp.img and your phone will boot the twrp.img. You can do all the stuff like backup, flash zips and so on, but as soon as you reboot twrp is gone.
[OnePlus 6 Guides, News, & Discussion] czerdrill:
Hey just some clarification. If we do the tmp twrp we can still backup and restore if something goes wrong providing we do the tmp boot to twrp whenever we want to backup or restore?
[OnePlus 6 Guides, News, & Discussion] ditchmagnet:
Yeah, that makes way more sense and takes all the extra potential problems out. I'll do that from now on.

THANKS!
[OnePlus 6 Guides, News, & Discussion] brown1178:
I haven't tried it yet, but I can't imagine why this should not work. But to restore a backup, there are some things you should pay attention to. If you have a password, pin or pattern set before the backup and restore, you can not login. There are some files you need to delete, described here:

https://xdaforums.com/showpost.php?p=76564299&postcount=8

Another thing to keep in mind is to delete some 999 folders, if I recall it correct this folders are for the "duplicted apps". This was described in one of the threads around here, you will have to search by yourself 'cause I have to take a walk with my little daughter right now.

P.S. If you found it you may want to reply with the link please?

You're welcome!
[OnePlus 6 Guides, News, & Discussion] czerdrill:
Yeah I tried it and got the 255 error because of parallel apps. The link is https://xdaforums.com/oneplus-6/how-to/255-error-twrp-backup-restore-999-t3801632

I'll have to figure out another way. Maybe just going back to stock if something happens. I'll just keep my apps backed up with TBPro. Thanks for your help!
[OnePlus 6 Guides, News, & Discussion] brown1178:
Yeah that's what I was looking for, have you tried deleting this folder with twrp? Otherwise it is not to complicated to run the command to remove the user folders, backup and reboot.

Can you restore a backup if these folders are not in the backup but on the actual system? I think partitions are formatted before restore?
[OnePlus 6 Guides, News, & Discussion] czerdrill:
I'm sure it will work I just don't want to lose the ability to run the parallel apps.. My job uses Messenger to communicate through a FB Business profile, so I can't not be able to use it as a parallel app.

I read elsewhere that deleting those folders makes you not able to use parallel apps again. Havent seen any clarification whether or not that was true but don't want to risk losing the ability forever.
[OnePlus 6 Guides, News, & Discussion] brown1178:
I thought it would only remove folders until the next reboot
[OnePlus 6 Guides, News, & Discussion] null0seven:
Thank you! Working fine.
[OnePlus 6 Guides, News, & Discussion] op6user_k12:
Hey so, I followed the steps in #1 about OTAs, and something apparently went wrong.

I was rooted with magisk 16.4 on OOS 5.1.5

1) I downloaded and installed the 5.1.7 OTA

2) In magisk manager, I clicked the "install on second slot". I think this is where it went wrong : I had a notification that a .zip was downloaded and nothing else. I clicked the install on second slot a few times after that but nothing was happening so I assumed that it did what it was supposed to do (complete newbie here, first time doing all this).

3) I rebooted and when I opened magisk manager, it says "Magisk is not installed".

What am I supposed to do ? Just click on "Install" in magisk manager ? Which option ?

I just hope I don't have to redo all the rooting process and wipe my phone, because I didn't have time to create a full backup ... I know it's stupid but this seemed like a simple enough operation, that had low chance of failure.
[OnePlus 6 Guides, News, & Discussion] brown1178:
It seems somehow magisk didn't patch the boot image.

Don't worry, just have a loot at my signature - Oneplus6-root, you can use this guide to gain root access.
[OnePlus 6 Guides, News, & Discussion] op6user_k12:
Right, since my bootlocker is still unlocked, I won't have to wipe the phone ? So I can just follow the steps in #1 under "rooting process" ?

Thanks for your help