My plan to recover the phone is to flash TWRP, boot to TWRP and restore the boot partition from a previous backup. Then I'll be able to flash a ROM and use the phone normally.
The only thing that bothers me is the possibility that I might not be able to boot into the recovery due to the missing boot partition. Can someone clear it up? I've looked on XDA for someone with the same problem and the only thread that was close was someone who deleted the boot partition and could no longer see their device on adb. (I can see the device listed when I run fastboot devices)
Can I download the boot partition and flash it through fastboot? If so, where can I find the boot partition. (Keep in mind that I have a TWRP backup which has the boot partition but would require me to boot into the recovery in the first place) Also, is there any specific command that I can use to flash the boot partition?
Also, I do not currently have the phone in hand so that I can try the method I listed above. If someone could clarify whether or not the method is working and if not provide an alternative method would be a great help.
Bootloader is unlocked. (IDK if that matters anymore.) I have ADB, TWRP img file and a backup.