IMPORTANT: It is important to obtain the correct upgrade file/firmware for your particular model of phone.
You can also reset the phone using the apply update menu option in the recovery menu. Note: This will completely reflash the phone’s software and all your data will be deleted!
Before you do anything you have to download the correct firmware and put it on your phone’s internal storage. Oneplus 5 has no external SD card slot.
You can copy the firmware via SD cable when the phone is in MTP mode, or you can use the ADB shell to “push” the firmware to the phone’s internal virtual sdcard storage.
Name or rename the file as update.zip
Power off your device Press and hold volume down + Power button. When the phone is vibrate let go the power button and keep press the Volume DOWN button until the recovery menu shows up.( device will boot into recovery mode )
Select apply update This operation will take a while so be patient.
When the flashing procedure finished the phone will reboot itself OR if not from the recovery main menu select
Reboot system now from ” Reboot” option.