OnePlus started its ‘flagship killing’ journey in 2014 when they revealed their first device the OnePlus One. As per their official tagline i.e. ‘Never Settle’, they kept on releasing new phones regularly. Each of them was even powerful than its predecessors. Finally, in 2018, they revealed the ultimate device with uncompromised features and performance, the OnePlus 6.
Talking about the latest OnePlus device i.e. the OnePlus 6, the smartphone was released on 22 May 2018. The smartphone has a full-screen display, face unlock, and a rear fingerprint sensor.
The smartphone is available almost everywhere in the world and this all-in-one OnePlus 6 guide is for those who have already got their hands on this flagship killer. I’ll discuss how you can easily unlock the bootloader, install TWRP, and root your OnePlus 6 using this tutorial. So without further ado, let’s get started!
Step 0: Essential Requirements
- Ensure that your device has battery more than half or 60%
- Make sure the PC you’re using is plugged in and won’t shut down spontaneously during the process.
- Enable USB Debugging: On your phone go to Settings > About phone > Tap on Build number 7 times. This will enable Developer options. Now go back to Settings > Developer options > Enable USB debugging
- Enable OEM Unlocking: On your phone go to Settings > Developer options. Then enable the ‘OEM Unlocking’ option. Also make sure that from now on, OEM unlocking option is enabled before you reboot as sometimes, it might get disabled itself.
- Enable Advanced Reboot: On your phone go to Settings > Developer options. Then enable the ‘Advanced Reboot’ option.
- You should take a full backup of the device with the goal that you don’t risk losing the data/information during the installation procedure.
- Open Elevated Command Prompt: Press Shift + Right Click anywhere on the screen and select Open Command Window here.
- Enter Fastboot/Bootloader Mode: Turn the phone off. Hold volume up + power until the “fastboot” screen appears. [Alternatively, if Advanced Reboot is enabled, you can press Reboot > Bootloader from the power menu.]
- Enter Recovery Mode: Turn the phone off. Hold volume down + power until the “OnePlus Logo” screen appears. [Alternatively, if Advanced Reboot is enabled, you can press Reboot -> Recovery from the power menu.]
First of all, extract the TWRP Image ZIP and rename the TWRP image file to recovery.img for ease of installation process and after that move it inside the adb installation folder which is generally located at C:\Program Files (x86)\Minimal ADB and Fastboot by default unless you install it somewhere else during establishment.
Step 1: ADB & Fastboot Drivers Installation
- Download & Update OnePlus 6 Drivers From Here
- Download & Update Fastboot and ADB Binaries/Drivers from Here
- Run the .exe file downloaded from above as Administrator.
- Press ‘Y’ every time the installer asks for.
- Continue Driver Installation.
Now, ADB and Fastboot have been installed on your PC and should be working as desired.
Step 2: Unlocking Bootloader
- Switch off your phone and boot your device into Fastboot mode. Press and hold the Volume Up + Power button together on your smartphone until the point when it shows “fastboot” on the screen.
- Connect it to your PC by means of a USB cable and ensure the cable has been connected correctly.
- Now open an elevated cmd (command prompt) window (Shift + Right Click and then Open Command Window here).
- Now the next step is to verify if your device is properly connected to your PC or not. To do so, type this command and hit enter:
- If your device is connected, you will see your smartphone’s serial number. In case you don’t, you need to check if you have properly installed all the necessary drivers.
- Type the command given to unlock your bootloader if your device has passed the previous step. Keep in mind this will wipe everything on your phone:
fastboot oem unlock
- Now, on your phone, you will be cautioned about unlocking the bootloader, press the volume up button to select Yes and the power button to choose it.
- At the point when your device reboots, power it off again and boot into the recovery mode. To do this, press and hold the power and volume down buttons together for a couple of seconds.
- In the stock OnePlus recovery, wipe all the data and after that power off your device once more.
- Now you can successfully proceed to install TWRP on your OnePlus 6.
Step 3: Install TWRP Recovery
Download the Unofficial TWRP Recovery for OnePlus 6 from here. The official build is not released yet but no need to worry, this unofficial one works great. I’ve tested it personally.
After downloading it, rename the file to recovery.img and move it to the same folder where you’ve or you’ll open the elevated command prompt window.
- Open a command window again in case you have closed the existing one.
- Now, boot your phone into fastboot mode and connect it to your PC.
- Enter the following command in order to flash the TWRP image file:
fastboot flash recovery.img
- At the point when the flashing is finished which should take a couple of seconds, don’t reboot your phone using any fastboot commands. Rather, manually disconnect your phone and after that boot into Recovery using the power and volume down buttons.
- Your smartphone should boot into TWRP recovery this time.
- Swipe to allow modification if required.
- Now you can proceed to root your device.
Step 4: Root OnePlus 6
Since your OnePlus 6 has TWRP recovery installed, you can proceed to root it. We will use Magisk for this purpose. Download it from here.
- Transfer Magisk to your phone over the MTP connection.
- Now, it’s time to Install it so boot into TWRP recovery.
- Explore the Magisk file that you’ve already transferred to your phone and select it.
- Swipe to flash the file.
- Click the Reboot system button at last once the flashing is finished.
- Your device will reboot. After that, you should see the Magisk Manager app in your application drawer. Open that to verify proper root.
Note: The first boot after wiping the phone may take longer than usual, as the phone will need to rebuild the dalvik cache and initialize the first boot. It might also reboot a few times so don’t panic.
Step 5: Take Nandroid Backup
- Nandroid backup is a complete backup of your device which holds all the data/information and in addition applications from the present form of the smartphone. This is required when something turns out badly on your device.
- Before taking a Nandroid backup, you need to mandatorily remove your lockscreen secret key or password like pin/fingerprint/pattern. Else, you should forcefully factory reset your phone if you try to enter the pin on restoring the Nandroid backup as it won’t accept the password/pin regardless of the possibility that it is right.
- So as to remove your device’s lock screen security, head over to Settings > Security > Screen Lock and select the swipe or none option.
Steps to take Nandroid Backup on OnePlus 6
- Boot into TWRP recovery by turning your device off and pressing and holding Power + Volume down button.
- Then go to Backup option inside TWRP recovery and select every one of the partitions including Data.
- You can also rename the backup to your choice or else it will be named by TWRP itself which includes the date and time of the backup.
- Simply swipe to take backup inside the recovery and it will take 5-10 minutes for the procedure to finish and it might require greater time in the event that you have a lot of information.
- Once done, reboot to system and you will see that the backup is made inside the TWRP folder on your device’s SD card.
- Store this backup in a safe place with the goal that you can restore this backup whenever if necessary.
Steps to restore Nandroid backup on OnePlus 6
- Power off your device and boot into TWRP recovery once again by pressing and holding power + volume down button combination at the same time.
- Then, go to Restore menu inside TWRP and you will see the backup that you have recently created.
- After that, select your preferred backup or some other backup and restore it by swiping inside TWRP.
- When restoration is finished, you should reboot the system and your phone will have correct settings previously the backup occurred.
Prerequisites for taking/restoring EFS backup:
- EFS backup implies the backup of all the cell information on the smartphone which covers the IMEI data of the SIM cards alongside the user data.
- It is likewise important to take the EFS backup same as the Nandroid backup to ensure that you don’t lose cellular network in the case that anything turns out badly while tinkering with your device.
Step 6: Take EFS Backup
I’ve seen a lot of folks who have a corrupted the EFS Partition on their device. This results in your IMEI being lost and no cellular activity on the device at all. You can take a precautionary measure to safeguard yourself against this by taking a couple of minutes to backup your modemst files.
For this purpose, we’ll be using the Terminal Emulator app. You can download it on your phone from here.
- Download the Terminal Emulator application on your smartphone which was specified above.
- Once installed, open the application and enter the command beneath to gain up root access on your smartphone.
- In case it requests you to give root access from Magisk, you should allow the request.
- After this, you need to enter following commands to take EFS backup:
dd if=/dev/block/sdf2 of=/sdcard/modemst1.bin bs=2048
dd if=/dev/block/sdf3 of=/sdcard/modemst2.bin bs=2048
- Now, you will discover two files named modemst1.bin and modemst2.bin in your smartphone’s internal storage which is the EFS backup of your OnePlus 6.
Restore EFS backup
- Boot into bootloader/fastboot mode by turning your device off and press power + volume up button.
- In bootloader mode, you should connect your device by means of the USB cable and open command prompt window on your PC.
- After that, check if your device is perceived by Fastboot by entering the command specified below:
- If you see an alpha-numeric code other than fastboot then your device is recognized and you can continue further.
- Enter the commands given below to restore the EFS backup on your smartphone:
fastboot flash modemst1 modemst1.bin
fastboot flash modemst2 modemst2.bin
- Once finished with the codes above, reboot your device and you ought to have the IMEI data on your cell phone once more.
- When you have finished every one of the means specified in the detailed guide above, you will be able to open/unlock the bootloader, install TWRP recovery, root and take Nandroid/EFS backup on your new OnePlus 6.
- On the off chance that you are stuck at any of steps described in this guide at that point don’t hesitate to comment on your inquiries underneath in the comments segment.
OnePlus 6 Stock ROM
Playing with your Android device doesn’t always go as planned. If you’ve bricked your OnePlus 6 it’s stuck in an endless bootloop then how you can fix that?
This OnePlus 6 stock ROM requires to be flashed over Fastboot. It has a flash-all.bat included with it. You can only flash this ROM if your device’s bootloader is unlocked. Also, keep in mind that it will erase all your data and will wipe your internal storage.