Use in boot only
NOTE:THIS GUIDE IS ONLY FOR PORTING TWRP
This method is solely made by me.I didn't copy it from anywhere.
There are guides for mtk devices, but not for Qualcomm. That's the reason I wrote this.
Does this work?
ANS:This is how I made for Knight 2.Micromax crap doesn't release kernel sources.
I AM NOT RESPONSIBLE FOR ANY DAMAGES TO YOUR DEVICE
As I have mentioned please try to use the recovery in boot as the recovery is not compiled. One of them has reported with a bricked device. At the same time many of them have reported it to work. Also I have flashed it on my own device.
Use the second method.
1.Pick a device's twrp whose specs are similar to your device.
2.Unpack it using Carliv Image Kitchen or Android Image Kitchen.
3.Unpack your recovery too.
4.Copy etc folder,twres and sbin folder from the unpacked twrp.
5.Repack your recovery.
6.Test it using fastboot boot repacked recovery name.img
1.All you have to copy is kernel.IMG and dtb.IMG from stock and edit recovery.fstab, repack the port recovery.
Copy DT.img and kernel.img from stock recovery to port recovery after unpacking.
Now edit recovery.fstab .This most of the time doesn't require editing. But in the above image you can see that there's no external SD card support. So I copy that particular line for SD card from my unpacked stock recovery.img
Notice that I have copied all other partitions as well.
Hit that thanks button if i helped you.
carliv and osmosis For their kitchen
For many devices, "similiar" specs are not precise enough to ensure that specialty bootloaders, oem-specific quirks, partition layouts and security checks are accounted for when porting something as crucial as a recovery. Yes, it could be argued that fastboot is effective at rejecting major differences between an image and a device, but this method could very well sneak an image into a recovery partition and then load functions that are absolutely incorrect, leading to bugs, recovery bootloops, and the worse-case-scenario:hard bricking. I'm not saying that some might not get lucky, but the success ratio will not be very high on many modern Android devices.