[OnePlus 3 Guides, News, & Discussion] saranshcrazier:
Hi everyone, first thing my English is not good so don’t laugh at me, I just try to share some knowledge which is easily understandable by NOOB. This guide is for NOOB with detailed steps and for those who face problem installing TWRP (i.e. no matter how hard or how many times you successfully install twrp, but always end up with stock recovery or bootloop or system freeze on boot image).

From several years I use the universal approach for rooting devices i.e.

UNLOCK BOOTLOADER  CUSTOM RECOVERY  ROOTING​

But recently I encountered a problem installing TWRP in REDMI 4X, I carefully follow each and every steps successfully but always end up with stock recovery or device freeze on boot image, i tries so many times and frustrated then I discover a solution and successfully installed TWRP.

Same things happen with my OnePlus 3 A3003 and the same solution did the job, so I decided the make a comprehensive guide which easily understandable by NOOB.

In this guide my approach is:

UNLOCK BOOTLOADER  ROOTING  CUSTOM RECOVERY​

Prerequisite:

•	Install adb command line tool. Download it from here https://mega.nz/#!zMxkhAob!y9ykzuULkPiccZGHGsJ_NzspqxynyikHhHr-uLywnwo

•	Copy recovery.img to location C:\adb. https://mega.nz/#!qQIGTJQI!E6I2sHEBMy5z3k02jeTB-M3I4iZvPoSOHQHb612YBFs

•	Place Magisk-v16.0.zip in root directory of phone storage. https://mega.nz/#!aIpSnbBC!DE5UIkABgxQNdfkNqqHPidHj-ywaZzT6RgEQwmpFqyw

•	I tested this method on Oneplus 3 A3003 Oxygen OS 5.0.1

Unlocking Bootloader:

•	enable developer option: go to SETTING  ABOUT PHONE  tap BUILD NUMBER 7 times.

•	enable options in SETTING  DEVELOPERS OPTION (ADVANCE REBOOT, OEM UNLOCKING, USB DEBUGGING).

•	reboot device into FASTBOOT/BOOTLOADER mode with the help of ADVANCE REBOOT.

•	connect your device with USB.

•	Go to location C:\adb and hold Shift key & do right click, you see option in drop down menu Open command window here, open command window.

•	Give command “fastboot devices”, it shows the connected device and its serial number.

•	Now give command “fastboot oem unlock” allow oem unlocking from your device screen. Your phone will restart after oem unlocking done.

(this step will wipe all your data)

•	Congrats your phone is successfully unlocked. (you can check you unlock status in developer option)

Rooting:

•	reboot device into FASTBOOT/BOOTLOADER mode with the help of ADVANCE REBOOT.

•	connect your device with USB.

•	Go to location C:\adb and hold Shift key & do right click, you see option in drop down menu Open command window here, open command window.

•	Give command “fastboot devices”, it shows the connected device and its serial number.

•	Now give command “fastboot boot recovery.img” this command will boot the recovery.img temporary you placed in C:\adb. Your phone will restart and booting TWRP temporary.

(if you wish to flash TWRP permanently you give the command “fastboot flash recovery recovery.img” instead, but it didn’t work for me I always end up with a stock recovery or freezing at boot image or bootloop)

•	In TWRP allow system modification. Go to INSTALL select Magisk-v16.0.zip and swipe right to flash it, wait until the process done.

•	Press HOME button in TWRP go to WIPEADVANCE WIPE and wipe system delvik & cache.

•	Restart the phone and wait for approx. 10 min.

•	You successfully rooted your device.

Custom Recovery:

•	After successfully rooting your device, place the same recovery you placed in C:\adb to your phone root directory.

•	Install Flashify from google play store or download it from here https://mega.nz/#!ydI3hAKC!gcH4T8Wd0mKxTFgsFxLLppnxMYPYto5PI3ahonewf1Y

•	Open Flashify choose flash recovery, browse recovery.img and flash it.

•	Congrats you successfully installed TWRP custom recovery now you can check it by rebooting into recovery mode by ADVANCE REBOOT.