Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,254 Members 36,239 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] Moto G - Restore stock firmware

Tip us?
 
t-bon3
Old
(Last edited by t-bon3; 17th January 2014 at 01:26 AM.)
#1  
Senior Member - OP
Thanks Meter 335
Posts: 235
Join Date: May 2010
Default [GUIDE] Moto G - Restore stock firmware

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 mfastboot-v2.zip (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.
Devices: Moto G, Nexus 7 (2012), MK808B, MK802, True Beyond Tab 3G
The Following 209 Users Say Thank You to t-bon3 For This Useful Post: [ Click to Expand ]
 
matmutant
Old
#2  
matmutant's Avatar
Recognized Contributor
Thanks Meter 3,400
Posts: 2,753
Join Date: Mar 2011
Location: ~/
Quote:
Originally Posted by t-bon3 View Post
[...]
added to FAQ
Moto G running Android 4.4.2 KK CM11 /!\ twitter ~ Blog : Andrux&me /!\
Bug Hunter for : Render Kernel, and AcDisplay
supported devices:
 

Motorola : Moto G (falcon)
RC-FAQ ; CM11 DeBug Thread

Xperia: X10mini (robyn); X10miniPRO (mimmi); X8/W8 (shakira)
MiniCM10: MiniFAQ
MiniCM9: MiniFAQ
MiniCM7: MiniFAQ
i don't have power of ubiquity : if you want me to answer, please quote me or mention me using "@matmutant" in the post
 
t-bon3
Old
#3  
Senior Member - OP
Thanks Meter 335
Posts: 235
Join Date: May 2010
Quote:
Originally Posted by matmutant View Post
added to FAQ
Can you please remove it temporarily, it's not working at the moment! Sorry about that.
Devices: Moto G, Nexus 7 (2012), MK808B, MK802, True Beyond Tab 3G
 
matmutant
Old
#4  
matmutant's Avatar
Recognized Contributor
Thanks Meter 3,400
Posts: 2,753
Join Date: Mar 2011
Location: ~/
Quote:
Originally Posted by t-bon3 View Post
Can you please remove it temporarily, it's not working at the moment! Sorry about that.
ok :P
Moto G running Android 4.4.2 KK CM11 /!\ twitter ~ Blog : Andrux&me /!\
Bug Hunter for : Render Kernel, and AcDisplay
supported devices:
 

Motorola : Moto G (falcon)
RC-FAQ ; CM11 DeBug Thread

Xperia: X10mini (robyn); X10miniPRO (mimmi); X8/W8 (shakira)
MiniCM10: MiniFAQ
MiniCM9: MiniFAQ
MiniCM7: MiniFAQ
i don't have power of ubiquity : if you want me to answer, please quote me or mention me using "@matmutant" in the post
 
Bart123
Old
#5  
Junior Member
Thanks Meter 0
Posts: 23
Join Date: Jan 2006
any news? rsd lite still not see Moto G on windows 8.
 
t-bon3
Old
#6  
Senior Member - OP
Thanks Meter 335
Posts: 235
Join Date: May 2010
Quote:
Originally Posted by Bart123 View Post
any news? rsd lite still not see Moto G on windows 8.
Guide is updated and working now.
At the moment the flashing needs to be done one partition at a time using a specific motorola version of fastboot. Hopefully a new version of RSD lite will be released that simplifies the whole process.
Devices: Moto G, Nexus 7 (2012), MK808B, MK802, True Beyond Tab 3G
The Following User Says Thank You to t-bon3 For This Useful Post: [ Click to Expand ]
 
tkm89
Old
#7  
tkm89's Avatar
Senior Member
Thanks Meter 9
Posts: 211
Join Date: Aug 2009
Location: London
I was having problems with RSD Lite, when trying to flash the retail British ROM (mine came with the Tesco ROM pre-installed). This worked perfectly on my Moto G with a locked bootloader!
The Following 2 Users Say Thank You to tkm89 For This Useful Post: [ Click to Expand ]
 
ahac85
Old
#8  
ahac85's Avatar
Senior Member
Thanks Meter 104
Posts: 962
Join Date: Aug 2010
thanks for the guide, ive also just flashed stock firmware over preinstalled tesco firmware with a locked bootloader.
------------------------------------------------------------
SAMSUNG GALAXY S3
------------------------------------------------------------
ROM: Stock Odexed MK6 | JellyBean 4.3
KERNEL: Boeffla Kernel 5.2 Stable
RECOVERY: PhilZ Touch CWM 6.12.8
------------------------------------------------------------

Sign up for FREE 2GB Dropbox Cloud Storage and get an additional 500mb space! db.tt/4Mpm5Us
 
harmohn
Old
#9  
harmohn's Avatar
Senior Member
Thanks Meter 39
Posts: 366
Join Date: Jan 2010
Location: London
Worked flawlessly on my Tesco Mobile Moto G. Many thanks for the guide fella
 
alex1301
Old
#10  
alex1301's Avatar
Senior Member
Thanks Meter 87
Posts: 487
Join Date: Sep 2011
Is the bootloader warning Logo also removed?

Gesendet von meinem XT1032 mit Tapatalk

Phone: HTC Sensation
Team Venom ViperS 1.5.2
Tablet: HP TouchPad 32GB
CyanogenMod 10 & WebOS 3.0.5

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes