yashsingh1/xdaforums huggingface dataset:
[Moto G General] tzzeri:
I was on cyanogenmod, my phone froze, I pressed and held power, my phone didn't boot past the boot logo, so I booted into bootloader, then to recovery. It didn't get passed the blue screen that says teamwin, so I flashed stock firmware from this post, (using an xml.zip, but not everythinhg flashed OK), booted into recovery, it booted into stock recovery, tried booting Rom, but it didn't get passed boot image (bootloader unlocked warning); probably because no Rom was installed because of flashing firmware, so I went back to recovery and now it doesn't detect when my phone's plugged in so I can't use adb to get twrp and custom recovery. Do I need to get different drivers or something?
[Moto G General] killa28:
phone bricked?? are you sure???

I have no idea if this will help but to perform a factory reset in stock recovery press and hold volume down and power until you see the progress start then release both.
[Moto G General] ficki yahya:
Can i have download link for recovery stock image? I want to replace cwm with stock recovery
[Moto G General] AgentChaos:
You can get the stock recovery here

http://xdaforums.com/showthread.php?t=2649763
[Moto G General] ficki yahya:
Thx a lot for your help :)
[Moto G General] mik0tsi:
Try installing motocast drivers. They worked for me.
[Moto G General] ficki yahya:
I have flash stock recovery on my xt1033 with adb tools, and when i boot to stock recovery, theres a picture of green android laying down open its chest box and theres a note "no command",

Is it okay?
[Moto G General] sanchezz:
stock firmware XT1032 AT&T

I bought an AT&T Moto G XT1032 on eBay and I tried to update from 4.4.2 to 4.4.4. Now I bricked my phone. When updating via ADB I got an error when flashing the recovery. When booting, it says that the boot image is missing. Is it possible to unbrick my AT&T Moto G?
[Moto G General] WITFRA:
Return to stock recovery.

If I want to return to stock recovery from TWRP can I than just flash recovery from stock firmware with ADB? I want to return to stock recovery for the OTA to Lollipop.

So what I mean is just the recovery, nothing else.
[Moto G General] remo0073:
Yes it is

Have a look here

https://motorola-global-portal.custhelp.com/app/answers/prod_answer_detail/a_id/97329/p/30,6720,9050
[Moto G General] r25txe:
Hi

Just wondering what would happen if you flashed an XML update using the regular fastboot command?

I̶ ̶h̶a̶v̶e̶ ̶a̶d̶b̶/̶f̶a̶s̶t̶b̶o̶o̶t̶ ̶a̶l̶r̶e̶a̶d̶y̶ ̶s̶e̶t̶u̶p̶ ̶s̶y̶s̶t̶e̶m̶w̶i̶d̶e̶ ̶(̶a̶n̶d̶ ̶u̶s̶e̶d̶ ̶t̶h̶e̶m̶ ̶b̶o̶t̶h̶ ̶s̶u̶c̶c̶e̶s̶f̶u̶l̶l̶y̶)̶,̶ ̶b̶u̶t̶ ̶I̶ ̶c̶a̶n̶n̶o̶t̶ ̶g̶e̶t̶ ̶m̶f̶a̶s̶t̶b̶o̶o̶t̶ ̶t̶o̶ ̶w̶o̶r̶k̶ ̶f̶r̶o̶m̶ ̶m̶y̶ ̶c̶o̶m̶m̶a̶n̶d̶l̶i̶n̶e̶.̶

̶

̶I̶s̶ ̶t̶h̶e̶r̶e̶ ̶a̶ ̶p̶a̶r̶t̶i̶c̶u̶l̶a̶r̶ ̶p̶l̶a̶c̶e̶ ̶t̶o̶ ̶e̶x̶t̶r̶a̶c̶t̶ ̶m̶f̶a̶s̶t̶b̶o̶o̶t̶ ̶t̶o̶ ̶o̶r̶ ̶a̶ ̶w̶a̶y̶ ̶o̶f̶ ̶r̶e̶g̶i̶s̶t̶e̶r̶i̶n̶g̶ ̶i̶t̶ ̶s̶y̶s̶t̶e̶m̶w̶i̶d̶e̶ ̶l̶i̶k̶e̶ ̶I̶ ̶h̶a̶v̶e̶ ̶f̶o̶r̶ ̶a̶d̶b̶/̶f̶a̶s̶t̶b̶o̶o̶t̶?̶

EDIT

OK, I got it working and I guess it must have been thiredness last night that had it not working for me. Still curious about the originaal question though!

Can I substitute the TWRP recovery IMG for the stock one in this flash process without any issues or am I better off to let one bootup occur with stock recovery?
[Moto G General] dle94:
Hey guys, how can I extract the stock rom with .xml.zip format? I've tried Winrar, the included folder inside the zip file appears, but it can't be unzipped. Can you guys help me with this?
[Moto G General] MarckozZ:
Use 7zip, that program extracts everything :good:
[Moto G General] dle94:
I've tried 7-zip, and it is said that :" Archive is not readable. Would you like to try a password?". I don't know why it happened?
[Moto G General] krminix:
Your archive may be corrupt it seems. Try redownloading the archive and give it another go.
[Moto G General] Holysmoke99:
t-bon3, thank you very much! My Moto G works again!!!! :)
[Moto G General] majestico:
fantastic guide, thanks!
[Moto G General] pargop:
Nice guide, but has anyone else problems with fastboot does not find the phone? ("waiting for device") is this connected to win 8.1/usb 3.0?

Have read, that this combination causes problem that phone is not recognized. I have tried different usb ports etc. Thinking of trying with other PC as with my previous laptop I did not had such problems.
[Moto G General] vhngu930:
Do you have the drivers?
[Moto G General] pargop:
Yes, I do. Have followed all the instructions, but still. I try with different laptop.
[Moto G General] nitin.chobhe:
That seems the driver problem. There is nothing in guide which would not let your phone get detected by PC. Try scan for hardware in device manager
[Moto G General] roger4011:
need help !

i wiped my whole phone and now i cant find the right firmware

i cant find a stock firmware for my boost mobile moto g ( no Sim )

i tried flashing with a sim firmware but cant get it to work !

please help
[Moto G General] ezeuba:
Need serious help!

I tried to flash Verizon 4.4.2 modem on Verizon 4.4.4 firmware. Needless to say it didn't achieve the desired result, which was to be able to get SPC on 4.4.4, but it booted up fine but no signal (both network and wifi). I gave up and tried to restore back to 4.4.4 stock with mfastboot commands. All commands executed well without any failures, yet the phone refuses to boot up. It goes straight to fastboot mode and says "failed to validate system image. Fastboot Reason: Fail-through from normal boot mode. USB connected"

Any help will be appreciated to get the phone up and running again.

Thanks everyone.

EDIT: There is another sparsechunk4 file in the 4.4.4 Verizon stock sbf which was not shown in the OP. I was following OP guide to the T, but later saw this and corrected accordingly.
[Moto G General] pargop:
Ok, thanks. I`ll check again.

EDIT: When I type in "adb reboot bootloader" phone goes to bootloader. So, it means phone is recognised by the PC or not? But when I try to execute mfastboot commands "waiting for device" is only what I get. Maybe I do need to wait a bit longer??
[Moto G General] DigitalSnow:
Thanks!

This guide was great, thanks!

For the latest 4.4.4 AWSRetail XT1034 the sparsechunk files were named slightly different.

system.img_sparsechunk.0
system.img_sparsechunk.1
system.img_sparsechunk.2

http://xdaforums.com/showpost.php?p=56579534&postcount=424
[Moto G General] nitin.chobhe:
If it is rebooting to bootloader means it is recognized by PC. Check in the device manager if you see Android device. Share screenshots...

---------- Post added at 11:57 AM ---------- Previous post was at 11:46 AM ----------

What OS do you have on your PC? Is it Windows 8? Check this: http://xdaforums.com/showthread.php?t=2256359

Also check a post in this thread itself: http://xdaforums.com/showpost.php?p=49442110&postcount=159
[Moto G General] pargop:
I finally succeeded with this great tool: http://xdaforums.com/moto-g/4g-development/tool-motoflash-automated-flash-to-stock-t2934358. Worked!! I Recommend! So it was still something I was doing wrong myself.
[Moto G General] nitin.chobhe:
That's great! Congratulations :highfive:
[Moto G General] Trekker56:
Will this method work on a consumer cellular branded Moto g 2014 ( Ext1064) to flash it to retail rom?
[Moto G General] ViD0:
tupid q but i will try :D : can i flash US 4.4.2 on my en.GB moto g following tutorial from the first post or i have to unlock bootloader to flash stock fw ?
[Moto G General] helppme:
completed up to Step 4. using my tesco mobile Moto G. I'm trying to flash the Retail version of Jelly Bean. 4.3.

The guide states I should use the 'flashall.bat' where is this? I can't find a batch file, was I supposed to download one with the flashing script?

This is bugging me. When I extract the .gz firmware file I have just one .tar file. How do I flash this single image file??

Im having some issues with my phone since I flashed the component files using the MODACO website guide.

Please respond so I can reflash this correct image to sort my phone.

.
[Moto G General] ryanraven:
trying to flash 4.3 UK all i get is "version downgraded for primary-gpt"
[Moto G General] Ashenphoenix:
I have Moto G with tesco firmware. Can I flash the US Retail 4.3? I mean will that work with my SIM card in EU, no baseband issues?

Also in the tesco firmware, I have carrier name in the notifiation bar, is there a version where I won't see that?
[Moto G General] Bleak3993:
I'm having a similar problem, downgrading from International US Kitkat to any other 4.3 firm...
[Moto G General] JanHavlicek:
the "version downgraded for primary-gpt" error isn't big deal, I passed the other commands successfully, rebooted Moto G and everything works ok, downgraded to 4.3 ;)
[Moto G General] justjr:
Yeah, I also had that problem downgrading, first I was that's what I did and its now working fine. Confirmed. Thanks god :3

Anyone can explain whats the 'mfastboot flash partition gpt.bin' line do and if it may lead to any problems if not executed properly?
[Moto G General] m.mcrespo:
Plz guys what the problem with 4.4.2 kit kat? Because a lot guys downgrade for 4.3?

Enviado de meu XT1033 usando Tapatalk
[Moto G General] justjr:
I downgraded because baseband was not working properly for me, so no network. I'm on Brazil Dual-SIM Moto G. And the US firmware don't support the dual sim, maybe that's the problem at all. Anyway, happy with 4.3 waiting for official KitKat!
[Moto G General] nlra:
Pretty sure it is a backup of the partition table. (GPT is a particular partition table format/standard.) I'm guessing that there is no real difference between the partition table layout for Jellybean vs. KitKat on this phone, although it is strange/frustrating that trying to write the GPT table that comes with the Jellybean ROM doesn't (appear to) work.

-- Nathan
[Moto G General] m.mcrespo:
I am from Brazil too and have same phone that you. I am very happy with my 4.3 with root too. And waiting for oficial kk.

Enviado de meu XT1033 usando Tapatalk
[Moto G General] motoman4rmmars:
flashing Locked PIN device

hello,

I forgot my moto g PIN lock since yesterday. I cant reset the PIN because there is no 'forgot PIN option' I have been stuck since yesterday trying to access the location where the numbers are stored in my brain but no luck.

I cant wipe data/ restore firmware from recovery option as it just restart the device.

Now I want to restore stock firmware using this methods.

Couple of questions before doing that:

I downloaded the o2 UK stock firmware http://sbf.droid-developers.org/phone.php?device=14.

1. Do I need to use minimal adb and fastboot or android adb will do?

2. Do I run the flashall.bat file using 'fastboot flashall.bat command

3. Will this method actually solve the initial problem which is completely restore the phone to new software state?

Sorry for my noobness, but I feel frustrated that I cant reset the PIN using my google account and password which is connected to my device.(or am I missing something here?)

Here is my post from yesterday: http://xdaforums.com/showthread.php?t=2592751

Thanks
[Moto G General] mathm2013:
I'm getting an error when running flashall.bat. It gives me at some point that "'find' is not recognized as an internal or external command".
[Moto G General] gaspo53:
Retail

Nice tutorial! =)

I have Claro Argentina ROM (4.3), can I flash Retail US (4.3) or Retail Argentina without unlocking the bootloader? If possible, I prefeer US because of the updates.

Thanks in advance
[Moto G General] thumper300zx:
Freak!!! I'm boot looping to WARNING BOOTLOADER UNLOCKED screen...

I bought my phone, retail US. Unlocked the bootloader and rooted. I never installed a ROM or recovery. Then the OTA to 4.4 came out...downloaded and failed several times. I removed ROOT and still failed. So, I decided to restore stock firmware. Messed up on my first attempt and phone started to boot loop to lock screen -- I am able to get back into fastboot. Managed to get all the commands to run successfully, but it's still boot looping.

Any help appreciated...I CAN get into stock recovery...but it's just keeps loading up WARNING screen, vibrating, blacking out, then coming back to the WARNING screen.

EDIT: Maybe I tried the wrong version -- didn't realize it was proprietary US (BOOST) -- was using Android 4.3 Blur_Version.14.14.9.falcon_cdma.Boost.en.US	Boost US

Gonna try Android 4.3 Blur_Version.14.14.16.falcon_umts.Retail.en.US	Retail US

WHEW!!! It worked -- update now appears to be working, too.
[Moto G General] thumper300zx:
Hmmm...radio isn't working now -- so maybe my modem version I flashed is incorrect?
[Moto G General] thumper300zx:
That might be my solution. I've been downloading the AWS for the last 20 minutes and started reading through the entire thread -- so thanks for posting this.

BOOM goes the dynamite!!! Anyone with a US Retail, make sure you do the AWS.
[Moto G General] kasmar21:
Flash Stock on Verizon prepaid

Can I use this to flash a US retail ROM onto my Verizon prepaid Moto G? Which one might work?
[Moto G General] martikung:
thanks, i flashed my moto G US version using this guide with locked bootloader :good:
[Moto G General] MaLiXs:
Hi there! Since my s3 got destroyed by bad repair I'm now with a moto G. I would like to know if I can install us 4.4 retail version over my 14.81.1.falcon_umts.telus.en.CA?

(im with koodo in Quebec)

Also if i can flash it, will in remote the carrier label on notification bar

Envoyé de mon XT1032 en utilisant Tapatalk
[Moto G General] soso93:
Thx for Tuto
[Moto G General] remo0073:
For Moto G 1st generation it works

So I think it will work for yours too
[Moto G General] nyvram1:
Yes it will although this makes the process a little easier. Just did it last night.

http://xdaforums.com/showthread.php?t=2934358
[Moto G General] drag00n619:
A little help over here guys.

So, if I have the XT1033 having stock ROM, but CWM. And I want to install the stock recovery, how can I do that? Just flash if like any other recovery? And where can I find that recovery?

Gonna root my phone just for running Xposed for now. Then I have to come back to stock recovery for Android 5.0 update, whenever that comes. So just clearing some things up.

Thanks.
[Moto G General] Trekker56:
Thanks. Gonna try that script.

__________________
[Moto G General] edog11:
Does the bootloader need to be unlocked to do this?
[Moto G General] nyvram1:
No
[Moto G General] jkkw:
I just did this on my XT1064 consumer cellular Moto G, and i'm on stock RETUAWS_XT1064_4.4.4_KXB21.85-17_cid9_CFC.xml.zip

However, i am not being offered lollipop when i go to "about phone"|"system updates", i get "you phone is up to date"

any ideas? is this just a waiting game?
[Moto G General] vhngu930:
The OTA hasn't even been released yet
[Moto G General] vivekj:
I am on rooted moto g (XT1033) with possible modified system. I heard that system should not be modified for lollipop update. If I only flash the system.img from stock image of XT1033 or follow all steps to go to stock image without doing fastboot erase userdata. Will it work? Does all my installed apps will be preserved?
[Moto G General] remo0073:
You can find stock recovery here

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

Look for Miscellaneous

fastboot flash recovery recovery.img
[Moto G General] drag00n619:
Thanks man. Will keep it for future reference. Not rooting now since Motorola confirmed soak tests for the XT1033 Indian version tomorrow.
[Moto G General] xBeerdroiDx:
anyone know if there's an xt1032 4.4.4 stock recovery img laying around? i've searched the boards but can only locate 4.4.3 firmware packages. not sure if the recovery img from a 4.4.3 zip would be fine with the 4.4.4 currently on the device. just getting the device ready for L.

thanks!

EDIT: aaaaaand nevermind. just saw the post above.
[Moto G General] AAQiL:
not working

Trying since last three days and failed. Tried to flash several stock roms. First of all the given stock rom sites are so slow and without resume support. I have problem of electricity load shedding none of the download completed before one hour. And here light goes out after every hour except midnight till early morning. Yeah so I am waking up all night to fix my Android.

My system: Win xp sp3

Tried Canadian ROMs, UK ROMs, US ROMS, EU ROMs

My phone is XT1032. Bootloader unlocked. It had 4.4.4 before I tired to get iOS features using custom ROM.

Battery always 60%+

From the box I guess that its from Spain "Telefon celular" is written in different fonts on the box.

CMD errors: (bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 9.078s

Phone bootloader: hab check failed for boot

hab check failed for recovery

Invalid PIV signed system image

Anybody knows what should I do?

I can flash other non official ROMs but I want stock ROM back in my Moto G.

Edit: I got it working :)

Solution: stopped using command to lock bootloader http://xdaforums.com/showpost.php?p=47949677&postcount=12

ROM I used was CCAWS_XT1032_4.4.2-KXB20.9-1.10-1.34_CFC_1FF (on my Spanish Moto G single sim XT1032) Update: It didn't work. Sim error. Perhaps different frequencies. This ROM is for mid Europe.

Used: RETAIL-GB_4.4.2_KLB20.9-1.10-1.9_cid7_CFC_1FF_v5_SVC.xml.zip (Working fine and getting OTA fine :) )
[Moto G General] drag00n619:
Are you from Pakistan or India by any chance?
[Moto G General] AAQiL:
Pakistan :D
[Moto G General] drag00n619:
Yayy, another Moto G user from Pakistan :D

Btw, join this group on telegram if you want to: http://xdaforums.com/showthread.php?p=56659396

Would love to stay in contact.
[Moto G General] lifetimes:
Using this guide to restore to 4.4.4 on the global xt1032 results in errors after flashing mfastboot flash partition gpt.bin if you start with locking the bootloader first.
[Moto G General] hunters01:
XT1034 issue

Got XT1034 and android version 4.4.2 on it. Got it unlocked using ebay seller and it's working fine with other carriers.

Trying to flash the firmware to 4.4.2 retail one following this thread

1st command runs fine: -

C:\Mobile>mfastboot flash partition gpt.bin

target max-sparse-size: 256MB

sending 'partition' (32 KB)...

OKAY [ 0.023s]

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.468s]

finished. total time: 0.491s

2nd one fails: -

C:\Mobile>mfastboot flash motoboot motoboot.img

target max-sparse-size: 256MB

sending 'motoboot' (1940 KB)...

OKAY [ 0.083s]

writing 'motoboot'...

(bootloader) Motoboot: Preflash validation for tz

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.457s

Can anyone guide me?

Do I need to unlock the bootloader before firmware change? Moto G bootloader screen shows "The Device is Locked. Status Code 0"

Also which option do i need to choose on Moto G bootloader screen before proceeding?

Normal Powerup

Recovery

Factory

Switch Console [NULL: null]

Barcodes

BP Tools
[Moto G General] vhngu930:
Don't worry, you don't need to flash the motoboot.img. You don't need to choose any option.
[Moto G General] ronanmon:
Guys, what do I do here? I'm getting an error.

Executing ".\Windows\fastboot.exe flash motoboot motoboot.img"

target max-sparse-size: 256MB

sending 'motoboot' (1940 KB)...

OKAY [ 0.090s]

writing 'motoboot'...

(bootloader) Motoboot: Preflash validation for tz

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.377s

.\Windows\fastboot.exe flash motoboot motoboot.img failed!!
[Moto G General] vhngu930:
Skip it
[Moto G General] smph:
If the bootloader on my phone is locked, that means that only digitally signed official firmwares made by motorola or carriers can be flashed? I just want to be sure that the stock firmware I downloaded is not altered in any way, if someone added trojan or virus to the firmware, that would break digital signature and it will be impossible to flash this modified firmware on the phone with locked bootloader? (I never unlocked bootloader)
[Moto G General] remo0073:
These are official firmwares (no Trojan or malware)

You can flash them with a locked bootloader without loosing your warranty

Sent from my Moto G
[Moto G General] manoac:
So guys, does anyone know where I can get the stock firmware 4.3 Retail BR XT1033 in format .xml.zip?

Now, thank you.
[Moto G General] gnargle:
I'm trying to restore back to either GPE or stock (my phone was originally a stock before I converted it to a GPE) after attempting to flash the CM12 rom here: http://xdaforums.com/moto-g/development/5-0-cyanogenmod-12-t2950466

Unfortunately I'm no stuck on the bootscreen, no matter what I do. I've tried to fastboot flash both GPE and UK Retail stock firmware, and on both, when I flash TWRP it says that the size of the data partition (and presumably every other partition) is 0MB. Any attempt to mount any of the partitions fails. This means I can't adb push my nandroid backup to the phone to restore - and even if I was able, I doubt it'd work. Does anyone have any ideas?
[Moto G General] dima_vy:
Hi guys!

i have here Moto G xt1034, I've unlocked bootloader, and tried to replace the rom, but then i decided to go back, to the original rom, and locked bootloader. Everything fine except one strange thing:

on each boot i get forst of all to bootloader menu, and i have to press "Normap powerup" to continue. Anybody have any idea hot to get rid of this menu and pass to the normal boot directly?

Thank you
[Moto G General] AgentChaos:
you cant go back to 4.3 if your phone has been updated to 4.4.4, you can only downgrade to 4.4.2 only.
[Moto G General] sheltem:
Can I downgrade from 4.4.4 to 4.4.2 without unlocking my bootloader? I had a Consumer Cellular 4.4.2 Moto G. I upgraded to US Retail 4.4.3 and now my phone doesn't pick up ANY networks. I took an OTA to 4.4.4 (mistake I know) and that didn't solve anything. I even try flashing to Consumer Celluar 4.4.4 and that didn't make a difference.
[Moto G General] AgentChaos:
you should be able to, just skip the motoboot and partition flashing.
[Moto G General] sheltem:
I'm getting "invalid signed image" when I flash the system.img_sparechunk files.
[Moto G General] AgentChaos:
then I guess you do need to unlock the bootloader.
[Moto G General] zpmarcos:
Site down!

Can anyone upload EU Stock Version? please....
[Moto G General] vhngu930:
Use file factory
[Moto G General] AgentChaos:
Where would you like me to upload it?

I have the XT1032 Retail EU 4.4.4 factory image
[Moto G General] gt573:
http://www.filefactory.com/folder/c6cdedc45a775d27
[Moto G General] digi0ps:
Am on CM 11 now.

Can I get the official Lollipop update if I flash this stock ROM?

Thanks. :)
[Moto G General] zpmarcos:
Problably yes...
[Moto G General] vlt96:
Official CM12 or official stock? To get official stock lollipop you will need to go back to stock, or wait for images.
[Moto G General] x000x:
oops. wrong topic
[Moto G General] alfick3:
The Moto G never came with 4.2.2. The lowest it ever came with is 4.3.
[Moto G General] x000x:
sorry i posted i posted this in the wrong topic :P

I have a moto x
[Moto G General] seshsud:
need stock fw for 1034 pls

looks like http://sbf.droid-developers.org/ is down...just unlocked the bootloader on my XT1034. It came with 4.4.2 and updated OTA to 4.4.4. Now it readers: 210.12.61.falcon_umts.AWSCC.en.us att (build: KXB21.14-21.61).

Which version do I download from filefactory?

Will this work:AWSRETAIL_XT1034_4.4.4_KXB21.14-L1.61_cid9_CFC.xml.zip
[Moto G General] alfick3:
Yes, that is what is on my XT1034.
[Moto G General] seshsud:
Thanks, applied stock rom, now need lollipop for this phone that i can sideload...where is it?
[Moto G General] alfick3:
Hadn't arrived yet.
[Moto G General] seshsud:
Argh really? I was able to update my other phone (Moto G 2014 XT1064) to lollipop and was hoping this is available too...
[Moto G General] alfick3:
Yeah, the 2nd gen has gotten it.