WARNING: Before attempting this process to your device, do note that by unlocking your bootloader and modifying your device with anything, ROMs, etc... you are NOT risking voiding your warranty! I am NOT responsible for what you do to your device either, so follow these instructions at your own risk. Make sure you know what you're doing, it's best to understand the process rather than just copy and paste commands and such.
This method uses a firmware flashing tool to install TWRP, I am
using QPST to install it, but you can use any Qualcomm firmware flashing tool.
1. Download and install the following:-
->Adb and fastboot driver
->QPST
->Your device’s pc suite
2. Download the latest official firmware and the latest TWRP recovery for your device. Extract the downloaded firmware.
3. Go to ADB folder in C drive and press “shift + right click” and click open cmd shell here or powershell in case of windows 10.
4. Connect your phone to pc and type: adb reboot edl
now your device should be rebooted into download mode or edl mode.
5. Rename the downloaded TWRP to recovery, copy it and paste it in your extracted firmware files and click replace.
6. Open the Qfil flashing tool.
7. Select flat build and click browse in select in programmer path, click all files and select prog_emmc_firehose_XXXX_ddr.elf from the firmware folder.
8. After all done click Download
9. Done you have successfully installed twrp without unlocking the bootloader.
This method uses a firmware flashing tool to install TWRP, I am
using QPST to install it, but you can use any Qualcomm firmware flashing tool.
1. Download and install the following:-
->Adb and fastboot driver
->QPST
->Your device’s pc suite
2. Download the latest official firmware and the latest TWRP recovery for your device. Extract the downloaded firmware.
3. Go to ADB folder in C drive and press “shift + right click” and click open cmd shell here or powershell in case of windows 10.
4. Connect your phone to pc and type: adb reboot edl
now your device should be rebooted into download mode or edl mode.
5. Rename the downloaded TWRP to recovery, copy it and paste it in your extracted firmware files and click replace.
6. Open the Qfil flashing tool.
7. Select flat build and click browse in select in programmer path, click all files and select prog_emmc_firehose_XXXX_ddr.elf from the firmware folder.
8. After all done click Download
9. Done you have successfully installed twrp without unlocking the bootloader.