[Moto X Q&A] mcktech:
Sorry for no feedback... i didt have time for my beloved phone...

i read the threads, but there are many unrelated things that i lost the trail!

I downloaded a file... :

XT1058_GHOST_RETBR_5.1_LPA23.12-15_cid12_CFC.xml.zip

This is a RSDlite file... isnt it? but... it contains:

boot.img
factory_version_info_cfc.txt
flashfile.xml
fsg.mbn
gpt.bin
logo.bin
motoboot.img
NON-HLOS.bin
recovery.img
servicefile.xml
system.img

if i unlock my bootloader and flash SOME of this files (boot.img, system.img, and logo.bin)... with mfastboot.. what happend?

boot.img, system.img... and what else do i need?.. (I know that i dont have to flash motoboot.img and gpt.bin in order to leave my bootloader alone)

I m going to get 5.1 with KK bootloader doing this or i will brick my phone?.. (dont?. Why??)

Should i flash the other files?

fsg.mbn (dont know what this is)

NON-HLOS.bin (modem?... should i flash it?... should i erase modemst1 and st2 partition if i flash this?)

recovery.img (what if i want to put TWRP recovery? .. can i flash TWRP.img instead of recovery.img???)

is erasing data necessary?..

flashfile.xml file for RSDlite is:

<?xml version="1.0" ?>
<flashing>
<header>
<phone_model model="ghost_retbr"/>
<software_version version="ghost_retbr-user 5.1 LPA23.12-15 20 release-keysMSM8960PRO_BP_23255.138.89.00R"/>
<interfaces>
<interface name="AP"/>
</interfaces>
</header>
<steps interface="AP">
<step operation="getvar" var="max-download-size"/>
<step operation="oem" var="fb_mode_set"/>
<step MD5="3e8836a120a564338f472f0895c947c8" filename="gpt.bin" operation="flash" partition="partition"/>
<step MD5="d089f063b897f108729d6ffcf63679e2" filename="motoboot.img" operation="flash" partition="motoboot"/>
<step MD5="4bfe6f5412c1c419150bf25f953b61d4" filename="logo.bin" operation="flash" partition="logo"/>
<step MD5="d2d88677984930fc2a0e8e167bbccad0" filename="boot.img" operation="flash" partition="boot"/>
<step MD5="e55b202a063a58cc1d7b47dcb65658cf" filename="recovery.img" operation="flash" partition="recovery"/>
<step MD5="35a58369963b281e963920bd4d9e1b77" filename="system.img" operation="flash" partition="system"/>
<step MD5="3a094721acc8fcd15ae114c0854f3395" filename="NON-HLOS.bin" operation="flash" partition="modem"/>
<step operation="erase" partition="modemst1"/>
<step operation="erase" partition="modemst2"/>
<step MD5="76b8c66ef4480e84a8f1b69800541115" filename="fsg.mbn" operation="flash" partition="fsg"/>
<step operation="erase" partition="cache"/>
<step operation="erase" partition="userdata"/>
<step operation="erase" partition="customize"/>
<step operation="erase" partition="clogo"/>
<step operation="oem" var="fb_mode_clear"/>
</steps>
</flashing>

if i go with RSDLite... this modifications will work for what i want??

<?xml version="1.0" ?>
<flashing>
<header>
<phone_model model="ghost_retbr"/>
<software_version version="ghost_retbr-user 5.1 LPA23.12-15 20 release-keysMSM8960PRO_BP_23255.138.89.00R"/>
<interfaces>
<interface name="AP"/>
</interfaces>
</header>
<steps interface="AP">
---------DELETE <step operation="getvar" var="max-download-size"/>
<step operation="oem" var="fb_mode_set"/>
---------DELETE <step MD5="3e8836a120a564338f472f0895c947c8" filename="gpt.bin" operation="flash" partition="partition"/>
---------DELETE <step MD5="d089f063b897f108729d6ffcf63679e2" filename="motoboot.img" operation="flash" partition="motoboot"/>
<step MD5="4bfe6f5412c1c419150bf25f953b61d4" filename="logo.bin" operation="flash" partition="logo"/>
<step MD5="d2d88677984930fc2a0e8e167bbccad0" filename="boot.img" operation="flash" partition="boot"/>
---------DELETE <step MD5="e55b202a063a58cc1d7b47dcb65658cf" filename="recovery.img" operation="flash" partition="recovery"/>
<step MD5="35a58369963b281e963920bd4d9e1b77" filename="system.img" operation="flash" partition="system"/>
<step MD5="3a094721acc8fcd15ae114c0854f3395" filename="NON-HLOS.bin" operation="flash" partition="modem"/>
<step operation="erase" partition="modemst1"/>
<step operation="erase" partition="modemst2"/>
<step MD5="76b8c66ef4480e84a8f1b69800541115" filename="fsg.mbn" operation="flash" partition="fsg"/>
<step operation="erase" partition="cache"/>
---------DELETE <step operation="erase" partition="userdata"/>
---------DELETE <step operation="erase" partition="customize"/>
<step operation="erase" partition="clogo"/>
<step operation="oem" var="fb_mode_clear"/>
</steps>
</flashing>

Should i delete any other line??.. (or undelete?)

And most important..

Can i flash stock rom if something goes wrong?.. (loading logo hangs... dont like LP.. etc?) or a rom backup (if i find the way to make a backup of my actual rom.. =)... can it be done with TWRP?)

Thanks!... and sorry if i'm asking something basic... but .. the more i read, more confused i am!