[Upgrading, Modifying and Unlocking] sd_shadow:
Getting flash commands from the .xml

The Firmware folder will likely have a couple of .xml files

like servicefile.xml or flashfile.xml

Sevicefile.xml does not have 'erase user data'

flashfile.xml does 'erase userdata'

These are formatted to be used with RSD Lite and LMSA

But as I wrote in post #1 RSD Lite hasn't been updated in several years, and not compatible with most Windows 10 PCs

See this post about getting the flashing commands from the .xml

so they can be used with fastboot.exe

Use a batch file for easier flashing

Online FlashFile Converter

Examples of .XML files

servicefile.xml with new super.img -09 Jan 2021

<?xml version="1.0" ?>
<flashing>
<header>
<phone_model model="racer_retail"/>
<software_version version="racer_retail-user 10 QPD30.114-80 6ddbb release-keys"/>
<sparsing enabled="true" max-sparse-size="536870912"/>
<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="a08994025b101d31ac2a02b6612d16cf" filename="gpt.bin" operation="flash" partition="partition"/>
<step MD5="ae1a36de87f0e54eb885109a3d78f43d" filename="bootloader.img" operation="flash" partition="bootloader"/>
<step MD5="c0002df6f166c3e0ef48af8de1360525" filename="vbmeta.img" operation="flash" partition="vbmeta"/>
<step MD5="44dadcc9564e72cfa94a30fd4b36d46d" filename="radio.img" operation="flash" partition="radio"/>
<step MD5="6efe688aec346a403d3fd65a71512ed8" filename="BTFM.bin" operation="flash" partition="bluetooth"/>
<step MD5="35303058ff0a1ce10625345a910626da" filename="dspso.bin" operation="flash" partition="dsp"/>
<step MD5="2ff319d7b4bea01a28f2a4ef69eb435e" filename="logo.bin" operation="flash" partition="logo"/>
<step MD5="0b1b67be985b1908c70ecc2586c532de" filename="boot.img" operation="flash" partition="boot"/>
<step MD5="01102f81baff9846977c1c321aa09785" filename="dtbo.img" operation="flash" partition="dtbo"/>
<step MD5="15f8eb86283f15c8f81f40618e2a96e3" filename="recovery.img" operation="flash" partition="recovery"/>
<step MD5="66475a16cefbb5f6bbaebfcf23defd25" filename="super.img_sparsechunk.0" operation="flash" partition="super"/>
<step MD5="0f0085e818e78820adf898374080dd11" filename="super.img_sparsechunk.1" operation="flash" partition="super"/>
<step MD5="10ed7983a07a7f0e1d6b7bd2e630c81b" filename="super.img_sparsechunk.2" operation="flash" partition="super"/>
<step MD5="0090af247502874f081c416890c261d8" filename="super.img_sparsechunk.3" operation="flash" partition="super"/>
<step MD5="96b96a3bb0d6f548893e20acb8448a23" filename="super.img_sparsechunk.4" operation="flash" partition="super"/>
<step MD5="9579c408c0078a5ff7eb6a1f61976585" filename="super.img_sparsechunk.5" operation="flash" partition="super"/>
<step MD5="210b528a9c9ebd77abed568d939271de" filename="super.img_sparsechunk.6" operation="flash" partition="super"/>
<step MD5="ee77fbd75df0f83a4e484becba41b70a" filename="super.img_sparsechunk.7" operation="flash" partition="super"/>
<step operation="erase" partition="carrier"/>
<step operation="erase" partition="ddr"/>
<step operation="oem" var="fb_mode_clear"/>
</steps>
</flashing>

flashfile.xml

<?xml version="1.0" ?>
<flashing>
<header>
<phone_model model="ocean"/>
<software_version version="ocean-user 9 PPOS29.114-134-2 0d27 release-keysM632_26.100.01.120.01R"/>
<subsidy_lock_config MD5="d41d8cd98f00b204e9800998ecf8427e" name="slcf_rev_d_default_v1.0.nvm"/>
<regulatory_config SHA1="da39a3ee5e6b4b0d3255bfef95601890afd80709" name="regulatory_info_default.png"/>
<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="98eca8bc38d323f27f9ac1739569ac53" filename="gpt.bin" operation="flash" partition="partition"/>
<step MD5="8776ac7f36d4dc86809b434a0b4ef297" filename="bootloader.img" operation="flash" partition="bootloader"/>
<step MD5="82f9f67795c85f7a4197034d2715fcdd" filename="NON-HLOS.bin" operation="flash" partition="modem"/>
<step MD5="acdc347a755f73a757b40cf15dbd81a0" filename="fsg.mbn" operation="flash" partition="fsg"/>
<step operation="erase" partition="modemst1"/>
<step operation="erase" partition="modemst2"/>
<step MD5="330051cf4bad4a337b30cbbf90439f90" filename="adspso.bin" operation="flash" partition="dsp"/>
<step MD5="1fb161f1a3af4576cf67269049796afe" filename="logo.bin" operation="flash" partition="logo"/>
<step MD5="aa337fafc827722ce13d535e2d40604a" filename="boot.img" operation="flash" partition="boot"/>
<step MD5="c487a9cd3f57ae8b80a631e3fb3dd105" filename="dtbo.img" operation="flash" partition="dtbo"/>
<step MD5="a09bdbad7490fa9fa9123d3d928cb1af" filename="system.img_sparsechunk.0" operation="flash" partition="system"/>
<step MD5="629ad8460d94d50080757b3f1261f7a8" filename="system.img_sparsechunk.1" operation="flash" partition="system"/>
<step MD5="038947128c77a4b458ceb8026ace2d30" filename="system.img_sparsechunk.2" operation="flash" partition="system"/>
<step MD5="6a8dc58ece97231239e699aa2eb95601" filename="system.img_sparsechunk.3" operation="flash" partition="system"/>
<step MD5="31ed22694383c85f26d9e89efef09efc" filename="system.img_sparsechunk.4" operation="flash" partition="system"/>
<step MD5="e4f7243e65dc6df1a79ad5f71e3bf938" filename="system.img_sparsechunk.5" operation="flash" partition="system"/>
<step MD5="80aaa96d64637575f88dc4daa131123b" filename="system.img_sparsechunk.6" operation="flash" partition="system"/>
<step MD5="bcde37037afb3ccb66e7b47427af9229" filename="system.img_sparsechunk.7" operation="flash" partition="system"/>
<step MD5="afa92c57f8402cd7223c777cf1de5f44" filename="system.img_sparsechunk.8" operation="flash" partition="system"/>
<step MD5="1cd02b2893144cf069a23f6b1c3b6c96" filename="system.img_sparsechunk.9" operation="flash" partition="system"/>
<step MD5="c18a83c64aaf741df0c6ed10935348b8" filename="system_b.img_sparsechunk.0" operation="flash" partition="system_b"/>
<step MD5="ad7f6a528952be93f26faaebfd1bf83d" filename="system_b.img_sparsechunk.1" operation="flash" partition="system_b"/>
<step MD5="0046992361c02076555c97cec8f29a53" filename="system_b.img_sparsechunk.2" operation="flash" partition="system_b"/>
<step MD5="b7a1f1b1af66182476230d69fd2ad752" filename="vendor.img_sparsechunk.0" operation="flash" partition="vendor"/>
<step MD5="0ffd0cec1719a75ecb54fa17b24ad4d4" filename="vendor.img_sparsechunk.1" operation="flash" partition="vendor"/>
<step MD5="1097de93ede575d7dcb33fda3a1a6776" filename="oem.img" operation="flash" partition="oem"/>
<step MD5="1834a559d2b7d9a09feae082e1586068" filename="oem_other.img" operation="flash" partition="oem_b"/>
<step operation="erase" partition="userdata"/>
<step operation="erase" partition="DDR"/>
<step operation="oem" var="fb_mode_clear"/>
</steps>
</flashing>

Service .xml

<?xml version="1.0" ?>
<flashing>
<header>
<phone_model model="ocean"/>
<software_version version="ocean-user 9 PPOS29.114-134-2 0d27 release-keysM632_26.100.01.120.01R"/>
<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="98eca8bc38d323f27f9ac1739569ac53" filename="gpt.bin" operation="flash" partition="partition"/>
<step MD5="8776ac7f36d4dc86809b434a0b4ef297" filename="bootloader.img" operation="flash" partition="bootloader"/>
<step MD5="82f9f67795c85f7a4197034d2715fcdd" filename="NON-HLOS.bin" operation="flash" partition="modem"/>
<step MD5="acdc347a755f73a757b40cf15dbd81a0" filename="fsg.mbn" operation="flash" partition="fsg"/>
<step operation="erase" partition="modemst1"/>
<step operation="erase" partition="modemst2"/>
<step MD5="330051cf4bad4a337b30cbbf90439f90" filename="adspso.bin" operation="flash" partition="dsp"/>
<step MD5="1fb161f1a3af4576cf67269049796afe" filename="logo.bin" operation="flash" partition="logo"/>
<step MD5="aa337fafc827722ce13d535e2d40604a" filename="boot.img" operation="flash" partition="boot"/>
<step MD5="c487a9cd3f57ae8b80a631e3fb3dd105" filename="dtbo.img" operation="flash" partition="dtbo"/>
<step MD5="a09bdbad7490fa9fa9123d3d928cb1af" filename="system.img_sparsechunk.0" operation="flash" partition="system"/>
<step MD5="629ad8460d94d50080757b3f1261f7a8" filename="system.img_sparsechunk.1" operation="flash" partition="system"/>
<step MD5="038947128c77a4b458ceb8026ace2d30" filename="system.img_sparsechunk.2" operation="flash" partition="system"/>
<step MD5="6a8dc58ece97231239e699aa2eb95601" filename="system.img_sparsechunk.3" operation="flash" partition="system"/>
<step MD5="31ed22694383c85f26d9e89efef09efc" filename="system.img_sparsechunk.4" operation="flash" partition="system"/>
<step MD5="e4f7243e65dc6df1a79ad5f71e3bf938" filename="system.img_sparsechunk.5" operation="flash" partition="system"/>
<step MD5="80aaa96d64637575f88dc4daa131123b" filename="system.img_sparsechunk.6" operation="flash" partition="system"/>
<step MD5="bcde37037afb3ccb66e7b47427af9229" filename="system.img_sparsechunk.7" operation="flash" partition="system"/>
<step MD5="afa92c57f8402cd7223c777cf1de5f44" filename="system.img_sparsechunk.8" operation="flash" partition="system"/>
<step MD5="1cd02b2893144cf069a23f6b1c3b6c96" filename="system.img_sparsechunk.9" operation="flash" partition="system"/>
<step MD5="c18a83c64aaf741df0c6ed10935348b8" filename="system_b.img_sparsechunk.0" operation="flash" partition="system_b"/>
<step MD5="ad7f6a528952be93f26faaebfd1bf83d" filename="system_b.img_sparsechunk.1" operation="flash" partition="system_b"/>
<step MD5="0046992361c02076555c97cec8f29a53" filename="system_b.img_sparsechunk.2" operation="flash" partition="system_b"/>
<step MD5="b7a1f1b1af66182476230d69fd2ad752" filename="vendor.img_sparsechunk.0" operation="flash" partition="vendor"/>
<step MD5="0ffd0cec1719a75ecb54fa17b24ad4d4" filename="vendor.img_sparsechunk.1" operation="flash" partition="vendor"/>
<step MD5="1097de93ede575d7dcb33fda3a1a6776" filename="oem.img" operation="flash" partition="oem"/>
<step MD5="1834a559d2b7d9a09feae082e1586068" filename="oem_other.img" operation="flash" partition="oem_b"/>
<step operation="erase" partition="DDR"/>
<step operation="oem" var="fb_mode_clear"/>
</steps>
</flashing>