yashsingh1/xdaforums huggingface dataset:
[Moto G General] LoLo2207:
Try to use mfastboot v2. I think the default fastboot.exe tries to flash the file at once, but the Moto G has some filesize/partiton limits. But mfastboot, when finds this limit, splits the flash in several parts. That's why some OTAs you have to

mfastboot flash system system.img_sparsechunk1

mfastboot flash system system.img_sparsechunk2

mfastboot flash system system.img_sparsechunk3

and others

mfastboot flash system system.img

as it, internally, splits the .img in 3
[Moto G General] masa86:
I'm trying to come back form this Josalaito 4.4.2 rom to default 4.3 GB and I have been trying a whole day. My phone is xt1032 GB retail 16gb model.

I can flash the rom but problem is that Wifi won't work and there is no mac address. Also my computer detects my phone as xt1034.
[Moto G General] vsEnjoi:
Confused

I have an XT1032 with Official CM12.1 Nightlies on but i want to revert to stock so I can get the official Motorola Lollipop OTA.

How do I go from CM12.1 back to stock 4.4.4 with OTA updates etc? I have the standard CM12.1 kernel and TWRP 2.8.6.0

I am in the UK and the phone was originally Tesco Mobile but was network unlocked the same day I bought it.
[Moto G General] lept_2014:
You can try to flash directly a Factory Image from Motorola 5.0.2 EU (XT1032_FALCON-RETEU_5.0.2_LXB22.46-28.1_1_cid7_CFC_1FF.xml). This is the sequence of commands:

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_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
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
[Moto G General] vsEnjoi:
I figured this out about 30 mins ago :). Thanks anyway though.
[Moto G General] Joandvg6:
Solution for sparsechunk!!

To the ones facing the problem that fastboot can't load the system img sparsechunk1, nor sparsechunk 2 nor sparsechunk 3

Take a look at your installation folder and check the names of the last 3 files. In my case, since it sad cannot load but due to no error y figured out that the problem is because there had to be something different. In my case the names were chunk.X instead of chunkX. (4.4.4 Retail Us Global GSM)

So, I changed them for these and totally worked.

fastboot flash system system.img_sparsechunk.0

fastboot flash system system.img_sparsechunk.1

fastboot flash system system.img_sparsechunk.2

EDIT: Just saw a post using sparsechunk.0 but in order to flash other ROM, so anyway.

I hope this helps somebody.
[Moto G General] Ajmini:
Thanks but you should warn the user that the command "mfastboot erase userdata" will wipe the entire internal storage. I wanted to restore stock firmware and keep my stuff but I wasn't aware that command would do such a thing.
[Moto G General] texan_mirage:
Yes, I lost the nandroid backup as internal storage was wiped. Now, my device is stuck on "Warning Bootloader Unlocked" screen where it vibrates once every time its rebooted, probably that's what the bootloop is. I have tried flashing XT1032- 5.0.2 and 4.4.2 with no success. I have referred to several guides and same thing happens.

Surprisingly, I can only use Philz Recovery as TWRP comes up with a blank screen. I need to find a way to upload files to the internal storage while in fastboot, commands which I have tried so far failed. There is no option to mount storage in Philz recovery and the only version of TWRP which works, shows up after the screen goes to standby and is then locked while unresponsive to touch.

I have also tried command to clear bootloop to no help.

Any help would be appreciated.
[Moto G General] texan_mirage:
I resolved the issue using following commands:

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_sparsechunk.0

mfastboot flash system system.img_sparsechunk.1

mfastboot flash system system.img_sparsechunk.2

mfastboot flash system system.img_sparsechunk.3

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

WARNING: It erases the internal storage.

Restoring stock recovery is important.

Here's the Batch file for above command:
[Moto G General] Julio_MotoMod:
I have brazil firmware can install this without any problem?
[Moto G General] lept_2014:
You won't have any problem, if you have your bootloader unlocked.
[Moto G General] Julio_MotoMod:
if friend and I have unlocked bootloader
[Moto G General] OmarElAdawy007:
I have a Moto G 16gb bought from amazon retail version

I want to know how to reset everything to stock so i can get lollipop i have the stock recovery and the stock 4.4.4 android and i had root but i unrooted but my bootloader is still unlocked so i want the firmware for my version the usa moto g 16gb retail version bought from amazon. please help me
[Moto G General] jonawald:
Hi all. Hopefully if this is not the right place to post this somebody can direct me to the proper place to look. I have a Moto G that boots to a black screen. I get the boot animation and everything looks like it should work then black screen with backlight on. Nothing else.

I can access fastboot. I have unlocked the bootloader with the intention of installing a different ROM. I was unable to get Sideload to work. That always failed with verification error. I made several attempts at installing TWERP. That never stuck. It always booted into the factory Boot manager. Then after a lot more searching I came across this thread and give it a go. Everything seemed to work. All the commands went through, I installed this rom according to the instructions in the first post. Same thing happens. Black screen after boot animation. I don't have Developer options enabled because I cannot access the interface, but I doubt that's my problem.

What can I try next?
[Moto G General] liamaustin24:
Hi Jon,

I have pretty much the exact situation as you.

Phone just went to a back lit black screen on Wednesday (never tampered with anything previously)

Today I have got the bootloader unlocked and did a recovery, and tried to sideload (think the problem here was with drivers after going into recovery)

Tried the same stock file you have tried and still a black screen.

Can't offer any help sorry but wonder if an update of some sort caused this and others also have same problem?
[Moto G General] ezro:
Which lollipop firmware did you use on xt1008?
[Moto G General] bbabel:
I don't know. I just installed the last CM version for the Moto G (codename Falcon).
[Moto G General] johnaaronrose:
Tried this on my UK Retail Moto G - XT1032 (which is on 5.0.2) with an unlocked bootloader (using same download as you did) with flashall.sh changed on lines 120-121 as you specified for downgrade from 4.4.2 to 4.3

(as didn't work without that change) but failed|:

root@Laptop:/home/john/Software/MotoG/falcon_retgb_user_4.3_14.10.0Q3.X-76-LGG-8_54_release-keys-cid7-Retail_GB# ./flashall.sh

Motorola Mobility flashing station script version 1.5

serial number not passed but found one device to flash

>>flashing [TA8830L7EI]

>> Waiting for fastboot enumeration...

Found TA8830L7EI device

>> Found TA8830L7EI device

>> Flashing gpt and bootloader images...

MSM8226/MSM8626 HW detected

./Linux/fastboot -s TA8830L7EI flash motoboot motoboot.img

target max-sparse-size: 256MB

sending 'motoboot' (1940 KB)...

OKAY [ 0.156s]

writing 'motoboot'...

(bootloader) Motoboot: Preflash validation for tz

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.454s

ERROR: fastboot failed.

Help please!

---------- Post added at 11:13 AM ---------- Previous post was at 10:44 AM ----------

Tried this on my UK Retail Moto G (which is on 5.0.2) with an unlocked bootloader (using same download as you did) with flashall.sh changed on lines 120-121 as you specified for downgrade from 4.4.2 to 4.3 (as didn't work without that change) but failed|:

root@Laptop:/home/john/Software/MotoG/falcon_retgb_user_4.3_14.10.0Q3.X-76-LGG-8_54_release-keys-cid7-Retail_GB# ./flashall.sh

Motorola Mobility flashing station script version 1.5

serial number not passed but found one device to flash

>>flashing [TA8830L7EI]

>> Waiting for fastboot enumeration...

Found TA8830L7EI device

>> Found TA8830L7EI device

>> Flashing gpt and bootloader images...

MSM8226/MSM8626 HW detected

./Linux/fastboot -s TA8830L7EI flash motoboot motoboot.img

target max-sparse-size: 256MB

sending 'motoboot' (1940 KB)...

OKAY [ 0.156s]

writing 'motoboot'...

(bootloader) Motoboot: Preflash validation for tz

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.454s

ERROR: fastboot failed.

Help please!
[Moto G General] Hidr0*:
Hello, where can I get the stock rom for XT1033 (Dual Sim) the links on the OP seems dead

TIA
[Moto G General] remo0073:
You can search and/or ask here

http://xdaforums.com/showthread.php?p=60792279

;)

Sent from my Moto G
[Moto G General] moso11:
I flashed XT1034 5.0.2 US AWS firmware image on my phone. But now I realize that there's no root available for it. So can I flash XT1032 EU lollipop firmware image? My bootloader is 411A. Or I'll get bricked?
[Moto G General] alfick3:
There is root. I did it to mine; I put my phone into the boot loader and fastboot flashed TWRP recovery, then flashed the latest SuperSU. That will root your phone. I think there is a one click, but I don't know what it is since I also wanted the custom recovery. I, personally, don't see a reason to be rooted without a custom recovery.
[Moto G General] moso11:
I was also thinking of the same but wasn't sure whether SuperSU will do the job or not.

Thanks a lot.
[Moto G General] alfick3:
You are very welcome.
[Moto G General] moso11:
Well, now, I'm facing an issue while installing TWRP using fastboot.

Although, cmd terminal shows successful flashing but log on bootloader screen says "mismatched partition size (recovery)".

After this whenever I try to boot into recovery, stock recovery loads instead of TWRP.

Any suggestions?
[Moto G General] alfick3:
Are you using this version: http://xdaforums.com/showthread.php?t=2980621 ?

That is the version I used. Flash it, boot into TWRP, then while in recovery, do a reboot back into recovery. I was running into the same problem that the original recovery wasn't going away until I did the reboot from recovery back into recovery.
[Moto G General] moso11:
No. I was trying the latest version from TWRP's website.

I'll give it a shot.
[Moto G General] alfick3:
How'd it go for ya?
[Moto G General] eldar4uk:
thanks guys, worked well, I have used latest TWRP recovery
[Moto G General] moso11:
No improvement. Same result.

I followed the instruction from the link you provided. cmd said "sudo isn't recognized(blah blah)". Then I removed sudo and then tried. It flashed but stock recovery is still there.
[Moto G General] alfick3:
Hmm. Not sure. Maybe one of the other people on that thread can help ya with getting the recovery flashed.
[Moto G General] moso11:
BTW, do you have any idea what would be the consequences of installing EU stock firmware over US?
[Moto G General] swirly05:
Looking for Moto G (1stGen) XT1034 AT&T Firmware... Any help?? Please
[Moto G General] alfick3:
Nope. Haven't tried it. I did try to install the Canadian f/w and couldn't 'cause of wrong partition sizes or something (can't remember now).
[Moto G General] FedeHolyGhost:
HELP

Hi ! I'm succesfully flashing it but at the half of the codes i get " error: out of memory ". How can i fix it ? How do I wipe my internal data ? Btw i can't boot to anything because i did a clean full/wipe and i don't have os, i just can access the fastboot mode. Ty.

C:\Development\XT1032_AMERICAMOVIL-MX_4.4.4denek32\XT1032_AMERICAMOVIL-MX_4.4.4d

enek>fastboot flash partition gpt.bin

target reported max download size of 536870912 bytes

sending 'partition' (32 KB)...

OKAY [ 0.035s]

writing 'partition'...

(bootloader) This may take a few seconds, if a

(bootloader) different partition table is being

(bootloader) flashed since we need to backup

(bootloader) and restore a few partitions

(bootloader) Flashing primary GPT image...

(bootloader) Flashing backup GPT image...

OKAY [ 0.377s]

finished. total time: 0.412s

C:\Development\XT1032_AMERICAMOVIL-MX_4.4.4denek32\XT1032_AMERICAMOVIL-MX_4.4.4d

enek>fastboot flash motoboot motoboot.img

target reported max download size of 536870912 bytes

sending 'motoboot' (1953 KB)...

OKAY [ 0.111s]

writing 'motoboot'...

(bootloader) flashing tz ...

(bootloader) flashing rpm ...

(bootloader) flashing sdi ...

(bootloader) flashing aboot ...

(bootloader) flashing sbl1 ...

OKAY [ 1.297s]

finished. total time: 1.408s

C:\Development\XT1032_AMERICAMOVIL-MX_4.4.4denek32\XT1032_AMERICAMOVIL-MX_4.4.4d

enek>fastboot flash logo logo.bin

target reported max download size of 536870912 bytes

sending 'logo' (1060 KB)...

OKAY [ 0.099s]

writing 'logo'...

OKAY [ 0.143s]

finished. total time: 0.244s

C:\Development\XT1032_AMERICAMOVIL-MX_4.4.4denek32\XT1032_AMERICAMOVIL-MX_4.4.4d

enek>fastboot flash boot boot.img

target reported max download size of 536870912 bytes

sending 'boot' (10240 KB)...

OKAY [ 0.390s]

writing 'boot'...

OKAY [ 1.012s]

finished. total time: 1.403s

C:\Development\XT1032_AMERICAMOVIL-MX_4.4.4denek32\XT1032_AMERICAMOVIL-MX_4.4.4d

enek>fastboot flash recovery recovery.img

target reported max download size of 536870912 bytes

sending 'recovery' (10240 KB)...

OKAY [ 0.406s]

writing 'recovery'...

OKAY [ 1.013s]

finished. total time: 1.420s

C:\Development\XT1032_AMERICAMOVIL-MX_4.4.4denek32\XT1032_AMERICAMOVIL-MX_4.4.4d

enek>fastboot flash system system.img_sparsechunk.0

error: out of memory

C:\Development\XT1032_AMERICAMOVIL-MX_4.4.4denek32\XT1032_AMERICAMOVIL-MX_4.4.4d

enek>fastboot flash system system.img_sparsechunk.1

error: out of memory
[Moto G General] SabertoothTitan:
Anyone using this method to flash the XT1039 Firmware needs to note that in the system.img_sparsechunk sections you need to add a something to get it to work correctly, it should read as follows:

mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3

If this section doesn't flash for whatever reason, check your folder and make sure its named correctly ;)
[Moto G General] remo0073:
EU stock firmware is for XT1032

If you have XT1034 I think you won't be able to make call or go internet using data.

Sent from my Moto G
[Moto G General] shawn350:
how

How do you downgrade the xt1028 Verizon CDMA from 4.4.4 to 4.4.2 I've seen the downgrades many but not the Verizon version. Rooting and unlocking this phones boot loader seems impossible also I used kingoroot to root it but its only temporary root and it takes a few tries but SuperSU isn't placed its kingouser.
[Moto G General] Tonystew42:
Trouble flashing 4.4.4 XT1031

Hopefully someone can help me here. I'm trying to flash stock 4.4.4 XT1031 firmware onto my phone, but when finished it always gets stuck at the boot screen. When putting in the instructions in the OP, I get an error on gpt partition, but also on motoboot.img, which I think may be causing the problem. I am on bootloader 41.19, but I'm able to get Cyanogenmod 11 installed without issue.

Flashing motoboot.img gives the error "Motoboot: Preflash validation for tz / Preflash validation failed / FAILED (remote failure)". I really need stock firmware so that I can update my carrier profile, as a recent CM12.1 nightly seems to have borked it. Every post concerning lollipop downgrades to Kitkat say to ignore motoboot, but even if that's the case what is causing my issue?
[Moto G General] kirokko:
Hi!

I have a Moto G 4G XT1039. I have unlocked bootloader. I know that it is possible to lock (relock) bootloader again. Do I need the new key for the second time for unlocking my device or I could use the key from the first time? Just to make it clear: do I need a new unlock key for every unlock process of my device?
[Moto G General] SyedSaqibRuman:
Boot Time

My phone was soft bricked so i follow your steps and its stuck on boot logo so any suggestions...please reply
[Moto G General] DavaySuka:
No idea, sorry.
[Moto G General] mohammad.nomaan:
Great Guide

Fixed my almost dead device back to Stock L

Just one question, does the Stock rom here come Rooted

I saw the SU already installed on the Asia XT1033 file?

Thnx
[Moto G General] aveyer:
How can we restore stock 5.1 coming from CM12?

The new L zips have different files than KitKat did.
[Moto G General] kosmasdel:
Can I restore stock 5.0.2 motorola rom coming from 5.1 gpe rom according to this?
[Moto G General] nordcupp_motoG:
with every single command I tried in here I killed the phone step by step even further.

Most commands suggested had an unintended effect. Right now, not even the bootloader shows up. It is pretty much dead.

Another very successful 10 hour Android story wasting a lot of money...
[Moto G General] lept_2014:
No. The STOCK ROMs for this method always are untouched, so they don't have root.

In some cases, just one difference. One more file for system (system.img_sparsechunk.3).

You must flash all files from Stock Rom Lollipop. That is all.

Yes. You must flash all files from Stock Rom Lollipop 5.0.2. That is all.
[Moto G General] rishabhmthakur:
I am in bootloader using adb reboot-bootloader. My system detects my device in b=fastboot mode as it sees fastboot falcon s.My phone shows USB connected.However i still end up with the waiting for device message after the fastboot command.What should i do?

Im using Cyanogenmod 12 using android 5.1.Please help guys.I wanna go back to 5.0.2 stock
[Moto G General] tzzeri:
Did you download device drivers onto your computer?
[Moto G General] Wizzie86:
I downgraded from 5 to 4.4.4, but now it seems I can't get the GPS to work... With the GPS test app, it just doesn't find any satellites...

Anyone familiar with this issue? Help is appreciated. Is there a fix for this?
[Moto G General] mrcorey:
Although this fix is supposed to be after installing custom rom, maybe it can help: http://xdaforums.com/showthread.php?t=2909768

[GUIDE] Fix GPS in custom ROMs
[Moto G General] kosmasdel:
Another question. Is this method suitable for downgrading? For example from CM 12.1 to stock rom 4.4.4 ?
[Moto G General] vbnoob:
I also want to know this.

no problem from 5.0.2 to 4.4.4

thanks.
[Moto G General] gizzvn:
So i found some firmwares of my moto g xt1028 and tried to flash downgrade it to 4.4.2 but not successfully. After that, i tried to back to 4.4.4 and now stuck at this message:

- "failed to validate system image"

- Fastboot reason: "Fall-through from normal boot mode"

Any idea how to let me back as it is? :crying: Please help
[Moto G General] hashdoom:
Just used this method to fix my phone. I had rooted and flashed CM on mine and had lost cellular connectivity. Followed the method listed here to downgrade to 4.4.4 and mobile networks are working fine now. Thank you!
[Moto G General] killerBRs:
OTA Don´t work to update to 5.1 (Seys Updated)

After Downgrade

WHY?
[Moto G General] Status_Errorv1:
really frustrating every time I try to restore the stock firmware it boot loops at "starting services" on Xt1031
[Moto G General] Status_Errorv1:
this zip file worked for me its the stock firmware works perfectly planning on selling my Moto G cause I got a Zenfone 2 http://www.filefactory.com/file/42f...4_KXB21.14-L1.57_57_release-keys-cid9.xml.zip had the same errors as you when flashing the firmware but it would boot loop at "starting services"
[Moto G General] yagyaxt1068:
Question

RETAIL-ASIA_FALCON_14.10.0Q3.X-84-7-LCG-4_cid7_CFC_1FF.xml.zip

RETAIL-GB_4.3_14.10.0Q3.X-76-LGG-8_cid7_CFC_1FF_svc.xml.zip

Do these work on the dual SIM version Asia Retail or no?
[Moto G General] remo0073:
You can find and download the proper firmware here (XT1033 model)

http://xdaforums.com/moto-g/general/index-moto-g-falcon-factory-firmware-t3110795
[Moto G General] XTheArrowX:
Motorola Moto G (2015) listed accidentally on FlipKart

http://feedproxy.google.com/~r/AndroidNewsGoogleAndroidForums/~3/dsLsLoeVEY8/

Sent via BlinkFeed
[Moto G General] tahins:
How did you fix it?
[Moto G General] remo0073:
You have to unlock your Bootloader
[Moto G General] shatheone:
ive tried to do this and it continues to say 'waiting for device', tried on two different pcs. not sure what to do from here, im running 8.1

bootloader unlocked, also usb debugging is on

EDIT: so i tried using the moto flash tool and i got alot a whole lot further, the only errors i got was for the sparsechunks from the system .img, really not sure why i got that error, anyone got a solution to this?

i have 4 sparsechunks btw
[Moto G General] pchowla:
FAQ slightly off

Thanks so much for the guide. This was great. Just one difference - some firmwares have slightly different filenames. For example I used XT1045_PEREGRINE_RETUS_5.1_LPB23.13-37_cid9_CFC

For this firmware I needed to use the following codes in place of the above:

mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3

Note the extra line and the dots.

Thanks again!
[Moto G General] pfjquique:
My phone cannot start

My phone can´t start. The USB status is stopped and i can´t change... One solution please!!
[Moto G General] marexel:
Hi there,

i'm trying to install CM-12 on my peregrine but though i have a lot of problems i wanted to install the latest Motorola StockROM. I was looking at the filefacotry directory posted on page 1 (sorry, I'm new and can't show outside links) but this is a bit too much for me. So if anyone could help me finding the right StockROM...

I have the XT1039 (Moto G 4G) peregrine, so is XT1039_PEREGRINE_RETDE_5.1_LPB23.13-17_cid7_CFC.xml.zip the right one? I am hesitating because of the "RET" - retail..?

Thanks so far, kr,

marexel
[Moto G General] ZurekDar:
Xt1032 gpe 5.1

Hi

How to install GB version (XT1032_FALCON-RETGB_5.0.2_LXB22.46-28.1_1_cid7_CFC_1FF.xml.zip)

My current version is GPE 5.1, is required switch to f2fs from ext4 (userdata)?
[Moto G General] r25txe:
When you follow the instructions at the start of this thread you will be downgraded to Stock 5.0.2 and the partition table will be adjusted by the commands in the list.

You must boot your phone into recovery and format data as f2fs as I do not think the flash commands perform the format. Then boot your phone normally.

---------- Post added at 20:20 ---------- Previous post was at 20:14 ----------

I have a soft brick/sometimes bootlooping Moto G on 41.18 with TWRP 2.8..6.

I believe my /data partition is corrupted in some way. Occasionally I can get into recovery and if I try to run a check on /data the ohone reboots. It won't allow me to format it either.

If I run the commands in sequence here and use the GB retail 5.0.2 will this make any necessary adjustments to my bootloader or do I need to downgrade my bootloader manually?
[Moto G General] ZurekDar:
format the partition before an operation changes?
[Moto G General] r25txe:
I think it would be best to format to F2FS before you flash your Stock ROM.

Remember that you need to format /data and /cache to F2FS, and leave /system as EXT4.
[Moto G General] fornax.sh:
No data after flashing stock?

Ignore me. Figured out what I was doing.