[Guide] [Android 9/10] [7/7Pro] Unlock, TWRP, Root, and Update

What other modifications would you like a guide for?


  • Total voters
    345
Search This thread

Arden144

Senior Member
Nov 1, 2017
375
463

------------------------------------------
Latest update to guide: Jul. 5, 2020
------------------------------------------

Hi everyone!

Many users browse these forums coming from Google or YouTube and have trouble navigating between many guides and threads expecting a working knowledge of Android devices. Many may say that if you don't know what you are getting into, don't do it, but this warning is not followed by many people. Instead of having to deal with the pleas for help from lost users with soft bricked phones, I decided we need a 'megathread' with accurate, easy to follow instructions with correct grammar and concise descriptions.

This thread is constantly updated. Please inform me with a reply or PM if you want anything modified

Sections:

 
Last edited:

Arden144

Senior Member
Nov 1, 2017
375
463
Section 1: Unlocking the bootloader (Windows Only)

If your device is a T-Mobile version, you must first request an unlock token from this website to complete this section. Your device may also need to be SIM unlocked. Check your carrier website for details. Using the cable included in the box is also recommended.

Step 1: With your phone turned on, open Settings. Scroll down to the bottom and select About phone. Touch Build number quickly until a toast message (grey rectangle at the bottom of the screen) appears reading You are now a developer!. Go back one screen to the main settings list and select System. Select Developer options. Turn on the switch next to OEM unlocking. Scroll down a small bit and turn on the switch beside Advanced reboot. Scroll down a bit more and turn on the switch beside USB debugging. Go back to the home screen.

Step 2: Plug your phone into your computer with the cable supplied in the box. On your phone, look in the notifications for a message that says: "Android System Charging this device via USB." Touch the notification once to expand it and again to open it. Choose File transfer from the list. Download and extract this zip file by right clicking it, clicking Extract All, then Extract. (File Credit: Google) This file contains the official ADB and Fastboot binaries. Open File Explorer and navigate to This PC. Under Devices and drives, click on the CD drive labelled with a bunch of numbers. Click on OnePlus_USB_Drivers_Setup and click yes in the User Account Control popup. Click Ok then Install, then Finish. Navigate back to the extracted ADB and fastboot files (the folder will likely be named platform-tools). With this folder open, hold shift and right click on the blank space. Click Open command window here or Open PowerShell window here. Unlock/wake up your phone. Type in the terminal window on your computer followed by the enter key
Code:
adb devices
A prompt should appear on your phone. Click Ok. Type followed by the enter key
Code:
adb reboot bootloader
Your phone screen should show the OnePlus logo as well as the words FastBoot Mode briefly. Type followed by the enter key
Code:
fastboot oem unlock
Warning: This next step will wipe your phone. On your phone, use the volume down key to select Unlock the bootloader and then the power key to select. Your phone will then be wiped and restart automatically.

Step 3: Follow the phone's initial setup exactly how you would if you were setting up a new phone. Restore any backup you have now. Once completely set up, follow the instructions from Step 1, ignoring the OEM unlocking switch. I also recommend typing this followed by enter
Code:
adb devices
A prompt should appear on your phone. Click Ok.

Your device is now Bootloader Unlocked.
 
Last edited:

Arden144

Senior Member
Nov 1, 2017
375
463
Section 2: Installing TWRP (Windows Only)

Your bootloader must already be unlocked, and you must be on the latest version of OxygenOS. Using the cable included in the box is also recommended.

Step 1: With your phone turned on, hold the power button and until the reboot options menu appears on the right side. Click Bootloader. Plug your phone into your computer with the cable supplied in the box. Download these two files (File 1 for Android 10, File 1 for Android 9, File 2), which now work on both the OnePlus 7 Pro and OnePlus 7. (File Credit: @mauronofrio and Team Win Recovery Project). Put these files somewhere accessible, such as your Desktop.

Step 2: Open the folder with your ADB and Fastboot binaries (the folder will likely be named platform-tools). With this folder open, hold shift and right click on the blank space. Click Open command window here or Open PowerShell window here. Type in the terminal window
Code:
fastboot boot
followed by a space. Drag the image/img file you downloaded called twrp-3.3.1-79-guacamole-unified-Q-mauronofrio into your terminal window. The resulting command in your terminal window should read something like this
Code:
fastboot boot C:/Users/Arden/Desktop/twrp-3.3.1-79-guacamole-unified-Q-mauronofrio.img
If it does, click the enter key.

Step 3: On your phone, enter your PIN/Password/Pattern if requested. You should now see a screen with grey boxes. This is the TWRP recovery. Click Advanced, then ADB Sideload, then swipe the bar at the bottom to the right. On your computer, type
Code:
adb sideload
followed by a space. Drag the zip file you downloaded called twrp-3.3.1-79-guacamole-unified-installer-mauronofrio into your terminal window. The resulting command in your terminal window should read something like this
Code:
adb sideload C:/Users/Arden/Desktop/twrp-3.3.1-79-guacamole-unified-installer-mauronofrio.zip
If it does, click the enter key. On your phone, you will see some text scrolling in a black box. Once the button appears on the bottom right, click Reboot.

Your device now has the TWRP custom recovery.
 
Last edited:

Arden144

Senior Member
Nov 1, 2017
375
463
Section 3: Installing Magisk

You must already have TWRP installed to complete this section.

Step 1: On your phone, download the Magisk installer zip (File Credit: topjohnwu). If you are not already in the TWRP recovery, hold the power button and until the reboot options menu appears on the right side. Click Recovery.

Step 2: Enter your PIN/Password/Pattern if requested. You should now see a screen with grey boxes. Choose Install and navigate to the folder you downloaded the Magisk file to. Select the Magisk file (likely named Magisk-20.4.zip) and swipe the bar at the bottom to the right. Once the button appears in the bottom right, click Reboot.

You now have Magisk root.
 
Last edited:

Arden144

Senior Member
Nov 1, 2017
375
463
Section 4: Installing an OTA update while rooted

You must be rooted to complete this section.

Step 1: If you have any themes installed, such as Renovate ICE, Swift Themes, RoundyUI, or Substratum themes, remove them before continuing. Remove the Call Recording Enabler module if you have it. Restart if needed.

Step 2: Click on the system update notification. If it does not appear, open Settings, scroll to the bottom and click System, scroll to the bottom and click System updates. Click on the Install or Download and Install button and let it complete. Do NOT click Reboot.

Step 3: Open Magisk Manager and click the hamburger menu in the top left (3 horizontal lines). Click Downloads and then click the search icon (magnifying glass) in the top right corner. Type "TWRP" and click enter. Click the download arrow beside the module named TWRP A/B Retention Script. Do NOT click Reboot.

Step 4: Click the back button in the top left, followed by the hamburger menu in the top left as well (3 horizontal lines). Click Magisk and then click the top Install button, followed by Install again, then Install to Inactive Slot. You may now click Reboot.

You now have updated your phone's OxygenOS. Reinstall any modules or themes deleted in this process if they are compatible.
 
Last edited:

teddyearp

Senior Member
Jul 27, 2009
250
55
ted.servepics.com
Section 1: Unlocking the bootloader (Windows Only)

<snip> Type followed by the enter key
Code:
fastboot flashing unlock
Warning: This next step will wipe your phone. On your phone, use the volume down key to select Unlock the bootloader and then the power key to select. Your phone will then be wiped and restart automatically.
I am curious about this step. For most all time with a phone that has an unlockable bootloader the command has always been:
Code:
fastboot [B]oem[/B] unlock

Why do we use 'flashing' instead of 'oem' in that command for this phone?
 

Arden144

Senior Member
Nov 1, 2017
375
463
Section 1: Unlocking the bootloader (Windows Only)

<snip> Type followed by the enter key
I am curious about this step. For most all time with a phone that has an unlockable bootloader the command has always been:


Why do we use 'flashing' instead of 'oem' in that command for this phone?
Good question, actually. I'm not entirely sure why the wording change, but the command has been different on close to stock devices since the Nexus 6P/5X. If someone more knowledgeable could explain, that would be great
 

redpoint73

Inactive Recognized Contributor
Oct 24, 2007
15,259
6,950
Code:
fastboot boot C:/Users/Arden/Desktop/twrp-3.3.1-3-guacamole.img

On earlier OOS versions, the command "fastboot boot" is broken, and this won't work. Process in that case is to flash a patched boot image, root with Magisk, and then flash TWRP like a Magisk module.

Your method works for those that have updated to more recent OOS versions. However, there are folks still out there with older OOS versions, where "fastboot boot" won't work (don't know the cutoff exactly).
 

Arden144

Senior Member
Nov 1, 2017
375
463
On earlier OOS versions, the command "fastboot boot" is broken, and this won't work. Process in that case is to flash a patched boot image, root with Magisk, and then flash TWRP like a Magisk module.

Your method works for those that have updated to more recent OOS versions. However, there are folks still out there with older OOS versions, where "fastboot boot" won't work (don't know the cutoff exactly).
Thanks for the info. I'm not going to add the patched image way, as extracting the boot.img is annoying and I'm trying to avoid methods that rely on someone else providing files. However, I'll add a note to the TWRP install section asking for 9.5.7 minimum as everyone should be on that update by now
 

sovi3tss

Senior Member
May 4, 2011
140
10
Wollongong
Is this method applicable to all versions ? Im getting the GM1910: China version , I have used this method when i had my OP6 so i just have to get the correct TWRP version, if the IMG boots the TWRP i guess the zip will be good to go when flashing .

Cheers
 

redpoint73

Inactive Recognized Contributor
Oct 24, 2007
15,259
6,950
For me also...the right command seems still fastboot oem unlock

I'm skeptical that the command "fastboot flashing unlock" is applicable for this device. I think it may just be a carryover from some other device(s). The original poster responsed that it is applicable to "close to stock devices since the Nexus 6P/5X" but never explicitly stated whether it even worked for him on the 7 Pro.

Far as I can tell "fastboot oem unlock" is the correct and only command on this, and other previous OnePlus devices (and is also the command that worked for me).
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Alright, thanks for the reply.

    What happens if I do not have custom recovery like TWRP? Will my device data get erased if I boot into stock recovery if it detects I'm rooted?
    No, none of that. Your data will be fine. You just won't have TWRP recovery. Your stock recovery will be there. It won't wipe anything, unless you choose to do so. Having recovery either stock or TWRP, doesn't determine if your data will get wiped while doing an upgrade.
    1
    I actually did this from A10 to A11 latest. As mentioned, install update. Don't re boot, disable modules in magisk. Then install magisk to inactive slot.
    Sorry never used dual boot, so I can't help you there.
    Canary version not required, I used v23.0
  • 95

    ------------------------------------------
    Latest update to guide: Jul. 5, 2020
    ------------------------------------------

    Hi everyone!

    Many users browse these forums coming from Google or YouTube and have trouble navigating between many guides and threads expecting a working knowledge of Android devices. Many may say that if you don't know what you are getting into, don't do it, but this warning is not followed by many people. Instead of having to deal with the pleas for help from lost users with soft bricked phones, I decided we need a 'megathread' with accurate, easy to follow instructions with correct grammar and concise descriptions.

    This thread is constantly updated. Please inform me with a reply or PM if you want anything modified

    Sections:

    56
    Section 1: Unlocking the bootloader (Windows Only)

    If your device is a T-Mobile version, you must first request an unlock token from this website to complete this section. Your device may also need to be SIM unlocked. Check your carrier website for details. Using the cable included in the box is also recommended.

    Step 1: With your phone turned on, open Settings. Scroll down to the bottom and select About phone. Touch Build number quickly until a toast message (grey rectangle at the bottom of the screen) appears reading You are now a developer!. Go back one screen to the main settings list and select System. Select Developer options. Turn on the switch next to OEM unlocking. Scroll down a small bit and turn on the switch beside Advanced reboot. Scroll down a bit more and turn on the switch beside USB debugging. Go back to the home screen.

    Step 2: Plug your phone into your computer with the cable supplied in the box. On your phone, look in the notifications for a message that says: "Android System Charging this device via USB." Touch the notification once to expand it and again to open it. Choose File transfer from the list. Download and extract this zip file by right clicking it, clicking Extract All, then Extract. (File Credit: Google) This file contains the official ADB and Fastboot binaries. Open File Explorer and navigate to This PC. Under Devices and drives, click on the CD drive labelled with a bunch of numbers. Click on OnePlus_USB_Drivers_Setup and click yes in the User Account Control popup. Click Ok then Install, then Finish. Navigate back to the extracted ADB and fastboot files (the folder will likely be named platform-tools). With this folder open, hold shift and right click on the blank space. Click Open command window here or Open PowerShell window here. Unlock/wake up your phone. Type in the terminal window on your computer followed by the enter key
    Code:
    adb devices
    A prompt should appear on your phone. Click Ok. Type followed by the enter key
    Code:
    adb reboot bootloader
    Your phone screen should show the OnePlus logo as well as the words FastBoot Mode briefly. Type followed by the enter key
    Code:
    fastboot oem unlock
    Warning: This next step will wipe your phone. On your phone, use the volume down key to select Unlock the bootloader and then the power key to select. Your phone will then be wiped and restart automatically.

    Step 3: Follow the phone's initial setup exactly how you would if you were setting up a new phone. Restore any backup you have now. Once completely set up, follow the instructions from Step 1, ignoring the OEM unlocking switch. I also recommend typing this followed by enter
    Code:
    adb devices
    A prompt should appear on your phone. Click Ok.

    Your device is now Bootloader Unlocked.
    52
    Section 4: Installing an OTA update while rooted

    You must be rooted to complete this section.

    Step 1: If you have any themes installed, such as Renovate ICE, Swift Themes, RoundyUI, or Substratum themes, remove them before continuing. Remove the Call Recording Enabler module if you have it. Restart if needed.

    Step 2: Click on the system update notification. If it does not appear, open Settings, scroll to the bottom and click System, scroll to the bottom and click System updates. Click on the Install or Download and Install button and let it complete. Do NOT click Reboot.

    Step 3: Open Magisk Manager and click the hamburger menu in the top left (3 horizontal lines). Click Downloads and then click the search icon (magnifying glass) in the top right corner. Type "TWRP" and click enter. Click the download arrow beside the module named TWRP A/B Retention Script. Do NOT click Reboot.

    Step 4: Click the back button in the top left, followed by the hamburger menu in the top left as well (3 horizontal lines). Click Magisk and then click the top Install button, followed by Install again, then Install to Inactive Slot. You may now click Reboot.

    You now have updated your phone's OxygenOS. Reinstall any modules or themes deleted in this process if they are compatible.
    48
    Section 2: Installing TWRP (Windows Only)

    Your bootloader must already be unlocked, and you must be on the latest version of OxygenOS. Using the cable included in the box is also recommended.

    Step 1: With your phone turned on, hold the power button and until the reboot options menu appears on the right side. Click Bootloader. Plug your phone into your computer with the cable supplied in the box. Download these two files (File 1 for Android 10, File 1 for Android 9, File 2), which now work on both the OnePlus 7 Pro and OnePlus 7. (File Credit: @mauronofrio and Team Win Recovery Project). Put these files somewhere accessible, such as your Desktop.

    Step 2: Open the folder with your ADB and Fastboot binaries (the folder will likely be named platform-tools). With this folder open, hold shift and right click on the blank space. Click Open command window here or Open PowerShell window here. Type in the terminal window
    Code:
    fastboot boot
    followed by a space. Drag the image/img file you downloaded called twrp-3.3.1-79-guacamole-unified-Q-mauronofrio into your terminal window. The resulting command in your terminal window should read something like this
    Code:
    fastboot boot C:/Users/Arden/Desktop/twrp-3.3.1-79-guacamole-unified-Q-mauronofrio.img
    If it does, click the enter key.

    Step 3: On your phone, enter your PIN/Password/Pattern if requested. You should now see a screen with grey boxes. This is the TWRP recovery. Click Advanced, then ADB Sideload, then swipe the bar at the bottom to the right. On your computer, type
    Code:
    adb sideload
    followed by a space. Drag the zip file you downloaded called twrp-3.3.1-79-guacamole-unified-installer-mauronofrio into your terminal window. The resulting command in your terminal window should read something like this
    Code:
    adb sideload C:/Users/Arden/Desktop/twrp-3.3.1-79-guacamole-unified-installer-mauronofrio.zip
    If it does, click the enter key. On your phone, you will see some text scrolling in a black box. Once the button appears on the bottom right, click Reboot.

    Your device now has the TWRP custom recovery.
    39
    Section 3: Installing Magisk

    You must already have TWRP installed to complete this section.

    Step 1: On your phone, download the Magisk installer zip (File Credit: topjohnwu). If you are not already in the TWRP recovery, hold the power button and until the reboot options menu appears on the right side. Click Recovery.

    Step 2: Enter your PIN/Password/Pattern if requested. You should now see a screen with grey boxes. Choose Install and navigate to the folder you downloaded the Magisk file to. Select the Magisk file (likely named Magisk-20.4.zip) and swipe the bar at the bottom to the right. Once the button appears in the bottom right, click Reboot.

    You now have Magisk root.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone