[Sony Xperia XZ1  Questions & Answers] jagltoro:
I'm trying to get back to stock rom of my XZ1.

Downloaded the flashtool from here: https://xperiafirmware.com/flashtool/

And the stock rom from here: https://xperiafirmware.com/sony-xperia-xz1/

Now i follow the steps in here: https://xperiastockrom.com/flash-sony-xperia-stock-rom and i get the following log

Note: I checked the Wipe -> Sin -> USERDATA as stated in 2nd link

25/036/2020 10:36:19 - INFO - Flashtool 0.9.31.0
25/036/2020 10:36:19 - INFO - Searching for a web proxy
25/036/2020 10:36:19 - INFO - No proxy found, using direct connection
25/036/2020 10:36:20 - INFO - Syncing devices from github
25/036/2020 10:36:20 - INFO - Opening devices repository.
25/036/2020 10:36:20 - INFO - Scanning devices folder for changes.
25/036/2020 10:36:27 - INFO - Changes have been found. Doing a hard reset (removing user modifications).
25/036/2020 10:36:27 - INFO - Pulling changes from github.
25/036/2020 10:36:27 - INFO - Devices sync finished.
25/036/2020 10:36:30 - INFO - Loading devices database
25/036/2020 10:36:30 - INFO - Loaded 129 devices
25/036/2020 10:36:30 - INFO - Starting phone detection
25/036/2020 10:36:33 - INFO - Device connected in flash mode
25/036/2020 10:36:46 - INFO - Device disconnected
25/037/2020 10:37:08 - INFO - Selected Bundle for Sony Xperia XZ1(G8341). FW release : 47.2.A.11.228. Customization : DE
25/037/2020 10:37:08 - INFO - Preparing files for flashing
25/037/2020 10:37:14 - INFO - Flash canceled
25/037/2020 10:37:27 - INFO - Please connect your device into flashmode.
25/037/2020 10:37:39 - INFO - Using Gordon gate drivers version 3.2.0.0
25/037/2020 10:37:39 - INFO - USB buffer size set to 512K
25/037/2020 10:37:39 - INFO - Opening device for R/W
25/037/2020 10:37:40 - INFO - Device ready for R/W.
25/037/2020 10:37:40 - INFO - Reading device information
25/037/2020 10:37:40 - INFO - Reading phone properties
25/037/2020 10:37:40 - INFO - Sending getvar:product
25/037/2020 10:37:40 - INFO - getvar status : OKAY
25/037/2020 10:37:40 - INFO - Sending Read-TA:2:2202
25/037/2020 10:37:40 - INFO - Read-TA status : OKAY
25/037/2020 10:37:40 - INFO - Sending Read-TA:2:2205
25/037/2020 10:37:40 - INFO - Read-TA status : OKAY
25/037/2020 10:37:40 - INFO - Sending Read-TA:2:2210
25/037/2020 10:37:40 - INFO - Read-TA status : OKAY
25/037/2020 10:37:40 - INFO - Sending Read-TA:2:4900
25/037/2020 10:37:40 - INFO - Read-TA status : OKAY
25/037/2020 10:37:40 - INFO - Sending Read-TA:2:10021
25/037/2020 10:37:40 - INFO - Read-TA status : FAIL
25/037/2020 10:37:40 - WARN - Unable to read TA unit 10021, error=-22 ( Hex unit value 00002725 )
25/037/2020 10:37:40 - INFO - Connected device : G8341 / SW release 1307-7511_47.2.A.11.228 / Customization 1310-6861_R2C
25/037/2020 10:37:40 - INFO - Last flash date : null
25/037/2020 10:37:40 - INFO - Phone ready for flashmode operations.
25/037/2020 10:37:40 - INFO - Start Flashing
25/037/2020 10:37:40 - INFO - Parsing boot delivery
25/037/2020 10:37:40 - ERROR - null
25/037/2020 10:37:40 - INFO - Sending Sync
25/043/2020 10:43:09 - INFO - Sync status : OKAY
25/043/2020 10:43:10 - INFO - Sending powerdown
25/043/2020 10:43:10 - INFO - powerdown status : OKAY
25/043/2020 10:43:13 - INFO - Device disconnected
25/043/2020 10:43:14 - INFO - Device connected in flash mode

Now, 2 questions.

- The Error - null just after the parsing boot delivery, that affects the whole process? I have the bootloader unlocked, this is the reason?

- After i left it and said INFO - powerdown status : OKAY I unplugged the phone and rebooted, but it didnt flash anything, i still have the custom rom i had before. How i can get this to work? I want to go back to stock to be able to sell the phone