[X Style (Pure) Android Development] akshaycool43:
Bad rom zip available on internet

I faced many issues with all stock rom zip for Moto X Style(XT1572) Indian version. They were mainly of below types.

1. Could not use "fastboot oem lock begin" cause after this all other further commands will fail showing error "not a valid sign".

2. Was never able to flash partition "gpt", always some error

3. Though all those rom started my phone normal(with Bootloader unlocked warning), but was not able to install OTA updates

4. I was using cyanogenmod based rom.

Solution: After doing a lot of search on internet, came across one rom which made everything normal, no error.

mirrors.lolinet.com/firmware/moto/clark/official/RETASIA/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml.zip

Please use https with above url.

Here is the output of fastboot commands

~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot oem lock begin
...
(bootloader) Please fully flash the signed build before locking phone!
OKAY [ 0.006s]
finished. total time: 0.006s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.098s]
writing 'partition'...
(bootloader) This may take a few seconds, if a
(bootloader) different partition table is being
(bootloader) flashed since we need to backup
(bootloader) and restore a few partitions
(bootloader) Flashing primary GPT image...
(bootloader) Flashing backup GPT image...
OKAY [ 0.953s]
finished. total time: 1.051s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash bootloader bootloader.img
target reported max download size of 536870912 bytes
sending 'bootloader' (2699 KB)...
OKAY [ 0.080s]
writing 'bootloader'...
(bootloader) flashing aboot ...
(bootloader) flashing sbl1 ...
(bootloader) flashing pmic ...
(bootloader) flashing rpm ...
(bootloader) flashing tz ...
(bootloader) flashing hyp ...
(bootloader) flashing sdi ...
OKAY [ 2.302s]
finished. total time: 2.382s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash logo logo.bin
target reported max download size of 536870912 bytes
sending 'logo' (3687 KB)...
OKAY [ 0.131s]
writing 'logo'...
OKAY [ 0.148s]
finished. total time: 0.279s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash boot boot.img
target reported max download size of 536870912 bytes
sending 'boot' (40960 KB)...
OKAY [ 0.972s]
writing 'boot'...
OKAY [ 1.906s]
finished. total time: 2.878s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash recovery recovery.img
target reported max download size of 536870912 bytes
sending 'recovery' (41040 KB)...
OKAY [ 0.994s]
writing 'recovery'...
OKAY [ 1.926s]
finished. total time: 2.920s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash system system.img_sparsechunk.0
target reported max download size of 536870912 bytes
sending 'system' (261851 KB)...
OKAY [ 6.423s]
writing 'system'...
OKAY [ 9.978s]
finished. total time: 16.401s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash system system.img_sparsechunk.1
target reported max download size of 536870912 bytes
sending 'system' (247760 KB)...
OKAY [ 5.554s]
writing 'system'...
OKAY [ 8.923s]
finished. total time: 14.476s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash system system.img_sparsechunk.2
target reported max download size of 536870912 bytes
sending 'system' (256654 KB)...
OKAY [ 5.763s]
writing 'system'...
OKAY [ 8.013s]
finished. total time: 13.776s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash system system.img_sparsechunk.3
target reported max download size of 536870912 bytes
sending 'system' (254257 KB)...
OKAY [ 5.795s]
writing 'system'...
OKAY [ 8.771s]
finished. total time: 14.567s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash system system.img_sparsechunk.4
target reported max download size of 536870912 bytes
sending 'system' (256065 KB)...
OKAY [ 5.752s]
writing 'system'...
OKAY [ 8.333s]
finished. total time: 14.085s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash system system.img_sparsechunk.5
target reported max download size of 536870912 bytes
sending 'system' (254362 KB)...
OKAY [ 5.612s]
writing 'system'...
OKAY [ 8.106s]
finished. total time: 13.719s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash system system.img_sparsechunk.6
target reported max download size of 536870912 bytes
sending 'system' (262140 KB)...
OKAY [ 5.925s]
writing 'system'...
OKAY [ 20.272s]
finished. total time: 26.198s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash system system.img_sparsechunk.7
target reported max download size of 536870912 bytes
sending 'system' (249483 KB)...
OKAY [ 5.650s]
writing 'system'...
OKAY [ 13.043s]
finished. total time: 18.693s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash system system.img_sparsechunk.8
target reported max download size of 536870912 bytes
sending 'system' (32776 KB)...
OKAY [ 0.783s]
writing 'system'...
OKAY [ 0.953s]
finished. total time: 1.736s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash modem NON-HLOS.bin
target reported max download size of 536870912 bytes
sending 'modem' (41686 KB)...
OKAY [ 1.076s]
writing 'modem'...
OKAY [ 1.296s]
finished. total time: 2.372s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.046s]
finished. total time: 0.046s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.008s]
finished. total time: 0.008s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash fsg fsg.mbn
target reported max download size of 536870912 bytes
sending 'fsg' (704 KB)...
OKAY [ 0.096s]
writing 'fsg'...
OKAY [ 0.198s]
finished. total time: 0.294s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash bluetooth BTFM.bin
target reported max download size of 536870912 bytes
sending 'bluetooth' (1295 KB)...
OKAY [ 0.096s]
writing 'bluetooth'...
OKAY [ 0.145s]
finished. total time: 0.242s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot erase cache
erasing 'cache'...
OKAY [ 0.125s]
finished. total time: 0.125s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot erase userdata
erasing 'userdata'...
OKAY [ 1.154s]
finished. total time: 1.154s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot erase customize
erasing 'customize'...
OKAY [ 0.009s]
finished. total time: 0.010s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot erase clogo
erasing 'clogo'...
OKAY [ 0.012s]
finished. total time: 0.012s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot oem lock
...
(bootloader) Phone is locked successfully!
OKAY [ 2.112s]
finished. total time: 2.112s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot reboot
rebooting...

finished. total time: 0.001s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot flash logo logo.bin
target reported max download size of 536870912 bytes
sending 'logo' (3687 KB)...
OKAY [ 0.090s]
writing 'logo'...
OKAY [ 0.098s]
finished. total time: 0.188s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ fastboot reboot
rebooting...

finished. total time: 0.001s
~/Downloads/untitled folder/XT1572_CLARK_RETASIA_DS_6.0_MPHS24.49-18-4_cid7_subsidy-DEFAULT_CFC.xml$ cd ..
~/Downloads/untitled folder$ fastboot flash logo logo.bin
target reported max download size of 536870912 bytes
sending 'logo' (3687 KB)...
OKAY [ 0.126s]
writing 'logo'...
OKAY [ 0.112s]
finished. total time: 0.238s
~/Downloads/untitled folder$ fastboot reboot
rebooting...

finished. total time: 0.001s

Now everything is fine. Thank you XDA.