yashsingh1/xdaforums huggingface dataset:
[Moto G General] staseyro:
Hi guys! Yesterday this stock Moto G 1063 all of a sudden went black. It displays Moto animation on boot and then just goes blackscreen.

I can open fastboot mode, but can't go to the Recovery mode (says boot up failed). I tried to reflash it following instructions here. It looked like everything went fine, but nothing changed after reboot – same black screen after Moto animation. I've done it 3 times already, both on Mac and Windows. One strange thing I've noticed: after reboot and before going black it shows this popup in Russian (says Updating Android, launching apps). The phone was set to russian before it soft bricked. Shoudn't it be English by default if I flashed the phone correctly?

Message in russian: cl.ly/image/0m1T0l1t0Q2A/Screen%20Shot%202015-08-17%20at%201.52.39%20AM.png

fastboot flash log: cl.ly/image/040a1M0J1Z1C/Screen%20Shot%202015-08-17%20at%202.25.03%20AM.png
[Moto G General] nelsonw:
Hi! I have this error: mfastboot flash system system.img_sparsechunk1 target max-sparse-size 256MB Cannot load...

XT1543_OSPREY_RETLA_DS_2GB_5.1.1_LPI23.72-33_cid12

Thanks!

FIXED! Wrong name of the file

mfastboot flash motoboot motoboot.img

Didn't passed. I Guess this is the bootloader. The file in the zip is bootloader.img. Which is the correct command?

Thanks!
[Moto G General] Eurofighter_ty:
Can I downgrade to Android 4.3 just by this file ?

http://www.filefactory.com/file/5va...GG-11_57_release-keys-cid7-EURetail_EU.tar.gz

just flashing the system parts.
[Moto G General] RocketScienceFTW:
Probably should modify the guide to say that you should not try to flash old motoboot, if you already flashed the new one. As this is supposedly one of the ways to brick your phone.
[Moto G General] Nadavs10:
Is it safe to restore to stock firmware 5.0.2 from a currently installed CM12 5.1.1?
[Moto G General] RocketScienceFTW:
I've heard about bricking problem only if you go pre 4.4.4 (after going 4.4.4 or newer).
[Moto G General] Nishblueweapon:
plz add 1 more line in the op to flash the sparsechunk0 system partition
[Moto G General] Nadavs10:
Thanks. I was able to restore stock firmware & lock the bootloader.
[Moto G General] toad02:
I have the exact same situation here, except for the popup.

Could you find a solution already?
[Moto G General] valp88:
Just passing by to say I've used this topic to get from a Optimized Stock 5.0.2 back to 5.0.2 stock and got the 5.1 OTA notification right after boot.

I didn't flash the motoboot and just had to pay attention to the name of some of the files.

Thanks.
[Moto G General] ollieshikarii:
When i use the command, i get a waiting for device message...

I think i have all the necessary drivers on my pc

When i use the fastboot/abd devices command it shows my device

Im using a moto g 2ng gen xt1072 :p

Hope someone could help me :good:
[Moto G General] withnoe:
Moto G xt1031 stuck cycling bootloader after reflash

When I use http://xdaforums.com/moto-g/general/index-moto-g-falcon-factory-firmware-t3110795 for xt1031 I get stuck in a boot loop know matter how many times I try. The phone I have came from textnow which is a sprint MNVO so I know it has to be a CDMA version. What am I missing?
[Moto G General] Androidnow:
I copied the mfastboot.exe in the folder having the stock rom. Double clicked on the .exe file and got this error. Is it something that is suppose to happen?
[Moto G General] rwxr-xr-xis:
Hey guys I converted to GPE and now my PC dont reognize it

PS: Cant enter in recovery
[Moto G General] Cotopaxi42:
Thanks, worked fine! :)
[Moto G General] gmp009:
put these two files in ur directory and then run
[Moto G General] ozz200127:
Can I downgrade on the 1028 from 4.4.4 to 4.3
[Moto G General] Mau669:
hope this isnt a silly question the guide says the following:

mfastboot flash system system.img_sparsechunk1

mfastboot flash system system.img_sparsechunk2

mfastboot flash system system.img_sparsechunk3

but in my rom files i have:

system.img_sparsechunk0

system.img_sparsechunk1

system.img_sparsechunk2

i should just flash starting from 0 right?
[Moto G General] saikrissh:
Install Custom recovery

Hey anyone please let me know how to restore bootlooader from 41.1a to previous 5.0.2 bootloade....... I'm Unable to root my device in latest bootloader 41.1a
[Moto G General] rokban:
Yes whatever file name is there in your system you must follow that, do not follow the commands blindly :)
[Moto G General] moso11:
Has anyone upgraded his XT1034 from 5.0.2(XT1034_FALCON-RETUAWS_5.0.2_LXB22.99-36_19_cid9_CFC_1FF.xml.zip) to 5.1(XT1034_FALCON_RETUAWS_5.1_LPB23.13-58_cid9_CFC.xml.zip)?

What is the bootloader version?

I'm using custom ROM currently so do I have to revert back to stock first?
[Moto G General] toniu-massa:
hi!!!

dont worked to me... :(

info: Moto G XT1033 Dual Sim 16GB - Brazilian VIVO Carrier

trouble: blank screen (I guess soft brick)

I flashed lollipop 5.0.2. After of booting, a lot of apps stop working (warm pop up on screen) :(

If I reboot it, it backs again to blank screen. :(

ROM: BRASIL_XT1033_5.0.2_LXB22.46-28_cid12_CFC.xml

I flashed lollipop 5.1 and it getted same. (apps stopping of working; after rebooting, blank screen again) :(

ROM: XT1033_FALCON_RETBR_DS_5.1_LPB23.13-56_cid12_CFC.xml

I unlocked bootloader and I tried downgrade: it shows invalid validation in mfastboot. :(

ROM: RETAIL-BR-DS_4.4.4_KXB21.14-L1.40_38_cid12_CFC_1FF_SVC.xml

VIVO-BR-FALCON_14.10.0Q3.X-76-LCG-8-3_cid12_CFC_1FF_svc.xml

Would can anybody help me??? :eek:

I used mfastboot for flashing... I dont know what’s wrong!!! :confused:

thanks!!!! :)
[Moto G General] toniu-massa:
No one has the answer to me?

I tried downgrade again, but this time I removed the following lines:

mfastboot flash partition gpt.bin

mfastboot flash motoboot motoboot.img

mfastboot flash logo logo.bin

Now, all commands ran fine (no error), but has not removed Lollipop... :confused:

Apps keeps stopping of working... :crying:

Anyone?
[Moto G General] toniu-massa:
Did anyone understand what I said?

enghlish not as good as expected to be?
[Moto G General] samsumo:
Thanks for the great tutorial . Worked for me .

moto G and Motorola Moto G X1032 stock firmware
[Moto G General] strengthofmind:
This guide worked for me.

I had got stuck in a bootloop after flashing a bootanimation over CM12. Regardless of which TWRP I flashed it rebooted part way through any process.

I used the GB Retail 5.02 file

XT1032_FALCON-RETGB_5.0.2_LXB22.46-28.1_1_cid7_CFC_1FF.xml.zip

https://www.androidfilehost.com/?fid=24052804347782021

With the obvious exception that I changed the mfastboot code to:

system.img_sparsechunk.0

system.img_sparsechunk.1

system.img_sparsechunk.2

system.img_sparsechunk.3

as appropriate.

I needed to install the Fastboot drivers here, in addition to the ones in the OP to get it working.

https://drive.google.com/file/d/0B0MKgCbUM0itVVFWRC02Q0VBQnc/view
[Moto G General] silent_Eagle:
Hi guys , i'm totally f*#&d up , lol

My wifi didn't work and i think i can restore my phone to stock rom ( i use stock rom in official state ) to make it repair , but after flash my imei is getting null,

What should i do?

And i need to add my post , in flashing rom , main of rom ( that part of rom that have huge size and its take a part to multi part ) fail to flash

My phone is Moto G 4G and i download rom for XT1039

Please tell me what should i do to get back my imei
[Moto G General] skastream:
I think ur right
[Moto G General] kosmasdel:
I used this method to downgrade to 4.4.4 eu retail from 5.0.2 eu retail but there is a small bug. Every time the phone boots the screen is flickering until I lock it and unlock it once. Is there a possible solution? Why is this happening? I flashed the 4.4.4 twice but i t remains.
[Moto G General] _that:
That's an incompatibility with the bootloader. Since you can't downgrade the bootloader, I guess you have to live with it.
[Moto G General] kosmasdel:
Ok, thanks for your answer! By the way, an irrelevant question with the thread. Is it possible to enable ambient screen notifications on 4.4.4 as it is on 5.0.2. For example with an xposed module or something like that?
[Moto G General] joker-soft:
Youtube video

How to restore Moto G XT1033 to stock rom
[Moto G General] Maxicud:
Hello,

I have a XT1032 with US Retail 5.1 stock software and bootloader locked.

I'm having problems (the phone shuts down randomly) since I got the OTA update.

I want to go back to 5.0.2 Retail US.

So the question is:

Can I downgrade from 5.1 to 5.0.2 with this tutorial without problems?

Thanks in advance
[Moto G General] ExedoYT:
Thank you so much for this guide! I'm so glad I found it. I've been trying for the past 2 days to fix my soft-bricked Moto G XT1032 and I've finally got it to start up and work again! This saved my phone.
[Moto G General] P.Kosunen:
Did you try factory reset?
[Moto G General] Maxicud:
Hello, yes I did. But it keeps happening.

So, my last option is to perform that downgrade that I'm asking about.

Thanks
[Moto G General] cygawa:
Stuck on Fastboot Mode after Preflash validation failed

Hi Guys.

I seem to have bricked my Moto g XT1032. I had not unlocked the bootloader as the Motorola service says that the phone is not eligible. So I went ahead and used the XT1032_FALCON_RETGB_5.1_LPB23.13-56_cid7_CFC.xml.zip firmware.

C:\XT1032_FALCON_RETGB_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.029s]
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.443s]
finished. total time: 0.473s

C:\XT1032_FALCON_RETGB_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash motoboot motoboot.img
target max-sparse-size: 256MB
sending 'motoboot' (1953 KB)...
OKAY [ 0.091s]
writing 'motoboot'...
(bootloader) flashing tz ...
(bootloader) flashing rpm ...
(bootloader) flashing sdi ...
(bootloader) flashing aboot ...
(bootloader) flashing sbl1 ...
OKAY [ 1.502s]
finished. total time: 1.593s

C:\XT1032_FALCON_RETGB_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash logo logo.bin
target max-sparse-size: 256MB
sending 'logo' (295 KB)...
OKAY [ 0.070s]
writing 'logo'...
OKAY [ 0.085s]
finished. total time: 0.160s

C:\XT1032_FALCON_RETGB_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash boot boot.img
target max-sparse-size: 256MB
sending 'boot' (10240 KB)...
OKAY [ 0.355s]
writing 'boot'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.925s

C:\XT1032_FALCON_RETGB_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash recovery recovery.img
target max-sparse-size: 256MB
sending 'recovery' (10240 KB)...
OKAY [ 0.365s]
writing 'recovery'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.951s

C:\XT1032_FALCON_RETGB_5.1_LPB23.13-56_cid7_CFC.xml>mfastboot flash boot boot.img
target max-sparse-size: 256MB
sending 'boot' (10240 KB)...
OKAY [ 0.400s]
writing 'boot'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.995s

Any ideas how I can recover my phone will be highly appreciated.

EDIT:

I managed to recover my bricked moto g.

I feel the thread author missed an important point for those with locked bootloaders (in my case, my moto g is not supported by the official bootloader unlock service). If your bootloader is locked, then the firmware you are trying to flash Must have the same 'cid' as your phone. You can get the CID number by running

mfastboot getvar all

Compare the CID with the name of the firmware. CID C16 seems to be working on devices with cid c10 (AIO or something)
[Moto G General] xarch15:
bootloop bootloop!

I have the same problem, i have moto G x1032 the firmware that i could flash with no problems was XT1032_FALCON_RETFR_5.1_LPB23.13-56_cid7_CFC.xml by no problems i mean no hab check failure and no mismatch failure but i am still stock at boot loop

i cannot install any custom recoveries for unknown reason. only thing i can do is doing fastboot boot TWRP-falcon-GPE or stock which gives me a temporary access to my sdcard but i cannot add or remove anything and it is only read only! any times i tried flashing a custom recovery it came with the mismatch error and nothing showed up afterwards.

any help would be much appreciated
[Moto G General] lept_2014:
For flash the STOCK ROM, did you use 'fastboot.exe' or 'mfastboot.exe'? You must use mfastboot v2, and it is at the OP.
[Moto G General] xarch15:
Thanks for your reply. yes i used Mfastboot and no it did not work :(

it goes trough the whole process of flashing with no problem yet in the end after reboot it gets stock on the bootloader unlocked screen.
[Moto G General] _that:
Interesting fact: I used the standard fastboot from Android and it worked fine on my XT1039. It just needs to be a recent enough version to support sparse images.
[Moto G General] alfick3:
Also if you're using a Linux platform as I am, you have to use fastboot. I don't think there is an mfastboot for Linux, I think it's only a windows program. The Linux fastboot works perfectly to flash the stock firmware.
[Moto G General] _that:
There is an mfastboot for Linux, but apparently the required changes have been merged upstream and it is no longer required.
[Moto G General] xarch15:
Hi eveyone i am stuck at bootloop tried everything and yet nothing worked. looks like i cannot write anything to my phone i even tried this method yet no luck

detailed description here : http://xdaforums.com/moto-g/help/stock-bootloop-1032-flash-recovery-t3236345

any help is appreciated
[Moto G General] lept_2014:
Inside ZIP mfastboot v2 from OP, there are a version for Windows, a version for Linux, and a version for Mac.

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

Try all commands for flash, but with 'mfastboot.exe' (from OP), or with the last version of fastboot.exe (from SDK Tools Only).
[Moto G General] xarch15:
I used the SDK fastboot version which looks like the latest.
[Moto G General] _that:
Unfortuately fastboot has no version number. When you run fastboot without any arguments, the last listed option must be about "automatically sparse files". If this shows up, your fastboot should be OK (and your problem is elsewhere), otherwise you need to find an update or use mfastboot.
[Moto G General] demoncamber:
How do I go about just restoring stock recovery so I can do the OTA to lollipop? xt1042

Is it possible to just flash recovery?
[Moto G General] Pavel So:
Unroot Moto G 1032 US retail with Android 5.0.2

Hi everyone,

I have rooted my device after the upgrade to 5.0.2

Now i want to unroot it to be able to update via OTA.

Do you have any clues on how to do this?

Thanks
[Moto G General] alfick3:
Did you use SuperSU? If so there's an option to unroot. If you flashed a stock recovery you'll have to flash the stock recovery as well.
[Moto G General] ImperialPM:
I need some help! When I try to flash system.img it says Failed to erase partition.

>mfastboot flash system system.img_sparsechunk.0
target max-sparse-size: 256MB
sending 'system' (257883 KB)...
OKAY [ 9.055s]
writing 'system'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: 17.582s

Flashing partition, motoboot, logo, boot and recovery says [OKAY], but I'm getting failure here. How can I fix it? Thanks in advance!
[Moto G General] sithidious:
Hi I'm trying use this method but all I'm getting in command prompt is waiting for device. I have opened the device to the bootloader screen and nothing is happening, I have the required usb drivers. I have also used the fastboot devices in minimal adb to see if the device responds to the command and its fine there so a bit puzzled. Thanks for your help in advance.
[Moto G General] nitin.chobhe:
Check this:

1. Is USB debugging enabled?

2. PTP selected?
[Moto G General] sithidious:
No usb debugging isn't enabled as it boots to fastboot, so I'm trying to flash stock rom using the mfastboot method by flashing each partition one by one. What is PTP?
[Moto G General] sithidious:
No usb debugging isn't enabled as it keeps booting back to the bootloader screen. What is PTP?
[Moto G General] _jis_:
Picture Transfer Protocol. You should use MTP (Media Transfer Protocol) which is better for transferring files.
[Moto G General] sithidious:
Yes it's in MTP, but unable to get to os due to it keeps going into fastboot mode then loads up the bootloader. So I'm trying to flash stock rom using mfastboot method flashing each partition but when I enter the mfastboot flash command it just says waiting for device.
[Moto G General] nitin.chobhe:
When you connect your phone to PC, it can be connected at Media device (MTP) or picture device (PTP). It should be PTP.
[Moto G General] sithidious:
How can I switch it to PTP as I can't access the OS as the phone is bricked and stuck at the bootloader saying "failed to validate boot image" and "Fastboot Reason: Fall-through from normal boot mode" can this be fixed using the method in this thread?
[Moto G General] 3nAn0402:
THANK YOU!

It worked I was able to go from 5.1 GPE to 5.1 Telcel MX :D
[Moto G General] ciborio:
I need to restore stock firmware. At normal startup get Forced closed continuously and makes it unusable.

I can flash all the stock firmware files with Fastboot an confirming me with "ok" with no errors.

Rebooting the phone and nothing has changed.

If I boot into recovery mode, and do a wipe data, tell me ok, but in practice did not cancel anything.

What is wrong?

Thanks
[Moto G General] sithidious:
I have followed this guide manged to flash each partition but when reboots it still goes to AP Fastboot Flash mode (S) and it stills say failed to validate boot image

fastboot reason: Fall-through from normal boot mode.

Does this mean the phone is beyond repair?
[Moto G General] bur2000:
The download link for stock ROM in the first post is broken.

Does anyone have a working link for 1032 stock ROM? Preferrably german retail.
[Moto G General] shythephotoguy:
The XT1072 LXB22.99-24.12 11 stock image contains this file: slcf_rev_b_default_v1.0.nvm

What's it for? Does it needs to be flashed too or is it use to do something else?..
[Moto G General] nithinkv:
max size problem can be solved by using mfastboot instead of fastboot
[Moto G General] syedtufailahmed:
5.1 factory images for xt1033 not yet released?

---------- Post added at 06:37 PM ---------- Previous post was at 06:35 PM ----------

your eMMC chip is corrupt. that means your phone hard disk is no more!
[Moto G General] Nnyan:
Just performed this and it seemed to work. But I ended up with a line of distortion that runs from the top of the screen to the bottom (not in the recovery but during bootup animation and phone setup). Almost like an old school TV with bad reception. Not sure where to go from here and any help will be greatly appreciated!

Thank you
[Moto G General] satanas17:
What stock firmware version do you have restored and what's your bootloader version?

Flickering is always due to mismatch between bootloader version and rom version.

For example, your bootloader can run lollipop but due to version, flickering appears at first boot. When you power off your screen and power up, flickering disappear...

You can upgrade your bootloader with this :

http://xdaforums.com/showthread.php?t=3093793

Easy to use and efficient ;)
[Moto G General] Nnyan:
It was on 4.4.2 and I thought I was just rooting and installing TWRP (which didn't work) but it looks like I may have updated to 5xx, I wiped back down to factory 4.4.2 so that would make sense. I'm not familiar with Moto's at all so I'm not sure how to tell what version of the bootloader I have (but I'll try to find one for 4.4.2 and try flashing that).

EDIT: just noticed that in AP Fastboot mode (s) it says: 41.19 Not sure if that's the bootloader (or which one is the one I need if I followed the process on this post).
[Moto G General] DPX:
41.19 is the bootloader and it came with Lollipop!
[Moto G General] Nnyan:
Ok that makes sense. I managed to get TWRP installed and installed a Lollipop ROM (from the Stock collection the optimized) and the flickering went away. Now to see why wifi isn't working.
[Moto G General] satanas17:
Could you please remind me what's your Moto G model (XT1032, XT1039...)

OH, yes, most important : NEVER TRY TO DOWNGRADE YOUR BOOTLOADER! Mostly sure it will be bricked...
[Moto G General] Nnyan:
It's an XT1031 (well two of them, they are for my kids to use as non cellular phones). One came with 41.13 and the other 41.18. Using the bootloader upgrade toolkit it upgraded the 41.18 to 41.19 and the 41.14 to 41.1A (not sure why never did give me an option to choose) and now I can't downgrade. : )
[Moto G General] drnoellyg:
I've used this process many times now, always worked great until today. Restored a 1032 that I hadn't used in over a year. I turned it back to stock, rebooted and got stuck with the little android and red warning sign. don't know why, bootloader was already updated. Flashed the newest TWRP, it did its thing and now I'm back to stock Android, fully working. Weird.
[Moto G General] Joy_Gohil:
Image Size is To Large

while flashing sparsechunk files the error show that image is too large
[Moto G General] sniktaw:
thanks my friend you saved my bacon! :p
[Moto G General] hemantkarandikar:
MotoG XT1032 can't restore stock (Done successfully !)

My device journey:

stock 5.1 > CM 12.1 nightly 29 /11/2015 (this was working well and I came here after several nightly updates

On this I flashed CM 13 (official) nightly of 4/12/2015 (followed clean update procedure in OP) and this caused bootloop

I was able to get in bootloader and at times in twrp. I updated twrp to latest ver. Now I can boot in recovery from bootloader.

I tried reflashing CM 12.1 this agian caused bootloop. On that thread I was asked to restore stock and reflash CM 13.

So came to this thread and downloaded stock XT1032_FALCON-RETGB_5.0.2_LXB22.46-28.1_1_cid7_CFC_1FF.xml and followed procedure in OP of this forum

I get following errors when I try to execute commands

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

D:\MotoGGBStock\XT1032_FALCON-RETGB_5.0.2_LXB22.46-28.1_1_cid7_CFC_1FF.xml>mfast

boot flash partition gpt.bin

target max-sparse-size: 256MB

sending 'partition' (32 KB)...

OKAY [ 0.030s]

writing 'partition'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.321s

D:\MotoGGBStock\XT1032_FALCON-RETGB_5.0.2_LXB22.46-28.1_1_cid7_CFC_1FF.xml>mfast

boot flash motoboot motoboot.img

target max-sparse-size: 256MB

sending 'motoboot' (1953 KB)...

OKAY [ 0.099s]

writing 'motoboot'...

(bootloader) Motoboot: Preflash validation for tz

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.352s

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

Will be great if I get a solution... Got the right version of ROM (5,1) Problem solved using OP procedure. Thanks!)

Thanks
[Moto G General] _that:
You can't downgrade the bootloader. Try flashing a 5.1 stock image.
[Moto G General] kissel:
Hi,

Is there a way to downgrade Android 5.1 to 4.4

OR

to read SPC under 5.1? XT1028... I have tried to flash custom recovery but keep getting a "Mismatched partition size (recovery)" message.
[Moto G General] alfick3:
If you read the recovery thread, several times throughout that thread it mentions that partition mismatch. It's OK. It won't hurt anything. It happens all the time to everyone that flashes TWRP (I assume you're flashing TWRP).

Sent from my Moto G XT1034
[Moto G General] kissel:
Well, I know that it won't hurt. The thing is - it does absolutelly nothing. TWRP won't flash.
[Moto G General] Der_K:
FlashAll.Bat ???

Where do I get the Flashall.bat code here?? It's included on the 'tar.gz' file? :eek:
[Moto G General] rishisuri:
I have moto g xt1031, which i am rsing on reliance india network, i upgraded it to android 5.1 using ota, but after the ota the tethering optio from the settings is missing , how can i get it back.﻿