[Sony Xperia X Performance Questions & Answers] hailduong:
Thanks f870103, but i got this error: "ERROR - Processing of partition.sin finished with errors.". I tried with this ROM "FW release : 41.2.A.7.8_R1D. Customization : Latin America Generic_1302-6536". My Xperia X Performance is "SO-04H" not "F8131"

I checked all items in the "WIPE" section of FlashTool before flashing, is that correct?

Below is the code and error messages:

17/013/2017 13:13:03 - INFO - Flashtool Version 0.9.23.2 built on 19-01-2017 21:50:00
17/013/2017 13:13:04 - INFO - libusb version 1.0.20
17/013/2017 13:13:04 - INFO - Executing search strategies to find proxy selector
17/013/2017 13:13:04 - ERROR - Loading script failed from: http://localhost:3456/spy-js-proxy.pac with error java.net.ConnectException: Connection refused
17/013/2017 13:13:04 - INFO - No proxy found for desktop. Trying next one
17/013/2017 13:13:04 - INFO - Syncing devices from github
17/013/2017 13:13:04 - INFO - Opening devices repository.
17/013/2017 13:13:04 - INFO - Scanning devices folder for changes.
17/013/2017 13:13:09 - INFO - Changes have been found. Doing a hard reset (removing user modifications).
17/013/2017 13:13:09 - INFO - Pulling changes from github.
17/013/2017 13:13:10 - INFO - Quietly closing devices repository.
17/013/2017 13:13:10 - INFO - Devices sync finished.
17/013/2017 13:13:10 - INFO - Loading devices database
17/013/2017 13:13:10 - INFO - Loaded 97 devices
17/013/2017 13:13:10 - INFO - Starting phone detection
17/013/2017 13:13:11 - INFO - Device disconnected
17/014/2017 13:14:02 - INFO - Device connected in flash mode
17/014/2017 13:14:05 - INFO - Please connect your device into flashmode.
17/014/2017 13:14:06 - INFO - Opening device for R/W
17/014/2017 13:14:06 - INFO - Device ready for R/W.
17/014/2017 13:14:06 - INFO - Reading device information
17/014/2017 13:14:06 - INFO - Phone ready for flashmode operations.
17/014/2017 13:14:06 - INFO - Opening TA partition 2
17/014/2017 13:14:06 - INFO - Current device : SO-04H - CB512A54JC - 1303-7721_R14C - 1300-5348_39.2.B.0.256 - GENERIC_39.2.B.0.256
17/014/2017 13:14:06 - INFO - Closing TA partition
17/014/2017 13:14:06 - INFO - No loader in the bundle. Searching for one
17/014/2017 13:14:06 - INFO - No matching loader found
17/014/2017 13:14:06 - WARN - No loader found or set manually. Skipping loader
17/014/2017 13:14:06 - INFO - Loader : S1_Root_de8d - Version : 1299-4832_S1_Boot_MSM8996_LA2.0_N_110 / Boot version : 1299-4832_S1_Boot_MSM8996_LA2.0_N_110 / Bootloader status : ROOTABLE
17/014/2017 13:14:06 - INFO - Max packet size set to 4M
17/014/2017 13:14:06 - INFO - Opening TA partition 2
17/014/2017 13:14:06 - INFO - Start Reading unit 00 00 08 B2
17/014/2017 13:14:06 - INFO - Reading TA finished.
17/014/2017 13:14:06 - INFO - Closing TA partition
17/014/2017 13:14:10 - INFO - Unlocking device
17/014/2017 13:14:10 - INFO - Opening TA partition 2
17/014/2017 13:14:10 - INFO - Writing TA unit 000008B2. Value : 43 46 37 39 33 45 33 34 31 45 32 42 43 30 42 44
17/014/2017 13:14:10 - INFO - Closing TA partition
17/014/2017 13:14:10 - INFO - Unlock finished
17/014/2017 13:14:16 - INFO - Ending flash session
17/014/2017 13:14:16 - INFO - You can now unplug and restart your device
17/014/2017 13:14:16 - INFO - Device connected in flash mode
17/014/2017 13:14:17 - INFO - Device disconnected
17/014/2017 13:14:22 - INFO - Device connected in flash mode
17/014/2017 13:14:22 - INFO - Device disconnected
17/014/2017 13:14:32 - INFO - Device connected in flash mode
17/015/2017 13:15:08 - INFO - Selected Bundle for Sony Xperia X Performance(F8131). FW release : 41.2.A.7.8_R1D. Customization : Latin America Generic_1302-6536
17/015/2017 13:15:08 - INFO - Preparing files for flashing
17/015/2017 13:15:47 - INFO - Please connect your device into flashmode.
17/015/2017 13:15:48 - INFO - Opening device for R/W
17/015/2017 13:15:48 - INFO - Device ready for R/W.
17/015/2017 13:15:48 - INFO - Reading device information
17/015/2017 13:15:48 - INFO - Phone ready for flashmode operations.
17/015/2017 13:15:48 - INFO - Opening TA partition 2
17/015/2017 13:15:48 - INFO - Current device : SO-04H - CB512A54JC - 1303-7721_R14C - 1300-5348_39.2.B.0.256 - GENERIC_39.2.B.0.256
17/015/2017 13:15:48 - INFO - Closing TA partition
17/015/2017 13:15:48 - INFO - Start Flashing
17/015/2017 13:15:48 - INFO - No loader in the bundle. Searching for one
17/015/2017 13:15:48 - INFO - No matching loader found
17/015/2017 13:15:48 - WARN - No loader found or set manually. Skipping loader
17/015/2017 13:15:48 - INFO - Loader : S1_Root_de8d - Version : 1299-4832_S1_Boot_MSM8996_LA2.0_N_110 / Boot version : 1299-4832_S1_Boot_MSM8996_LA2.0_N_110 / Bootloader status : ROOTED
17/015/2017 13:15:48 - INFO - Max packet size set to 4M
17/015/2017 13:15:48 - INFO - USB buffer size set to 512K
17/015/2017 13:15:49 - INFO - Parsing boot delivery
17/016/2017 13:16:13 - INFO - Found a template session. Using it : /Users/lydh/.flashTool/devices/F81XX/41.fsc
17/016/2017 13:16:13 - INFO - Set loader configuration : [00 01 00 00 00 0C]
17/016/2017 13:16:13 - INFO - Opening TA partition 2
17/016/2017 13:16:13 - INFO - Writing TA unit 00002774. Value : 01
17/016/2017 13:16:13 - INFO - Closing TA partition
17/016/2017 13:16:14 - INFO - Processing partition.sin
17/016/2017 13:16:14 - INFO - Checking header
17/016/2017 13:16:14 - ERROR - Processing of partition.sin finished with errors.
17/016/2017 13:16:14 - INFO - Flashing finished.
17/016/2017 13:16:14 - INFO - Please unplug and start your phone
17/016/2017 13:16:14 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings

Then I tried it once more time and this is the error:

17/019/2017 13:19:56 - INFO - Selected Bundle for Sony Xperia X Performance(F8131). FW release : 41.2.A.7.8_R1D. Customization : Latin America Generic_1302-6536
17/019/2017 13:19:56 - INFO - Preparing files for flashing
17/020/2017 13:20:35 - INFO - Please connect your device into flashmode.
17/020/2017 13:20:36 - INFO - Opening device for R/W
17/020/2017 13:20:36 - INFO - Device ready for R/W.
17/020/2017 13:20:36 - INFO - Reading device information
17/020/2017 13:20:36 - INFO - Unable to read from phone after having opened it.
17/020/2017 13:20:36 - INFO - trying to continue anyway
17/020/2017 13:20:36 - INFO - Phone ready for flashmode operations.
17/020/2017 13:20:36 - INFO - Opening TA partition 2
17/020/2017 13:20:36 - INFO - Start Flashing
17/020/2017 13:20:36 - INFO - No loader in the bundle. Searching for one
17/021/2017 13:21:19 - INFO - No matching loader found
17/021/2017 13:21:19 - WARN - No loader found or set manually. Skipping loader
17/021/2017 13:21:19 - INFO - Ending flash session
17/021/2017 13:21:19 - ERROR - null
17/021/2017 13:21:19 - ERROR - Error flashing. Aborted
17/021/2017 13:21:20 - INFO - Device connected in flash mode

By the way, I also checked in the .flashTool/devices/F81XX, and found this file 41.fsc already there. I received 2 alerts while flashing: -

- The first is something like "the 41.fsc is found, do you want to use it?"

- The second:

Those data are not in the FSC script and will be skipped :
RESET-KERNEL-CMD-DEBUG.
Do you want to continue ?

This is the content of 41.fsc

getLoaderInfos
setLoaderConfig:00 01 00 00 00 0C
openTA:2
setFlashState:1
closeTA
uploadImage:partition
openTA:2
uploadImage:cmnlib
uploadImage:devcfg
uploadImage:emmc_appsboot
uploadImage:hyp
closeTA
openTA:2
writeTA:2127
writeTA:2301
closeTA
openTA:2
uploadImage:keymaster
uploadImage:pmic
uploadImage:rpm
uploadImage:s1sbl
uploadImage:tzs1attest
uploadImage:tz
uploadImage:tzs1sbl
uploadImage:xbl
closeTA
openTA:2
uploadImage:apps_log
uploadImage:diag
uploadImage:ssd
uploadImage:adspso
uploadImage:cache
uploadImage:modem
uploadImage:Qnovo
uploadImage:amss_fs_1
uploadImage:amss_fs_2
uploadImage:amss_fsg
uploadImage:persist
uploadImage:kernel
uploadImage:fotakernel
uploadImage:ramdump
uploadImage:system
closeTA
openTA:2
uploadImage:oem
uploadImage:userdata
closeTA
openTA:2
writeTA:2212
closeTA
openTA:2
writeTA:2404
closeTA
openTA:2
writeTA:2486
closeTA
openTA:2
writeTA:2311
closeTA
openTA:2
writeTA:2330
closeTA
openTA:2
writeTA:2550
closeTA
openTA:2
writeTA:2553
closeTA
openTA:2
uploadImage:elabel
closeTA
openTA:2
setFlashTimestamp
setFlashState:0
closeTA
End flashing

This is the content of F81XX.properties, also inside that folder F81XX, in case you need it:

#Fri Aug 08 18:46:20 CEST 2014
internalname=F81XX
canfastboot=true
busyboxhelper=1.20.2
recognition=F8131,F8132,SO-04H,SOV33,502SO
variant=F8131,F8132,SO-04H,SOV33,502SO
cankernel=false
busyboxinstallpath=/system/xbin
loader_unlocked=
realname=Sony Xperia X Performance
loader=
canrecovery=false
buildprop=ro.product.device
canflash=true
fscmandatory=true