yashsingh1/xdaforums huggingface dataset:
[Moto G General] brianzelda:
xt1032

Tried it with the us retal fw, with locked bl, didnt work, tried then with movistal cl fw kitkat, but now with the bootloader unlocked and it went all just fine, great work, thanks!
[Moto G General] ekabon:
Thanks for the info, mate. I've managed to install GPE stock, but still prefer original moto stock. Let me know how is it going with downgrading method ;)
[Moto G General] AceDuff93:
It would be nice, but the problem is that all 4.4.2 firmware are in xml.zip format. Tar.gz is much easier to handle, indeed I remember i flashed a 4.3 firmware in something like 20 sec back in december. With xml.zip you must write lots of commands, that's annoying.

---------- Post added at 06:58 PM ---------- Previous post was at 06:56 PM ----------

Sure, I'll let you know this evening! ;) How did you manage to switch to GPE? MotoTool function?
[Moto G General] ekabon:
I used the thread called "flash original gpe ROM" or something like that... There is a link for the firmware which is flashable in a few clicks... I had to reflash radio from the radio/kernel thread, cause I had very poor mobile data speed;)
[Moto G General] eastdata:
I meant the actual fastboot.exe. The one in the OP is a different size than what's included in the tar.gz files which might be giving you problems. Anyway the one attached is pulled from the tar'd (lol) file.
[Moto G General] AceDuff93:
Oh ok, now I understood what you meant! Now that's interesting, actually I don't remember where I got the mfastboot from, nevertheless I might give it a try, maybe it was a wrong mfastboot.exe that caused that max-sparse-size error.

---------- Post added at 08:12 PM ---------- Previous post was at 08:10 PM ----------

Ok, thank you for the tip! But if my 2G/3G connection is fine, will I have to flash anyway radio module me too? Cause I don't like messing up with these things, they often cause lots of troubles. :eek:
[Moto G General] ekabon:
I don't know, man. I flashed the firmware and mobile data went really bad, so I had to flash radio manually from the threat.

---------- Post added at 09:30 PM ---------- Previous post was at 09:29 PM ----------

Have you tried that different mfastboot already?
[Moto G General] eastdata:
Also check the flashall.xml because there is a step that is skipped reboot-bootloader. I don't know if it is relevant:

<?xml version="1.0" encoding="UTF-8"?>
<flashing>
<header>
<phone_model model="" />
<software_version version="" />
<interfaces>
<interface name="AP" />
</interfaces>
</header>

<steps interface="AP">
<!-- Flash GPT and bootloaders -->
<step operation="flash" partition="partition" filename="gpt.bin" />
<step operation="flash" partition="motoboot" filename="motoboot.img" />
<step operation="reboot-bootloader" />

<!-- Flash modem SW -->
<step operation="flash" partition="modem" filename="NON-HLOS.bin" />
<step operation="flash" partition="fsg" filename="fsg.mbn" />
<step operation="erase" partition="modemst1" />
<step operation="erase" partition="modemst2" />

<!-- Flash AP images -->
<step operation="flash" partition="logo" filename="logo.bin" />
<step operation="flash" partition="boot" filename="boot.img" />
<step operation="flash" partition="recovery" filename="recovery.img" />
<step operation="flash" partition="system" filename="system.img" />
<step operation="reboot" />
</steps>
</flashing>

After flashing the motoboot.img there is a call to reboot into the bootloader.
[Moto G General] AceDuff93:
Ehm...This is a bit over my knowledge, I'm not an expert, I usually follow guides step by step even though I like messing aroung with computers...;)

Could you explain me how exactly I should behave toward what you just told me? ;)

---------- Post added at 09:21 PM ---------- Previous post was at 09:20 PM ----------

Nope, in Italy dinner time just ended, I'm going to do it now...Will let you know in a bit...;)

EDIT:

1st try: Changed original mfastboot with the one linked here, tried to flash Retail UK 4.4.2. Failed. Notice how the firmware goes from about 400Mb zipped (xml.zip) to almost 800Mb unzipped. Isn't it too much?

2nd try: Tried to flash Retail UK 4.3. Initially failed due to "preflash validation", then successful after removing two lines from flashall.bat. Everything seems to be working correctly. Still, I want to go deeper in the matter about 4.4.2 failed flashing. Might also help other people and I have time to try.
[Moto G General] eastdata:
mfastboot flash partition gpt.bin

mfastboot flash motoboot motoboot.img

mfastboot reboot-bootloader

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

The bold line is skipped in the OP instructions.
[Moto G General] AceDuff93:
Ok. How does this affect flashing the firmware?

Also, I'm reading the thread about switching to GPE and saw you linked a third fastboot created in November by Paul. Would you suggest me to try it in order to be able to avoid that error? (max-sparse-size)

EDIT: I'm editing previous post adding the tries I'm doing.
[Moto G General] ekabon:
so did you manage to update to kitkat? which lines did you delete?

---------- Post added at 11:40 PM ---------- Previous post was at 11:39 PM ----------

so did you manage to update to kitkat? which lines did you delete?
[Moto G General] AceDuff93:
I deleted the following lines from flashball.bat, after opening it with Notepad:

Now I'm downloading KK, we'll see in ten minutes if update goes well and then we'll see about the small latest update. ;)
[Moto G General] eastdata:
[MENTION=5010596]AceDuff93[/MENTION], I'm not sure, but I like to stick to how the OEM's do it.
[Moto G General] ekabon:
hmmm... weird, didn't work for me... all went good, just on the device's lines it was saying "image too large" when flashing system.img... woudn't boot(((
[Moto G General] AceDuff93:
Damn, internet connection is slow now...Still 30 minutes to finish downloading KK...-.-"

Anyway: is your Moto G the XT1032 version?

Where did you bought it and what firmware was originally installed?

What firmware are you trying to flash?
[Moto G General] ekabon:
It is XT1032, UK 8GB sim-free

I was on GPE stock firmware, but when I bought the device it was non-gpe 4.3... tried to downgrade to 4.3,,,,
[Moto G General] AceDuff93:
Ok. Mmm...Might be that GPE changes some things inside the phone: for example, GPE is formatted in EXT4 (even though I don't think this is the cause of the problem) and, from what I've read, there's a different partitioning of the system.

I'd suggest you to flash PhilZ CWM and do a complete wipe of the system, this way you'll have nothing but the bootloader and the stock Android recovery inside (you could do it through ADB as well if you prefer so). It's also good for the phone, after some messing around it's good to make a complete wipe to erase everything remaining from previous flashes.

After that, you may flash stock 4.3 (remembering to delete those two lines in the script). This way it *should* work.
[Moto G General] ekabon:
seems this time all went fine, but still won't go through warning bootloader unlocked screen(((
[Moto G General] AceDuff93:
You mean you erased the whole system and know phone gets stuck/bootloop on white unlocked bootloader warning?
[Moto G General] ekabon:
yes, then tried to flash 4.3 again, all went well but still get stuck on the warning screen... and it seems now i can't flash back to gpe firmware, gets stuck on the google screen... i hope i didn't brick it(((
[Moto G General] AceDuff93:
That's pretty strange, but don't worry, devices that can boot up to bootloader (power + vol down), like Moto G, Nexus devices, etc, have a particularly secured bootloader, so it's really hard to brick them. Are you absolutely sure the procedure went fine? No errors?

Anyway, I'd try to flash again 4.3 stock, then if it doesn't work, I'd flash back cwm advanced, would make once again a total system wipe, thant would try again with 4.3 stock or GPE.

Most important thing: don't ever give up hope or go mad, as I said, this kind of device is almost always savable, no matter what yoo do to it. So just keep on trying, one way or another a firmware will install and phone will boot up! ;)
[Moto G General] ekabon:
I've managed to flash gpe firmware... gonna stick to it for now, until someone comes up with working way to flash stock non-gpe firmware ;)
[Moto G General] AceDuff93:
Happy to hear that! ;) Anyway I think the problem lies somewhere between a wrong partitioning of the system space and an incorrect management of xml.zip firmwares, but that's just my guess.
[Moto G General] eastdata:
The sequence according to flashall.bat

fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot reboot-bootloader
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot erase userdata
fastboot erase cache

That "max-sparse-size" might be set by the bootloader ("fastboot getvar all" returns it I believe) which is maybe why the inclusion of "fastboot reboot-bootloader"
[Moto G General] farmaan7x:
Help

Is this the Indian firmware for XT1033 ???

http://www.filefactory.com/file/3t4v75yvhrd5/RETAIL-AS_FALCON_KXB20.25-1.31_cid7_CFC_1FF.xml.zip
[Moto G General] ekabon:
Has anyone tried to flash using this extra line?
[Moto G General] AceDuff93:
Yeah, that's indeed what I got on screen (I'm referring to "fastboot getvar all"). So, in the end, do you think it is possible to somehow get through this error and be able to flash a 4.4.2 firmware? Is there a solution?
[Moto G General] bckspc:
Hi... I had a similar problem and went mad trying to solve it. My solution was to flash 4.3.gb and then the 4.4.2.... after the OTA to 174 manually (since I had no wifi) and finally the last OTA 176.

It's here: http://xdaforums.com/showpost.php?p=50680023&postcount=810

Hope it helps
[Moto G General] AceDuff93:
As I wrote on a previous comment, that's the same thing I did, cause any other solution didn't work. The only different thing is that for me Wi-Fi has always worked correctly throughout various firmware changes I tried. Also, I knew this solution would have worked, but you see we can't do this each time we want to flash a different firmware, cause it's a long process. Moreover, I'm pretty sure that the problem is not inside our Moto G, whereas it lies somewhere in the flashing process. If we had 4.4.2 firmware in tar.gz format I bet flashing would be successful.

Thanks anyway for your contribution! ;)
[Moto G General] bckspc:
Well... looking at the list of firmware, you can see that only 4.3 are in tar.gz and all 4.4.2. are in .zip.

I thought this was because the 4.3 was the main version and the 4.4.2. was a ripped 4.3 with 4.4.2. OTA. That was what made me do it all from scratch.

I've read in the forum that you have to have the stock recovery to do the OTA. Also someone there also reported that the Philz CWM worked if you ignore the warnings of the unsigned zip.

Also you can try to update the 176 OTA with stock recovery using the information on this thread (http://xdaforums.com/showthread.php?p=50682831). Since I had no wifi, the only way to flash the 4.4.2. ota was to put the ota zip file on the sdcard root with the correct name and the OTA installed automatically after a reboot. I believe that for the 176 is the same. On that thread they already posted some 176 files with the OTA.

Good luck :)
[Moto G General] AceDuff93:
Wait, maybe I didn't explain myself well...I've done the same process as you did (4.3 > 4.4.2 174 > 4.4.2 176) and it worked. Now my Moto G is updated and completely working. What I wanted to say is that it's really annoying to be forced to downgrade to 4.3 each time we need to flash a different firmware. It's time-wasting and not good for the phone too. But that's the only solution that worked for me and for you too. Before, I made other tries, but they were all unsuccessful, and from the info I've gathered, I've come to suspect that the reason why 4.4.2 firmware flashes are unsuccessful is the format of the firmware themselves, which is xml.zip. I suspect this because it's the only valuable difference between 4.3 and 4.4.2 firmwares. Ans it's also the reason why I said that probably if there was a 4.4.2 firmware in tar.gz, flashing would go well.

By the way, I also tried flashing the firmware through PhilZ recovery, but it didn't go well and it's not because of the messages reporting errors.

Hope I made myself clear. ;) And hope someone more prepared will be able to solve this problem as well. ;)
[Moto G General] bckspc:
I got it now. Anyway some people managed to update to the 176 OTA by just restoring the stock recovery image and some by unrooting and restoring the stock recovery.

I hope next time there's an OTA I only have to restore recovery. I'm using the faux kernel so I might have to do a little restoring but I have high hopes that next time I don't have to go to all the trouble. We'll just have to wait and see. :)
[Moto G General] denzel09:
I flashed the last ota on eu firmware with philz recovery without any problem.
[Moto G General] AceDuff93:
Well, I did full unroot process through SuperSU app, than also flashed stock recovery. In the end I even ended up flashing again CWM (normal one) and wiping the whole system, so that all I could do was boot up to booloader, cause there was no firmware installed. Nonetheless every try was a no-go. Anyway yes, hopefully next update will bring us less troubles! ;)

---------- Post added at 09:05 PM ---------- Previous post was at 09:04 PM ----------

Really? Interesting. Unfortunately I could not try this. But I tried flashing stock 4.4.2 174 with Philz CWM and it didn't worked.:(
[Moto G General] denzel09:
Yep, philz recovery and stock system partition. Flashed without any problem last 176.44.1 eu version. Really great recovery.
[Moto G General] eastdata:
Okay, I had a look at the "max-sparse-file" error and found some switches/options in fastboot itself.

From fastboot help:

usage: fastboot [ <option> ] <command>
...
flash <partition> [ <filename> ] write a file to a flash partition
...
-S <size>[K|M|G] automatically sparse files greater than
size. 0 to disable

***NOTE: The switch is CASE SENSITIVE.

So using fastboot, presuming 256MB "max-sparse-file" error, use:

fastboot -S 256M flash system system.img

Or:

fastboot -S 256M flash system system.img_sparsechunk1
fastboot -S 256M flash system system.img_sparsechunk2
fastboot -S 256M flash system system.img_sparsechunk3

Or: substitute the proper names of the system image files.

I haven't tested this myself. My model (XT1033) has a 512MB limit and the system image hasn't been split into three chunks. Let me know if it makes a difference.

Cheers.
[Moto G General] AceDuff93:
That's really nice. Now I'm fine with my Moto G and, to be honest, I'd prefer not to mess up with it again, cause I'm back to university and need a fully working phone. But as soon as it happens to make some modification (knowing myself, not too late), I'll try this. Also, maybe someone else could try it in the meantime.

Do you know why there's this difference between XT1032 and XT1033?
[Moto G General] eastdata:
I don't like the idea of having to roll back the firmware just to update OTA when rooted or having the added stress of fiddling around with mods either, simply because the updates will possibly be different and may or may not impact on a successful update. There isn't a full stock firmware released for download yet for my model (I've made a request).

XT1033 is the dual sim version. Maybe there is some firmware differences because of that; I do know that there is an extra apk named adam.apk that is used by the modemstats service. This model has pentaband WCDMA (850/900/1700/1900/2100) over all other models as far as know, but other specs appear to be the same. I like that it does have the extra band and sim, but because of it, mods and custom roms might not be developed as readily for it. I could do without the band because there isn't a real need for it my country (AU). The major carriers here have dual-band support and with this phone I can switch from any carrier and still have dual band, kinda important for reception in my case.

It's the model that's sold throughout Asia Pacific and Latin America, but in Latin America only has the four bands, as the Global version does, so obviously it's compatible. The firmware won't include the same languages though which are region specific.

Hope that helps.
[Moto G General] Paulskiii:
How can I flash just the modems, without PC?
[Moto G General] Corel_vkl:
Well I have couple of questions first i have roted and unl.bl on my xt1034 and now wich fw i can install ass official from those on

sbf.droid-developers.org/phone.php?device=14[/url]

Im downloaded this one

US_retail_XT1034_14.10.0Q3.X-84-16_CFC.xml

and this one

RETAIL-EU_4.4.2_KLB20.9-1.10-1.9_cid7_CFC_1FF_v8.xml

( EU for languages i think it have croatian and similar)

So can I flash them is they right for my xt 1034 ? Do i need to unroot for OTA or what because now when instaling ota 172-44-4 it go restart and wont install it :S so when i flash some of those 2 fw does it be okay ? Sory for my bad eng :fingers-crossed:
[Moto G General] suvasishngn:
Hi there.......thanks for your nice guide.i am from bangladesh using moto g 1033. running 4.4.2 kitkat, unlocked bootloader. due to modem issue i did root & installed a custom software & found no modem , no wifi . I downloded kitkat firmware " Blur_Version.14.85.4.falcon_umtsds.AsiaRetail.en.03.zip" & follow your guide.But it doesnot recognized software.then 1st recognize 1st command, after that it does not. plse help me to run my beloved phone. Thanks in advance
[Moto G General] suvasishngn:
Finally my phone alive now with fastboot downgrade with 4.3 brazilian retail version .only problem is that wifi is not working.plse help

---------- Post added at 11:36 AM ---------- Previous post was at 11:30 AM ----------

Hi there...Finally my phone alive now with fastboot downgrade with 4.3 brazilian retail version .only problem is that wifi is not working.plse help
[Moto G General] eastdata:
Was it originally 4.3 Jelly Bean AsiaRetail Dual sim?

If so, follow the guide in this thread and flash this firmware:

Blur_Version.14.85.4.falcon_umtsds.AsiaRetail.en.03

Edit the flashall.bat lines to reflect:

Then flash it.

After flashing, update OTA and you'll have 4.4.2.

EDIT

Or just flash this firmware, lol...

http://xdaforums.com/showpost.php?p=50827918&postcount=181
[Moto G General] Forever Alone:
Awesome work buddy. It fixed my problem. :)
[Moto G General] fuchini:
Hello, can somebody post a mirror for RETAIL-LA-DS_4.4.2_KXB20.25-1.31_cid12_CFC_1FF.xml.zip

Seems it's down in filefactory, it says:

Thanks!
[Moto G General] breakfastclubdc:
Okay before I start I know this was really dumb of me to do. I wiped everything in my phone/sd card because something was taking up a lot space and I couldn't figure out why, so i have nothing on my SD card at all. there's no OS running in my phone at all. I have TWRP recovery installed but I can't mount it to my computer to get a rom onto it. Any solutions???? I don't Mind going back to stock, I just need my phone back.
[Moto G General] tenjou_89:
hi there , first post. and first flash. im getting purple message saying "hab check failed for recovery"

what does that mean? has it failed absolutely? help please :(
[Moto G General] theepicflyer:
If yo have TWRP you should be able to install ROM? Just use ADB Sideload in Advanced. Put a ROM in the platform-tools folder then open CMD there. COnnect your phone with TWRP in ADB Sideload mode. In cmd type

adb sideload <nameofyourzip>.zip

You could rename your ROM something simple to type. And make sure to have the .zip at the end.
[Moto G General] suvasishngn:
Thanks for your reply.at first i do on fast boot command " fastboot flash partition gpt.bin" it shows no error. i downloaded firmware in mz ....extract it in adb-flashboot folder

Then "flashall.bat" it also shows no error.device roeboot & fully functional. BUT WIFI COULD NOT BE ENABLED. please do your valuable opinion regarding this problem. take care
[Moto G General] eastdata:
Any other steps after you flashed it, was it flashed with the /eu switch? Have you tried a factory reset? Make sure you have a new SIM too.
[Moto G General] Abdo shniba:
Great thread, thanks OP

I've bought the global version from amazon.com but it had few languages, so.. I want to know if I followed this guide and flash it to UK stock ROM "RETAIL-GB_4.3_14.10 a ROM with script " will the phone work normally and get the 4.4.2 OTA update ?
[Moto G General] iLexiconn:
It works :D

Thanks for this! It really helps me a lot!
[Moto G General] Outlaw-Tek:
where is virgin mobile firmware?

hi i am wondering if you know if there is anywhere a firmware for virgin mobile thanks
[Moto G General] casshern94:
thank you!!!...i fixed my bricked moto g...thank you alot...
[Moto G General] KairosDev:
Fantastic

Thanks so much, worked perfectly :)
[Moto G General] simoniub:
Is there any other way to restock 4.3 without flash or root?
[Moto G General] suvasishngn:
Solved my problem at last.Thanks for support.wifi functioning now.i downloaded "WCNSS_qcom_wlan_factory_nv.bin" ....rename it & paste it in fastboot directory. then flash ......ALL GOES WELL.

I follow the following thread. total credit to TiagoPeixoto

"http://xdaforums.com/showthread.php?t=2619553"
[Moto G General] Low3.J:
HELP :/

I get a "hab check failed for boot" error at fastboot screen when following process. I have a xt1033(dualsim) with asia fw 4.3. i am trying to get brazil fw 4.3 as i need spanish language. Device manager and drivers installed. minimal adb installed also. cleared cache before flashing. follow either sotfware or hardware steps w no success.

Do i need to unlock bootloader to flash stock firmware??
[Moto G General] bishteca:
Perfect, seamless installation. Downgraded to 4.3 just to test a little (the phone app is a lot better than 4.4).

Funny thing, after I re-rooted, installed SuperSU 1.93 etc., the radios appear to be faster. It scans and connects a lot faster to cel data a lot faster, even wifi speeds just feel faster... dunno.
[Moto G General] yoave1:
GPE to Motorola stock rom

I have XT1032 Global 16GB GPE and I want to convert it the Motorola stock rom. Can I use Blur_Version.14.14.16.falcon_umts.Retail.en.US and then get an OTA to a Motorola KitKat? Will there be problems with flashing a non-GPE rom?

I know this was discussed before but there were no definite answers... Really afraid to brick the phone...
[Moto G General] gollolakers:
stuck after flash restock moto g 4.4.2

hi I did the steps and after phone did reboot it went back to bootloader and says failed to validate system image fastboot reason fall-through from normal boot mode help plz what I do wrong and how can I fix I have moto g Verizon usa
[Moto G General] bobrda:
So I try to do this at GPE 4.4 and didn't make it. Next time I will read careful what is saying in the OP. Just to describe what happened.

Phone goes in to the boot lop, with white error message that saying boot loader is unlocked! After searching the internet I find that 10 sec pressing volume down and power together, bring the phone back to the recovery

Then I flash again rom from http://xdaforums.com/showthread.php?t=2646404

Will try this again tomorrow, with stock 4.3 ROM... I have no nerves to do it again today
[Moto G General] coollkidd:
difference between AWSRetailUS and just Retail US

can someone explain the difference between AWSRetailUS and just Retail US and help me decide which one would be best on my device (Moto G XT1032, from amazon)
[Moto G General] Allewar:
Thanks
[Moto G General] nash211:
4166 5594463

Thanks for the info
[Moto G General] misiokicio:
thanks for the guide, hassle free, flashed it first time, no issues