[Q] About to unlock, unencrypt, root, and rom! please check if correct - Nexus 6 Q&A, Help & Troubleshooting

I bought a nexus 6 on google play and I am on verizon. It is currently running 5.0 LNX07M.
Could some nice fellow please tell if if this is correct?
1. download wugfresh
2. download drivers
3. tick usb debug, oem unlock
4. unlock bootloader
5. flash no force encrypt
6. root
7. Trwp
8. Get Chroma/ or any other 5.1.1 rom and flash with gapps?
I'm espeically concerned if it is ok to unlock and root a 5.0 nexus 6 and then use twrp to flash a 5.1.1 rom. Should I first update the phone to 5.1 or something?

1. download and install adb/fastboot
2. boot into the bootloader and plug in via USB to your computer. depending on what your computer is running, it could download and install the driver by itself or you would have to.
3. fastboot OEM unlock unlocks the bootloader.
4. reboot and back into your bootloader.
5. flash twrp recovery
6. flash your custom kernel and SuperSU for root via twrp recovery.
7. only if you want to decrypt, format your storage. if not, just reboot.

simms22 said:
1. download and install adb/fastboot
2. boot into the bootloader and plug in via USB to your computer. depending on what your computer is running, it could download and install the driver by itself or you would have to.
3. fastboot OEM unlock unlocks the bootloader.
4. reboot and back into your bootloader.
5. flash twrp recovery
6. flash your custom kernel and SuperSU for root via twrp recovery.
7. only if you want to decrypt, format your storage. if not, just reboot.
Click to expand...
Click to collapse
Should I update my phone or is 5.0 ok for flashing the latest 5.1.1 rom?

Raymondlikesroot said:
Should I update my phone or is 5.0 ok for flashing the latest 5.1.1 rom?
Click to expand...
Click to collapse
if updating the official way, go to 5.1 then 5.1.1. but if updating via custom ROM, it doesnt matter, you can flash 5.1.1 over 5.0

IMHO,
1) download Android SDK or minimal fastboot and ADB or 15 second ADB and fastboot installer
2) connect to PC and reboot to bootloader
3) from command prompt:
fastboot devices
(Serial number shows up)
4) From command:
fastboot oem unlock
fastboot reboot
5) Download the latest TWRP recovery for shamu
6) Boot back to bootloader and from command (having placed the TWRP image somewhere where fastboot can find it i.e. in platform tools in SDK) also rename it to twrp.img
Issue the command:
fastboot flash recovery twrp.img
(Be careful to not have it list the file ext. twice. Windows names the file ext. by default. Example: twrp.img.img
After recovery flashes, from bootloader, use the volume keys to select recovery mode and press power. Your device will boot to TWRP.
Make a backup!
Next, download SuperSU zip and flash with TWRP.
Congratulations, you are now stock rooted and you can choose any ROM you like and flash with TWRP. Follow the instructions carefully from the ROM OP and profit.
It may look complicated but trust me, it's not. The longest process will be after you unlock the bootloader. Your device will wipe completely so backup anything you'd rather not lose forever.
Remember, a 32gb Nexus will take 10 to 15 minutes to wipe and reboot. A 64gb will take 20 minutes or more.
The benefit of doing it this way is you know exactly what is happening to your device, unlike a toolkit. Also, you just learned something! Plus, if you get stuck somewhere and end up soft bricked, you'll understand what and how when someone here tells you how to fix it.

Thank you guys for your responses ! I think my laziness is going to win me out this round so im going to use the toolkit. But next time, I will do the correct way!

Related

[NEED HELP] I need help. and will deletehis asap

i have a symphony roar a50 (Bangladesh). it was running everything stock and updated with twrp 2.8.7.0 without root. bootloader was unlocked.
i was trying to root the device with the AIO from this thread:
http://forum.xda-developers.com/cro.../android-one-toolkit-unlocks-relocks-t3294448
the phone suddenly rebooted in the middle of the process and was stuck in a bootloop. i tried to factory reset it but it still didn't work. was still on boot loop.
then i tried to flash the appropriate stock firmware but that didn't help it wont boot. stuck on the boot logo for 1.5 hrs. then tried CM13 nightlies and the cyanpop roms. still nothing.
i am currently in a state of shock as this is a fairly a new phone and i am to travel to Chittagong in ~11 hours.
please help
don't you take a backup ?
and don't you wipe every thing before flashing the cm13 ?
mithun mpk said:
don't you take a backup ?
and don't you wipe every thing before flashing the cm13 ?
Click to expand...
Click to collapse
yes i had a nandroid backup. but twrp says it is corrupt or some reason. and yes i wiped everything before cm13
downgrade twrp2.8.7 to 2.8.4.... 2.8.7 has problem with backup and recovery
https://www.androidfilehost.com/?fid=24389512218018336 twrp 2.8.8.x beta 3
btw this thread is wrong section
I too Had the same Problem once as I Tried Rooting My Android One through the same method as u did, So for fixing it I prefer that U FLASH The Stock MM ROM for Ur Device through STOCK Recovery ( Remember to Wipe Cache and Data b4 Flashing ) AND then ur Device mst be Fixed ( This method worked for me ) And Dude if u want to root Ur Device Follow This Method : -
1) FLASH TWRP RECOVERY
2) Reboot into Recovery and FLASH Thunderzap 5.1 Kernel through Recovery
3) Then FLASH SUPERSU ZIP from Recovery
4) Reboot And Done ! Ur Device is Rooted ! ?
@RoxAndroid how did you fallback to stock recovery from twrp? I'm stuck.
Tanzim Abir said:
@RoxAndroid how did you fallback to stock recovery from twrp? I'm stuck.
Click to expand...
Click to collapse
So......to do that Follow these Steps :-
Download Stock Recovery from here http://forum.xda-developers.com/crossdevice-dev/android-one-general/stockrecoveryandroid-one-t2917457
1) Make sure u have Installed ADB drivers ( If Already did, Skip Step 2)
2) To install ADB drivers first Unable USB debugging From the developer Options in the Setting ( If there is No Developer Options Goto-Setting-About Phone-Tap Build Number 7 Times and go back to settings and Open Developer Options and Unable USB debugging) And then Connect Your Phone to PC and Open ADB DRIVER executable File And Install Drivers.
3) Once Drivers are installed Download ADB AND FASTBOOT from here http://drive.google.com/file/d/0B1nu6Ydzrmi-dWdmS00tWjE1WHM
4)Extract the zip and open the folder and then HOLD SHIFT+Right Click and then click on Open Command Window here
5)And then boot your phone to Fastboot Mode, To do that Power Off the Device and HOLD POWER AND VOLUME UP key at the same time and then navigate to the Fastboot Mode by Volume UP button and and Click Volume Down button to select. Once you are in Fastboot Mode connect your Device to PC and go back to PC
6)Once Command Window is opened type following Command :-
Code:
fastboot devices
Code:
fastboot oem unlock
Code:
fastboot format userdata
Code:
fastboot flash recovery <Name of the Recovery in ur PC>
Code:
fastboot boot <Name of the Recovery in ur PC>
6) DONE ! STOCK RECOVERY IS FLASHED and Remember to keep Stock Recovery img file in the ADB AND FASTBOOT FOLDER
Thanks I'll try this asap currently on a train..
Okay.. I've shipped it to the customer care. They said I'll have to wait 3 days for it to get back. I'll report back then.
Thank you everyone for your input.
Closed as this has run its course.

Root Tutorial

Warning don't try this if you are new to rooting.. wait for more confirmation
I've successfully rooted my phone using these steps:
Download the TWRP recovery image from http://forum.xda-developers.com/vivo-xl/development/recovery-t3311601 credit @jemmini
Download SuperSU from http://download.chainfire.eu/supersu-beta
Enable Developer Options
Enable OEM unlock
Enable USB Debugging
Reboot phone bootloader (adb reboot bootloader or vol up + power)
fastboot oem unlock
vol up to confirm unlock
your phone will ask you to reboot but vol up and vol down doesn't do anything. (other were having issue with boot looping here because of this..)
fastboot reboot bootloader
fastboot flash recovery twrp-recovery.img (the file downloaded in step 1)
fastboot reboot
while the phone is rebooting, press and hold vol up (this will launch TWRP recovery)
Optional: do not enable write access (for backup purpose)
select wipe, format data, type in yes (this fixes the boot looping issue -- credit @acotto)
now make a backup of your phone
Copy supersu.zip to your phone
install supersu.zip
To make TWRP recovery permanent: rename or delete /system/recovery-from-boot.p
reboot
your phone will take awhile to boot up since it has to rebuild all of your applications for the first time.
Edit:
I haven't figured out how to make TWRP permanent yet. Blu is restoring the stock recovery on reboot.
Thanks for the write up, looks really promising.
For those who need fastboot, I used this All in One to get it set up on my PC. I am running Windows 10 and it installed and worked just fine.
Followed the instructions above and achieved root. Thanks to OP for the great instructions.
http://forum.xda-developers.com/showthread.php?p=48915118#post48915118
updated the instructions to make TWRP permanent.
emowing said:
updated the instructions to make TWRP permanent.
Click to expand...
Click to collapse
I did your original instructions and TWRP was permanent automatically.
Sent from my VIVO XL using Tapatalk
As bad as I wanna root this, I'll be waiting for a backup stock rom just in case thanks for the info!!
Never mind I guess there is a stock rom but its too early for me.
Help please>> bootloop
i've got the bootloop after unlocking the OEM... does anyone have a work around it yet??
The Remedy said:
i've got the bootloop after unlocking the OEM... does anyone have a work around it yet??
Click to expand...
Click to collapse
Don't unlock bootloader, it's not needed.
For now, use recovery restore to original ROM, clear data/cache in recovery, then you should be able to boot.
The Remedy said:
i've got the bootloop after unlocking the OEM... does anyone have a work around it yet??
Click to expand...
Click to collapse
I have already given a big warning about this unlock bootloader, why didn't you read ?
Click the link, the solution is there. Generally, install TWRP, then restore from the image given.
quyvinh said:
I have already given a big warning about this unlock bootloader, why didn't you read ?
Click the link, the solution is there. Generally, install TWRP, then restore from the image given.
Click to expand...
Click to collapse
I was in a rush and didnt want to do much rushing but I figured out on my own and I've been running Root w/ Xposed for the last 2 days now....SOLID!!
Not Working for Vivo y51l.
emowing said:
Warning don't try this if you are new to rooting.. wait for more confirmation
I've successfully rooted my phone using these steps:
Download the TWRP recovery image from http://forum.xda-developers.com/vivo-xl/development/recovery-t3311601 credit @jemmini
Download SuperSU from http://download.chainfire.eu/supersu-beta
Enable Developer Options
Enable OEM unlock
Enable USB Debugging
Reboot phone bootloader (adb reboot bootloader or vol up + power)
fastboot oem unlock
vol up to confirm unlock
your phone will ask you to reboot but vol up and vol down doesn't do anything. (other were having issue with boot looping here because of this..)
fastboot reboot bootloader
fastboot flash recovery twrp-recovery.img (the file downloaded in step 1)
fastboot reboot
while the phone is rebooting, press and hold vol up (this will launch TWRP recovery)
Optional: do not enable write access (for backup purpose)
select wipe, format data, type in yes (this fixes the boot looping issue -- credit @acotto)
now make a backup of your phone
Copy supersu.zip to your phone
install supersu.zip
To make TWRP recovery permanent: rename or delete /system/recovery-from-boot.p
reboot
your phone will take awhile to boot up since it has to rebuild all of your applications for the first time.
Edit:
I haven't figured out how to make TWRP permanent yet. Blu is restoring the stock recovery on reboot.
Click to expand...
Click to collapse
Help me find out method to root this phone.
Had tried kingroot,kingoroot and other root tools.
Model : Vivo y51
Waiting...
Why won't this work?! I can't even load TWRR once. It always boots and then re-boots to the original recovery. Pushing volume up after flashing the twrr recovery doesn't go into recovery mode.
---------- Post added at 01:30 AM ---------- Previous post was at 01:25 AM ----------
Is it okay to change or delete /system/recovery-from-boot.p before loading the recovery.img of TWRR??
What version of android is this working on? I'm on the latest
How do I get out of this bootloop?
emowing said:
Warning don't try this if you are new to rooting.. wait for more confirmation
I've successfully rooted my phone using these steps:
Download the TWRP recovery image from http://forum.xda-developers.com/vivo-xl/development/recovery-t3311601 credit @jemmini
Download SuperSU from http://download.chainfire.eu/supersu-beta
Enable Developer Options
Enable OEM unlock
Enable USB Debugging
Reboot phone bootloader (adb reboot bootloader or vol up + power)
fastboot oem unlock
vol up to confirm unlock
your phone will ask you to reboot but vol up and vol down doesn't do anything. (other were having issue with boot looping here because of this..)
fastboot reboot bootloader
fastboot flash recovery twrp-recovery.img (the file downloaded in step 1)
fastboot reboot
while the phone is rebooting, press and hold vol up (this will launch TWRP recovery)
Optional: do not enable write access (for backup purpose)
select wipe, format data, type in yes (this fixes the boot looping issue -- credit @acotto)
now make a backup of your phone
Copy supersu.zip to your phone
install supersu.zip
To make TWRP recovery permanent: rename or delete /system/recovery-from-boot.p
reboot
your phone will take awhile to boot up since it has to rebuild all of your applications for the first time.
Edit:
I haven't figured out how to make TWRP permanent yet. Blu is restoring the stock recovery on reboot.
Click to expand...
Click to collapse
was able to flash the twrp by renaming to recovery.img. but after fastboot reboot, even holding volume up it just reboots like normal?
what version of android should I have installed for this tutorial to work?

Unable to boot into TWRP, need to flash Gapps. no recoveries are working. help!

so i unlocked bootloader and unlocked my phone, also installed TWRP on my phone but then i wanted to install CM, i installed CM 13 but somehow GApps didn't went through now i'm with CM13 with no Gapps BUT TWRP is also not working anymore! i tried booting into TWRP, doesnt work. tried flashing TWRP, Nope. is there some other way of flashing Gapps? or making TWRP work again? any help will be greatly appreciated.
TechnoManiac98 said:
so i unlocked bootloader and unlocked my phone, also installed TWRP on my phone but then i wanted to install CM, i installed CM 13 but somehow GApps didn't went through now i'm with CM13 with no Gapps BUT TWRP is also not working anymore! i tried booting into TWRP, doesnt work. tried flashing TWRP, Nope. is there some other way of flashing Gapps? or making TWRP work again? any help will be greatly appreciated.
Click to expand...
Click to collapse
Hi,
you can try this:
Copy the downloaded recovery image (.img file) to the folder where you have placed your ADB and Fastboot.
Launch terminal (or command prompt on Windows).
Navigate to the directory where you have placed the ADB, Fastboot and .img file together.
Shut down your phone and reboot into boot loader. For nexus devices, simply hold volume down + power to start up the phone.
Connect your phone to your computer.
On terminal (or command prompt) window, write fastboot boot <img file name>, e.g. fastboot boot twrp.img.
Your phone will restart and will boot into the recovery mode.
Hint:
use adb reboot bootloader in CM13 to reboot into fastboot bootloader

Re-Lock bootloader?

I unlocked my bootloader, installed twrp and several roms to try them out, then decided to go back to stock. Currently have OOS 3.5.4 installed with stock recovery (that came with the toolkit). However, whenever I try to lock the booltloader again, the phone won't boot up. It will bootloop, or just stay off with the led glowing white. I tried to sideload the stock ROM from OnePlus, but it fails after about 45% completion. I tried both 3.5.3 and 3.5.4 and both fail after about 45%. The only way to get the phone to boot again is by unlocking the bootloader again, then it boots just fine. Tried unlocking with the toolkit as well as fastboot oem lock. Both give me the prompt on the phone, then wipe the phone and go into the bootloop.
Any suggestions on how to re-lock the bootloader? I want to be able to get the OTA update, which I think will fail with an unlocked bootloader. Note, I have also tried loading the Nougat update from settings - system update - local upgade (both full and update) and they also fail to load shortly after booting to recovery.
Thanks,
TR
Instead of using the toolkit, try just doing it manually.
fastboot oem lock IS the correct way to lock the bootloader.
If you're running into all those issues, try to reflash the stock rom from the official site. OR try this
NOTE: This WILL wipe everything on your phone so make a backup first!
First Unlock booloader​1. On your phone go into Developer screen (Settings --> Developer Options)
If you don't have this go back to Settings --> About Device. Tap "Build number" 7-10 times to unlok developer options
2. In Developer Options turn on "USB Debugging" and "OEM Unlock"
3. Open ADB in command prompt and go to the directory where ADB is.
Type adb reboot bootloader
4. Once your device is in fastboot mode, type in fastboot devices to make sure your device is listed
5. Type in fastboot oem unlock to unlock your device bootloader
You can check to make sure it was properly unlocked by typing in fastboot oem device-info.
6. Reboot into your system
Files we need​7. Download the following files:
TWRP - https://build.nethunter.com/test-builds/twrp/oneplus/twrp-3.0.2-0-oneplus3t.img
No-verity-opt-encrypt - https://build.nethunter.com/android-tools/no-verity-opt-encrypt/no-verity-opt-encrypt-5.0.zip
Magisk - http://tiny.cc/latestmagisk
Phh-Superuser - https://forum.xda-developers.com/attachment.php?attachmentid=3988488&d=1483407725
Latest Stable Nougat Rom - http://otafsc.h2os.com/patch/amazon...s3TOxygen_28_OTA_035_all_1612310259_2dc0c.zip
8. Copy all the files to your phone (keep the original on your pc just in case)
9. Load back up to fastboot mode
In ADB type adb reboot bootloader
10. Flash twrp img we downloaded above by typing
fastboot flash recovery twrp-3.0.2-0-oneplus3t.img
11. After this reboot into the system
Install all of our downloaded files through TWRP​12. Now boot into recovery by issuing the following ADB command
adb reboot recovery (you should go into TWRP)
13. Once you're in twrp flash the "no-verity-opt-encrypt-5.0.zip" file OR you can format the data partition to f2fs to prevent the dm-verity error.
14. Now install the stock stable nougat rom we downloaded above
15. Do a factory system wipe / cache & dalvik
16. Install magisk through TWRP
17. Wipe cache/dalvik
18. Install phh SuperUser
19. Now reboot into the system normally.
NOTE: This *COULD* take a while since you did a clean install of nougat so just be patient and you should be good to go after this.
Thanks for the reply.
I did do fastboot oem lock, and it results in an unbootable system. fastboot oem unlock makes it bootable again. Not sure why. Also, whenever I do adb sideload <any_rom> it fails after about 45%. Not sure what's happening. Your instructions would get me to Nougat with TWRP and an unlocked bootloader, which may be what I end up doing, but I was trying to get back to fully stock, and locked again, so that OTA's will work properly. If nothing else works, I will go the route you suggest above.
Thanks again!
I just figured I'd try to get you to a working system/phone. After you get all that working you can probably lock your bootloader back to default. Now, I'm not 100% sure, but I believe that if you have a custom recovery you will need to restore that to stock as well before setting the bootloader back to locked.
TXRangerXDA said:
I unlocked my bootloader, installed twrp and several roms to try them out, then decided to go back to stock. Currently have OOS 3.5.4 installed with stock recovery (that came with the toolkit). However, whenever I try to lock the booltloader again, the phone won't boot up. It will bootloop, or just stay off with the led glowing white. I tried to sideload the stock ROM from OnePlus, but it fails after about 45% completion. I tried both 3.5.3 and 3.5.4 and both fail after about 45%. The only way to get the phone to boot again is by unlocking the bootloader again, then it boots just fine. Tried unlocking with the toolkit as well as fastboot oem lock. Both give me the prompt on the phone, then wipe the phone and go into the bootloop.
Any suggestions on how to re-lock the bootloader? I want to be able to get the OTA update, which I think will fail with an unlocked bootloader. Note, I have also tried loading the Nougat update from settings - system update - local upgade (both full and update) and they also fail to load shortly after booting to recovery.
Thanks,
TR
Click to expand...
Click to collapse
I also have the same problem, after the bootloader lock the phone does not start.
I tried with all the possible procedures, also even the rom flash in local and sideload it does not work, It comes to 45% and then fails.
we will highlight the problem, so everyone will know and maybe there is a solution
m0d hipp¥ said:
I just figured I'd try to get you to a working system/phone. After you get all that working you can probably lock your bootloader back to default. Now, I'm not 100% sure, but I believe that if you have a custom recovery you will need to restore that to stock as well before setting the bootloader back to locked.
Click to expand...
Click to collapse
But of course, you can't relock phone with a non standard recovery. Replace TWRP with the ROMs real recovery and relock will work again.
That's what I figured. Thanks for the confirmation.
Use the unbrick tutorial to go back to stock
This is what i did
https://forum.xda-developers.com/oneplus-3t/how-to/unbrick-unbrick-tutorial-oneplus-3t-t3515306
pitrus- said:
But of course, you can't relock phone with a non standard recovery. Replace TWRP with the ROMs real recovery and relock will work again.
Click to expand...
Click to collapse
I'm sorry, even with the stock recovery but does not work, it was the first thing I did
You can a unbick tutorial. It worked for my OnePlus 3T. Just search up How to unbrick (whatever OnePlus device you have) on Google. Then follow all the instructions carefully. If you need help with it I could try to do a remote session with you. Edit: It will erase all data and you will boot with oos 3.5.3 ( I also had the same issue as you. But I couldn't install any zip with stock recovery or adb side load.
Haven't seen nothing on the fórum about this particular subject, locking the bootloader seems a problem in this phone
enokack said:
Haven't seen nothing on the fórum about this particular subject, locking the bootloader seems a problem in this phone
Click to expand...
Click to collapse
Only if you have modified the phone in some way or another (like rooting and installing twrp) before trying to re-lock.
If you keep it stock, you should be able to re-lock. Or else, just use the Qualcomm restore method to re-lock.
tried this
OK what i did was when the phone was starting and vibrating I push the power bottom and volume down bottom at the same time ,then i connected the phone to the PC,from the panel in the phone there are 3 categories to erase everything on the phone I did it all(1,2,3) and then I put the phone in ADB mode from the control panel in the phone,After that I flash via fastboot the original .zip from one plus for the version 4.0.3 (1.4 GB) ,when it finished I restarted and the phone started normal again,I hope this help someone alse,I was so desesperated:silly:.
I think the problem in re-locking it is the modified boot image. Locked bootloaders don't support those.
re-locking bootloader will getback the warranty ???
No solutions till now
enokack said:
Haven't seen nothing on the fórum about this particular subject, locking the bootloader seems a problem in this phone
Click to expand...
Click to collapse
Its three easy steps, no need to use any toolkit just follow the instructions. https://forums.oneplus.net/threads/...-3-3t-and-go-back-completely-to-stock.456232/
Abrar123 said:
re-locking bootloader will getback the warranty ???
Click to expand...
Click to collapse
Unlocking the bootloader does not void the warranty on this device:
https://oneplus.net/support/answer/will-rooting-or-unlocking-the-bootloader-void-my-warranty
Once I have root, is there a command to re-lock and later eventually unlock the bootloader again?
I remember this was possible with google nexus devices, there was a shell command (require root) that was able to change bootloader status

Rooting Problems Need Help

Hi I'm a new Android user and don't know much about it :'( I recently got my OnePlus 3T and I wanted to root it
so I followed a tutorial video from YouTube successfully unlocked bootloader and flashed twrp recovery then I tried to install SuperSU... well it installed but the device got soft bricked when I rebooted after finishing the installation and wiping cache/dalvik
then I format/factory reset everything using twrp recovery and it's working now but the device isn't rooted :'( tried to install SuperSU again and it got bricked again
Also I'm getting these messages on the startup screen-
1st one: Your device has been unlocked and can't be trusted. If you don't want to see this screen please lock your device by "fastboot oem lock" and erase user data.
2nd one: The dm-verity is not started in enforcing mode and may not work properly.
(My os version is 4.1.7)
device OP 3t A3010
plz help me :'(
The 1st and the 2nd msg that gets displayed is shown because the bootloader is unlocked..
Bootloops are common while flashing su...when I flashed super su for the first time, I got 3 or 4 random reboots and took almost 7 to 10 mins for the phone to boot up..
I would suggest using Magisk as a rooting method instead of SuperSU. If you use SuperSU then some apps can detect root and object to you being rooted and Google's SafetyNet gets triggered. Magisk solves this by trying to hide root from apps and Google so that you can use your device as if it wasnt rooted at all (but in fact is rooted). Go the the Magisk forum and download Magisk 13.3 zip from there.
I am assuming you are using OxygenOS (Oneplus's software) and not a custom ROM. Download the Open Beta or Stable build from here/
These steps will erase all the data on your phone permanently (including internal storage) so please backup anything in there.
To fix the DM verity error youll have to follow the steps outlined here
Once you have fixed that, flash oneplus recovery via fastboot which you can download here
To flash it go to fastboot mode, and cd into the folder where you downloaded it. Run the command 'fastboot flash recovery <RECOVERY_NAME>'.
Then run the command 'fastboot oem lock' to lock the bootloader. After you confirm the prompt on screen, the phone will boot into the recovery and youll see a progress bar. Once the progress completes and the screen turns off, be ready to immediately go back to fastboot mode by pressing volume up and power.
When you enter fastboot mode again, run the command 'fastboot oem unlock' and follow the same steps as before.
Once you are in fastboot mode, the phone is now in a clean state with no OS.
Follow the steps outlined on the oneplus website to flash a clean OxygenOS build (stable or open beta as per your taste)
Once the flashing is complete you have to let the phone boot up completely once. When you get to the setup screen, go through it and reach the launcher.
Now we flash TWRP recovery. Reboot to fastboot again. Flash TWRP recovery (I personally use blu_spark's twrp but you can use one of your choice). When it is done, boot into the recovery. Youll now be able to copy magisk zip into the internal sd. Do that, and flash it. Reboot.
Youll now be rooted. If you have any problems holla at me.

Categories

Resources