[OnePlus 8 Pro  Guides, News, & Discussion] dlads:
Hi all,

Have looked around the guides and such on these threads for the Oneplus 8 Pro and haven't found a full comprehensive guide outlining all parts of the bootloader unlocking and root process, so thought I'd put together my experience for anyone found in the same position, this is simply what I did, i'm sure there are other guides out there which offer different methods but I can confirm that this 100% works

NOTE* This guide is intended for all OnePlus 8 devices but the boot image files are for the EU version of the Oneplus 8 Pro on the most current firmware at the time of writing please don't use these files unless you meet the pre-requisites to the guide stated below

It is possible to extract the boot IMG from any firmware using the payload extractor tool which can be found online, then change the commands to reflect the files you obtain, for the sake of clarity I'll be using 10.5.12

Hope this helps.

Pre-requisites

A European variant of the Oneplus 8 Pro: IN2023

Running the following firmware: 10.5.12 IN11BA

ADB Access to your phone

A decent amount of charge, eg: 80%

A Windows 10 based computer

The cable that came with your phone

Obtaining ADB access to your device using your computer

1. Connect your phone to your computer using the cable that you charge it with

2. Allow it to see the device, if it automatically installs the driver (which it should) then you're good to go, if not then install the driver you can obtain from the drive which will appear on screen within "This PC" (i won't detail this as it's pretty self explanatory)

3. On your phone Open settings and navigate to "About phone"

4. Click "Build number" several times (5) then enter your PIN, this will enable "Developer Options"

5. Back out, then click "System"

6. Scroll down to "Developer Options" and open it.

7. Scroll down to "USB Debugging" and turn it on (if at this point you are prompted with a dialogue box asking for authorization then please check the box and allow it, also turn on) also turn on "OEM Unlocking" in the same section and agree to any prompts.

8. On your computer Download this folder https://drive.google.com/drive/folders/1S-yNzdvOvdZzPuxhYuEuwnelzfdEd0K2?usp=sharing

This is adb and fastboot so you can talk to your phone via your PC.

9. Move it to the root of the C: drive, so it looks like this in the filepath

C:\Android

10. Navigate to the folder and perform the following:

i) Hold shift and right click an empty space within the folder

ii) Click "Open Powershell Window here" or "Open a Command prompt Windows here"

iii) A black or blue window will appear with some text

11. In the window type the following command

adb devices

press enter

If you are now prompted with an authorization dialogue on your phone, please check the box and allow it.

You should see a readout of a device followed by a code, you now have ADB access and can continue.

Unlocking the bootloader

NOTE* THIS WILL WIPE YOUR ENTIRE DEVICE, IT'S UP TO YOU IF YOU WANT TO BACK UP OR NOT. I WOULD RECOMMEND DOING SO

1. Connect your phone to your computer

2. On your computer Navigate to C:\Android

i) Hold shift and right click an empty space within the folder

ii) Click "Open Powershell Window here" or "Open a Command prompt Windows here"

iii) A black or blue window will appear with some text

3. Type the following command into the window

adb reboot bootloader

press enter

On your phone

i) Your phone will reboot and show you a screen with 3 language choices, Choose "English" then "Advanced" and finally "Reboot to fastboot" and "Reboot to fastboot"

ii) You'll see a screen appear on your phone with some text, at the top you'll see the word "START" in green, you're now in Fastboot

4. On your computer Type the following command into the window

fastboot oem unlock

press enter

NOTE* THIS IS THE PART THAT WIPES YOUR PHONE IF YOU WANT TO BACK OUT, NOW IS THE TIME TO DO SO, ONCE STARTED DO NOT DISCONNECT THE CABLE OR FORCE A SHUTDOWN FOR ANY REASON THIS COULD RESULT IN A BRICKED DEVICE

5. Your phone will warn you and go through a set of screens, please agree and move forward until the device reboots

You have just unlocked the bootloader to your phone

Once the device has booted, set it up again and then follow the steps to unlock "developer options" and "USB Debugging" once more.

Installing Magisk Manager and obtaining Root access

Before you begin, please follow these two steps to install the magisk manager

Magisk manager

i) On your computer download this folder https://drive.google.com/drive/folders/1VH_2Ql6L5580rVYvRZ5l8t7cX2XENEAG?usp=sharing and move the file inside to your internal storage on your phone, the file is called "MagiskManager-v7.5.1.apk"

ii) On your phone using a file manager navigate to where you moved the file and open it, this will install the Magisk Manager used to manage root access, open the Magisk Manager once, you'll see it does not have root access.

Rooting

1. On your computer Go here https://drive.google.com/drive/folders/189DlZH1NSMrgVF996S7y3q5_IG9RAFIr?usp=sharing and download the folder

2. Copy the file inside the folder which is called "magisk_patched.img" to C:\Android

3. Navigate to C:\Android

i) Hold shift and right click an empty space within the folder

ii) Click "Open Powershell Window here" or "Open a Command prompt Windows here"

iii) A black or blue window will appear with some text

4. Type the following into the window

adb reboot fastboot

press enter

On your phone

i) Your phone will reboot and show you a screen with 3 language choices, Choose "English" then "Advanced" and finally "Reboot to fastboot" and "Reboot to fastboot"

ii) You'll see a screen appear on your phone with some text, at the top you'll see the word "START" in green, you're now in Fastboot

On your computer

5. There are two options for rooting, the first is to boot it first, this is safer as it is not permanent and a reboot will rejoice the booted image, the second is to flash it, this is a one step option but if the image isn't right then you could end up in a bootloop so id recommend the first.

Type the following into the window

To boot:

Fastboot boot magisk_patched.img

(Your phone will reboot automatically)

To flash:

fastboot flash boot_a magisk_patched.img

press enter

then

fastboot flash boot_b magisk_patched.img

press enter

then

NOTE* THIS WILL FLASH THE PATCHED BOOT IMG TO BOTH SLOTS, THIS IS WHAT I DID, I HAVEN'T EXPLORED IF ONE SLOT IS ADEQUATE OR NOT, IT MAY BE POSSIBLE TO ONLY FLASH THE BOOT.IMG TO ONE SLOT BUT AS I HAVEN'T I CAN'T ADVISE.

6.. Once complete, type in the following command

fastboot reboot

press enter, your device will reboot

7. On your phone open up "Magisk Manager" you should now have two green ticks signifying that you now have root access.

NOTE* If you booted the image then simply click the top install option then go to install directly, this will make root permanent.

That's it, you've now unlocked your bootloader and rooted using the most current boot img at the time of writing.

------------------------------------------------------------------------------------------------------------------------------------

Please don't quote the entire thread!!!!!

If i've missed anything out or anyone notices a mistake please let me know and i'll amend accordingly.

Alternate second guide here on post #55 thanks to @flushell

https://xdaforums.com/showpost.php?p=83534273&postcount=55

:D