yashsingh1/xdaforums huggingface dataset:
[Moto G General] muazzamm:
need guidance

can anyone guide me about step 4 (Download Retail_AS.bat/Retail_AS+lock.bat from Attachments, Extract it to the same folder and just run

And the Phone is as good as new for Asian Phones!)??

i am very new to flashing etc. infect want to try it first time. I have downloaded the 4.2.2 firmware but before flashing i have some confusion in my mind which i want to clear. I want to flash it through bat file rather than manual commands as it is easy for me but can any one make it simple for me step by step that how to do it and do i have to run both bat files or only one of them. Please guide me step by step like, start phone in boot loader mode. debugging on or off? when i have to attach my phone to pc? when to run command and which command?

I apology for my poor knowledge regarding flashing but i need your help

Thanks
[Moto G General] deej_roamer:
If you want bootloader locked download retail_as+lock.bat

If you don't want bootloader locked download retail_as.bat

So you'll download only one file

Just run whichever file you download
[Moto G General] muazzamm:
Do i need the boot loader to be unlocked before process and debugging option on??
[Moto G General] deej_roamer:
Bootloader unlocked is necessary

USB debugging not at all
[Moto G General] muazzamm:
And how to unlock bootloader. Mine device is moto g xt1033 Indian retail
[Moto G General] deej_roamer:
I'm sorry I assumed wrong thread

Bootloader unlocking is not necessary

Procedure works on locked Bootloaders too

I'm sorry for wrong reply earlier, this method

WORKS WITH LOCKED BOOTLOADER
[Moto G General] muazzamm:
And what about usb debugging brother? On or off??
[Moto G General] jbanti:
always Keep it on...

---------- Post added at 05:53 PM ---------- Previous post was at 05:40 PM ----------

Downgrade Is Risky!!

Some people Did it successfully, Some people Not...

But If you really want to go back to 4.4.2 then you have to convert your Moto To GPE 4.4.2 by flashing GPE On 4.4.4 (I Did it on My Moto G Successfully)
[Moto G General] adilbdc:
try many time all time same error

can any one tell me whats problem

C:\Users\SM Mizan\Desktop\mfastboot>mfastboot.exe flash partition gpt.bin

target max-sparse-size: 256MB

sending 'partition' (32 KB)...

OKAY [ 9.941s]

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) Failed to write primary GPT.

(bootloader) Failed to program partition table

FAILED (remote failure)

finished. total time: 15.242s

C:\Users\SM Mizan\Desktop\mfastboot>mfastboot.exe flash motoboot motoboot.img

target max-sparse-size: 256MB

sending 'motoboot' (1953 KB)...

OKAY [ 5.053s]

writing 'motoboot'...

(bootloader) flashing tz ...

(bootloader) Failed to erase partition

(bootloader) Failed to flash tz

FAILED (remote failure)

finished. total time: 11.041s

C:\Users\SM Mizan\Desktop\mfastboot>mfastboot.exe flash logo logo.bin

target max-sparse-size: 256MB

sending 'logo' (1060 KB)...

OKAY [ 5.030s]

writing 'logo'...

(bootloader) Failed to erase partition

(bootloader) Failed to flash partition logo

FAILED (remote failure)

finished. total time: 10.038s

C:\Users\SM Mizan\Desktop\mfastboot>mfastboot.exe flash boot boot.img

target max-sparse-size: 256MB

sending 'boot' (10240 KB)...

OKAY [ 5.341s]

writing 'boot'...

(bootloader) Failed to erase partition

(bootloader) Failed to flash partition boot

FAILED (remote failure)

finished. total time: 10.781s

C:\Users\SM Mizan\Desktop\mfastboot>mfastboot.exe flash recovery recovery.img

target max-sparse-size: 256MB

sending 'recovery' (10240 KB)...

OKAY [ 5.345s]

writing 'recovery'...

(bootloader) Failed to erase partition

(bootloader) Failed to flash partition recovery

FAILED (remote failure)

finished. total time: 10.791s
[Moto G General] ashu388866:
Following the procedure but phone is not flashing

Dear deej_roamer,

I have an issue which is not been reported earlier. Whenever I start my phone, it just gives me multiple errors - all possible processes on my phone are stopped.

I thought there is some big error behind it and thought of flashing the phone.

I followed the process as it is, ran the batch file (without bootloader lock) and nothing happens even after process is complete. I see my phone in same condition, as in same wallpaper and same multiple errors.

Let me know what can be done.

FYI - asshole service center guys told me motherboard needs to be replaced because my phone is waterlogged. They did not even open my phone. Worst services ever now a days.

Regards,

Ashish
[Moto G General] soumitro316:
Emergency calls only

I followed this method to restore to stock and everything works fine. But I get no signal when my sim is inserted in sim slot 1. It detects the sim card but says emergency calls only. Howver if i insert the sim in the second sim slot then it works fine.. Any help will be appreciated :)
[Moto G General] syedihtisham:
4.4.3 stock firmware

any link for the 4.4.3 stock firmware plz

---------- Post added at 09:12 PM ---------- Previous post was at 08:58 PM ----------

Brother please tell me what version were you running and what version have you tried to reflash......
[Moto G General] fajarlazuarding:
i face this problem also. Bump :cyclops:
[Moto G General] 3xac7:
Somebody pls help! I have the 2 sim 8gb version with 4.4.2 android, but i can't update it to 4.4.4.

If i try it the standart way(just by clicking install when the popup shows) then after tryin to install it reloads with first message "installation error".

Then i started googling and found this article, I have tried to update it this way(using the recovery mode), now i have the mistake on the stage of veryfiyng the pacakage "Unexptected content in bluetooth folder".
[Moto G General] LightningBuster:
Thanks

That was all I was looking for. It helped me a lot making the whole process a lot simpler. Thanks once again. :good:
[Moto G General] ashamsu:
Dear Sir...

Getting error when flashing system.0, system.1 & system.2 with mfastboot in all 4.4.4 download links.

Tried with fastboot recovered my phone...
[Moto G General] vkc_vinay:
os installation

i installed the os but it was installed in the storage memory means it was installed after the original os.the original os is still occupying my 3 gb space as when it was new , now i have only 11 gb space instead of 13 which i previously had
[Moto G General] jtdc:
great way to return back to stock!
[Moto G General] Qev:
Failed

Thanks for the way to downgrade,

But the system.img_sparsechunk.0,1,2 all failed for 4.4.2 downgrade but i successfully rebooted into my phone which shows 4.4.4 for android version but 4.4.2 for baseband, The phone is 100% stock unrooted 4.4.4 OTA update. Can i update my phone in the future if i've made some adjustment to it? Or will it brick my device? Or can i flash everything on 4.4.4 to get it back to stock?
[Moto G General] mallikarjun170:
Small doubt(a noob question)

Can i get OTA updates after going to stock even when the bootloader is not locked? I'm using xt-1033 indian phone
[Moto G General] fajarlazuarding:
Yes.

Sent from my XT1033
[Moto G General] 88rising:
Just asking

so this is a stock 4.4.4 rom?
[Moto G General] genesis92:
I was having a problem with the custom recovery in my Moto G XT1033... The custom recovery is not able to load up properly and repeated attempts of flashing custom recovery failed.. I then tried to restore the phone to stock condition with bootloader locked.... but the 'bootloader is unlocked' still comes up at the boot.. while the lock status shows as Locked.... Even the stock recovery is not showing the options just the droid with exclamation mark...

Please help me with it...:(:(:(:crying::crying:
[Moto G General] aadhuniks10:
help me

Excuse me please help me with this sistuation i have accidently unlocked my bootloader. Im from india i have got moto g 1 st gen. After doing so then i understood that thats not anymore for me and then now i want to relock my bootloader i failed 13 times and now i learnt many from that. Since i want to relock my bootloader again will this work atleast or else is this is working?? Please reply to me im very afraid something might happen to my phone please.....reply A.S.A.P
[Moto G General] genesis92:
Moto G sensors disabled

After flashing the stock firmware 4.4.4 on my Moto G with bootloader locked method, error shows up while locking the bootloader "sst lock failure!"..., all the sensors have stopped working.... checked with cpu-z... auto-rotation, proximity not working... please help..:(:(
[Moto G General] fajarlazuarding:
Iirc, i read somewhere that relocked bootloader didn't work on 4.4.4. i also can't relock my bootloader
[Moto G General] genesis92:
Is it possible to downgrade moto g to 4.3.... if so, please provide the 4.3 image...:fingers-crossed:
[Moto G General] punith55:
Thank you borther

Really thank u man this was very use full and u saved my ass :good::good::good::good::good::good::good::good::good::good::good::good::good::good::good::laugh::laugh::laugh::laugh::laugh:

---------- Post added at 04:41 AM ---------- Previous post was at 04:31 AM ----------

how to install a very good custom rom for moto g xt1033 with out any issue after installing :)
[Moto G General] rajibie:
Waiting for lollipop ?
[Moto G General] nanotech17:
Hi DJ i have the same exact situation like what is mentioned above - so now my MotoG is on stock rom but with TWRP recovery and still on 4.4.2 - so what is the next step should i do to get the latest updates via OTA.

TIA
[Moto G General] deej_roamer:
Install only recovery from this package to get OTA updates.

It's fine if you don't do it now

When you get a notification saying an update is available, before you start the download of update you need to flash the stock recovery

Although, no problem in flashing it beforehand also
[Moto G General] nanotech17:
Thanks DJ - another thing i need to reconfrm,so i just type this command and good to go to stock recovery without loosing my data?

So i can choose that optional upgrade from 442 to 444 without losing my data?

E:\motog>mfastboot.exe flash recovery recovery.img
[Moto G General] deej_roamer:
Yup
[Moto G General] nanotech17:
Hi DJ,my friend try to bring back to life his brick motog but once connected to the PC it failed to detect the device.
[Moto G General] nanotech17:
Hi dj,my friends problem has been resolved - he uninstall and reinstall back all the relevant moto drivers.

He managed to bring back to life the dead motog by following your instructions.
[Moto G General] balraj46:
Unlocked bootloader logo

my motorola got restored to stock firmwaret

thanks a ton but even after locking the bootloader

Im still getting unlocked bootloader logo

help me ?
[Moto G General] ganesh2606:
update problem

now my moto g 8gb is running on 4.4.2, always asking to update 4.4.4(210.12.10.em.03), i update it, now it is stucking on "teamwin" and i switched off and then restart...but after 2 min getting restart automatically...how can i upgrade to 4.4.4 with root, there is problem in 4.4.2(signal not getting, voice not hearing ,wifi problem),,,if i update,,my contact and message are deleted...please help me:crying::crying::crying::crying::crying::crying:
[Moto G General] DoctorStrange96:
[MENTION=5780497]deej_roamer[/MENTION], have you got links for any other 4.4.4 firmwares except Asia Retail? I've got a Brazilian Moto G and I need to restore the stock ROM.
[Moto G General] deej_roamer:
First write your problem clearly in words and not in paragraphs, it's hard to notice the actual problem in the paragraph

Just flash the stock recovery, your problem will be solved
[Moto G General] deej_roamer:
No, I don't

But you can check droid-developers and File Factory

The instructions will remain the same if you find your firmware

If you don't find your firmware, just install Asia Retail and choose the language to be Spanish (if you use Spanish).

The firmwares are so similar you will not even notice
[Moto G General] ganesh2606:
now my mobile is in 4.4.2,if i update to 4.4.4, getting restart and going to teamwin, how can i update to 4.4.4 including root..:confused:

i am from saudi arabia
[Moto G General] monopecez:
I need a help, I am using PA and I can't get gps lock.

could anybody upload/send me NON-HLOS.bin from xt1033 4.4.4 stock image?

I lived in third world country so...... it will be a pain in the a** to download the full stock image.

edit : got it.
[Moto G General] moha07:
boot loader status code 2

I want to lock my boot loader I followed every steps correct but at end its failed

Still I am seeing my warning screen please help me

My phone is fall down and touch is not working properly I will try my level best to get my warranty thanks in advance my device is xt1033 india
[Moto G General] ironman38102:
Flash the logo fix from Mototool
[Moto G General] moha07:
thanks dude surely i will fix that and reply bro

after that can i make my bootloader status -0

is there any way to flash it moto g asia original firmware with full success ......

i have tried totally 23 time in different ways but nothing helped
[Moto G General] Juwelrana:
I have rooted,bootloader unlocked moto g xt1033 with kk 4.4.4...I want flash stock rom,unroot and stock cwm.... how can I get? any process?
[Moto G General] ironman38102:
Thats the problem you cant make the bootloader status 0. You can just hope that they dont bother to check your bootloader if they dont see the unlocked warning
[Moto G General] moha07:
hoping that only bro thanks for ur reply i will let my status by tomoro or monday weather i got warranty or not

---------- Post added at 06:13 PM ---------- Previous post was at 06:08 PM ----------

just go to this link

http://xdaforums.com/moto-g/development/rom-stock-motorola-rom-collection-t2854688
[Moto G General] moha07:
bro i have fixed my boot logo and then i went to service center with in half an hour they change and gave my display bro thanks alottttt

they didnt even asked any questions just seen the phone for any scratch or dents if nothing they didnt found with in few min they changed a display and gave

thanks once again
[Moto G General] pksingh.sagar:
Thank you very much sir,this helped me a lot.Keep up the good work.

And sorry for my bad English.
[Moto G General] vivekj:
I am on rooted stock rom with possibly modified system. I wish to go to stock rom without losing apps/other data to upgrade to lollipop once it is out. Is it possible if I dont use the last command "mfastboot.exe erase userdata" in 4.2​
[Moto G General] vivekj:
Anyone?
[Moto G General] akshay7394:
It was possible when transferring between GPE and stock Moto. So in theory that should work - but you might be left with bugs.
[Moto G General] Ghost_noodles:
i just made a account to say thank you

i try multiple guides and found yours, i will recommend yours anyday to anyone that bricked thier moto g

:good:
[Moto G General] Hussain Dawoodi:
I first flashed the 4.4.2 files and it couldn't lock the boot loader...

But after that I tried the 4.4.4 files and it was properly locked and everything worked fine...

Try finding the mistakes and correct them...:)

Still you've done a good job and hats off to you...:good:
[Moto G General] droids@m:
I am on XT1033 running 4.4.2 want to take the OTA to 4.4.4 I have the nandroid backup of 4.4.2 and have restored it also..problem is I dont have the stock recovery of 4.4.2 can anyone just post the stock recovery of 4.4.2 I tried 4.4.4 stock recovery updated failed at the Middle ..........
[Moto G General] manoj36:
In my mob bootloader locking is getting failed.. Can anyone help me
[Moto G General] Ishan0445:
Thanks bro. Worked like a charm
[Moto G General] ganesh2606:
i have moto g 4.4.2(dual sim),while trying to update 4.4.4, TWRP logo coming after that getting restart and not updating 4.4.4..please help me to update 4.4.4 with root facility
[Moto G General] droids@m:
Bro I dont think there is any reason to lock the bootloader anyways that doesnt bring ur warranty back nor stop the OTA from dropping...

Its Unlocked leave it that way that aint matter...
[Moto G General] manoj36:
I had a problem while unlocking bootloader that fastboot window showed unlock failure in pc and when I turned on to fastboot in mobile it's showing bootloader unlocked.... And flashing custom recovery success but when I go to recovery mode it's showing blank screen... I tried all recoveries for xt1033..... Can u help me
[Moto G General] droids@m:
Its not possible to take the OTA with root and the OTA needs Stock recovery for the installation to happen...U have Twrp in place instead of the Stock recovery...thats the reason why its reboots.....

To take the OTA successfully u can unroot and flash the Stock recovery or try the method mentioned in the OP to flash 4.4.4 directly......

---------- Post added at 11:57 PM ---------- Previous post was at 11:16 PM ----------

Dude if its unlocked then recovery flash must go so smooth.....

try clearing the cache also after the recovery flash there must not be any issues......

In bootloader you have to choose recovery using down arrow and then up arrow to boot into recovery u are doing the same right...???
[Moto G General] DRUv217:
moto g bootloader currupted

There is huge problem(s) with my moto g.

1)when it is booted into the stock rom(i didn't change it after unlocking the bootloader and rooting ) it constantly shows that gapps have crashed.

2)when i boot into recovery(twrp 2.6.3.3) it is stuck on the teamwin screen.

3)i tried to reflash stock by the instructions given in this thread with out locking the device i.e. 4.2 and 4.4, neither cmd nor the bootloader shows any error and that every thing is flashed and erased perfectly. But there is no change in the state of the mobile i.e. problem 1 and 2 still remain.

4) when i try to follow whole instructions i.e. locking the boot loader .every thing flashes perfectly but cmd says sst failure and bootloader says "Hab check for system failed .".But there is no change in the system, when i boot the phone it still says gapps crashed repeatedly and none of the user data is erased.

5)fastboot works in bootloader and when booted into device but adb works neither in device nor in bootloader "adb get-state" always returns unknown.

6)the bootloader says status code:3(i dont know if it is supposed to mean something or not)

i Want to know if my bootloader is corrupted or not.

and how can i fix my device..

my firmware version is 4.4.4

Please do reply...

it is my only device and i can not even make calls i have been stuck with the problem since a week.
[Moto G General] moha07:
Bro don't worry moto g is nice device it won't dead soon

Just follow this thread once http://xdaforums.com/showthread.php?t=2623587
[Moto G General] Deadwing_Sk:
Could someone upload the stock fsg/modem for Indian xt1033 please?
[Moto G General] akku1:
Can't download "mfastboot-v2"

Am not able to download from that GDrive link , can some 1 please upload it on some diff site ?
[Moto G General] DRUv217:
The link is for the devices that won't power up.

But I tried it anyway but when I try to install ruffbox_drivers the window says that the drivers are already up to date. And the device is shown as Motorola adb interface (though adb dosent work, ironic) then when I run blank flash it shows waiting for devices

I can't figure out what to do:mad::(
[Moto G General] stanleys2307:
can't lock my bootloader

I've followed every single step to delete to unroot and restore my moto g dual sim to its factory condition (with locked bootlader).

Everything went fine except for the locking bootlader part. I got an error message on my PC after typing

mfastboot.exe oem lock

The error message was:

FAILED (status read failed (Too many links))

Other than that, everything's good.

Also, @akku1

Original quote: Am not able to download from that GDrive link , can some 1 please upload it on some diff site ?

what do you mean? the google drive link worked perfectly fine for me. Maybe try again? It's been a few days, maybe something wrong happened a few days ago and that's why you couldn't download from the GDrive link.
[Moto G General] moha07:
We can't lock the boot loader for status code:0 . I have tried every methods finally we will get error msg too many links failed and still warning msg will have . and our boot loader will be locked and status code :2

Sorry for my bad English
[Moto G General] stanleys2307:
RE: Fail to lock the bootloader

Actually, I got it. I mean, I managed to lock the bootloader and apparently the problem that I had was that the "unlocked bootloader" warning that always shows up at the start of the phone still comes up even when the bootloader is locked.

I googled it a little bit and found a solution, just go to this page and it'll show you how to replace that warning sign with the default motorola logo:

Oops, I'm sorry i can't paste the link right here because I'm a new user, just give me your email address if you want me to send the link to you or you can google

"get rid of bootloader unlocked warning moto g"​

I hope this helps you a little bit.
[Moto G General] aqsede:
Dual sim on custom rom

Hi! to flash custom rom, i've flashed this GPE Edition. And after booting i noticed its single sim, doing some reading and i know GPE make it normal. Now, after I've flashed N5X KK edition which clearly states it support dual sim, I'm not getting any dual sim capability from my phone. The status bar shows like a normal one sim phone, is it because the script erased modem?

Thanks! hopping to get my moto G to run dual sim while running custom rom :D
[Moto G General] moha07:
Thanks bro but I know the simplest fix method is to use moto tool and fix boot logo or flash moto logo.bin through fastboot bro

but we can't make our bootloader lock status code to 0 bro

If u know to lock bootloader status code= 0 then send me a mail bro mail id is moha5557@gmail.com
[Moto G General] stanleys2307:
Nah, sorry man, I don't know how to do that, all I know is that the status code will be 0 when you got it out of the box (meaning that the bootloader is locked), it'll then change to 3 when you unlock the bootloader and subsequent relock bootloader operation will change the status code to 2. May I know why is it so important to you to make it go back to 0?

I mean, I think the warranty will still be valid even when the status code is 2, all that matters is that now the bootloader is locked again.
[Moto G General] dhruvpaul:
I'm on XT1033 converted to gpe.. So by this will I be able to go back to XT1033? Please help!
[Moto G General] manoj36:
Can we downgrade to 4.4.2 from 4.4.4 by this
[Moto G General] webmasteradi:
Preflash validation failed

I am using UK ROM 4.4.4 on XT-1033, but when I am trying to restore stock 4.4.2, I am getting these errors - Preflash validation failed, Please validation for tz, and many more.. Pics are attached. Please help!!:(
[Moto G General] webmasteradi:
Fixed finally!!

If you are on 4.4.4, use Asia 4.4.4 instead of 4.4.2. Flashed again with Asia 4.4.4 and it is working. Thanks uploader!!:)
[Moto G General] dhruvpaul:
Perviously I was on 4.4.4 dual sim firmware but after changing to gpe it was downgraded to 4.4.2 gpe, now as I want to convert my phone back toXT1033 so any idea which firmware should I go with(4.4.4 or 4.4.2) to convert back

---------- Post added at 07:22 PM ---------- Previous post was at 07:21 PM ----------

Were you able to downgrade your phone?

---------- Post added at 07:22 PM ---------- Previous post was at 07:22 PM ----------

Were you able to downgrade your phone?
[Moto G General] thuva06:
will i get official lollipop update if i revert back using this method currently using mokee 4.4.4?
[Moto G General] Ishan0445:
video turorial to restore moto g to stock

goo.gl/kqaEDp
[Moto G General] niku4uster:
mfastboot flash system system.img_sparsechunk.0

this command is taking way too much time and at the end of it, it shows failed..

what could be the reason and how to rectify it?
[Moto G General] Taha75:
Yes it will.even i followed this steps to restore to stock.
[Moto G General] centaurjack:
can anyone upload just the stock recovery file