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

Search This thread

DzieX

Member
Mar 11, 2016
32
1
Can anyone help me? In my case there is no way to see my device on list when I type "fastboot devices" but "adb devices" works. I've installed OnePlus USB drivers and other I found but with no result. Also tried disabling windows defender and cheked on different PC.

Found solution here https://android.stackexchange.com/a/106468/341770
 
Last edited:

toxstoxs

Member
Dec 11, 2010
33
3
Hi. I'm getting mad trying to root my OP5 with UNOFFICIAL LineageOS 18. Unlocked Bootloader + Factory reset... Injected TWRP 3.4.0.0 , Flash LOS18 + Gapps + Magisk 21.4 then Reboot . Lunched the image patching for the LOS18 boot.img file... back to Fastboot status and flash the patched boot.img. Reboot but.. no Root...
Tryed to flash Android-11-SuperUser-Jays-Mod-ProtoDeVNan0-Mar22.zip gave me SU App on Android but it seems to just do nothing. No SU prompt... Someone can help? regards

P.S. I've noticed that after reboot a TRUST notification came up saying that the system has been signed with public Keys. No idea what is means.. but...
 

Attachments

  • Screenshot_1970-03-28-18-10-29.png
    Screenshot_1970-03-28-18-10-29.png
    160.8 KB · Views: 33
  • Screenshot_20210208-222820_Magisk_Manager.png
    Screenshot_20210208-222820_Magisk_Manager.png
    96.1 KB · Views: 32
  • Screenshot_20210208-222705_Avvio_app_Pixel.png
    Screenshot_20210208-222705_Avvio_app_Pixel.png
    305.7 KB · Views: 29
Last edited:

Krazy129234

New member
Mar 5, 2021
1
0
Krazy229234 my root canal I thought this might be a bit difficult but I had no idea that almost every word would send me spinning off into space. There is no way I could ever do this on my own. I had no clue how confuzeing it would be to me. Humbling.
Thank you.
 

Chris57601

Member
Dec 12, 2017
9
0
Hello everybody,

I have a problem : I followed the guide step by step but after flashing Magisk (22.1), swipe cache and restart the phone ... stuck on boot. I know it could it be long but .... more than an houre ? Someone can help me please ?
 

Chaphasilor

Senior Member
Mar 24, 2017
131
45
Hello everybody,

I have a problem : I followed the guide step by step but after flashing Magisk (22.1), swipe cache and restart the phone ... stuck on boot. I know it could it be long but .... more than an houre ? Someone can help me please ?
Can you get into fastboot mode? Hold the power button until the phone turns off, then hold Vol+ while turning the phone back on, I believe...
 

thomanski

New member
Nov 13, 2013
2
1
OnePlus 5
Has anybody rooted the OP5 on Android 10 yet? I'd like to do it, but it didn't work since the 10 update.

I have a problem : I followed the guide step by step but after flashing Magisk (22.1), swipe cache and restart the phone ... stuck on boot.

I'm having trouble getting root to work as well. Bought a used OnePlus 5 (OxygenOS 10.0.1), followed the excellent instructions on this post to unlock the bootloader, install TWRP and Magisk (following the "for users who want to remain encrypted" instructions) but with Magisk installed it just never finishes booting. Have even let it run for a whole night but still didn't get past the startup animation of two white circles moving around a red circle.

Then tried with the more recent Magisk versions, first 22.1, then 23 and that still failed, moved to a newer version of TWRP as well (twrp-3.5.2_9-0-cheeseburger_dumpling.img), sadly to no avail. I'm able to uninstall Magisk via TWRP by renaming the Magisk file to uninstall though, so have always been able to get back into Android, just without root.

Then I factory-reset from within Android (which kept the bootloader unlocked) and this time installed Magisk following the official instructions, i.e. installed Magisk from within Android (via permitting Chrome-downloaded apks), downloaded the OnePlus 10.0.1 Stock ROM from the official site, unzipped it, found to my delight that the boot.img was directly contained (i.e. not needing payload_dumper.zip), and followed through with the steps as described there. Unfortunately, the subsequent reboot never finished either.

I haven't seen instructions to wipe the cache here (at least when staying encrypted) and not in the Magisk instructions but in some places got the impression that's a common and potentially helpful thing to do, so I wiped the cache (from within the stock recovery), restarted the phone but it's still booting forever.

So I had to give up again, uninstall Magisk via a "fastboot boot twrp-3.5.2_9-0-cheeseburger_dumpling.img" and then installing the Magisk 23 version renamed to uninstall. During the uninstall I got a warning message that there was no backup of the patched boot.img. It boots successfully though, but, of course, still without root.

To be clear, I don't desperately need to root this stock rom, I intend to experiment with a de-googled LineageOS but just wanted to go through these motions and get some confidence and experience with the whole process and also wanted to perform the EFS backup that's suggested here before risking destroying that bit. Any advice much appreciated.
 
  • Like
Reactions: Clues

Clues

Senior Member
Aug 29, 2008
132
13
OnePlus 5
Same here. TWRP installs, stays, but after installing Magisk, it boots to fastboot. From there I can reboot with the recovery option to TWRP.

Issue started when Viper wouldn't load the drivers. When removing one version of Viper, it did not actually remove. Then I had 2 when Magisk blew out. Nothing worked so for, manual removal and unSU and tried several different versions. It will boot with the old zip flash Magisk, but it doesn't actually root.
 
  • Like
Reactions: thomanski

thomanski

New member
Nov 13, 2013
2
1
OnePlus 5
Same here. TWRP installs, stays, but after installing Magisk, it boots to fastboot. From there I can reboot with the recovery option to TWRP.
Thanks for the reply, Clues. You could try Root Oneplus 5&5T running Oxygen OS 10 based on Android 10 (YouTube) as comments there seem to indicate those instructions work.

I for my part had soft-bricked my phone by installing two different versions of Magisk at the same time (I was tired) and uninstalling them both. On the next restart all I got was a black screen and a white LED (top left) which I was able to fix with the instructions given here, i.e.
- booted into TWRP, doing a full wipe of Cache, Data, Internal and System
- copied an OTA zip on it, I chose 9.0.11 to see if I could root that, or actually I think it was 9.0.3 that I used
- rebooted TWRP, mounted system, went to Install and proceeded with that OTA
With the phone thus unbricked, I was then able to root as per the instructions in this thread and perform the EFS backup.

I will stay under OOS 9 for a while as I've moved WhatsApp over to that phone and will see if I can extract my WhatsApp history from there. But once that's done I'll give the YouTube instructions on rooting OOS 10 on the OP5 a chance and will report back on here. If you get to try that earlier, please do let us know if it worked out.
 

Clues

Senior Member
Aug 29, 2008
132
13
OnePlus 5
Thanks for the reply, Clues. You could try Root Oneplus 5&5T running Oxygen OS 10 based on Android 10 (YouTube) as comments there seem to indicate those instructions work.

I for my part had soft-bricked my phone by installing two different versions of Magisk at the same time (I was tired) and uninstalling them both. On the next restart all I got was a black screen and a white LED (top left) which I was able to fix with the instructions given here, i.e.
- booted into TWRP, doing a full wipe of Cache, Data, Internal and System
- copied an OTA zip on it, I chose 9.0.11 to see if I could root that, or actually I think it was 9.0.3 that I used
- rebooted TWRP, mounted system, went to Install and proceeded with that OTA
With the phone thus unbricked, I was then able to root as per the instructions in this thread and perform the EFS backup.

I will stay under OOS 9 for a while as I've moved WhatsApp over to that phone and will see if I can extract my WhatsApp history from there. But once that's done I'll give the YouTube instructions on rooting OOS 10 on the OP5 a chance and will report back on here. If you get to try that earlier, please do let us know if it worked out.

This is the process I followed already, except I have not factory reset.
 

Clues

Senior Member
Aug 29, 2008
132
13
OnePlus 5
Magisk 20.4 is working for me. I just realized it had the options on the left side... when I tried it before, it did not show the options on the bottom so I figured it failed.

Flashed
twrp-3.5.2_9-0-cheeseburger_dumpling.img
OxygenOS TWRP Retainer v1.2 (Signed).zip
unSU (2019-03-10) (Signed).zip
Magisk-v20.4(20400).zip

Installed
Magisk-22.1(22100).apk

Not updating just yet.
 
  • Like
Reactions: thomanski

1158pm

Member
Jun 8, 2021
6
2
I was able to fastboot into TWRP:
1623278214821.png



but when i reboot, the standard recovery boot returns. I tried to install the no-verify-opt-encrypt but:
1623278440224.png


errors as well as anything i install. Any ideas?
 

néonaloj

Senior Member
Dec 29, 2014
974
459
I was able to fastboot into TWRP:
1623278214821.png



but when i reboot, the standard recovery boot returns. I tried to install the no-verify-opt-encrypt but:
1623278440224.png


errors as well as anything i install. Any ideas?
Hi,

Not sure, can you boot into system or not ? OOS10 ?
Did you try to boot first on recovery to flash anything you want, then only reboot into system ?
 

Top Liked Posts

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

    qz9h9NZ.jpg



    Q9IP5VP.png



    3RVsG8v.png


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


    Introduction​

    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: ​

    Unlocking the Bootloader
    Installing a Custom Recovery
    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.​
    78
    Gaining Root Access

    This is a continued post from the above post...


    For Users who want to remain Encrypted: :fingers-crossed:

    1. Boot into TWRP Recovery and allow system modifications.
    2. Swipe right and enable modifications.
    3. Select your preferred Language, Tap “Never show this screen on boot again,” and Swipe allow modification.
    4. Navigate to Install and select Magisk Or SuperSU to root OnePlus 5.
    5. Swipe to confirm the flash
    6. Reboot System

    Keep in mind that the first boot after wiping the phone may take longer than usual, as the phone will need to rebuild the dalvik cache and initialize other first boot and would reboot a few times due to SuperSU Flash.

    For Users who want to Decrypt Data have to Format Data & Flash No Verity OP5 Zip :fingers-crossed:

    1. Boot into TWRP Recovery and allow system modifications.
    2. Swipe right and enable modifications.
    3. Select your preferred Language, Tap “Never show this screen on boot again,” and Swipe allow modification.

    Go to “Wipe” section and tap “Format Data”, and type “yes” to mount internal storage

    4. Download & Transfer no_verity_op5.zip to the device over MTP from here Credits @snowwolf725
    5. Go to “Install” section, select no_verity_op5.zip, and swipe to confirm the flash
    6. Transfer latest Magisk/SuperSU to the device over MTP to your Oneplus 5 & Swipe to confirm the flash
    7. Reboot System

    * MTP, known as Media Transfer Protocol, is the same way you transfer files from your PC to your device when booted into system.

    Congrats! That is all! Your Device now has an unlocked bootloader, a custom recovery installed and is rooted along with your preference of staying encrypted or decrypted.

    Warning: Do not flash partial update OTAs (under 1 GB) on a modified device! If you want to use partial OTAs, you must first flash a full OTA that it applies to, and then flash the partial OTA from stock recovery. Flashing partial OTAs from TWRP will either fail or soft brick your device. You can return to a usable state by flashing full zips in recovery.

    Enjoy :fingers-crossed:
    69
    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 Installation​
    1. Download the ADB For Windows from here Credits @Snoop05 his Original XDA Thread Here

    Or You can manually update Fastboot and ADB binaries here Credits @lj50036 his Original XDA Thread Here

    2. Run the .exe file downloaded from above as Administrator.
    3. Press 'Y' every time the installer asks for.
    4. 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 :good:
    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 :good:
    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) :good:
    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 :good:
    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 :good:
    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 :good:
    On your phone go to Settings > Developer options. Then enable the 'Advanced Reboot' option.
    69
    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

    x6hqaHU.jpg


    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

    R9phbUg.jpg


    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