[Moto G6 Questions & Answers] Galoso:
Pretty interesting.

I belive I saw the right code regarding partition on GPT file.

I'm attaching all files that I saw while handling the process. and stock (this one I made no changes to make qfil deal with rawprogram0.xml)

<?xml version="1.0" ?>
<data>
<!--NOTE: This is an ** Autogenerated file **-->
<!--NOTE: Sector size is 512bytes-->
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="xbl_a" num_partition_sectors="7168" physical_partition_number="0" size_in_KB="3584.0" sparse="false" start_byte_hex="0x4400" start_sector="34"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="xbl_b" num_partition_sectors="7168" physical_partition_number="0" size_in_KB="3584.0" sparse="false" start_byte_hex="0x384400" start_sector="7202"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="tz_a.mbn" label="tz_a" num_partition_sectors="4096" physical_partition_number="0" size_in_KB="2048.0" sparse="false" start_byte_hex="0x704400" start_sector="14370"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="tz_b.mbn" label="tz_b" num_partition_sectors="4096" physical_partition_number="0" size_in_KB="2048.0" sparse="false" start_byte_hex="0x904400" start_sector="18466"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="rpm_a.mbn" label="rpm_a" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0xb04400" start_sector="22562"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="rpm_b.mbn" label="rpm_b" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0xb84400" start_sector="23586"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="hyp_a.mbn" label="hyp_a" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0xc04400" start_sector="24610"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="hyp_b.mbn" label="hyp_b" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0xc84400" start_sector="25634"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="devcfg_a" num_partition_sectors="256" physical_partition_number="0" size_in_KB="128.0" sparse="false" start_byte_hex="0xd04400" start_sector="26658"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="devcfg_b" num_partition_sectors="256" physical_partition_number="0" size_in_KB="128.0" sparse="false" start_byte_hex="0xd24400" start_sector="26914"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="pmic_a.mbn" label="pmic_a" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0xd44400" start_sector="27170"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="pmic_b.mbn" label="pmic_b" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0xdc4400" start_sector="28194"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="abl_a" num_partition_sectors="2048" physical_partition_number="0" size_in_KB="1024.0" sparse="false" start_byte_hex="0xe44400" start_sector="29218"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="abl_b" num_partition_sectors="2048" physical_partition_number="0" size_in_KB="1024.0" sparse="false" start_byte_hex="0xf44400" start_sector="31266"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="cmnlib_a" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0x1044400" start_sector="33314"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="cmnlib64_a" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0x10c4400" start_sector="34338"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="cmnlib_b" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0x1144400" start_sector="35362"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="cmnlib64_b" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0x11c4400" start_sector="36386"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="keymaster_a" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0x1244400" start_sector="37410"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="keymaster_b" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0x12c4400" start_sector="38434"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="storsec_a" num_partition_sectors="256" physical_partition_number="0" size_in_KB="128.0" sparse="false" start_byte_hex="0x1344400" start_sector="39458"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="storsec_b" num_partition_sectors="256" physical_partition_number="0" size_in_KB="128.0" sparse="false" start_byte_hex="0x1364400" start_sector="39714"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="prov_a" num_partition_sectors="512" physical_partition_number="0" size_in_KB="256.0" sparse="false" start_byte_hex="0x1384400" start_sector="39970"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="prov_b" num_partition_sectors="512" physical_partition_number="0" size_in_KB="256.0" sparse="false" start_byte_hex="0x13c4400" start_sector="40482"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="modem_a" num_partition_sectors="225280" physical_partition_number="0" size_in_KB="112640.0" sparse="false" start_byte_hex="0x1404400" start_sector="40994"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="modem_b" num_partition_sectors="225280" physical_partition_number="0" size_in_KB="112640.0" sparse="false" start_byte_hex="0x8204400" start_sector="266274"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="fsc" num_partition_sectors="2" physical_partition_number="0" size_in_KB="1.0" sparse="false" start_byte_hex="0xf004400" start_sector="491554"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="ssd" num_partition_sectors="16" physical_partition_number="0" size_in_KB="8.0" sparse="false" start_byte_hex="0xf004800" start_sector="491556"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="dsp_a" num_partition_sectors="32768" physical_partition_number="0" size_in_KB="16384.0" sparse="false" start_byte_hex="0xf006800" start_sector="491572"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="dsp_b" num_partition_sectors="32768" physical_partition_number="0" size_in_KB="16384.0" sparse="false" start_byte_hex="0x10006800" start_sector="524340"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="ddr" num_partition_sectors="2048" physical_partition_number="0" size_in_KB="1024.0" sparse="false" start_byte_hex="0x11006800" start_sector="557108"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="utags" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0x11106800" start_sector="559156"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="utagsBackup" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0x11186800" start_sector="560180"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="modemst1" num_partition_sectors="4096" physical_partition_number="0" size_in_KB="2048.0" sparse="false" start_byte_hex="0x11206800" start_sector="561204"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="modemst2" num_partition_sectors="4096" physical_partition_number="0" size_in_KB="2048.0" sparse="false" start_byte_hex="0x11406800" start_sector="565300"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="fsg_a" num_partition_sectors="20480" physical_partition_number="0" size_in_KB="10240.0" sparse="false" start_byte_hex="0x11606800" start_sector="569396"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="fsg_b" num_partition_sectors="20480" physical_partition_number="0" size_in_KB="10240.0" sparse="false" start_byte_hex="0x12006800" start_sector="589876"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="persist.img" label="persist" num_partition_sectors="65536" physical_partition_number="0" size_in_KB="32768.0" sparse="false" start_byte_hex="0x12a06800" start_sector="610356"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="frp" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0x14a06800" start_sector="675892"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="cid" num_partition_sectors="256" physical_partition_number="0" size_in_KB="128.0" sparse="false" start_byte_hex="0x14a86800" start_sector="676916"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="carrier" num_partition_sectors="32768" physical_partition_number="0" size_in_KB="16384.0" sparse="false" start_byte_hex="0x14aa6800" start_sector="677172"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="metadata" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512.0" sparse="false" start_byte_hex="0x15aa6800" start_sector="709940"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="kpan" num_partition_sectors="16384" physical_partition_number="0" size_in_KB="8192.0" sparse="false" start_byte_hex="0x15b26800" start_sector="710964"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="boot_a" num_partition_sectors="131072" physical_partition_number="0" size_in_KB="65536.0" sparse="false" start_byte_hex="0x16326800" start_sector="727348"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="boot_b" num_partition_sectors="131072" physical_partition_number="0" size_in_KB="65536.0" sparse="false" start_byte_hex="0x1a326800" start_sector="858420"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="dto_a" num_partition_sectors="32768" physical_partition_number="0" size_in_KB="16384.0" sparse="false" start_byte_hex="0x1e326800" start_sector="989492"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="dto_b" num_partition_sectors="32768" physical_partition_number="0" size_in_KB="16384.0" sparse="false" start_byte_hex="0x1f326800" start_sector="1022260"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="misc" num_partition_sectors="2048" physical_partition_number="0" size_in_KB="1024.0" sparse="false" start_byte_hex="0x20326800" start_sector="1055028"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="logfs" num_partition_sectors="16384" physical_partition_number="0" size_in_KB="8192.0" sparse="false" start_byte_hex="0x20426800" start_sector="1057076"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="apdp" num_partition_sectors="512" physical_partition_number="0" size_in_KB="256.0" sparse="false" start_byte_hex="0x20c26800" start_sector="1073460"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="msadp" num_partition_sectors="512" physical_partition_number="0" size_in_KB="256.0" sparse="false" start_byte_hex="0x20c66800" start_sector="1073972"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="dpo" num_partition_sectors="2" physical_partition_number="0" size_in_KB="1.0" sparse="false" start_byte_hex="0x20ca6800" start_sector="1074484"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="devinfo" num_partition_sectors="8" physical_partition_number="0" size_in_KB="4.0" sparse="false" start_byte_hex="0x20ca6c00" start_sector="1074486"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="bluetooth_a" num_partition_sectors="9216" physical_partition_number="0" size_in_KB="4608.0" sparse="false" start_byte_hex="0x20ca7c00" start_sector="1074494"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="bluetooth_b" num_partition_sectors="9216" physical_partition_number="0" size_in_KB="4608.0" sparse="false" start_byte_hex="0x21127c00" start_sector="1083710"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="logo_a" num_partition_sectors="66848" physical_partition_number="0" size_in_KB="33424.0" sparse="false" start_byte_hex="0x215a7c00" start_sector="1092926"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="logo_b" num_partition_sectors="66848" physical_partition_number="0" size_in_KB="33424.0" sparse="false" start_byte_hex="0x2364bc00" start_sector="1159774"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="vbmeta_a" num_partition_sectors="128" physical_partition_number="0" size_in_KB="64.0" sparse="false" start_byte_hex="0x256efc00" start_sector="1226622"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="vbmeta_b" num_partition_sectors="128" physical_partition_number="0" size_in_KB="64.0" sparse="false" start_byte_hex="0x256ffc00" start_sector="1226750"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="padA" num_partition_sectors="34224" physical_partition_number="0" size_in_KB="17112.0" sparse="false" start_byte_hex="0x2570fc00" start_sector="1226878"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="hw" num_partition_sectors="16384" physical_partition_number="0" size_in_KB="8192.0" sparse="false" start_byte_hex="0x267c5c00" start_sector="1261102"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="sp" num_partition_sectors="16384" physical_partition_number="0" size_in_KB="8192.0" sparse="false" start_byte_hex="0x26fc5c00" start_sector="1277486"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="oem_a" num_partition_sectors="491520" physical_partition_number="0" size_in_KB="245760.0" sparse="false" start_byte_hex="0x277c5c00" start_sector="1293870"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="oem_b" num_partition_sectors="491520" physical_partition_number="0" size_in_KB="245760.0" sparse="false" start_byte_hex="0x367c5c00" start_sector="1785390"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="vendor_a" num_partition_sectors="1867776" physical_partition_number="0" size_in_KB="933888.0" sparse="false" start_byte_hex="0x457c5c00" start_sector="2276910"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="" label="vendor_b" num_partition_sectors="1867776" physical_partition_number="0" size_in_KB="933888.0" sparse="false" start_byte_hex="0x7e7c5c00" start_sector="4144686"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="system.img" label="system_a" num_partition_sectors="5636096" physical_partition_number="0" size_in_KB="2818048.0" sparse="false" start_byte_hex="0xb77c5c00L" start_sector="6012462"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="system.img" label="system_b" num_partition_sectors="5636096" physical_partition_number="0" size_in_KB="2818048.0" sparse="false" start_byte_hex="0x1637c5c00L" start_sector="11648558"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="userdata.img" label="userdata" num_partition_sectors="0" physical_partition_number="0" size_in_KB="0" sparse="false" start_byte_hex="0x20f7c5c00L" start_sector="17284654"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="gpt_main0.bin" label="PrimaryGPT" num_partition_sectors="34" physical_partition_number="0" size_in_KB="17.0" sparse="false" start_byte_hex="0x0" start_sector="0"/>
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="gpt_backup0.bin" label="BackupGPT" num_partition_sectors="33" physical_partition_number="0" size_in_KB="16.5" sparse="false" start_byte_hex="(512*NUM_DISK_SECTORS)-16896." start_sector="NUM_DISK_SECTORS-33."/>
</data>