First of all this is one of my firsts threads in XDA Forums. And this does not mean I don’t have any experience on Android, in fact, I have a lot, in the past I have the Galaxy S1 Captivate, MyTouch 4G and the Galaxy S2 T989 Hercules. I root all of them, change to different roms, kernels, stock roms, etc etc. I don’t always post because when I want to post something, someone already answer the question. Now I have the Moto 4G LTE XT1045 US version of single sim card (not the dual one), I have root it, I made some mistakes playing with the /system and /data partition with some apps that use root access and I soft brick the device. I turn it back on and the device was always in the “bootloader warning” screen. So I need in some way to go back to stock. Now that successfully restore the device I will not play with the partitions.
I find a few threads (which I give credits) and I restore the device back to stock. The problem is that what I do to restore back to stock, require me to go to different threats and different sites, I just can’t find one threat explaining everything in a nice and good looking way like the one that I am going to show you. Here in XDA we have experts, users and newbies, this is just an easy method for any of them.
(If you want to only Root the device in a safe way that don’t change your recovery, or the bootloader, just let me know, I am thinking in creating an easy-guide for root this device).
And second, thanks the users of the following threads, that are the ones responsible of almost all the things that I am going to say. (not in a specific order).
1. http://xdaforums.com/moto-g/4g-development/xt1045-stock-rom-dump-t2794145/page2 (post # 14 by suhridkhan led me to an excellent guide).
2. http://xdaforums.com/showpost.php?p=53660639&postcount=1&nocache=1&z=2567116348072886 (who led me to Firmware Factory).
3. http://www.firmware-team.com/showthread.php?t=1146 (post where I choose my stock rom XT1045 and I proceed to download).
4. http://xdaforums.com/showthread.php?t=2542219 (the excellent guide, I mainly use the 3b instructions)
5. http://xdaforums.com/showpost.php?p=53765029&postcount=83&nocache=1&z=3906391665805131 (I confirm the order of the flash process)
Disclaimer:
Follow these instructions at your own risk. If something goes wrong don't blame me!
I have only tested this on a US Retail Moto G XT1045 with an unlocked bootloader.
There is a high chance that his guide will work will the others LTE variants(XT1039, XT1040 & XT1042), however, I don't have a proof of this since I only have the XT1045 and the threads that I use don't say anything about if it works or not in that variants. If it works, the only difference will be the .xml.zip file from your specific device. If you use this guide for one of those variants, please let me know so I can update the guide with that device that at this moment I don't have proof if it works or not, thanks.
OLD STATEMENT, THE ZIP IS OUT, READ GUIDE CHANGELOG. Users of the XT1045. We already have receive the OTA update of KK 4.4.4. If you already have updated your device to 4.4.4, please, do not use the 4.4.3 files to downgrade and restore your device to stock. The files from 4.4.3 are not going to work, I repeat, the files from 4.4.3 (the link I provide below) are not going to work. If you update to 4.4.4 via OTA and mess (or something inexplicable happen) with your device and now your device doesn't boot, then you must search in other threads for a solution. To follow this guide for a 4.4.4 stock, we need to wait for for the 4.4.4.xml.zip file, and as far as I know, that file is not yet available to download. I have search in everywhere and the file is not available, once I know that the file is available, I will download it and I test it with this guide and my device, and if it works I will update the guide with the new download link.
Guide Change-log:
I decide to create this "Guide Change-log" section to post the short-length changes that I have made to the guide, so that the old ones a new ones can understand everything. Everything that I post are things that I personally have tested, I will not post something without testing because I don't want to brick any phone (and if that happen I am not responsible, this is XDA, everyone in XDA know that and all the risks), if for some reason I post something not tested, I will let you know. If someone test something and it works, I update the guide with that user name because that are his credits, which ones I am really grateful. A grateful thanks to @NWKENT for the help you brings to the users while I wasn't in here.
01. The original post.
02. 19/Ago/2015:
A. I create this section.
B. The 4.4.4 update xml.zip is out. They two are both the same as far as I know. I have not test them in my phone for the reason that I already have my XT1045 in Lollipop, I am not going to try to go back to KitKat, there's a significant change in versions, I can't risk my device, I am planning to buy another XT1045 for rabbit-tests like this, but for now I only have one device. I will search some info and let everyone know what I can find. In case someone want to try, these are the links of the 4.4.4 xml.zip.
http://xdaforums.com/moto-g/4g-development/xt1039-moto-g-4g-stock-firmware-kxb21-t2805619
http://xdaforums.com/showpost.php?p=61789810&postcount=41
LET START
Pre-requisites:
a) Unlocked bootloader.
b) Download and install Motorola Drivers:
http://www.mymotocast.com/download/MDM?platform=windows
c) Download the stock firmware:
In our case (XT1045) is the RETUS_XT1045_4.4.3_KXB21.14-L1.23-4_cid9_CFC.xml.zip from https://mega.co.nz/#!kFYC0DbD!yNkcJbtMlEEM6kBOeVwYCRp3Fcv9gwKvC3EtgC-Du-k
d) Have the ADB active in your computer. In my case I already have installed the Android SDK and configured the ADB in the “Path” of my Windows 8.1 x64 system.
To do that right click the “This PC” or “Computer” icon on the start button and click “properties”, from there go to “advanced system settings”, click “environment variables”, from the system variables find the “Path” variable, click edit but DON’T delete anything, at the very end of the “Variable Value” add a “;” and add the path of your adb platform-tools folder. In my case is C:\android-adt-bundle\sdk\platform-tools
For example:
The end of my PC Variable Value is: C:\Program Files (x86)\QuickTime\QTSystem\
You must make this:
C:\Program Files (x86)\QuickTime\QTSystem\;C:\android-adt-bundle\sdk\platform-tools
Now you click OK, click OK again and test if it works, to do that go to any windows explorer and press the shift button and right click, and click “Open command window here”. Write “adb” and click enter. If it say Android Debug Bridge version XX.X.XX and a lot of letters then you’re good to go, if your press adb and it say not found or something like that, then something is wrong.
e) Extract the RETUS_XT1045_4.4.3_KXB21.14-L1.23-4_cid9_CFC.xml.zip to a new folder in the desktop of the PC. Or your preferred folder.
f) The firmware we download earlier end with .xml.zip, for this reason we are going to need to download the Motorola Fastboot mfastboot-v2.zip (attached to this post) and extract only the .exe into the same folder as the stock firmware files (the same folder as the .bin and .img files). *User @darknomad23 finds out that mfastboot does not work with USB 3.0, so, use only USB 2.0. Thanks man.
Steps to restore stock firmware:
1) Reboot the phone into bootloader mode.
a) Unplug the USB cable and power off the phone.
b) Press and hold 'Volume down' and ‘Power’ button on the phone for around three seconds and let go the two at the same time.
You should now see the Moto G LTE bootloader screen with the following options:
Normal Powerup
Recovery
Factory
Barcodes
BP Tools
QCOM
c) Connect USB cable to your computer. Wait for the driver to be installed.
2) Open a command prompt (Start -> cmd.exe in Win7,8) and browse to the folder with the extracted firmware. Simply go to the folder with the extracted files and press the shift button and right click, and click “Open command window here”. In that folder you must have all the .img and .bin files and others, plus the mfastboot.exe file.
3) 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].
Code:
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_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
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
In the: “mfastboot flash system system.img_sparsechunk.(0,1,2)” you must have the dot, the dot before the number. In some of the other guides I see that they do not add the .0 .1 .2 and it creates an error because the file is never found.
If you want the device to reboot automatically to bootloader mode each time you restart the device you can use this command:
Code:
mfastboot oem fb_mode_set
If you don’t want to reboot automatically to bootloader mode you can use this command to clear that option on the device.
Code:
mfastboot oem fb_mode_clear
That’s all. I hope it works to you like it works to me, anything just let me know in the thread.
Attachments
Last edited: