Trying to mod a Rom
I have an XPeria E Single Sim, and I am running CyanogenMod courtesy of this post:
The way I installed this rom was, I got a ClockWorkMod kernel from this site, and flashed it using the normal fastboot way, after that once I had CWM, I then booted into recover and flashed the above CyanogenMod rom.
Whilst flashing CM, my CWM got removed and TWRP got installed. Now not that TWRP is installed, I didnt notice anything great, it worked more than just fine for a long time, until today, where my battery died and my phone got stuck in a bootloop. It wouldnt charge properly because it kept going into bootloop again.
I flashed CWM again, and it started charging properly.
In order to test this further, I extracted the boot.img from the CyanogenMod's zip file, and flashed it using fastboot.
Again my phone stopped charging and entered bootloop when I connected the charger.
Therefore I am sort of convinced the default kernel that ships with CyanogenMod is not particularly good with a dead battery and since CWM is working fine, If I could replace TWRP with CWM by changing it directly on the CM's zip file.
But a problem I cant exactly understand is: How do I convert kernel.elf (ClockWorkMod) into boot.img (TWRP)
If I can do that, I assume it should be as simple as deleting the old boot.img (of TWRP) and putting the new boot.img (CWM)
Any help would be appreciated