OnePlus 6: Unlock Bootloader | Flash TWRP | Root | Nandroid & EFS Backup !!

Search This thread

alonroz

Senior Member
Dec 29, 2008
235
43
hi
hello, I'm brazilian so forgive for english taken from google

The problem is that when I install twrp on my oneplus 6, I always get the following error:

downloading 'boot.img' ...
OKAY [0.640s]
booting ...
FAILED (remote: unknown command)
finished. total time: 0.656s

Could you help me solve it?
Same issue for me. Worked perfectly in the last beta for Pie
 

800800

Member
Oct 21, 2019
6
0
Making a Nandroid Backup​

Warning: before you make a backup with TWRP you must remove all Lockscreen Security. If you do not do this you will not be able to unlock your device after restoring your backup (entering your pin/pattern/password will result in an "incorrect pin/pattern/password" message), you'll be forced to perform a factory reset to boot into Android.

To remove lockscreen security go to
Settings > Security > Screen Lock and set it to Swipe/None.

A Nandroid Backup is a very important thing to have before installing any custom software on your device. It's basically a backup of your stock system that you can fall back on if anything goes wrong or if you just want your stock ROM back.

You can also use Nandroid Bckup to create a backup of your favorite ROM set up exactly the way you like it. The backup you create can be easily restored using the restore tool in TWRP recovery.

To Create Nandroid Backup:

1. Boot into TWRP Recovery .
2. Go to Backup Menu and select all the listed partitions.
3. Name the Backup if needed (Optional)
4. Swipe to take Backup.
This proces should take 5 to 7 minutes depending upon the size of data.
5. Reboot System when done.

Your Nandroid will be stored in the Backup Folder inside TWRP Folder /sdcard/TWRP/BACKUPS

Is " select all the listed partitions." really required ? or just part of them is enough ?

Thanks
 

Mr-Whateva

Member
Nov 1, 2019
9
1
Hello Guys, can anyone pls tell me which TWRP to be used for my Os,
Android version : 10
OxygenOS Version : OP6_O2_BETA_30
Thanks
Rv1L9y0
 
Last edited:

Borat38

Senior Member
Jan 1, 2011
234
16
welp. I've spent the last day and a half thinking I was just retarded lol glad I found this thread!

TWRP is compatible with Android 10, just not the latest version of TWRP.

---------- Post added at 11:23 PM ---------- Previous post was at 11:21 PM ----------

Anyone having magisk error where flashing the latest magisk (20.1) causes your phone to stop booting? On Android 9.0.9.

I flashed my Magisk 20.1 via recovery (TWRP); no issues. How were you flashing yours? One of those MSM tools?
 

ryanallaire

Senior Member
Dec 18, 2012
639
142
RANCHO CUCAMONGA
[/COLOR]

I flashed my Magisk 20.1 via recovery (TWRP); no issues. How were you flashing yours? One of those MSM tools?[/QUOTE]

I just performed this method to unlock bootloader and install twrp and magisk, no issues here!
 

jamesbeen

New member
Dec 2, 2019
1
0
HI!
i try to flash twrp recovery, but i've this error
how can i resolve?

Code:
C:\adb>fastboot boot twrp-3.2.2-0-enchilada.img
downloading 'boot.img'...
OKAY [  0.689s]
booting...
FAILED (remote: unknown command)
finished. total time: 0.694s

thanks
 

Sombra32

New member
Nov 13, 2019
1
0
HI!
i try to flash twrp recovery, but i've this error
how can i resolve?

Code:
C:\adb>fastboot boot twrp-3.2.2-0-enchilada.img
downloading 'boot.img'...
OKAY [  0.689s]
booting...
FAILED (remote: unknown command)
finished. total time: 0.694s

thanks

Try: fastboot flash boot twrp-3.2.2-0-enchilada.img
 

Top Liked Posts

  • There are no posts matching your filters.
  • 135
    OnePlus 6: Unlock Bootloader | Flash TWRP | Root | Nandroid & EFS Backup !!

    ijuxHKx.jpg



    Q9IP5VP.png



    3RVsG8v.png



    Before you start, OTA up to the latest System Update available.
    Settings > System Updates > Download & Install the latest available


    ybQ9okG.jpg


    Thank You all for your support :highfive:
    Never Settle :fingers-crossed:
    89
    VOGlyoK.jpg


    Introduction​


    Rooting OnePlus 6 would give you additional benefits like you can install special apps, Flash Custom ROMs & Custom Mods, you can streamline your phone performance and many extra features. The real performance of an Android smartphone can only be unlocked once it is rooted.

    Rooting this device is actually quite a simple and easy process. Before you begin, it is recommended that you at least try to understand what each part of the process will do. Although this guide will elongate each step in order to show all of the details, the method used can be broken up into 3 main steps: ​

    1. Unlocking the Bootloader
    2. Installing a Custom Recovery
    3. Gaining Root Access


    Each new step relies on the previous step so please follow the entire process and a basic summary of each part is described as below:

    Unlocking Bootloader​​
    Opens the door to the internal memory of the device to be written on to. This allows you to flash images onto the main partitions of the phone.​

    Installing a Custom Recovery​​
    A custom recovery is flashed onto the recovery partition of the device and overwrites the stock recovery that exists by default. Custom recoveries bring lots of functionality and give you the ability to perform wipes, install flashable zips, create full backups of your device (Nandroid backup), and various other features. An unlocked bootloader is needed to install a custom recovery.

    Gaining Root Access​​
    You can gain root by either flashing via recovery a pre-rooted custom rom, or flashing a zip containing the SuperSU binaries or by Flashing Magisk Zip for a system less root. A custom recovery is necessary to do this.

    After completing these steps your phone will be rooted, the phone will have a custom recovery installed and an unlocked bootloader. This, in my opinion, is the a practical and beneficial method for rooting your phone. It will give you some basic adb/fastboot knowledge, and should hopefully help you have a decent understanding of the entire process. This method will work regardless of any android version on the phone.

    If you are confused by anything in this guide, I highly suggest getting it clarified being before moving on. Ask your question in this thread and I or someone else will likely answer. Also we would suggest that you read over the whole thread a few times before actually doing anything to the phone.​
    83
    Unlocking Bootloader​

    Turn the phone off. Then boot it into fastboot mode by holding volume up + power or select reboot to bootloader if advanced reboot is activated via developer options. The phone will display "fastboot" text indicating that it has successfully entered fastboot mode.

    Plug the phone into your PC, then open a command prompt window on the desktop (Shift + Right Click -> Open Command Window here) and type:

    Code:
    fastboot devices

    This command will list the connected devices. If your phones serial number shows up you are good to go and may continue. If the phone is NOT listed this indicates that your drivers are not installed correctly. In order for you to continue you must fix your drivers so that your phone is listed under fastboot devices.

    If the phone has been recognized by the command above, proceed to unlocking the bootloader with the following command:

    Remember this Step will WIPE EVERYTHING off the phone so Backup all your Data

    Code:
    fastboot oem unlock

    You would be greeted with a Unlock Bootloader Warning page, Hit the Vol button to select Yes and turn it Blue and Hit the Power Button to Execute the selection

    Your device will reboot, show you a Secure boot warning, reboot into stock recovery and wipe all data. Once done, your phone will reboot into the OS.

    Please continue and follow the next post to install Custom Recovery
    80
    Setup, Preparation & Prerequisites​​

    Basic tasks that may be referred to throughout this guide:​​
    Open 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.]

    ADB and Fastboot Drivers Installation​
    1. Download & Update OnePlus 6 Drivers From Here
    2. Download & Update Fastboot and ADB Binaries/Drivers from Here

    3. Run the .exe file downloaded from above as Administrator.
    4. Press 'Y' every time the installer asks for.
    5. Continue Driver Installation.

    Now, ADB and Fastboot have been installed on your PC and should be Working as desired.

    Things To Remember​
    Show File Extensions
    Open a command prompt window and run "Control folders" (without the quotes). Go to the View tab and uncheck the "Hide extensions for known file types" option. This will help avoid confusion when renaming files.

    Battery
    Ensure that your phone has at least 60% battery remaining, and that your PC is plugged in and wont shut down spontaneously during the process. The procedure doesn't take very long , but its best to have enough charge in case something goes wrong.

    Backup (Optional)
    Unlocking the bootloader will/should completely wipe all data from the device. This includes apps, settings and even the contents of the internal sdcard (pictures, music, etc.). Copy all important files off the phone onto a PC or upload them to a cloud.

    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.
    74
    Flashing TWRP Recovery

    Wait until the phone has fully booted up into android, then adjust the following settings on the phone:

    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 and make sure that from now on, OEM unlocking option is enabled before you reboot. Sometimes, it might get disabled itself.

    Enable Advanced Reboot
    On your phone go to Settings > Developer options. Then enable the 'Advanced Reboot' option.

    The OnePlus 6 uses the newer AB partition scheme first introduced on the Pixel 1. As such there is no recovery partition. Instead, the recovery is part of the boot image. You will temporarily boot TWRP to perform and later perform a more permanent TWRP installation.

    Download all the files, place Magisk & TWRP installer zip on Device Internal Memory and TWRP img on your PC

    Then boot it into fastboot/bootloader mode by holding volume up + power or selecting the reboot to bootloader via advanced reboot options.

    Open a new command prompt in the same location and run the following commands:

    Code:
    fastboot boot twrp-3.2.2-0-enchilada.img

    You will temporarily boot into TWRP

    Now in TWRP, tap on Install and browse to the zip and install it (the zip will probably be in /sdcard/Downloads). TWRP will now be installed to both slots. TWRP is now installed.

    PS: DO NOT BOOT IN OS JUST YET & CONTINUE TO THE ROOTING POST
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