[Sony Xperia L] Matyáš Khýr:
Hi, guys,

I've had installed LineageOS 14.1 and TWRP on my Xperia L C2105, but now I need to go back to the stock firmware and I hope you'll help me.

I downloaded Sony_Xperia_L_C2105_15.3.A.1.17_Customized_MEA_(by_xperiastockrom.com).zip.

When using flashtool, I can't flash the .ftf firmware file because Flashtool isn't able to locate the file in selected folder. I searched around and figured out that maybe using older Flasthool version might help. But it did't work in other way this time. It wasn't able to sync devices right after first launch (

ERROR - Cannot sync devices: Invalid ref HEAD specified

)and when trying to flash the .ftf file, I encountered another problem - first it listed all the devices saying that it can't sync them with error and then started preparing files and then the same sync error again. Here is a whole log:

28/033/2019 23:33:01 - INFO - Flashtool Version 0.9.19.0 built on 29-07-2015 12:00:00
28/033/2019 23:33:01 - INFO - Executing search strategies to find proxy selector
28/033/2019 23:33:02 - INFO - No proxy found for IE. Trying next one
28/033/2019 23:33:02 - INFO - No proxy found for firefox. Trying next one
28/033/2019 23:33:02 - INFO - No proxy found for java. Trying next one
28/033/2019 23:33:02 - INFO - Syncing devices from github
28/033/2019 23:33:03 - INFO - Scanning devices folder for changes.
28/033/2019 23:33:18 - INFO - Changes have been found. Doing a hard reset (removing user modifications).
28/033/2019 23:33:18 - ERROR - Cannot sync devices : Invalid ref HEAD specified
28/033/2019 23:33:23 - INFO - Device connected in fastboot mode
28/034/2019 23:34:57 - ERROR - C200X : this bundle is not valid
28/034/2019 23:34:57 - ERROR - C210X : this bundle is not valid
28/034/2019 23:34:57 - ERROR - C550X : this bundle is not valid
28/034/2019 23:34:57 - ERROR - C650X : this bundle is not valid
28/034/2019 23:34:57 - ERROR - C660X : this bundle is not valid
28/034/2019 23:34:57 - ERROR - C69XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - D210X : this bundle is not valid
28/034/2019 23:34:57 - ERROR - D25XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - D550X : this bundle is not valid
28/034/2019 23:34:57 - ERROR - D66XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - E15 : this bundle is not valid
28/034/2019 23:34:57 - ERROR - E20XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - E21XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - E56XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - E66XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - F32XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - F53XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - F81XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - G12XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - G31XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - G34XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - G82XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - G83XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - H42XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - H82XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - LT15 : this bundle is not valid
28/034/2019 23:34:57 - ERROR - LT22 : this bundle is not valid
28/034/2019 23:34:57 - ERROR - LT26W : this bundle is not valid
28/034/2019 23:34:57 - ERROR - LT30 : this bundle is not valid
28/034/2019 23:34:57 - ERROR - root : this bundle is not valid
28/034/2019 23:34:57 - ERROR - SGP6XX : this bundle is not valid
28/034/2019 23:34:57 - ERROR - SO_02C : this bundle is not valid
28/034/2019 23:34:57 - ERROR - SO_02D : this bundle is not valid
28/034/2019 23:34:57 - ERROR - ST25 : this bundle is not valid
28/034/2019 23:34:57 - ERROR - ST27 : this bundle is not valid
28/034/2019 23:34:57 - ERROR - U20 : this bundle is not valid
28/034/2019 23:34:57 - ERROR - WT19 : this bundle is not valid
28/034/2019 23:34:57 - INFO - Selected Bundle for C2105. FW release : 15.3.A.1.17. Customization : Customized MEA
28/034/2019 23:34:57 - INFO - Preparing files for flashing
28/036/2019 23:36:43 - INFO - Please connect your device into flashmode.
28/036/2019 23:36:50 - INFO - Device disconnected
28/037/2019 23:37:39 - INFO - Device connected in flash mode
28/037/2019 23:37:39 - INFO - Opening device for R/W
28/037/2019 23:37:39 - INFO - Reading device information
28/037/2019 23:37:39 - INFO - Phone ready for flashmode operations.
28/037/2019 23:37:39 - INFO - Opening TA partition 2
28/037/2019 23:37:39 - INFO - Current device : Unknown: Nov 1 2013/13:06:21 - ZH8001JLC7 - Unknown: Nov 1 2013/13:06:21 - 1269-5420_15.0.A.1.36 - Unknown: Nov 1 2013/13:06:21
28/037/2019 23:37:39 - INFO - Closing TA partition
28/037/2019 23:37:39 - INFO - Start Flashing
28/037/2019 23:37:39 - INFO - Processing loader.sin
28/037/2019 23:37:39 - INFO - Checking header
28/037/2019 23:37:39 - INFO - Flashing data
28/037/2019 23:37:40 - INFO - Loader : S1_Root_dbe9 - Version : loader_MSM8X30_10 / Boot version : S1_Boot_MSM_8X30_R1_25 / Bootloader status : ROOTED
28/037/2019 23:37:40 - INFO - Transfer buffer size : 262144
28/037/2019 23:37:40 - INFO - Parsing boot delivery
28/037/2019 23:37:40 - ERROR - C200X : this bundle is not valid
28/037/2019 23:37:40 - ERROR - C210X : this bundle is not valid
28/037/2019 23:37:40 - ERROR - C550X : this bundle is not valid
28/037/2019 23:37:40 - ERROR - C650X : this bundle is not valid
28/037/2019 23:37:40 - ERROR - C660X : this bundle is not valid
28/037/2019 23:37:40 - ERROR - C69XX : this bundle is not valid
28/037/2019 23:37:40 - ERROR - D210X : this bundle is not valid
28/037/2019 23:37:40 - ERROR - D25XX : this bundle is not valid
28/037/2019 23:37:40 - ERROR - D550X : this bundle is not valid
28/037/2019 23:37:40 - ERROR - D66XX : this bundle is not valid
28/037/2019 23:37:40 - ERROR - E15 : this bundle is not valid
28/037/2019 23:37:40 - ERROR - E20XX : this bundle is not valid
28/037/2019 23:37:40 - ERROR - E21XX : this bundle is not valid
28/037/2019 23:37:41 - ERROR - E56XX : this bundle is not valid
28/037/2019 23:37:41 - ERROR - E66XX : this bundle is not valid
28/037/2019 23:37:41 - ERROR - F32XX : this bundle is not valid
28/037/2019 23:37:41 - ERROR - F53XX : this bundle is not valid
28/037/2019 23:37:41 - ERROR - F81XX : this bundle is not valid
28/037/2019 23:37:41 - ERROR - G12XX : this bundle is not valid
28/037/2019 23:37:41 - ERROR - G31XX : this bundle is not valid
28/037/2019 23:37:41 - ERROR - G34XX : this bundle is not valid
28/037/2019 23:37:41 - ERROR - G82XX : this bundle is not valid
28/037/2019 23:37:41 - ERROR - G83XX : this bundle is not valid
28/037/2019 23:37:41 - ERROR - H42XX : this bundle is not valid
28/037/2019 23:37:41 - ERROR - H82XX : this bundle is not valid
28/037/2019 23:37:41 - ERROR - LT15 : this bundle is not valid
28/037/2019 23:37:41 - ERROR - LT22 : this bundle is not valid
28/037/2019 23:37:41 - ERROR - LT26W : this bundle is not valid
28/037/2019 23:37:41 - ERROR - LT30 : this bundle is not valid
28/037/2019 23:37:41 - ERROR - root : this bundle is not valid
28/037/2019 23:37:41 - ERROR - SGP6XX : this bundle is not valid
28/037/2019 23:37:41 - ERROR - SO_02C : this bundle is not valid
28/037/2019 23:37:41 - ERROR - SO_02D : this bundle is not valid
28/037/2019 23:37:41 - ERROR - ST25 : this bundle is not valid
28/037/2019 23:37:41 - ERROR - ST27 : this bundle is not valid
28/037/2019 23:37:41 - ERROR - U20 : this bundle is not valid
28/037/2019 23:37:41 - ERROR - WT19 : this bundle is not valid
28/037/2019 23:37:41 - INFO - You must have the according fsc script to flash this device.
28/037/2019 23:37:41 - INFO - Flashing finished.
28/037/2019 23:37:41 - INFO - Please unplug and start your phone
28/037/2019 23:37:41 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings

I watched some YT tutorials and saw how to make .ftf bundle from regular folders via flashtool. These .ftf files would eventually show in selected folder when flashing. But when I took my original .ftf file, rewrited extension to .zip, extracted and wanted to transfer it back to "displayable" .ftf via flashtool as mentioned, in the menu from which I was supposed to chose my device was't listed Xperia L. I tried to save it as Xperia C, but then when trying to flash, it obviously wasn't working because of this.

Log here:

28/045/2019 23:45:46 - INFO - Selected Bundle for Sony Xperia C (S39h). FW release : Y. Customization : Y
28/045/2019 23:45:46 - INFO - Preparing files for flashing
28/045/2019 23:45:46 - ERROR -
28/045/2019 23:45:46 - INFO - Cannot open bundle. Flash operation canceled

Via fastboot option I flashed system.sin (from stock .ftf) and boot.img (from Extended_Stock_Kernel_v6).

When powered on, phone gets bootloop stuck at SONY logo, able to get to CWM based recovery v6.0.4.8 using volume rocker, can fastboot and flashboot.

Please help me solve this problem so I can save the phone anyhow. :)