Edit : - 11/3/14 Here Is tool kit for Boost 4.4.2 restore :- https://www.dropbox.com/sh/ryfp0in10o4wyzs/AAAo4-wwJwRptWsi9pXcLU4Ua
_____________________________________________________________
1- Download and install Motorola Drivers: Windows 2- Download and extract the stock firmware of your choosing from: Link-1 or Link-2 The firmwares with '_umtsds' in the file name are for the 'dual-sim' versions of the Moto G DONT FLASH WRONG FIRWARES !! select correct carrier and sim preference we will need 7zip like software to extract .tar.gz 3- if the firmware file you downloaded is a .xml.zip file then download Motorola Fastboot mfastboot-v2.zip and extract the .exe into the same folder as the stock firmware files (the same folder as the .bin and .img files). If your firmware is a .tar.gz file then skip this step. 4- Get ADB (if you don't already have this), I suggest downloading and installing Minimal ADB and Fastboot by shimp208 Here
Now real process begins
1) Reboot the phone into bootloader mode. There are 2 ways to do this.
The 'hardware' way.
a) Unplug the USB cable and power off the phone.
Press and hold 'Volume down' then power on the phone.
c) Connect USB cable to your computer.
The 'software' way.
a) Enable developer mode on the Moto G (Settings-> 'About Phone'. Tap 7 times on 'Build Number')
Enable USB debugging. (Settings -> 'Developer options' -> 'USB Debugging' -> check)
c) Connect phone to computer via USB, you should see a new ADB device detected and drivers installed.
d) Open "Minimal ADB and Fastboot". Type: adb reboot-bootloader
You should see the Moto G bootloader screen with the following options:
Normal Powerup
Recovery
Factory
Switch Console [NULL: null]
Barcodes
BP Tools
2) Open a command prompt / terminal (Start -> cmd.exe in Win7) and browse to the folder with the extracted firmware.
In my case:
cd c:\falcon_boost_user_4.4.2_KXB20.9-1.10-1.18_18_release-keys-cid9
3a) If you downloaded and extracted a firmware in .tar.gz format
In windows, run the 'flashall.bat' script Type:
flashall.bat /eu
The "/eu" switch forces userdata to be erased from the device, this is the same as a factory reset or wipe this is recommended when restoring stock firmware.
In Linux/OSX run the flashall.sh script. Type:
chmod +x flashall.sh
./flashall.sh
Downgrading: The scripts will fail with an error on downgrading from 4.4.2 to 4.3. Open the script in a text editor (notepad) and delete (or comment) the following: Lines 89-90 in the flashall.bat file:
CALL :fastboot_flash partition gpt.bin
IF %errorlevel% NEQ 0 EXIT /b 1
Lines 120-121 in the flashall.sh file:
run $fastboot -s "$serial_number" flash partition gpt.bin
if [ $? -ne 0 ]; then echo "ERROR: fastboot failed."; exit -1; fi
3b) If you downloaded and extracted a firmware in .xml.zip format.
Flash each of the partitions in sequence using mfastboot, you need to enter the following commands one-by-one checking that each one returns an [OKAY]
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk1
mfastboot flash system system.img_sparsechunk2
mfastboot flash system system.img_sparsechunk3
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot reboot
Downgrading:
The 1st command "mfastboot flash partition gpt.bin" will fail on 4.4.2 to 4.3 downgrade.
Skip this command if you are downgrading and continue with the other commands, which should work.
4) Wait, you should now be rebooted into a fully stock Moto G firmware.
These steps can be done on unlocked or locked Boot-Loader !
Follow these instructions at your own risk. If something goes wrong don't blame me!
most of this info taken from t-bon3 on xda [Moto G thread]