[Moto G 4G Android Development] cryptoncore:
Hello everyone,

I have looked around and I saw some toolkits but none of them (that i've seen) restore back to stock. So therefore I introduce to you:

http://postimage.org/​

MotoFlash is a flashing script which if used correctly puts your device back to stock without any hassle, all of the details are included in the Readme file inside the zip that will explain to you how to use the tool correctly.

This tool should be suitable to use on Any Moto G as long as you have the firmware available for that device, please make sure that if you are attempting to downgrade there can be issues and if you are downgrading make sure that you have a firmware available that is a higher version (e.g if you are on 4.4.4 and downgrading to 4.4.3 you will want to have the 4.4.3 firmware AND the 4.4.4 firmware so you can flash the 4.4.4 if something goes wrong).

MotoFlash has only been tested on Windows 7 and Windows 8.1, I'm not sure how it will run on other versions of windows.

If windows 8 or 8.1 pops up and says that smartscreen has blocked it from running click more info and then run anyway. The script is clean and safe to run.

To use this toolkit your device MUST BE BOOTLOADER UNLOCKED. Guides for this can be found on XDA

MotoFlash Version 3.4 has now been added and is available for download from the download section! This is a big release as it now has a UI (made with mediator) in order to launch scripts!

Please note:

I am NOT responsible for any broken phones, or loss of data by using this application, use it at your own risk.

To use this you will need to download the correct firmware for your device.

The stock firmwares for XT1039/40/42/45 can be found by clicking here (Credit to Vpnair)

I hope you find the tool to be useful, feedback is appreciated, and if you need help well be sure to post or send me a message and I will reply as soon as I can.

Thanks!

Cryptoncore

DOWNLOADS:

Due to file size restrictions of 20mb for a zip file on an XDA thread, from MotoFlash V3.2 onwards any updates will be hosted on Mega.

LATEST VERSION:

MOTOFLASH V3.4(USES MFASTBOOT)[SIMPLE UI NOW ADDED!]: Click here to download!

SCREENSHOT OF NEW UI.

[IMG="3.4 UI example"]http://i.gyazo.com/6e269d7978230517e5b070ae8e131305.png[/IMG]

OLD VERSIONS:

MOTOFLASH V3.3(USES MFASTBOOT): Click here to download

DOWNLOAD MOTOFLASH V3.2(USES MFASTBOOT): Click here to download

DOWNLOAD MOTOFLASH V3.1(USES MFASTBOOT): View attachment 3011744

DOWNLOAD MOTOFLASH V3(USES MFASTBOOT): View attachment 3010219

DOWNLOAD MOTOFLASH V2(USES MFASTBOOT): View attachment 3008649

DOWNLOAD MOTOFLASH V1(USES REGULAR FASTBOOT): View attachment 3007467

Changelog:

Version 3.4: Created and implemented a basic UI using Mediator to give the script launching a more user-friendly feel, minor bug fixes...cleaned up some scripts.

Version 3.3: Added credits, added a way to go back to page 1, added information about the recoveries being 4G LTE compatible only, updated safety information, cleaned up the menu a little bit.

Version 3.2: Fixed minor bug with logo flasher (Still said you have selected no after flashing the custom logo) added a second page on the menu, added the ability to flash a custom recovery image (CWM/CWM touch/TWRP/Philz), Cleaned up some parts of the script.

Version 3.1: Firmware folder cleaner fixed (before hand it didn't want to take no for an answer...), updated the readme file, updated the motoflash splash screen to have a motorola logo, added a question to EVERY part of the flashing process for the advanced flash section.

Version 3: Menu added, simple and advanced modes added, added option to only flash the modded boot logo, added an option to clean up the firmware folder in order to make the tool fresh again to be used with another firmware (Requested).

Version 2: Added yes or no questions to the flashing sequence.

Version 1: Base program, simple, no options.

Still need help with something?

Feel free to drop me a PM or put up a post on this thread and I will get back to you as soon as I can.

Credits:

Thank you to...

Vpnair - Firmware download links.

Shabbypenguin and the OUDHS - ClockworkMod for the Moto G LTE.

Somcom3X - TWRP Recovery for the Moto G LTE, Philz touch recovery for the Moto G LTE.

Every single one of you who has tried the toolkit, and those who have given feedback - Testing and feedback, thank you all.

Thread edits:

[Edit 1] Reason: Updated the readme file to simplify the instructions and make them clearer.

[Edit 2] Reason: Made the thread a little more pretty.

[Edit 3] Reason: Added a mirror download link!

[Edit 4] Reason: Added MotoFlash V2 to downloads and updated post.

[Edit 5] Reason: Added MotoFlash V3 to downloads, updated post and changelog.

[Edit 6] Reason: Added MotoFlash V3.1 to downloads, updated post and changelog.

[Edit 7] Reason: Added MotoFlash V3.2 to downloads, upated post and changelog.

Can this be used to recover the 4.4.4 bootloader after 5.0.2 OTA?

-UPDATE-

User "Lurker Observer" has informed me that this does indeed work with Android 5, Thanks for the information!

This is a common question that has been asked on here and in my personal messages and the answer is I am afraid I have no idea if it works or not. I no longer own a Moto G of any kind. This tool simply flashes the firmware you give it but without you having to do it manually, if it would brick it when you did it manually then it will brick it with this tool. If it would work manually, then this tool would work manually. I am sorry that I'm unable to provide more information.

Proceed at your own risk - if anyone uses this tool to flash back from official 5.0 to 4.4.4 then please provide your results as a comment! thank you!

​