[Moto G Q&A, Help & Troubleshooting] mdn_:
[Done] Upgrade Moto G 4G (XT1039) from stock 4.4.4 rooted

After experiencing heavy trouble upgrading my Moto G 4G, i want to share my solution with you.

Details

XT1039 German Retail

Stock 4.4.4 with unlocked bootloader und CWM recovery

Build: KXB21.14-L1.56

Neither the following worked to get the phone upgraded to 5.1:

- Via "Systemupdates" - Dialog:

Update failed right at the beginning of the installation without any details.​

- Via CWM (verification en-/disabled) selecting downloaded .xml.zip:

Failed without any details too.​

- Via Intel Phone Flash Tool 3.1.4:

Stated either "Failed to load <absolute-path>\XT1039_PEREGRINE_RETDE_5.1_LPB23.13-17_cid7_CFC.xml.zip" when selecting *.xml.zip,

or "There is no flash file in the archive" when selecting "flashfile.xml" or "servicefile.xml" from extracted Archive.​

So i performed a full wipe and tried to flash several stock recovery images, which worked but didn't enable me to update in neither of the mentioned ways.

I was curios of how even the Intel Phone Flash Tool didn't recognize the *.xml.zip and flashfile.xml as valid so i opened the .xml in an Editor and realized the format was different (newer?) from the generated by Phone Flash Tool when creating a "Custom Flash".

From *.xml.zip

<?xml version="1.0" ?>
<flashing>
<header>
<phone_model model="peregrine_reteu"/>
<software_version version="peregrine_reteu-user 5.1 LPB23.13-17 18 release-keysM8926_309101.02.03.14R"/>
<sparsing enabled="true" max-sparse-size="268435456"/>
<interfaces>
<interface name="AP"/>
</interfaces>
</header>
<steps interface="AP">
<step operation="getvar" var="max-sparse-size"/>
<step operation="oem" var="fb_mode_set"/>
<step MD5="2655d5015085a8de4c53b3f497d4bdfc" filename="gpt.bin" operation="flash" partition="partition"/>
<step MD5="79c718f670eab6d6854ed30435fbeea7" filename="motoboot.img" operation="flash" partition="motoboot"/>
<step MD5="430c86260d74d74baaba53c57ad80f18" filename="logo.bin" operation="flash" partition="logo"/>
<step MD5="a0d0b6f202c385d3be9a79eb2dbe9590" filename="boot.img" operation="flash" partition="boot"/>
<step MD5="71213d74658b0d9c827d3be526637a23" filename="recovery.img" operation="flash" partition="recovery"/>
<step MD5="c12047d61b0585f520afb046d4d28505" filename="system.img_sparsechunk.0" operation="flash" partition="system"/>
<step MD5="26f78cd3b7145f021080a5cf43558533" filename="system.img_sparsechunk.1" operation="flash" partition="system"/>
<step MD5="7ddfb33f27f7b38caab8cbd5dbe9e835" filename="system.img_sparsechunk.2" operation="flash" partition="system"/>
<step MD5="d8c1829e2c4564b7ae114f11262b0192" filename="system.img_sparsechunk.3" operation="flash" partition="system"/>
<step MD5="4058a0fcaae7c7e233d7ecf89786a74d" filename="NON-HLOS.bin" operation="flash" partition="modem"/>
<step operation="erase" partition="modemst1"/>
<step operation="erase" partition="modemst2"/>
<step MD5="e723287a18b0415c84e1e0c641212c14" filename="fsg.mbn" operation="flash" partition="fsg"/>
<step operation="erase" partition="cache"/>
<step operation="erase" partition="userdata"/>
<step operation="oem" var="fb_mode_clear"/>
</steps>
</flashing>

From Intel Phone Flash Tool:

<?xml version="1.0"?>
<flashfile>
<id>fastboot</id>
<platform></platform>
<file TYPE="MODEM">
<name>absolute-path/NON-HLOS.bin</name>
</file>
<file TYPE="RECOVERY">
<name>absolute-path/recovery.img</name>
</file>
<file TYPE="KERNEL">
<name>absolute-path/boot.img</name>
</file>
<file TYPE="SYSTEM">
<name>absolute-path/system.img_sparsechunk.0</name>
</file>
<command id="1">
<string>fastboot erase system</string>
<timeout>400000</timeout>
<description>fastboot erase system</description>
<retry>2</retry>
</command>
<command id="2">
<string>fastboot flash system $system_file</string>
<timeout>400000</timeout>
<description>fastboot flash system</description>
<retry>2</retry>
</command>
<command id="3">
<string>fastboot flash radio $modem_file</string>
<timeout>400000</timeout>
<description>fastboot flash radio</description>
<retry>2</retry>
</command>
<command id="4">
<string>fastboot flash boot $kernel_file</string>
<timeout>400000</timeout>
<description>fastboot flash boot</description>
<retry>2</retry>
</command>
<command id="5">
<string>fastboot flash recovery $recovery_file</string>
<timeout>400000</timeout>
<description>fastboot flash recovery</description>
<retry>2</retry>
</command>
<command id="6">
<string>fastboot continue</string>
<timeout>45000</timeout>
<description>fastboot continue</description>
<retry>2</retry>
</command>
<gpflag>
<value>0x80000045</value>
</gpflag>
</flashfile>

So i tried to translate the file format (for which i was unable to find any documentation) to make it work.

Essentially these are all fastboot commands which you can perform manually or via script as mentioned before. Bit i prefered to do it via Phone Flash Tool Lite 5.2.4.0, because the *.xml gets validated before execution and you have debug output if anything goes wrong. Also i was unsure of how important the "max-sparse-size" parameter is, so i wanted to have it included but didn't found out how to do it via fastboot.

Phone Flash Tool Lite 5.2.4.0

https://01.org/android-ia/downloads/intel-phone-flash-tool-lite

Extract desired *.xml.zip anywhre

Copy the following code in an editor

Replace "absolute-path" with the actual absolute path to the directory where you've extracted the *.xml.zip.

Add command "fastboot erase userdata" if you want your sdcard to be erased.

Save the edited code als *.xml

Install / Open Phone Flash Tool and follow the instructions to get your Device connected.

Select saved *.xml and flash

<?xml version="1.0"?>
<flashfile>
<id>fastboot</id>
<platform></platform>
<header>
<phone_model model="peregrine_reteu"/>
<software_version version="peregrine_reteu-user 5.1 LPB23.13-17 18 release-keysM8926_309101.02.03.14R"/>
<sparsing enabled="true" max-sparse-size="268435456"/>
<interfaces>
<interface name="AP"/>
</interfaces>
</header>
<command id="0">
<string>fastboot getvar max-sparse-size</string>
<timeout>400000</timeout>
<description>fastboot oem fb_mode_set</description>
<retry>2</retry>
</command>
<command id="1">
<string>fastboot oem fb_mode_set</string>
<timeout>400000</timeout>
<description>fastboot oem fb_mode_set</description>
<retry>2</retry>
</command>
<command id="2">
<string>fastboot flash partition absolute-path\gpt.bin</string>
<timeout>400000</timeout>
<description>fastboot flash partition absolute-path\gpt.bin</description>
<retry>2</retry>
</command>
<command id="3">
<string>fastboot flash motoboot absolute-path\motoboot.img</string>
<timeout>400000</timeout>
<description>fastbootflash motoboot absolute-path\motoboot.img</description>
<retry>2</retry>
</command>
<command id="4">
<string>fastboot flash logo absolute-path\logo.bin</string>
<timeout>400000</timeout>
<description>fastbootflash logo absolute-path\logo.bin</description>
<retry>2</retry>
</command>
<command id="5">
<string>fastboot flash boot absolute-path\boot.img</string>
<timeout>400000</timeout>
<description>fastboot flash boot E:\reteu51\boot.img</description>
<retry>2</retry>
</command>
<command id="6">
<string>fastboot flash recovery absolute-path\recovery.img</string>
<timeout>400000</timeout>
<description>fastboot flash recovery absolute-path\recovery.img</description>
<retry>2</retry>
</command>
<command id="7">
<string>fastboot flash system absolute-path\system.img_sparsechunk.0</string>
<timeout>400000</timeout>
<description>fastboot flash system absolute-path\system.img_sparsechunk.0</description>
<retry>2</retry>
</command>
<command id="8">
<string>fastboot flash system absolute-path\system.img_sparsechunk.1</string>
<timeout>400000</timeout>
<description>fastboot flash system absolute-path\system.img_sparsechunk.1</description>
<retry>2</retry>
</command>
<command id="9">
<string>fastboot flash system absolute-path\system.img_sparsechunk.2</string>
<timeout>400000</timeout>
<description>fastboot flash system absolute-path\system.img_sparsechunk.2</description>
<retry>2</retry>
</command>
<command id="10">
<string>fastboot flash system absolute-path\system.img_sparsechunk.3</string>
<timeout>400000</timeout>
<description>fastboot flash system absolute-path\system.img_sparsechunk.3</description>
<retry>2</retry>
</command>
<command id="11">
<string>fastboot flash modem absolute-path\NON-HLOS.bin</string>
<timeout>400000</timeout>
<description>fastboot flash modem absolute-path\NON-HLOS.bin</description>
<retry>2</retry>
</command>
<command id="12">
<string>fastboot erase modemst1</string>
<timeout>400000</timeout>
<description>fastboot erase modemst1</description>
<retry>2</retry>
</command>
<command id="13">
<string>fastboot erase modemst2</string>
<timeout>400000</timeout>
<description>fastboot erase modemst2</description>
<retry>2</retry>
</command>
<command id="14">
<string>fastboot flash fsg absolute-path\fsg.mbn</string>
<timeout>400000</timeout>
<description>fastboot flash fsg absolute-path\fsg.mbn</description>
<retry>2</retry>
</command>
<command id="15">
<string>fastboot erase cache</string>
<timeout>45000</timeout>
<description>fastboot erase cache</description>
<retry>2</retry>
</command>
<command id="16">
<string>fastboot oem fb_mode_clear</string>
<timeout>400000</timeout>
<description>fastboot oem fb_mode_clear</description>
<retry>2</retry>
</command>
<command id="17">
<string>fastboot reboot</string>
<timeout>45000</timeout>
<description>fastboot reboot</description>
<retry>2</retry>
</command>
<gpflag>
<value>0x80000045</value>
</gpflag>
</flashfile>

This way i was finally able to flash (using the EU-Version) successfully:

07/18/15 23:55:38.898 INFO : [Port 2/1] Start flashing the flash configuration with pos start state for TA986023V0
07/18/15 23:55:38.898 INFO : [Port 2/1] Starting flash ...
07/18/15 23:55:38.898 DEBUG : [Port 2/1] Waiting for device in pos
07/18/15 23:55:38.898 INFO : [Port 2/1] Flash started
07/18/15 23:55:38.898 INFO : [Port 2/1] Sleep 500 ms before executing first flash command
07/18/15 23:55:39.398 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "getvar" "max-sparse-size"` command
07/18/15 23:55:39.429 DEBUG : [Port 2/1] max-sparse-size: 268435456
07/18/15 23:55:39.429 DEBUG : [Port 2/1] finished. total time: 0.000s
07/18/15 23:55:39.429 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "getvar" "max-sparse-size"` succeed
07/18/15 23:55:39.429 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "oem" "fb_mode_set"` command
07/18/15 23:55:39.498 DEBUG : [Port 2/1] ...
07/18/15 23:55:39.498 DEBUG : [Port 2/1] OKAY [ 0.053s]
07/18/15 23:55:39.498 DEBUG : [Port 2/1] finished. total time: 0.053s
07/18/15 23:55:39.498 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "oem" "fb_mode_set"` succeed
07/18/15 23:55:39.498 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "partition" "<extracted-xml-zip-path>\gpt.bin"` command
07/18/15 23:55:40.043 DEBUG : [Port 2/1] target reported max download size of 536870912 bytes
07/18/15 23:55:40.043 DEBUG : [Port 2/1] sending 'partition' (32 KB)...
07/18/15 23:55:40.043 DEBUG : [Port 2/1] OKAY [ 0.078s]
07/18/15 23:55:40.043 DEBUG : [Port 2/1] writing 'partition'...
07/18/15 23:55:40.043 DEBUG : [Port 2/1] (bootloader) This may take a few seconds, if a
07/18/15 23:55:40.043 DEBUG : [Port 2/1] (bootloader) different partition table is being
07/18/15 23:55:40.043 DEBUG : [Port 2/1] (bootloader) flashed since we need to backup
07/18/15 23:55:40.043 DEBUG : [Port 2/1] (bootloader) and restore a few partitions
07/18/15 23:55:40.043 DEBUG : [Port 2/1] (bootloader) Flashing primary GPT image...
07/18/15 23:55:40.043 DEBUG : [Port 2/1] (bootloader) Flashing backup GPT image...
07/18/15 23:55:40.043 DEBUG : [Port 2/1] OKAY [ 0.388s]
07/18/15 23:55:40.043 DEBUG : [Port 2/1] finished. total time: 0.466s
07/18/15 23:55:40.043 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "partition" "<extracted-xml-zip-path>\gpt.bin"` succeed
07/18/15 23:55:40.043 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "motoboot" "<extracted-xml-zip-path>\motoboot.img"` command
07/18/15 23:55:41.589 DEBUG : [Port 2/1] target reported max download size of 536870912 bytes
07/18/15 23:55:41.589 DEBUG : [Port 2/1] sending 'motoboot' (1953 KB)...
07/18/15 23:55:41.589 DEBUG : [Port 2/1] OKAY [ 0.137s]
07/18/15 23:55:41.589 DEBUG : [Port 2/1] writing 'motoboot'...
07/18/15 23:55:41.589 DEBUG : [Port 2/1] (bootloader) flashing tz ...
07/18/15 23:55:41.589 DEBUG : [Port 2/1] (bootloader) flashing rpm ...
07/18/15 23:55:41.589 DEBUG : [Port 2/1] (bootloader) flashing sdi ...
07/18/15 23:55:41.589 DEBUG : [Port 2/1] (bootloader) flashing aboot ...
07/18/15 23:55:41.589 DEBUG : [Port 2/1] (bootloader) flashing sbl1 ...
07/18/15 23:55:41.589 DEBUG : [Port 2/1] OKAY [ 1.284s]
07/18/15 23:55:41.589 DEBUG : [Port 2/1] finished. total time: 1.422s
07/18/15 23:55:41.589 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "motoboot" "<extracted-xml-zip-path>\motoboot.img"` succeed
07/18/15 23:55:41.589 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "logo" "<extracted-xml-zip-path>\logo.bin"` command
07/18/15 23:55:41.917 DEBUG : [Port 2/1] target reported max download size of 536870912 bytes
07/18/15 23:55:41.917 DEBUG : [Port 2/1] sending 'logo' (295 KB)...
07/18/15 23:55:41.917 DEBUG : [Port 2/1] OKAY [ 0.109s]
07/18/15 23:55:41.917 DEBUG : [Port 2/1] writing 'logo'...
07/18/15 23:55:41.917 DEBUG : [Port 2/1] OKAY [ 0.109s]
07/18/15 23:55:41.917 DEBUG : [Port 2/1] finished. total time: 0.219s
07/18/15 23:55:41.917 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "logo" "<extracted-xml-zip-path>\logo.bin"` succeed
07/18/15 23:55:41.917 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "boot" "<extracted-xml-zip-path>\boot.img"` command
07/18/15 23:55:43.258 DEBUG : [Port 2/1] target reported max download size of 536870912 bytes
07/18/15 23:55:43.258 DEBUG : [Port 2/1] sending 'boot' (10240 KB)...
07/18/15 23:55:43.258 DEBUG : [Port 2/1] OKAY [ 0.375s]
07/18/15 23:55:43.258 DEBUG : [Port 2/1] writing 'boot'...
07/18/15 23:55:43.258 DEBUG : [Port 2/1] OKAY [ 0.809s]
07/18/15 23:55:43.258 DEBUG : [Port 2/1] finished. total time: 1.185s
07/18/15 23:55:43.258 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "boot" "<extracted-xml-zip-path>\boot.img"` succeed
07/18/15 23:55:43.258 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "recovery" "<extracted-xml-zip-path>\recovery.img"` command
07/18/15 23:55:44.559 DEBUG : [Port 2/1] target reported max download size of 536870912 bytes
07/18/15 23:55:44.559 DEBUG : [Port 2/1] sending 'recovery' (10240 KB)...
07/18/15 23:55:44.559 DEBUG : [Port 2/1] OKAY [ 0.373s]
07/18/15 23:55:44.559 DEBUG : [Port 2/1] writing 'recovery'...
07/18/15 23:55:44.559 DEBUG : [Port 2/1] OKAY [ 0.780s]
07/18/15 23:55:44.559 DEBUG : [Port 2/1] finished. total time: 1.152s
07/18/15 23:55:44.559 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "recovery" "<extracted-xml-zip-path>\recovery.img"` succeed
07/18/15 23:55:44.559 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "system" "<extracted-xml-zip-path>\system.img_sparsechunk.0"` command
07/18/15 23:56:05.776 DEBUG : [Port 2/1] target reported max download size of 536870912 bytes
07/18/15 23:56:05.776 DEBUG : [Port 2/1] sending 'system' (257451 KB)...
07/18/15 23:56:05.776 DEBUG : [Port 2/1] OKAY [ 8.114s]
07/18/15 23:56:05.776 DEBUG : [Port 2/1] writing 'system'...
07/18/15 23:56:05.776 DEBUG : [Port 2/1] OKAY [ 11.746s]
07/18/15 23:56:05.776 DEBUG : [Port 2/1] finished. total time: 19.860s
07/18/15 23:56:05.776 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "system" "<extracted-xml-zip-path>\system.img_sparsechunk.0"` succeed
07/18/15 23:56:05.776 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "system" "<extracted-xml-zip-path>\system.img_sparsechunk.1"` command
07/18/15 23:56:27.388 DEBUG : [Port 2/1] target reported max download size of 536870912 bytes
07/18/15 23:56:27.388 DEBUG : [Port 2/1] sending 'system' (257649 KB)...
07/18/15 23:56:27.388 DEBUG : [Port 2/1] OKAY [ 8.119s]
07/18/15 23:56:27.388 DEBUG : [Port 2/1] writing 'system'...
07/18/15 23:56:27.388 DEBUG : [Port 2/1] OKAY [ 12.132s]
07/18/15 23:56:27.388 DEBUG : [Port 2/1] finished. total time: 20.251s
07/18/15 23:56:27.388 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "system" "<extracted-xml-zip-path>\system.img_sparsechunk.1"` succeed
07/18/15 23:56:27.388 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "system" "<extracted-xml-zip-path>\system.img_sparsechunk.2"` command
07/18/15 23:56:59.793 DEBUG : [Port 2/1] target reported max download size of 536870912 bytes
07/18/15 23:56:59.793 DEBUG : [Port 2/1] sending 'system' (261544 KB)...
07/18/15 23:56:59.793 DEBUG : [Port 2/1] OKAY [ 8.245s]
07/18/15 23:56:59.793 DEBUG : [Port 2/1] writing 'system'...
07/18/15 23:56:59.793 DEBUG : [Port 2/1] OKAY [ 22.828s]
07/18/15 23:56:59.793 DEBUG : [Port 2/1] finished. total time: 31.073s
07/18/15 23:56:59.793 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "system" "<extracted-xml-zip-path>\system.img_sparsechunk.2"` succeed
07/18/15 23:56:59.793 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "system" "<extracted-xml-zip-path>\system.img_sparsechunk.3"` command
07/18/15 23:57:23.217 DEBUG : [Port 2/1] target reported max download size of 536870912 bytes
07/18/15 23:57:23.217 DEBUG : [Port 2/1] sending 'system' (189917 KB)...
07/18/15 23:57:23.217 DEBUG : [Port 2/1] OKAY [ 5.993s]
07/18/15 23:57:23.217 DEBUG : [Port 2/1] writing 'system'...
07/18/15 23:57:23.217 DEBUG : [Port 2/1] OKAY [ 16.382s]
07/18/15 23:57:23.217 DEBUG : [Port 2/1] finished. total time: 22.376s
07/18/15 23:57:23.217 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "system" "<extracted-xml-zip-path>\system.img_sparsechunk.3"` succeed
07/18/15 23:57:23.217 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "modem" "<extracted-xml-zip-path>\NON-HLOS.bin"` command
07/18/15 23:57:29.474 DEBUG : [Port 2/1] target reported max download size of 536870912 bytes
07/18/15 23:57:29.474 DEBUG : [Port 2/1] sending 'modem' (60232 KB)...
07/18/15 23:57:29.474 DEBUG : [Port 2/1] OKAY [ 1.944s]
07/18/15 23:57:29.474 DEBUG : [Port 2/1] writing 'modem'...
07/18/15 23:57:29.474 DEBUG : [Port 2/1] OKAY [ 3.906s]
07/18/15 23:57:29.474 DEBUG : [Port 2/1] finished. total time: 5.850s
07/18/15 23:57:29.474 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "modem" "<extracted-xml-zip-path>\NON-HLOS.bin"` succeed
07/18/15 23:57:29.474 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "erase" "modemst1"` command
07/18/15 23:57:29.599 DEBUG : [Port 2/1] erasing 'modemst1'...
07/18/15 23:57:29.599 DEBUG : [Port 2/1] OKAY [ 0.063s]
07/18/15 23:57:29.599 DEBUG : [Port 2/1] finished. total time: 0.063s
07/18/15 23:57:29.599 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "erase" "modemst1"` succeed
07/18/15 23:57:29.599 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "erase" "modemst2"` command
07/18/15 23:57:29.771 DEBUG : [Port 2/1] erasing 'modemst2'...
07/18/15 23:57:29.771 DEBUG : [Port 2/1] OKAY [ 0.109s]
07/18/15 23:57:29.771 DEBUG : [Port 2/1] finished. total time: 0.109s
07/18/15 23:57:29.771 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "erase" "modemst2"` succeed
07/18/15 23:57:29.771 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "fsg" "<extracted-xml-zip-path>\fsg.mbn"` command
07/18/15 23:57:35.624 DEBUG : [Port 2/1] target reported max download size of 536870912 bytes
07/18/15 23:57:35.624 DEBUG : [Port 2/1] sending 'fsg' (517 KB)...
07/18/15 23:57:35.624 DEBUG : [Port 2/1] OKAY [ 0.109s]
07/18/15 23:57:35.640 DEBUG : [Port 2/1] writing 'fsg'...
07/18/15 23:57:35.640 DEBUG : [Port 2/1] OKAY [ 5.666s]
07/18/15 23:57:35.640 DEBUG : [Port 2/1] finished. total time: 5.775s
07/18/15 23:57:35.640 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "flash" "fsg" "<extracted-xml-zip-path>\fsg.mbn"` succeed
07/18/15 23:57:35.640 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "erase" "cache"` command
07/18/15 23:57:36.265 DEBUG : [Port 2/1] erasing 'cache'...
07/18/15 23:57:36.265 DEBUG : [Port 2/1] OKAY [ 0.578s]
07/18/15 23:57:36.265 DEBUG : [Port 2/1] finished. total time: 0.578s
07/18/15 23:57:36.265 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "erase" "cache"` succeed
07/18/15 23:57:36.265 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "oem" "fb_mode_clear"` command
07/18/15 23:57:36.296 DEBUG : [Port 2/1] ...
07/18/15 23:57:36.296 DEBUG : [Port 2/1] OKAY [ 0.016s]
07/18/15 23:57:36.296 DEBUG : [Port 2/1] finished. total time: 0.016s
07/18/15 23:57:36.296 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "oem" "fb_mode_clear"` succeed
07/18/15 23:57:36.296 INFO : [Port 2/1] Running `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "reboot"` command
07/18/15 23:57:36.343 DEBUG : [Port 2/1] rebooting...
07/18/15 23:57:36.343 DEBUG : [Port 2/1] finished. total time: 0.016s
07/18/15 23:57:36.343 INFO : [Port 2/1] Command `"<phone-flash-tool-lite-path>\Phone Flash Tool Lite\fastboot.exe" "-s" "TA986023V0" "reboot"` succeed
07/18/15 23:57:36.343 INFO : [Port 2/1] Flash success (duration=00:01:56.945)

As far as i can tell everything worked fine.

Also i did not yet experience the "Sleep of death" (SOD) which happened pretty often before.

But it doesn't fix the SOD.

Hope this saves someone some time, otherwise it's archived for documentation purpose at least. :)