[Moto G Q&A, Help & Troubleshooting] miguelf90:
Servicefile.xml:

<?xml version="1.0" ?>

<flashing>

<header>

<phone_model model="falcon"/>

<software_version version="falcon_gpe-user 5.1 LMY47M.M001 6 release-keysMSM8626BP_1032.3112.97.00R"/>

<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="57bb7a57ef4364259f696611b0e43f90" filename="gpt.bin" operation="flash" partition="partition"/>

<step MD5="8c3989f5384b41cf3f954292185db690" filename="motoboot.img" operation="flash" partition="motoboot"/>

<step MD5="05c18ef7ff720e9a53c85ecfe1f52f9c" filename="logo.bin" operation="flash" partition="logo"/>

<step MD5="244fb589549ede1594cce8f027fd0b50" filename="boot.img" operation="flash" partition="boot"/>

<step MD5="c35c83de4c6f133c59c6c2b5fa5fe6b8" filename="recovery.img" operation="flash" partition="recovery"/>

<step MD5="387a9df4c16d5b0f59fcedefd866344b" filename="system.img_sparsechunk.0" operation="flash" partition="system"/>

<step MD5="0b41f3d53c7b18fd64bea1919192dbd6" filename="system.img_sparsechunk.1" operation="flash" partition="system"/>

<step MD5="ad23bb6b83cab710d381be672a98a00a" filename="system.img_sparsechunk.2" operation="flash" partition="system"/>

<step MD5="8bb674836748ae7c41aadde53584752a" filename="system.img_sparsechunk.3" operation="flash" partition="system"/>

<step MD5="a38d6e57671ba9d9960611efcd2e7a38" filename="NON-HLOS.bin" operation="flash" partition="modem"/>

<step operation="erase" partition="modemst1"/>

<step operation="erase" partition="modemst2"/>

<step MD5="c4aebdc8224f31dce721466e246e62fa" filename="fsg.mbn" operation="flash" partition="fsg"/>

<step operation="oem" var="fb_mode_clear"/>

</steps>

</flashing>

flashfile.xml:

<?xml version="1.0" ?>

<flashing>

<header>

<phone_model model="falcon"/>

<software_version version="falcon_gpe-user 5.1 LMY47M.M001 6 release-keysMSM8626BP_1032.3112.97.00R"/>

<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="57bb7a57ef4364259f696611b0e43f90" filename="gpt.bin" operation="flash" partition="partition"/>

<step MD5="8c3989f5384b41cf3f954292185db690" filename="motoboot.img" operation="flash" partition="motoboot"/>

<step MD5="05c18ef7ff720e9a53c85ecfe1f52f9c" filename="logo.bin" operation="flash" partition="logo"/>

<step MD5="244fb589549ede1594cce8f027fd0b50" filename="boot.img" operation="flash" partition="boot"/>

<step MD5="c35c83de4c6f133c59c6c2b5fa5fe6b8" filename="recovery.img" operation="flash" partition="recovery"/>

<step MD5="387a9df4c16d5b0f59fcedefd866344b" filename="system.img_sparsechunk.0" operation="flash" partition="system"/>

<step MD5="0b41f3d53c7b18fd64bea1919192dbd6" filename="system.img_sparsechunk.1" operation="flash" partition="system"/>

<step MD5="ad23bb6b83cab710d381be672a98a00a" filename="system.img_sparsechunk.2" operation="flash" partition="system"/>

<step MD5="8bb674836748ae7c41aadde53584752a" filename="system.img_sparsechunk.3" operation="flash" partition="system"/>

<step MD5="a38d6e57671ba9d9960611efcd2e7a38" filename="NON-HLOS.bin" operation="flash" partition="modem"/>

<step operation="erase" partition="modemst1"/>

<step operation="erase" partition="modemst2"/>

<step MD5="c4aebdc8224f31dce721466e246e62fa" 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>