How to Unroot OnePlus 5 and Return to Stock

Srivishnu Ramakrishnan

In this article, we will tell you how to Unroot OnePlus 5 and completely return it to Stock. At this point, it is no doubt that OnePlus 5, just like all the other OnePlus devices, is an extremely developer-friendly device with a lot of development going for it. You can install a custom ROM, custom Kernel, custom TWRP Recovery and even root the device to take full control of it. But there are times when you have tried everything and you just feel like going back to stock. Of course, being on the stock ROM has its own advantages. The most important one is that you always receive the latest update as OTA to your device. You don’t have to download and install a zip file manually every time you need the latest software on your device. Read ahead to know how to unroot and return your OnePlus 5 completely to stock.

How to Unroot OnePlus 5 and return to stock


  1. ADB and Fastboot: Follow this link – Download, Install, and setup latest ADB and Fastboot drivers on your computer.
  2. Ensure that your phone has at least 50% of charge, just in case.
  3. Enable USB debugging: Go to Settings > About phone > Tap on Build number seven times. This will enable Developer options. Now again go to Settings > Developer Options > Enable USB debugging.
  4. Enable OEM Unlocking: Go to Settings > Developer options and then click on ‘OEM Unlocking‘ to enable the same.
SEE ALSO  Recover Lost Data From Your Android Device

Download Necessary Unroot Files for OnePlus 5

You need two things to bring your rooted OnePlus 5 completely to stock:

  1. OnePlus 5 Stock Recovery: Download it here. Rename the downloaded file to ‘
  2. Latest Oxygen OS: Download it here. Rename the downloaded file to ‘

Follow the below steps carefully:

  1. Now copy the above-downloaded OnePlus 5 Stock Recovery and latest Oxygen OS to the folder where ADB and Fastboot are installed. Most probably C:Minimal ADB and Fastboot.
  2. Rename the recovery file to ‘recovery.img‘, if not done already.oneplus-5-stock-recovery-minimal-adb-fastboot
  3. Reboot OnePlus 5 into fastboot mode.
    • Switch off your phone. Wait a few seconds to make sure it is completely turned off.
    • Press and hold Power Button + Volume Down button at the same time.
  4. Once your phone reboots into fastboot mode, connect it to your PC using USB cable.
  5. Open the folder where ADB and fastboot are installed. Now, hold down Shift Key and Right Click and select ‘Open command window here‘.oneplus-5-stock-recovery-adb
  6. Now run the below command in the command prompt:
    fastboot flash recovery recovery.img
  7. You now have stock recovery on your OnePlus 5. To reboot into stock recovery:
    • Power Down your OnePlus 5.
    • After the phone is completely switched off – Press and Hold the Power Button and Volume Down Buttons at the Same Time.
    • Continue Holding these two buttons past the OnePlus/Android Splash Screen that appears.
    • When the phone boots into Recovery Mode, release the power and volume down buttons.
  8. Once you are in Stock Recovery, choose the option that says ‘Install from ADB‘. Now the phone will be put into ADB sideload mode.
  9. Make sure your device is connected to your PC via USB cable. Open the command prompt in the folder where ADB and fastboot are installed. Make sure the ‘’ file is present inside it.
  10. Run the below command in the command prompt:
    adb sideload
  11. Please note that the flashing process will take around 5 to 10 minutes and once it completes, reboot your OnePlus 5.
SEE ALSO  How to Install ViPER4Android on OnePlus 5

Congratulations, your OnePlus 5 is now unrooted and completely in stock mode. Enjoy!

Need root again? [Guide] OnePlus 5 – Root, Install TWRP, and Unlock Bootloader

14 thoughts on “How to Unroot OnePlus 5 and Return to Stock”

      • Yes. Yes its renamed. It seems to be bug with drivers on Windows 10. I am testing it now 2 hours and no progress.

        • After connecting your phone to PC > go to Device Manager on PC > is your device properly detected there? Or do you see any exclamation mark in place of your device?

          • Yes. It is, adb, fastboot all working but when I boot to recovery and start siteload, Windows error “USB not regonised” And even when driver is ok it not found device. I successfully installed OTA from inside

          • I would like to try one last thing:
            1. Reboot your phone to recovery.
            2. Go to Adb sideload.
            3. Connect phone to PC.
            4. Open device manager in PC.
            What do you see now? Also, you have any screenshot of the error you’re getting?

          • I have LeMobile Adb Driver Installed in Device Manager. But “adb devices” not showing device.

          • I think that’s the problem here. Do not use other mobile’s drivers for this one. Did you install the drivers that is given at the beginning of the tutorial? Please install that. Also, please take a look at this guide:
            That video shows how to manually install drivers on Windows 10. Please try that and let me know if you need any more help.

          • I tried everything bro, not working 🙂 I installed OTS from internal storage. It’s better.

          • yes sorry edited. I recommend you to edit manual just to upload OTA zip to internal storage and install from here. It’s less complicated

  1. Bonjour quand je suis sur le recovery stock, il me demande un mot de passe??ce n est pas un des miens???du coup je ne peux pas rentrer dedans

  2. Hi, i’m getting this: error can’t load ‘recovery.img’ I don’t know what is wrong and my device (op5) is connected properly?


Leave a Comment