How to Install the Stock Recovery on the OnePlus 5

OnePlus 5 Stock Recovery

If you’re done using TWRP and want to accept an OTA update, you can follow these steps outlined below to flash the stock recovery on the OnePlus 5.

Yesterday I walked you through how to restore the stock kernel boot image file on the OnePlus 5. This is something that you’ll need to do if you have modified it (by installing things such as TWRP, Magisk, SuperSU, etc.) and want to go back to accepting OTA updates directly from OnePlus. To get those OTA updates again though, you would also need to revert back any other changes that you’ve made to the Android system as well.

One of these changes is the recovery partition that gets overwritten when we install TWRP. Granted, restoring to the stock kernel should let Android restore the stock recovery on its own, there are times that you may just want to get rid of TWRP while keeping a modified kernel. For whatever the reason, I want to show you the step by step process for how to restore the stock recovery image on the OnePlus 5 using the same tools we did yesterday.

In order to complete the tutorial below, you're going to need some things setup ahead of time. Please follow the how to install ADB and Fastboot tools guide if you haven't done so already. You're also going to need to start the ADB service by executing the "adb devices" command (no quotes) in the Command Prompt. Lastly, you'll need to follow the how to enable Developer Mode guide, as well as the how to enable USB Debugging Mode guide, and make sure to grant USB Debugging access from the PC to your device.

Flash OnePlus 5 Stock Recovery

  1. Download the recovery file for the OnePlus 5 to the PC
  2. Rename this file to just “recovery.img” (without the quotes)
  3. Move/copy that IMG file to the same directory that your ADB/Fastboot tools are in
  4. Open a Command Prompt/Terminal/PowerShell from that ADB directory
  5. Boot the OnePlus 5 into Fastboot Mode
  6. Type the following command into the Command Prompt. . .
  7. fastboot flash recovery recovery.img
  8. . . .then press the Enter button on the keyboard
  9. Press the Volume Down button twice to highlight the Recovery Mode option
  10. Press the Power button to select this option
  11. Wait for the OnePlus 5 to boot into Recovery Mode so you know it installed properly
  12. Then Exit Recovery Mode and boot back into Android

Explanation


Just like we did yesterday, the process is quite simple once you have the tools already set up (which should have been done when you installed TWRP). If you no longer have them though, follow the instructions right above the step by step guide and that will get ADB and Fastboot tools setup for you. We then need to download the recovery IMG file from the OnePlus website as linked in Step 1. To do this, find the version of OxygenOS and then go to that download page.

Then scroll to the bottom and look for a “Download Oxygen Recovey (Optional)” link to click on. This will download the recovery IMG file for that specific version of OxygenOS. This should, in large, be the same all around, but it could have some differences if OnePlus decides to make changes to it. Once that is downloaded, go ahead and rename it to just “recovery.img” without the quotes, and move or copy it to the same folder you have the ADB and Fastboot tools in.

OnePlus 5 Stock Recovery Command

Typing this command flashes the recovery IMG file onto the recovery partition of the OnePlus 5.

With that done, we can then boot the OnePlus 5 into Fastboot Mode and then connect it to our PC with a USB cable. Turn your attention to the Command Prompt and execute the fastboot flash command as show in Step 7 of the guide above. This will send that recovery IMG file to the OnePlus 5 and then write it to the recovery partition. As shown in the video above, that process shouldn’t take more than a second or two and you should see two OKAY messages there to tell you it’s successful.

From here, you have two options to choose from. First, you could simply press the Power button on the OnePlus 5 (since the Start option is highlighted by default) and that will boot the device back into Android. However, if you want to double check things, you could press the Volume Down button twice so the Recovery Mode option is highlighted. Pressing the Power button now will select this option and it will boot you from Fastboot Mode to Recovery Mode so you can see if it’s back to stock.

I did this in the video so you could see it worked properly, and then booted from Recovery Mode back into Android.

If this tutorial helped you in any way, please consider donating at Patreon or PayPal. If you can't afford to donate then sharing this on social networks such as Facebook, Twitter, etc. will also help a lot.

 

About the author

Doug

I'm working to create an organized and easy to follow central repository of Android tips, tutorials, guides and everything you need to know. With a focus on device specific tutorials now, my goal is to branch out and do more universal tips and tricks that will work on all Android devices.