FORUMS
Remove All Ads from XDA

 View Poll Results: What other modifications would you like a guide for?

Installing EdXposed
 
14 Vote(s)
27.45%
Dirty flashing a ROM
 
12 Vote(s)
23.53%
Recovering from a brick
 
25 Vote(s)
49.02%

[Guide] Bootloader unlock, TWRP install, Magisk root, and OTA for beginners

97 posts
Thanks Meter: 62
 
By Arden144, Member on 17th June 2019, 02:52 AM
Post Reply Email Thread

------------------------------------------
Latest update to guide: 07-18-2019
------------------------------------------

Hi everyone!

I'm fairly new to XDA, only ever modifying two phones. (S8+ and OP7P) However, 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 description/pictures.

This thread is a work-in-progress. I hope the moderators will keep this up as I work on it, and not take it down for being a duplicate post. Please inform me with a reply or PM if you want anything modified

Sections:
The Following 18 Users Say Thank You to Arden144 For This Useful Post: [ View ] Gift Arden144 Ad-Free
 
 
17th June 2019, 02:52 AM |#2  
OP Member
Thanks Meter: 62
 
More
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 must also 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. 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.
The Following 13 Users Say Thank You to Arden144 For This Useful Post: [ View ] Gift Arden144 Ad-Free
17th June 2019, 02:53 AM |#3  
OP Member
Thanks Meter: 62
 
More
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 two files from here if you have a OnePlus 7 Pro and here if you have a OnePlus 7 (File Credit: Team Win Recovery Project). The ones with the highest number (3.3.1-4 for Pro and 3.3.1-1 for non-Pro at the time of writing), one starting with twrp- and the other starting with twrp-installer-. (twrp-3.3.1-4-guacamole.img and twrp-installer-3.3.1-4-guacamole.zip at the time of writing) 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 file you downloaded starting with twrp- (twrp-3.3.1-4-guacamole at the time of writing) 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-4-guacamole.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 file you downloaded starting with twrp-installer- (twrp-installer-3.3.1-4-guacamole at the time of writing) into your terminal window. The resulting command in your terminal window should read something like this
Code:
adb sideload C:/Users/Arden/Desktop/twrp-installer-3.3.1-4-guacamole.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.
The Following 9 Users Say Thank You to Arden144 For This Useful Post: [ View ] Gift Arden144 Ad-Free
17th June 2019, 02:53 AM |#4  
OP Member
Thanks Meter: 62
 
More
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). 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 (likely downloads). Select the Magisk file (likely named Magisk-19.3.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.
The Following 7 Users Say Thank You to Arden144 For This Useful Post: [ View ] Gift Arden144 Ad-Free
17th June 2019, 02:53 AM |#5  
OP Member
Thanks Meter: 62
 
More
(reserved section 4)
17th June 2019, 02:54 AM |#6  
OP Member
Thanks Meter: 62
 
More
(reserved extra section)
17th June 2019, 07:54 PM |#7  
protechtedd's Avatar
Senior Member
Thanks Meter: 176
 
More
Great idea, very thorough!
17th June 2019, 09:47 PM |#8  
anoymonos's Avatar
Senior Member
Thanks Meter: 86
 
More
You forgot the very first step, which is to get sim unlocked. Without this OEM unlock will be greyed out
The Following User Says Thank You to anoymonos For This Useful Post: [ View ] Gift anoymonos Ad-Free
18th June 2019, 02:41 AM |#9  
OP Member
Thanks Meter: 62
 
More
Quote:
Originally Posted by anoymonos

You forgot the very first step, which is to get sim unlocked. Without this OEM unlock will be greyed out

Oh, my bad. In my country it's illegal to sell locked phones
18th June 2019, 03:33 AM |#10  
Senior Member
Thanks Meter: 54
 
More
Quote:
Originally Posted by Arden144

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 oem unlock
Why do we use 'flashing' instead of 'oem' in that command for this phone?
18th June 2019, 03:34 AM |#11  
OP Member
Thanks Meter: 62
 
More
Quote:
Originally Posted by teddyearp

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
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes