[Moto X Android Development] mattlgroff:
If you are on 4.4.2 (besides T-Mobile US / Retail US / Verizon US Retail) please do not use this Restore Utility yet. There is no firmware for the X on 4.4.2...yet!​

This is ONLY for the big four US carrier variants and the two DEVELOPER EDITION variants of the Motorola Moto X! Do NOT use this on US Cellular, Rogers, Republic Wireless, or any other carrier you can think of.

Also, don't Restore your Moto X is the battery is low. Charge it to 100% or purchase a factory adapter from Team Black Hat so you'll always be fine flashing and never have to worry about battery life when Restoring.

#include <std/disclaimer.h>
/*
* I am not responsible for bricked devices, dead SD cards, thermonuclear
* war, or the current economic crisis caused by you following these
* directions. YOU are choosing to make these modificiations, and
* if you point your finger at me for messing up your device, I will
* laugh at you.
*/

Some of you who have been with Motorola devices for a while may be familiar with my Utilities from previous devices such as the DROID RAZR XT912 and the DROID RAZR HD XT926. This one is in some ways very similar but in others very different. I could have added support for more carriers and the rest of the X8 Motorola devices, but that would mean updating and hosting all the many more complete fastboot packages, which is a neither fun or an enjoyable experience for me. If you can handle updating and hosting a Moto X, DROID Ultra, DROID MAXX, or DROID Mini firmware then get in touch with me and the Utility can be updated to add support.

Moto X Restore Utility ---- TEMPORARY DOWNLOAD TESTS! NOT FINAL RESTING PLACE

<MODERATOR EDIT - LINKS REMOVED AT THE REQUEST OF THE OP>

Filesize:

This time around, the Utility itself is a filesize of under 1 Megabyte for each Operating System version. However, please understand that when you download a firmware inside the Utility (and these usually range from 700MB archived to 2GB unarchived) that it will take up more space on your machine than the 1 Megabyte.

Recommend Specs:

2GB+ Available RAM

3GB+ Available Storage Space

---If your computer does not meet these, I would not recommend flashing your phone with it. It may still work, but if you are flashing a 1GB SYSTEM.IMG file and you don't have the RAM to do it, your system will slow to a crawl or possibly not flash at all.---

Windows Instructions

Video instructions provided by DroidModderX

Video instructions provided by tomgst/RootJunky.com

Extract .zip to its own folder on the Desktop. (Root of the C:\ drive can sometimes cause issues)

Double click the ".bat" file. This will be called "RunWindowsMotoXRestoreUtility.bat" the image is just for reference.

-----------------------------------------------------------------------------------------------------------------------------------------

Run --- Option 1. Download latest USB Drivers. [Must be done on first run!]

This process should be self-explanatory but I will explain it anyway. One you choose this option it will begin downloading the 32 bit and 64 bit Windows driver packages for the Moto X. When it's finished downloading, you will press any key to return to the main menu and open up the folder where the USB Drivers downloaded too. Install the proper one for your system.

If you are unsure which package is right for you?

1. Open System by clicking the Start button Picture of the Start button, right-clicking Computer, and then clicking Properties.

2. Under System, you can view the system type. (32 or 64)

-----------------------------------------------------------------------------------------------------------------------------------------

Run --- Option 2. Download latest firmware. [Must be done on first run!]

Choose the firmware that is right for your device. If you are not 100% positive that your device is one of the options listed, do NOT continue at this point. Post here and someone should be able to assist I'm sure. Again though, this process will be self-explanatory but I'll explain it anyway. The Utility will begin downloading the firmware once you again confirm that you chose the right one. This can take a long time depending on your computer's download speed!. After it finishes downloading the .zip it will automatically start extracting. You can see the progress bar for these to be able to guess how much time is left. Moving onto actually flashing the firmware next!

-----------------------------------------------------------------------------------------------------------------------------------------

Run --- Option 3. Restore Moto X [Must be done in Fastboot mode!]

How to put the Moto X into Fastboot mode:

Video by Tomsgt/RootJunky.com

or...

Completely power off the Moto X and have it unplugged from anything.

---To force your Moto X to power off hold the Volume Up key and the Power button for 8 seconds or until it turns off---

Quickly TAP the power button and then HOLD DOWN the Volume Down Key until the Fastboot menu pops up. Once there plug in your USB cable to your computer and the Moto X and don't press anything else at this menu. If you are at the menu, you are in Fastboot mode! :)

Once you are in Fastboot mode with the USB cable connected to the Moto X as well as the computer you are using, AND you have installed the proper drivers from the previous option then accept the warnings and continue. Follow the on-screen instructions. READ EVERYTHING! I cannot stress this enough!

You should finally come across your choice. Should you wipe, or shouldn't you wipe? I'd highly recommend wiping everything. Especially if coming from an earlier version of software or from a Custom ROM. Pick your option and the flash will begin! Sit back, relax, and let the Utility do its work.

Mac OS X Instructions:

Download and extract the Utility .zip file. We will call this extracted folder the Utility Folder from now on in the instructions.

Open up Terminal. (Applications -> Utilities -> Terminal)

Type in the following command without the text inside or the *** symbols:

cd ***DRAG Utility Folder HERE***

Then hit the Enter/Return key. This will bring your terminal inside of the folder and we can begin the next step.

Type in the following commands:

chmod +x ./run.sh

./run.sh

You'll notice something about that last command depending on how high a version of OS X you are running. "Application is from an Unknown Developer blah blah blah." At least in OS X Mavericks, you fix this by going to Settings > Security & Privacy > General and allowing the Utility to be able to run. Then you'll need to type into the terminal again:

./run.sh

and the Utility should now come up.

-----------------------------------------------------------------------------------------------------------------------------------------

Run --- Option 1. Download latest firmware. [Must be done on first run!]

Choose the firmware that is right for your device. If you are not 100% positive that your device is one of the options listed, do NOT continue at this point. Post here and someone should be able to assist I'm sure. Again though, this process will be self-explanatory but I'll explain it anyway. The Utility will begin downloading the firmware once you again confirm that you chose the right one. This can take a long time depending on your computer's download speed!. After it finishes downloading the .zip it will automatically start extracting. You can see the progress bar for these to be able to guess how much time is left. Moving onto actually flashing the firmware next!

-----------------------------------------------------------------------------------------------------------------------------------------

Run --- Option 2. Restore Moto X [Must be done in Fastboot mode!]

How to put the Moto X into Fastboot mode:

Video by Tomsgt/RootJunky.com

or...

Completely power off the Moto X and have it unplugged from anything.

---To force your Moto X to power off hold the Volume Up key and the Power button for 8 seconds or until it turns off---

Quickly TAP the power button and then HOLD DOWN the Volume Down Key until the Fastboot menu pops up. Once there plug in your USB cable to your computer and the Moto X and don't press anything else at this menu. If you are at the menu, you are in Fastboot mode! :)

Once you are in Fastboot mode with the USB cable connected to the Moto X as well as the computer you are using then accept the warnings and continue. Follow the on-screen instructions. READ EVERYTHING! I cannot stress this enough!

You should finally come across your choice. Should you wipe, or shouldn't you wipe? I'd highly recommend wiping everything. Especially if coming from an earlier version of software or from a Custom ROM. Pick your option and the flash will begin! Sit back, relax, and let the Utility do its work.

GNU/Linux Instructions:

Download and extract the Utility .zip file. We will call this extracted folder the Utility Folder from now on in the instructions.

Open up a Terminal shell.

Type in the following command without the text inside or the *** symbols:

cd ***DRAG Utility Folder HERE***

or, if you are a GNU/Linux wiz, then cd into the extracted folder in your own creative way. Just do it ;)

Then hit the Enter/Return key. This will bring your terminal inside of the folder and we can begin the next step.

Type in the following commands:

chmod +x ./runlinux.sh

./runlinux.sh

-----------------------------------------------------------------------------------------------------------------------------------------

Run --- Option 1. Download latest firmware. [Must be done on first run!]

Choose the firmware that is right for your device. If you are not 100% positive that your device is one of the options listed, do NOT continue at this point. Post here and someone should be able to assist I'm sure. Again though, this process will be self-explanatory but I'll explain it anyway. The Utility will begin downloading the firmware once you again confirm that you chose the right one. This can take a long time depending on your computer's download speed!. After it finishes downloading the .zip it will automatically start extracting. You can see the progress bar for these to be able to guess how much time is left. Moving onto actually flashing the firmware next!

-----------------------------------------------------------------------------------------------------------------------------------------

Run --- Option 2. Restore Moto X [Must be done in Fastboot mode!]

How to put the Moto X into Fastboot mode:

Video by Tomsgt/RootJunky.com

or...

Completely power off the Moto X and have it unplugged from anything.

---To force your Moto X to power off hold the Volume Up key and the Power button for 8 seconds or until it turns off---

Quickly TAP the power button and then HOLD DOWN the Volume Down Key until the Fastboot menu pops up. Once there plug in your USB cable to your computer and the Moto X and don't press anything else at this menu. If you are at the menu, you are in Fastboot mode! :)

Once you are in Fastboot mode with the USB cable connected to the Moto X as well as the computer you are using then accept the warnings and continue. Follow the on-screen instructions. READ EVERYTHING! I cannot stress this enough!

You should finally come across your choice. Should you wipe, or shouldn't you wipe? I'd highly recommend wiping everything. Especially if coming from an earlier version of software or from a Custom ROM. Pick your option and the flash will begin! Sit back, relax, and let the Utility do its work.

All versions of the Utility can Update now as well! Run the option from the Main Menu and you'll be able to. The firmware downloaded for any OS version of the Utility will always be the latest for the device that is available to grab somewhere on the internet, if we can help it. If for some reason if myself or another maintainer of the Utility in the future doesn't have the latest firmware (because lets face it, 6 devices is a lot to maintain with the latest) you can let us know through a Private Message on XDA.

Thanks to TomSgt/RootJunky.com for making the video for Windows and for testing.

Donations are appreciated but never expected. You can click the "DONATE TO ME" button on the left-hand side of this XDA post if you choose to do so. :highfive:

I hope you all get great use out of this Restore Utility, I had a fun time making it! Hit the Thanks button if it helped you.