[Sony Xperia L] XavierDark:
My bootloader is unlocked.

Using FlashTool 0.9.18.6, I flashed "Sony Xperia L C2105 15.3.A.1.17 Generic DE" - FTF, which I downloaded from:

https://xdaforums.com/xperia-l/general/sony-xperia-l-flashable-ftfs-locked-t2560642

Downloaded CM11 from FreeXperia's thread, from that I extracted boot.img and using FlashTool flashed it.

Downloaded CM12.1 from Oliver's thread and moved it into my external sdcard. Using CWM, did a clean wipe (dalvik, cache, data and system), and flashed the zip.

ROM installed and was working fine.

Downloaded CM13 from Oliver's thread and moved it into my external sdcard.

Enabled USB debugging.

Downloaded TWRP 3.0.2-0, from:

https://dl.twrp.me/taoshan/twrp-3.0.2-0-taoshan.img.html

Rebooted into bootloader using adb. And flashed TWRP, using fastboot:

"fastboot flash boot twrp.img"

Rebooted into recovery. The interface was flickering non-stop and the left part was overlapping over the right part and vice-versa, but I managed to factory reset and wipe my dalvik, cache, data, system, sdcard and android secure.

Then I flashed CM13 from my external sdcard.

No errors.

Wiped dalvik, cache and my external sdcard.

Rebooted.

Bootloop.

Rebooted into CM Recovery.

Factory Reset and wiped cache.

Rebooted.

Bootloop.

I have also tested 7.x.x (CM14 and Resurrection Remix) and it also gets me in a bootloop until the battery reaches 0%.

The problem started with Beta 2 of CM13 (anything before it works fine), after I flashed it almost a year ago. I also made a post there at that time about my problem:

"I'm not certain if this is the right thread to ask, and I don't think this qualifies as a bug report, I'm just asking for some help as my phone is stuck on the boot logo forever until the battery runs out (from 90-100% to 0%).

I've previously used CM11, CM12.1 and the previous beta 1 of CM13, but after flashing beta 2 a couple days ago it's just stuck on trying to boot.

The recovery I'm using is TWRP 3.0.2. I wiped my phone completely(the system, sdcard, cache etc). After that I connected my phone to my PC, while on recovery, and copied the ROM zip and GAPPS zip to my external sdcard. I disconnected my phone from the PC. Flashed the ROM and after that GAPPS (Open GApps Platform: ARM / 6.0 / pico). The logs didn't show any error so I wiped the dalvik cache and rebooted the phone. The phone went into the boot logo and now is just stuck there, I waited ~5 hours and it still didn't fully boot after an hour or so the battery ran out. So I decided to do everything again, charging the phone to 100%, wiping the phone completely 10 times(for reasons) and flashing everything the same way(I also downloaded the ROM from a different mirror, and tested both zips for any errors), this time I left it overnight, keeping the charger connected and in the morning it was still stuck on the boot logo. The third time I tried a different GAPPS package(A-GAPPS) and the same result. Can anyone provide some help? Maybe I'm just missing something or being really stupid. I'm sorry for being such a bother."

https://xdaforums.com/xperia-l/orig-development/rom-cyanogenmod-13-0-t3254779/page20

I made this thread in hope of finding out what's causing this. Any help is appreciated.