• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

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

Search This thread

rbillock

Member
Oct 13, 2021
11
2
Oof. Ummm... I'm not on a 6 (8T here)... Maybe post in the Help & Questions subforum? Can you get the phone recognized in the regular "file transfer" area? Like to move files over - this would be after a regular boot up.
Well, I ran a factory reset. I plugged in the phone and the Mac recognizes the device but does not let any copying of files to it and I still get:

Econet0607:~ rbillock$ ./adb devices
-bash: ./adb: No such file or directory
Econet0607:~ rbillock$

Seems strange it says 'no such file or directory' vs just not recognizing the device.
 

rbillock

Member
Oct 13, 2021
11
2
Oof. Ummm... I'm not on a 6 (8T here)... Maybe post in the Help & Questions subforum? Can you get the phone recognized in the regular "file transfer" area? Like to move files over - this would be after a regular boot up.
well I am shocked. I rebooted the phone and plugged it into my Ubuntu machine instead of my Mac and it recognized the machine immediately. I am not sure what that is all about but I will try things from Ubuntu instead of Mac.
 
  • Like
Reactions: equi_design

rbillock

Member
Oct 13, 2021
11
2
well I am shocked. I rebooted the phone and plugged it into my Ubuntu machine instead of my Mac and it recognized the machine immediately. I am not sure what that is all about but I will try things from Ubuntu instead of Mac.
I think I finally have been successful rooting my Oneplus 6. Is there anyway to very this was successful?
 

dewa5227

Senior Member
Oct 31, 2010
217
54
Surabaya
OnePlus 6
Xiaomi Mi Pad 4
Well, I ran a factory reset. I plugged in the phone and the Mac recognizes the device but does not let any copying of files to it and I still get:

Econet0607:~ rbillock$ ./adb devices
-bash: ./adb: No such file or directory
Econet0607:~ rbillock$

Seems strange it says 'no such file or directory' vs just not recognizing the device.
it's simply because you didn't use the adb in the correct path. the system simply didn't know where to find adb.
 

azzam2379

New member
Nov 2, 2021
2
0
hi everyone, I accidentally upgrade to 11.1.1.1 and everything broke down, wifi not working, video not working, and so on. is there any way to flashback to android 10? I am trying to install the latest TWRP and crash dump on every boot.
I've flashed back to the stock boot image but most of the feature was broken. 😢
 

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