Installing a Custom Recovery
Gaining Root Access
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.
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.
* Settings > System Updates > Download & Install
- 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
Download the ADB For Windows from here
Or You can manually update Fastboot and ADB binaries 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: 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: 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): 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: 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: On your phone go to Settings > Developer options. Then enable the ‘OEM Unlocking’ option. Also,a free advice, make sure that from now on,OEM unlocking option is enabled before you reboot. Sometimes,it might get disabled itself.
- Enable Advanced Reboot: On your phone go to Settings > Developer options. Then enable the ‘Advanced Reboot’ option.
- 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:
- 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:
fastboot oem unlock
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
You your device your 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 post to install Custom Recovery …
If by chance you end up with a corrupt EFS partition all you need to do is flash the files back to your device using fastboot.
Boot into fastboot mode (power + volume up) and connect your phone to your PC via usb cable.
Keep modemst1.bin and modemst2.bin (backed up earlier) on your desktop and open command window there.
These fastboot commands will restore the files:
fastboot flash modemst1 modemst1.bin
fastboot flash modemst2 modemst2.bin
Reboot your device.
Now disconnect phone from PC. Your IMEI should be back.
That’s it for this guide. Enjoy !!
Thanks and Do Follow our blog.
Please Give your valuable feedback in the comment box below.