FORUMS
Remove All Ads from XDA

[GUIDE] Moto G - Restore stock firmware

262 posts
Thanks Meter: 517
 
By t-bon3, Senior Member on 25th November 2013, 10:36 AM
Post Reply Email Thread
12th May 2014, 11:22 PM |#501  
Lewey's Avatar
Junior Member
Thanks Meter: 2
 
More
Saved Me massively with this, Brilliant Up & running again, just logged seen Android Upgrading with progress as I write | Sweet
THANKS FOR THIS

3b) If you downloaded and extracted a firmware in .xml.zip format.
Flash each of the partitions in sequence using mfastboot, you need to enter the following commands one-by-one checking that each one returns an [OKAY]
Code:
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk1
mfastboot flash system system.img_sparsechunk2
mfastboot flash system system.img_sparsechunk3
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1 
mfastboot erase modemst2 
mfastboot flash fsg fsg.mbn
mfastboot erase cache 
mfastboot erase userdata 
mfastboot reboot
Downgrading:
The 1st command "mfastboot flash partition gpt.bin" will fail on 4.4.2 to 4.3 downgrade. Skip this command if you are downgrading and continue with the other commands, which should work.
4) Wait, you should now be rebooted into a fully stock Moto G firmware.[/QUOTE]
 
 
13th May 2014, 11:52 AM |#502  
vardhanram's Avatar
Junior Member
Flag Nellore
Thanks Meter: 1
 
More
Unhappy After Flash Stock Firmware unable to boot up
yes, i did it and i saw an OKAY message on cmd prompt window after execution of each command. But my device unable to boot up, stuck in matorola logo…. same thing happens 100 times…
plz help me out
13th May 2014, 04:30 PM |#503  
vardhanram's Avatar
Junior Member
Flag Nellore
Thanks Meter: 1
 
More
Unhappy I am unable to install Stock Firmware on My MOTO G
Quote:
Originally Posted by t-bon3

Pre-requisites:

a) Download and install Motorola Drivers:
http://www.mymotocast.com/download/MDM?platform=windows

b) Download and extract the stock firmware of your choosing from:
http://sbf.droid-developers.org/phone.php?device=14
The firmwares with '_umtsds' in the file name are for the 'dual-sim' versions of the Moto G, it's probably not a good idea to flash these onto single sim phones, or vice-versa.

Edit: More firmwares for international retail and carrier devices can be found here:
http://www.filefactory.com/folder/c6cdedc45a775d27

Edit: The firmware files have been updated most of the firmware archives are now in .tar.gz archives which include Motorola fastboot and flashing scripts for OSX, Linux and Windows.




On windows the .tar.gz archives need to be opened and extracted using a 3rd party archive manager. e.g. 7-zip, or PeaZip, Windows cannot extract these files natively, Linux and OSX can.

I used the retail British firmware (fastboot_falcon_retgb_user_4.3_14.10.0Q3.X-76-LGG-8_54_release-keys-cid7-Retail_GB.tar.gz), extracted to c:\

c) If the firmware file you downloaded is a .xml.zip file then download Motorola Fastboot Attachment 2427667 (attached to this post) and extract the .exe into the same folder as the stock firmware files (the same folder as the .bin and .img files). If your firmware is a .tar.gz file then skip this step.

d) Get ADB (if you don't already have this, I suggest downloading and installing Minimal ADB and Fastboot by shimp208:
https://docs.google.com/file/d/0B1S0...Wh6NGJmSE1BUWc

Disclaimer:

Follow these instructions at your own risk. If something goes wrong don't blame me!

I have only tested this on a UK Retail Moto G with an unlocked bootloader, however as these are the original stock signed image files from Motorola it should work on all devices.

See notes at the bottom of this post for downgrading from 4.4.2 to 4.3.

Edit: tkm89 reports that he was able to use this guide to restore Stock Retail British firmware on a bootloader locked Tesco-mobile Moto G


Steps to restore stock firmware:

1) Reboot the phone into bootloader mode. There are 2 ways to do this.

I) The 'hardware' way.
a) Unplug the USB cable and power off the phone.
b) Press and hold 'Volume down' then power on the phone.
c) Connect USB cable to your computer.
II) The 'software' way.
a) Enable developer mode on the Moto G (Settings-> 'About Phone'. Tap 7 times on 'Build Number')
b) Enable USB debugging. (Settings -> 'Developer options' -> 'USB Debugging' -> check)
c) Connect phone to computer via USB, you should see a new ADB device detected and drivers installed.
d) Open "Minimal ADB and Fastboot". Type:
Code:
adb reboot-bootloader
You should see the Moto G bootloader screen with the following options:
Code:
Normal Powerup
Recovery
Factory
Switch Console [NULL: null]
Barcodes
BP Tools
2) Open a command prompt / terminal (Start -> cmd.exe in Win7) and browse to the folder with the extracted firmware.

In my case:
Code:
cd c:\falcon_retgb_user_4.3_14.10.0Q3.X-76-LGG-8_54_release-keys-cid7-Retail_GB
3a) If you downloaded and extracted a firmware in .tar.gz format
In windows, run the 'flashall.bat' script Type:
Code:
flashall.bat /eu
The "/eu" switch forces userdata to be erased from the device, this is the same as a factory reset or wipe this is recommended when restoring stock firmware.
In Linux/OSX run the flashall.sh script. Type:
Code:
chmod +x flashall.sh
./flashall.sh
Downgrading:
The scripts will fail with an error on downgrading from 4.4.2 to 4.3. Open the script in a text editor (notepad) and delete (or comment) the following:
Lines 89-90 in the flashall.bat file:
Code:
CALL :fastboot_flash partition gpt.bin
IF %errorlevel% NEQ 0 EXIT /b 1
Lines 120-121 in the flashall.sh file:
Code:
run $fastboot -s "$serial_number" flash partition gpt.bin
if [ $? -ne 0 ]; then echo "ERROR: fastboot failed."; exit -1; fi
3b) If you downloaded and extracted a firmware in .xml.zip format.
Flash each of the partitions in sequence using mfastboot, you need to enter the following commands one-by-one checking that each one returns an [OKAY]
Code:
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk1
mfastboot flash system system.img_sparsechunk2
mfastboot flash system system.img_sparsechunk3
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1 
mfastboot erase modemst2 
mfastboot flash fsg fsg.mbn
mfastboot erase cache 
mfastboot erase userdata 
mfastboot reboot
Downgrading:
The 1st command "mfastboot flash partition gpt.bin" will fail on 4.4.2 to 4.3 downgrade. Skip this command if you are downgrading and continue with the other commands, which should work.
4) Wait, you should now be rebooted into a fully stock Moto G firmware.


Plz read this .... Give A Solution ... I hope U can Solve This Problem

I did following steps....

1. Installed motarola usb drivers, minimal adb drives and Adroid sdk

2.Extracted stock firmware by using win.rar (fastboot_falcon_asia_ds_user_4.3_14.10.0Q3.X-84-7-LCG-4_4_release-keys-cid7-AsiaRetail_03.tar.gz) file into folder which contains adb.exe and other stuff (C:\Android-SDK\platform-tools)

3. For Downgrading: i deleted following text and saved

Lines 89-90 in the flashall.bat file:
Code:

CALL :fastboot_flash partition gpt.bin
IF %errorlevel% NEQ 0 EXIT /b 1

Lines 120-121 in the flashall.sh file:
Code:

run $fastboot -s "$serial_number" flash partition gpt.bin
if [ $? -ne 0 ]; then echo "ERROR: fastboot failed."; exit -1; fi

4. Turn off the phone for 5 seconds.
Press and hold Volume Down + Power buttons together for few seconds until a Bootloader mode gets appeared

Connected the device to PC through a USB Cable.

Now on PC, go under the extracted files, there pressed “**** Key + Right Mouse Click” button, then from this selected “open command window here“. A command prompt window will opened.


On command prompt window, typed the following command:

flashall.bat /eu

installed the firmware, it take from 5-10 minutes to complete.
Its done, phone is restarted....


5. After that unlock bootloader warning massage appear for 5sec. then black screen and stacked...
no pink color warning massages while installing ...
Attached Files
File Type: txt Script process logs.txt - [Click for QR Code] (3.0 KB, 28 views)
15th May 2014, 07:36 PM |#504  
derekokelly's Avatar
Senior Member
Thanks Meter: 21
 
More
When I type the command, I get an error saying:

"<bootloader> Preflash validation failed
FAILED <remote failure>"

What am I doing wrong?
16th May 2014, 01:59 AM |#505  
derekokelly's Avatar
Senior Member
Thanks Meter: 21
 
More
Quote:
Originally Posted by derekokelly

When I type the command, I get an error saying:

"<bootloader> Preflash validation failed
FAILED <remote failure>"

What am I doing wrong?

You can ignore this.
16th May 2014, 04:42 AM |#506  
cjvzla's Avatar
Senior Member
Thanks Meter: 24
 
More
when i open the "minimal ADB and fastboot" window and type "fastboot devices" it shows my device, but when i do the same on the windows that i opened to flash the firmware it doesn´t show any devices...why? should i continue with the fastboot commands from the minimal adb window anyway?

EDIT: it seems my pc does not recognize my device wich is weird since i´ve been flashing stuff via fastboot this past few days, i think it started since i downloaded "minimal adb and fastboot" to follow this guide, could that have anything to do with it?
16th May 2014, 08:10 AM |#507  
robin0800's Avatar
Senior Member
Thanks Meter: 164
 
More
Quote:
Originally Posted by cjvzla

when i open the "minimal ADB and fastboot" window and type "fastboot devices" it shows my device, but when i do the same on the windows that i opened to flash the firmware it doesn´t show any devices...why? should i continue with the fastboot commands from the minimal adb window anyway?

EDIT: it seems my pc does not recognize my device wich is weird since i´ve been flashing stuff via fastboot this past few days, i think it started since i downloaded "minimal adb and fastboot" to follow this guide, could that have anything to do with it?

Try this version and the bat file

http://forum.xda-developers.com/show....php?t=2726041
16th May 2014, 08:34 AM |#508  
cjvzla's Avatar
Senior Member
Thanks Meter: 24
 
More
Quote:
Originally Posted by robin0800

Try this version and the bat file

http://forum.xda-developers.com/show....php?t=2726041

im reading the guide and downloading the GPE rom from that guide but wich .bat file are you refering to?
16th May 2014, 10:59 AM |#509  
robin0800's Avatar
Senior Member
Thanks Meter: 164
 
More
Quote:
Originally Posted by cjvzla

im reading the guide and downloading the GPE rom from that guide but wich .bat file are you refering to?

The two codes on the first page ... you have to make your own .bat file from these using the bits of code via copy and paste till you have what you need
16th May 2014, 02:29 PM |#510  
cjvzla's Avatar
Senior Member
Thanks Meter: 24
 
More
Quote:
Originally Posted by robin0800

The two codes on the first page ... you have to make your own .bat file from these using the bits of code via copy and paste till you have what you need

sorry i did not understand a single word.
the two codes on the first page?

mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img

those two? how do i make my own bat file? paste them where? sorry.

also, i tried to imput the commands before you replied and i got:

C:\Minimal ADB and Fastboot>mfastboot flash partition gpt.bin
'mfastboot' is not recognized as an internal or external command,
operable program or batch file.

i´ts the same with all of them and the same if i try to type them one by one, also the mfastboot-v2.zip what is it for? when i click fastboot.exe it says "AdbWinApi.dll" is missing,
16th May 2014, 08:41 PM |#511  
chairsz's Avatar
Senior Member
Flag halifax
Thanks Meter: 29
 
More
i follweed the guide cause im stuck on a completely borked atempt at i dont even know what at this point. so far im at the fastboot screen and i can sed commands through to my phone from pc using th mfastboot utility cmd. alls going good till i reach these lines

mfastboot flash system system.img_sparsechunk1
mfastboot flash system system.img_sparsechunk2
mfastboot flash system system.img_sparsechunk3

all errors but everything else flashed so of course phone doesnt boot beyond the yor bootloader is unlocked white page.

i used this img

Android 4.4.2
Blur_Version.173.44.30.falcon_umts.BellMobility.en .CA cause my device is the single sim 8gig version

imma try using the telus firmware and c if that works, but as of right now all i can access is my fastboot, and when i try flashing either recovery with the motorola tool, i get a "getvar: maxdownload-size" result wtf??

telus info didnt work either


any help is much appreciated cause im home nursing a sick daughter and cant think straight and need my phone operational.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes