Stuck in recovery loop
I was helping my friend switch to a custom rom and I messed up. His One XL was on 4.1.1 with 3.18 software. I managed to temporarily change the CID by followin guides and unlock the bootloader using htcdev.com. The problem began after I tried to flash boot.img, from an One X rom because I thought this is a One X(ATT's naming). Now the device is stuck in a recovery boot loop. Once in a while I can get out of it and get to the bootloader. From there I'd erase cache, flash new recovery (TWRP for One XL), flash correct boot.img, go into recovery and flash rom. However, upon finishing install the reboot will start the recovery boot loop again. The phone keeps trying to boot recovery instead of normal boot on restart and gets stuck. I've tried both CWM and TWRP, wiped many times, but it refuses to boot normally. Every time after the logos for the rom plays the phone reboots. Unlocked bootloader but no root or S-off. What can I do?