I have a Motorola X 2013 Dev edition unlocked (XT1053) that I'm trying to flash the stock firmware onto after using Cyanogenmod12. However, the process is failing. Following Motorola's instructions...
After downloading the image for your device:
Make sure you have a Moto Pure Edition or a Developer Edition device. Make sure you download the corresponding recovery image from the above portal. To flash, put the phone in fastboot mode: 1. Power OFF your device 2. Then Power ON + Volume Down Alternatively, you can reboot into fastboot mode if you have adb...adb reboot bootloader. Next flash the images using fastboot: $ fastboot flash partition gpt.bin $ fastboot flash motoboot motoboot.img $ fastboot reboot-bootloader $ fastboot flash logo logo.bin $ fastboot flash boot boot.img $ fastboot flash recovery recovery.img $ fastboot flash system system.img $ fastboot flash modem NON-HLOS.bin $ fastboot erase modemst1 $ fastboot erase modemst2 $ fastboot flash fsg fsg.mbn $ fastboot reboot You also have the option to erase all the data on your device with $ fastboot erase userdata $ fastboot erase cache
I apologize for the horrible formatting there...
When I try to flash gpt.bin, the following error appears on my phone
downgraded security version update gpt_main version failed preflash validation failed for GPT
Now I've looked into this quite a bit and found that it is caused by motorola's own security protections. The only thing I can find to get around it is waiting for the new security patches. However, those threads I find are pre dropped support. Cyanogenmod is probably responsible for this since it is still getting security patches. Therefore, there never will be an updated stock to flash.
How do I get around this issue? I have a nandroid backup of the phone pre-cyanogen, but I'd rather just flash a clean stock than use the backup if possible.