Unroot OnePlus 5T, Restore to Stock Firmware, and Relock Bootloader

In this guide, you will learn how to flash stock firmware on OnePlus 5T and relock bootloader of OnePlus 5T. This process will also help you unroot your OnePlus 5T and return it completely to stock!

OnePlus launched one the best devices in 2017 OnePlus 5T. OnePlus 5T was launched after OnePlus 5 since every device in 2017 was having a full length display the company tuned the device and launched it. OnePlus 5T has great specs and premium looks which got everybody’s attention and user rushed to grab the device because this device was having the best price segment.


OnePlus 5T is and Android flagship killer no doubt. Many users wanted to experiment the custom ROM’s on this device. It was pretty soon that Rooting solutions were available for OnePlus 5T and users Rooted the OnePlus 5T. Some customers want the Stock firmware of OnePlus 5T back and some want to Relock the Bootloader of OnePlus 5T. So we have the simplest guide to bring OnePlus 5T to Stock firmware and Reclock the Bootloader of OnePlus 5T let’s get started.

Also see –  Unlock Bootloader, Install TWRP, Root OnePlus 5T and Take EFS Backup

Download OnePlus 5T Stock Firmware

Since you will need to install Stock OnePlus 5T Oxygen ROM Package [OnePlus 5T Stock Firmware], so here are the links download any one of them

Note: By the time you read the article, newer versions may be available. But nothing to worry. Once you install them, you will get the newer updates directly as OTA update on your phone.

How to Restore OnePlus 5T to Stock Firmware and Relock Bootloader of OnePlus 5T


The process here is two-fold. First, we will install Stock Firmware on OnePlus 5T and then we will proceed to relock bootloader of OnePlus 5T.

1. Steps to Install Stock Firmware on OnePlus 5T

Step 1: Power off your device

Step 2: Once it is switched off boot into TWRP recovery by,

holding  Volume Down button + Power button simultaneously for 2-3 sec.

Step 3: Once you are in TWRP Recovery mode. Tap on Wipe > Format Data and enter/type yes in the text area (It will wipe the device completely).

Step 4: Now o back in the start menu if TWRP Recovery mode. Tap on Mount > Tap Enable MTP button.

Step 5: Connect your device to the PC.

Step 6: Download OnePlus 5T Stock ROM Zip file from the download section and copy and paste the file into the internal storage of your device. When done, disconnect your device.

Step 7: Go to the start menu of TWRP Recovery,

Tap on Install >Navigate and select the ROM package.zip file that you moved into your device > Swipe the button to confirm flash and restore the OnePlus 5T to stock firmware > Tap on Reboot.

2. Steps to Relock Bootloader of OnePlus 5T

Step 1: Boot your device into Bootloader Mode, connect it to the PC.

Step 2: Go to the folder where you installed ADB and Fastboot tool and open command prompt window here by,

Hold SHIFT key + Right-click select the Open Command Window Here option.

Step 3: To Relock the bootloader type the command as,

fastboot oem lock

Step 4: Your device will display a confirmation message to lock the bootloader. Use the Volume keys to scroll on the Yes and press the Power button to Relock bootloader of your device.

Step 5: Now simply reboot your device by typing the command as,

fastboot reboot

Congratulations! You have successfully relocked OnePlus 5T bootloader and installed the stock firmware on your OnePlus 5T. This is the easiest way to install stock firmware on OnePlus 5T!

1 thought on “Unroot OnePlus 5T, Restore to Stock Firmware, and Relock Bootloader”

Leave a Comment