[GUIDE] Moto G - Restore stock firmware - Moto G General

Pre-requisites:
a) Download and install Motorola Drivers:
http://forum.xda-developers.com/showthread.php?t=2550635
b) Download and extract the stock firmware of your choosing from:
Looks like this link is now broken :'-( 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 View attachment 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://drive.google.com/file/d/0B1S0LCuXCnnmOWhnUk1ZWVdQakE
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.

t-bon3 said:
[...]
Click to expand...
Click to collapse
added to FAQ

matmutant said:
added to FAQ
Click to expand...
Click to collapse
Can you please remove it temporarily, it's not working at the moment! Sorry about that.

t-bon3 said:
Can you please remove it temporarily, it's not working at the moment! Sorry about that.
Click to expand...
Click to collapse
ok

any news? rsd lite still not see Moto G on windows 8.

Bart123 said:
any news? rsd lite still not see Moto G on windows 8.
Click to expand...
Click to collapse
Guide is updated and working now. :fingers-crossed:
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.

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!

thanks for the guide, ive also just flashed stock firmware over preinstalled tesco firmware with a locked bootloader.

Worked flawlessly on my Tesco Mobile Moto G. Many thanks for the guide fella

Is the bootloader warning Logo also removed?
Gesendet von meinem XT1032 mit Tapatalk

Wich of these stock rooms are the Brazilian XT1033 for the 16gb dual chip???
fastboot_falcon_retbr_ds_user_4.3_14.10.0Q3.X-76-LCG-8_60_release-keys-cid12-Brasil_BR.tar.gz
fastboot_falcon_retbr_user_4.3_14.10.0Q3.X-76-LCG-8_41_release-keys-cid12-Brasil_BR.tar.gz

alex1301 said:
Is the bootloader warning Logo also removed?
Click to expand...
Click to collapse
If you just follow the guide above then no, your unlocked bootloader and warning will remain after flashing.
The procedure for relocking the bootloader is to issue the following command in fastboot before flashing:
Code:
mfastboot oem lock begin
then after flashing but before rebooting enter the following:
Code:
mfastboot oem lock
This should lock the bootloader BUT I have seen reports that even after re-locking there is still a warning screen saying that the bootloader has been previously unlocked!

Allewar said:
Wich of these stock rooms are the Brazilian XT1033 for the 16gb dual chip???
fastboot_falcon_retbr_ds_user_4.3_14.10.0Q3.X-76-LCG-8_60_release-keys-cid12-Brasil_BR.tar.gz
fastboot_falcon_retbr_user_4.3_14.10.0Q3.X-76-LCG-8_41_release-keys-cid12-Brasil_BR.tar.gz
Click to expand...
Click to collapse
first one with ds 'dual-sim' in the name

C:\Motorola\falcon_retbr_ds_user_4.3_14.10.0Q3.X-76-LCG-8_60_release-keys-cid12-
Brasil_BR>mfastboot flash system system.img_sparsechunk.0
error: cannot load 'system.img_sparsechunk.0'
I had this message when I try, the previous commands worked right!
Daniel
moto g 16gb dual chip

djmgermanos said:
C:\Motorola\falcon_retbr_ds_user_4.3_14.10.0Q3.X-76-LCG-8_60_release-keys-cid12-
Brasil_BR>mfastboot flash system system.img_sparsechunk.0
error: cannot load 'system.img_sparsechunk.0'
I had this message when I try, the previous commands worked right!
Daniel
moto g 16gb dual chip
Click to expand...
Click to collapse
The south american firmwares do not have multi-part /system images. In that case use this command instead:
Code:
mfastboot flash system system.img

t-bon3 said:
The south american firmwares do not have multi-part /system images. In that case use this command instead:
Code:
mfastboot flash system system.img
Click to expand...
Click to collapse
Tanks

djmgermanos said:
Tanks
Click to expand...
Click to collapse
Now I have this message
C:\Motorola\falcon_retbr_ds_user_4.3_14.10.0Q3.X-76-LCG-8_60_release-keys-cid12-
Brasil_BR>mfastboot flash system system.img
sending 'system' (524288 KB)...
OKAY [ 18.111s]
writing 'system'...
Multi-Flash is not supported any more!
Please download latest fastboot from: xxxxxx
the link don´t work
Daniel

some of the lines show errors for me:
Sparsechunk2: Failed to validate sparse image
Sparsechunk0: Invalid signed image
other wise, it seems to work fine
thanks,

djmgermanos said:
Now I have this message
C:\Motorola\falcon_retbr_ds_user_4.3_14.10.0Q3.X-76-LCG-8_60_release-keys-cid12-
Brasil_BR>mfastboot flash system system.img
sending 'system' (524288 KB)...
OKAY [ 18.111s]
writing 'system'...
Multi-Flash is not supported any more!
Please download latest fastboot from: xxxxxx
the link don´t work
Click to expand...
Click to collapse
Can you try mfastboot.exe from the attached zip. This is taken from the south american firmware release.

Now it works
Thanks
Daniel
Moto G 16gb dual chip Brazil
XT1033
---------- Post added at 12:25 PM ---------- Previous post was at 12:13 PM ----------
Allewar said:
Wich of these stock rooms are the Brazilian XT1033 for the 16gb dual chip???
fastboot_falcon_retbr_ds_user_4.3_14.10.0Q3.X-76-LCG-8_60_release-keys-cid12-Brasil_BR.tar.gz
fastboot_falcon_retbr_user_4.3_14.10.0Q3.X-76-LCG-8_41_release-keys-cid12-Brasil_BR.tar.gz
Click to expand...
Click to collapse
Esta
fastboot_falcon_retbr_ds_user_4.3_14.10.0Q3.X-76-LCG-8_60_release-keys-cid12-Brasil_BR.tar.gz

Related

[GUIDE] Restore Moto E (2015) Stock Firmware

Pre-requisites:
a) Download and install Motorola Moto EDrivers
b) Download and extract the stock Firmware of your choosing
c) If the firmware file you downloaded is a .xml.zip file then download Motorola Fastboot View 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:
Direct Download
Disclaimer:
Follow these instructions at your own risk. If something goes wrong don't blame me!
These are the original stock signed image files from Motorola it should work on all Moto E Variants.
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 E (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 E 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
3)
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 oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot erase customize
mfastboot oem config carrier vzw
mfastboot oem fb_mode_clear
​If you want to skip typing these commands one by one use MOTOEFLASHALL.bat. Place the .bat file inside the extracted firmware folder and run it.
4) Wait, you should now be rebooted into a fully stock Moto E firmware.
Original Thread
Creditstbon3
@lohanbarth for instructions and firmware images
FAQ
Q1: Will this work on locked bootloaders?
Ans: Yes as stock firmwares are digitally signed by Motorola.
Reserved
nice job!,
edit
iB4STiD said:
nice job!, but links aren't working
Click to expand...
Click to collapse
Are stock images even available yet?
iB4STiD said:
nice job!, but links aren't working
Click to expand...
Click to collapse
qbking77 said:
Are stock images even available yet?
Click to expand...
Click to collapse
The stock firmware aren't up yet
Lucas Eugene said:
The stock firmware aren't up yet
Click to expand...
Click to collapse
ah, thought they were thats why u made the thread.. this will come in handy tho in the future thanks :good:
good evening here Rom stock
XT1524_RETEUALL_MOTOE2 (4G-LTE) _5.0.2_LXI22.50-13_cid7_subsidy-DEFAULT_CFC.xml >>>> here <<<<
lohanbarth said:
good evening here Rom stock
XT1524_RETEUALL_MOTOE2 (4G-LTE) _5.0.2_LXI22.50-13_cid7_subsidy-DEFAULT_CFC.xml >>>> here <<<<
Click to expand...
Click to collapse
Hi thanks for the link I've created a new thread to manage Firmware
any stock firmware for the XT1527?
Stock firmware, non carrier
I tried following the steps to restore the firmware, but no luck since I got Preflash validation failed, which I take it to mean the boot.img is not the right one for the moto e2 (bought it from motorola online store). I had everything working, but decided to re-lock the phone, and forgot to check allow oem unlock. When i ran fastboot oem lock it sat there, and then on reboot it didn't start up, just stayed on fastboot screen. No matter what I do I can't get it past it and trying again to unlock it it says:
(bootloader) Check 'Allow OEM Unlock' in Developer Options.
So now I am stuck in a fastboot loop. Any suggestions for things to would be great.
Thanks.
Useful subject
https://www.youtube.com/watch?v=S1myrGuMCQg
lohanbarth said:
good evening here Rom stock
XT1524_RETEUALL_MOTOE2 (4G-LTE) _5.0.2_LXI22.50-13_cid7_subsidy-DEFAULT_CFC.xml >>>> here <<<<
Click to expand...
Click to collapse
@lohanbarth
can you provide stock rom for moto e 2015 3g variant
has moto released source or the firmware from the US lte gsm varient? what you have posted is for the EU model.
i'm wondering if the EU model is maybe the international version? which could in fact be used in the US.
Hi all
Stocks firmwares repository:
http://forum.xda-developers.com/showpost.php?p=60154569&postcount=21
Thanks if you help
With the Verizon model still having a locked bootloader, is there a possible chance that restoring the stock images from Motorola would allow you past that, or even the bootloader from the same model with a different carrier, this is my only device right now but I would like to test it but can't. Has anyone else thought of this?
Edit: Figured this out... made new post.
Dangerous waters ... and questions
Hi, I own a currently unlocked/rooted XT1524 (LTE/4G) which came with stock rom LXI22.50-24.1 (retde = German retail version).
At the moment I'm running @scritch007's latest rom (cm-12-20150418-UNOFFICIAL-surnia) on it and I'm thrilled to bits that someone made this happen so soon on the device. - Boundless joy, thank you so much.
But now, I'm wondering:
Lucas Eugene said:
[...] 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 oem fb_mode_set
[...]
mfastboot oem config carrier vzw
[...]
Click to expand...
Click to collapse
1. Carrier VZW
What does the "... config carrier vzw" line exactly trigger/do when being applied on an European model?
Isn't VZW = Verizon Wireless?
Shouldn't this line read something like "... config carrier gsm"?
Couldn't we omit this line?
What were the consequences?
2. Risks
After unlocking/rooting I made a TWRP Backup (mfastboot boot <twrp>, didn't touch the original recovery) and also did I dd'ing all partitions living in /dev/block/platform/soc.0/by-name/ via adb root shell.
But regarding the soft-brick issues (oem re-lock) described by @Top_Quark and @squid2 here, I'm not sure (and feeling very uncomfortable with my limited knowledge) if I could re-lock the device without problems without my/any fitting original firmware (which one?). - There is only the one mentioned in the start posting (reteuall but with older LXI22.50-13, same cid 7). - So, can I re-lock my device after a TWRP restore/adb dd ... without flashing the mentioned original signed firmware (euretall)? - Or will I being "surprised" by a nice brick?
Checklist of preconditions to re-lock and go back:
Developer options: active
USB-Debugging: active
Enable OEM unlock: active
TWRP, adb, (m)fastboot set up and working
reteuall firmware: downloaded and at hand (retde firmware still has to show up somewhere yet)
_
Then processing @Lucas Eugene's flashing list
Is this right or am I missing something?
Thank you for your time reading and your replies.
Regards
Hi! I need your help... I bought a moto e xt1524 .... This phone isn't compatible with the frequencies using in Argentina... In my country works the xt1527 version... The question is if I can flash the 1527 firmware in the 1524...

[GUIDE] Restore Moto G (2015) Stock Firmware

Pre-requisites:
a) Download and install Motorola Moto GDrivers
b) Download and extract the stock Firmware of your choosing
c) If the firmware file you downloaded is a .xml.zip file then download Motorola Fastboot View 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:
Direct Download
Disclaimer:
Follow these instructions at your own risk. If something goes wrong don't blame me!
These are the original stock signed image files from Motorola it should work on all Moto G (2015) Variants.
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
3)
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 bootloader bootloader.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
​Please make sure to verify the system.img parts from your corresponding firmware before flashing
4) Wait, you should now be rebooted into a fully stock Moto G firmware.[/FONT][/SIZE]
Original Thread
Creditstbon3
@lohanbarth for instructions and firmware images
FAQ
Q1: Will this work on locked bootloaders?
Ans: Yes as stock firmwares are digitally signed by Motorola.
RESERVED
The link to stock Firmware are broke.
Firmware link is broken
Your're link is broken can't download.
Can I flash this firmware on Moto G 2nd LTE XT1079 (buy from China)?
Gustavo47 said:
The link to stock Firmware are broke.
Click to expand...
Click to collapse
cagechen said:
Your're link is broken can't download.
Can I flash this firmware on Moto G 2nd LTE XT1079 (buy from China)?
Click to expand...
Click to collapse
The links aren't up yet
work
it will work on moto g 2014
Lucas Eugene said:
The links aren't up yet
Click to expand...
Click to collapse
you know when will be available for download?
aditya rockzz said:
it will work on moto g 2014
Click to expand...
Click to collapse
Yes it will but make sure you flash the right firmwares from your thread.
mtkpunisher said:
you know when will be available for download?
Click to expand...
Click to collapse
I don't know. It generally is uploaded within a month. But I could be wrong.
Firmware images are now uploaded for both 4g and 3g variants
Will this re-enable further OTA updates from Motorola?
Ashwin Prasad said:
Will this re-enable further OTA updates from Motorola?
Click to expand...
Click to collapse
In combination with a full un-root yes.
I updated my moto g 2 to lollipop through ota I want to downgrade to kk. Can I try this method to downgrade ? BTW I'm on stock
The XT1079(Buy from China) can flash the firmware?
thanks!
Noob question, the XT1072 ROMs you offer are fine for both 8GB and 16GB ? becouse i have the 8GB
Hi Lucas,
Am quite new at this so will try to be as clear as I can.
Got a new Moto G (4G) from China Model XT 1079 that is unlocked and has got TWRP already installed on it.
Since it has a lot of Chinese stuff on it which I dont need/cant understand I want to do either one fo the following
1) Install a good custom Rom (Either Cyanagen mod or Titan if any compatiblke custom ROMS for this model is available)
2) Get back to the original stock firmware
Your help is gratefully needed
Cheers
For me it said: "The image is too large"
How i can fix?
im stuck on the warning bootloader unlocked page??
any ideas?
it won't boot up
though i can get into bootloader
I flashed the EU firmware, and I changed 2° command 'fastboot flash bootloader bootloader.img' with 'fastboot flash motoboot motoboot.img' and i restored successfully the firmware.
Sorry for my english
Really work
successful!!!

[GUIDE][Osprey] Fastboot Flashing Factory Firmware Images

Disclaimer: I am not responsible for anything that happens as a result of flashing these files. Your destiny is your own.​
Based on existing tutorial by @t-bon3. This guide has been created as a hard-brick occurred using the old Moto G (1st Gen) tutorial. Please exercise extreme care with Fastboot, and only use the commands mentioned here. Experimenting with Fastboot commands can seriously damage your phone.
How to Fastboot Flash Moto G (3rd Gen) Factory Firmware Images​
Required Files:
Motorola Drivers: Download
Latest Fastboot | ADB (Windows | Linux): Download (Windows 10 users may need this pack for Drivers to work.)
Factory Firmware Images: [INDEX][Osprey] Moto G Factory Firmware Images​
WARNING: You must perform a 'Factory data reset' in Stock Recovery before flashing any Firmware Image - instructions here.​
Instructions:
1) Extracting Fastboot and Firmware Images:
Extract zip for chosen Firmware Image to a folder with a simple directory structure. For example: C:\motog_firmware\
Extract the adb-fastboot-latest_win_linux.zip into this folder.​
2) Reboot the phone into 'Bootloader mode' and preparing PC for flashing
Windows:
Entering Fastboot mode:
------------------------------------
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 Command Prompt, navigate to the Firmware / ADB folder (i.e CD C:\motog_firmware ) and type:
Code:
adb reboot-bootloader
Linux:
Entering Fastboot mode:
------------------------------------
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. (Requires ADB to be already installed - see below)
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
d) Navigate to the Firmware folder, right-click and open terminal and type:
Code:
adb reboot-bootloader
Installing ADB / Fastboot:
-------------------------------------
Flashing via Linux LiveCD: (Put factory firmware files on an external usb drive / pen)
--------------------------------
a) Download Ubuntu LiveCD
b) Burn to DVD or write to USB pen
c) Restart PC, Boot from DVD into Ubuntu
d) Open Terminal and type the following:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot​
e) Test fastboot by typing: sudo fastboot devices
You should see:
<serial number> fastboot​f) You are now ready to flash the fastboot files
​
3) Fastboot Commands:
Do commands manually, one at a time - checking that each one returns an [OKAY].​
NOTE: Do not simply copy and paste these commands! - system.img_sparsechunks may differ in number and name.
Always check contents of folder you're working with. You must flash all of the sparsechunk files you have.​
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
fastboot reboot​
ALWAYS CHECK YOUR MODEL
FLASHING WRONG FIRMWARE CAN DESTROY A PHONE​
Frequently Asked Questions:
Can I restore Factory Firmware if my Bootloader is locked?
Yes. However attempting to downgrade to an older version of Android may fail - 'Preflash validation' error. Even with an unlocked Bootloader, downgrading cannot be guaranteed. It's also important to be aware that flashing the wrong Bootloader (bootloader.img) for your model can have serious consequences. Always establish your model of Moto G before flashing.
I get a 'Preflash validation' error when flashing a Firmware Image
The Firmware Image you are trying to flash is too old. You can only flash a firmware image that matches, or is newer than the most recent system version you have had on your phone. However the former scenario can also sometimes return the error. In which case, your options are to wait for an even newer firmware image or unlock Bootloader and flash a ROM zip.
After flashing Firmware Image files phone gets stuck during boot-up | will not load Android?
Check you are naming the files correctly, and make sure you are flashing all of the 'sparsechunk' files - not just those mentioned in the tutorial. The 'sparsechunk' commands listed there are not to be copied exactly, different firmware images may have different files.
How to flash Radio Firmware only?
Use the following fastboot commands:
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn​
How do I downgrade to an older Firmware?
Downgrading carries risks, and may result in constant nagging notifications to update Android. Decide carefully if this is really what you want. With earlier generations of Moto G flashing bootloader.img and gpt.bin has resulted in a hard-brick. Avoid flashing these files if you are trying to downgrade. The safer option is to find a custom Stock ROM with OTA Updates disabled.
Fastboot in Linux is not working?
In Linux, root access is required for Fastboot and/or ADB to work.
sudo fastboot devices​
Hi @lost101
Need a clarification in the 3rd point (fastboot commands),
Whether it's
fastboot flash bootloader bootloader.img
OR
fastboot flash motoboot bootloader.img
==vj== said:
Hi @lost101
Need a clarification in the 3rd point (fastboot commands),
<snip>
Click to expand...
Click to collapse
From the Firmware Images I've checked; the file is called: bootloader.img and the partition: bootloader
EDIT: This information is based on the servicefile.xml included with many of these firmware images.
Hey im new here and with rooting
i recently rooted my phone but now when i try to start up the screen goes black.
im downloading the file now can someone tell my how to flash the firmware succesfully?
model: xt1541 moto g 2015
pleas reply thanks
Help to change my firmaware
Dear Lost101,
First at all, thanks for your post.
I was trying to change the firmware of my phone, because I live in Argentina and use a different band for 4G LTE Spain (where I bought the phone).
My Moto G3 is XT1541, and I need the XT1540.
When I was changing the firmare, I had problems when I wrote "fastboot flash boot boot.img"... The command shows "FAILED". Then, I change the model, put again the firmare XT1541, and everything will be right again.
Do you know why I couldn't flash with XT1540?
Best regards and thanks in advance!
Demians1 said:
I was trying to change the firmware of my phone, because I live in Argentina and use a different band for 4G LTE Spain (where I bought the phone).
My Moto G3 is XT1541, and I need the XT1540.
When I was changing the firmare, I had problems when I wrote "fastboot flash boot boot.img"... The command shows "FAILED". Then, I change the model, put again the firmare XT1541, and everything will be right again.
Do you know why I couldn't flash with XT1540?
Click to expand...
Click to collapse
Flashing a different Model Firmware will not magically unlock or change Band support. Maybe with an unlocked Bootloader you can flash another Model's Firmware, but proceed with caution as you could end up with a dead phone.
Thanks Lost101.
Really I dont looking for change my firmware, but I suppuose that this could be a way to change the cell band....
Do you know or you heard about some way to change band support?
Demians1 said:
Really I dont looking for change my firmware, but I suppuose that this could be a way to change the cell band....
Do you know or you heard about some way to change band support?
Click to expand...
Click to collapse
There is this guide for Moto G (1st Gen) and this universal guide - however I don't know if either will work for you or what damage trying them might cause.
Thnak you very much Lost101!
just a small tip you can copy all text and flash then paste it in CMD it will flash all the partitions no need to enter manually one by one
Dear all,
I have a XT1541, and flash my Moto G3 with a XT1540 and XT1543 firmwares without problems. However I had to unblock the phone before flash it.
Lost101 I can confirm you that replace the model firmware DO NOT change the band frequencies... Thanks again for your warnings!
Very useful guide. Everything is working fine.
lost101 i have an error wit xt1544
see:
Code:
c:\celular>fastboot flash partition gpt.bin
target reported max download size of 268435456 bytes
sending 'partition' (32 KB)...
OKAY [ 0.005s]
writing ´partition´...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.432s
douglaswfranciscon said:
lost101 i have an error wit xt1544
see:
Code:
c:\celular>fastboot flash partition gpt.bin
target reported max download size of 268435456 bytes
sending 'partition' (32 KB)...
OKAY [ 0.005s]
writing ´partition´...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.432s
Click to expand...
Click to collapse
This usually occurs when attempting to Flash a Firmware Image older than the one currently installed. Unlocking Bootloader will often remove this error.
You can normally skip this command and still successfully flash Android.
lost101 said:
This usually occurs when attempting to Flash a Firmware Image older than the one currently installed. Unlocking Bootloader will often remove this error.
You can normally skip this command and still successfully flash Android.
Click to expand...
Click to collapse
Hello Lost101. I was download de Rom in other Site. The site is a clone for your site, but the rom is diferente.
Today I was downloades the rom in your site and have success...
Thanks!!!
My motoG are live again!
is it possible to just upgrade my phone without wiping everything? if so, what commands are required just to upgrade it?
krsmit0 said:
is it possible to just upgrade my phone without wiping everything? if so, what commands are required just to upgrade it?
Click to expand...
Click to collapse
Skip the following command: fastboot erase userdata
can i skip bootloader and recovery so they dont overright my custom recovery?
krsmit0 said:
can i skip bootloader and recovery so they dont overright my custom recovery?
Click to expand...
Click to collapse
Yes.

[GUIDE] Return to stock and "Official status" - Moto X 2014

Return to stock - Moto X 2014​
What you need:
Minimal ADB and Fastboot
Stock ROM Alternative 1 (Faster option)
Stock ROM Alternative 2 (Downloads speed are super slow if you are not premium)
Moto fastboot (mfastboot.exe) (This one is only needed if the file system.img is too big to flash (More than 500MB))
Steps:
Connect your phone to your computer and make sure to have "USB Debugging" enabled (About phone > Tap several times "Build number" > Go back > Developer options > Enable USB debugging)
Make sure your phone is at least 50% charged
Open ADB cmd (MAF32.exe)
Run this command to make sure it recognizes your phone.
Code:
adb devices
After it recognizes it, run the command (It should reboot into bootloader)
Code:
adb reboot bootloader
Unzip the downloaded STOCK ROM into the same folder as where you installed minimal ADB (C:\Program Files (x86)\Minimal ADB and Fastboot)
Open the "flashfile.xml" file with any text editor
The file tells you how to flash the files into your phone
Mine said:
Code:
fastboot oem fb_mode_set oem
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
The sistem.img part was a big file divided into 9 files about 250MB each. If your system.img is bigger than 500MB you'll need to use mfastboot.
Do the commands one by one.
After you are done with everything, reboot and it should say in the Status: Official
EDIT 24/04/2016:
- Added faster alternative download to stock ROMS.
Tovagulet said:
Return to stock - Moto X 2014​
What you need:
Minimal ADB and Fastboot
Stock ROM (That's the only download page with like all the stock ROMs, downloads speed are super slow if you are not premium)
Moto fastboot (mfastboot.exe) (This one is only needed if the file system.img is too big to flash (More than 500MB))
Steps:
Connect your phone to your computer and make sure to have "USB Debugging" enabled (About phone > Tap several times "Build number" > Go back > Developer options > Enable USB debugging)
Make sure your phone is at least 50% charged
Open ADB cmd (MAF32.exe)
Run this command to make sure it recognizes your phone.
Code:
adb devices
After it recognizes it, run the command (It should reboot into bootloader)
Code:
adb reboot bootloader
Unzip the downloaded STOCK ROM into the same folder as where you installed minimal ADB (C:\Program Files (x86)\Minimal ADB and Fastboot)
Open the "flashfile.xml" file with any text editor
The file tells you how to flash the files into your phone
Mine said:
Code:
fastboot oem fb_mode_set oem
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
The sistem.img part was a big file divided into 9 files about 250MB each. If your system.img is bigger than 500MB you'll need to use mfastboot.
Do the commands one by one.
After you are done with everything, reboot and it should say in the Status: Official
Click to expand...
Click to collapse
the easiest way is using RSDlite and chose flashfile.xml to flash. Done !
md07 said:
the easiest way is using RSDlite and chose flashfile.xml to flash. Done !
Click to expand...
Click to collapse
Not everybody uses windows. I am a linux user, so no RSDLite is available. Also not available for mac. This guide is great for people who can't use RSDLite or need to do specific steps only instead of blindly trusting RSDLite.
Sent from my XT1095 using Tapatalk
Thanks, I'm also not fond of flashing ROM images via program scripts, I prefer the old step by step method. :thumbup:
Any word on XT1095 or XT1097_retca-retca? How freaken hard is it to capture an OTA or factory image these days?
I still get "Software status: Modified"
md07 said:
the easiest way is using RSDlite and chose flashfile.xml to flash. Done !
Click to expand...
Click to collapse
AGISCI said:
Not everybody uses windows. I am a linux user, so no RSDLite is available. Also not available for mac. This guide is great for people who can't use RSDLite or need to do specific steps only instead of blindly trusting RSDLite.
Sent from my XT1095 using Tapatalk
Click to expand...
Click to collapse
Also, RSDLite does not work in Windows 10.
Thanks for tutorial.
Is this for Stock 6.0 Firmware : VICTARA_RETEU_XT1092_6.0_MPE24.49-18_cid7_CFC.xml.zip
thomstrack said:
Also, RSDLite does not work in Windows 10.
Click to expand...
Click to collapse
it works with Windows 10... try to upgrate RSD to the latest version
nikky2u20 said:
Is this for Stock 6.0 Firmware : VICTARA_RETEU_XT1092_6.0_MPE24.49-18_cid7_CFC.xml.zip
Click to expand...
Click to collapse
well, it's got all the right words and numbers (although the one I'm running from the TWRP method thread is MPE24.11-18, and this appears to be MPE24.49-18). I'm downloading it now - has anybody else tried it?
niciolaux said:
it works with Windows 10... try to upgrate RSD to the latest version
Click to expand...
Click to collapse
The latest version that I see is the 6.2.4, and does not work in Windows 10.
There is another version?
unfnknblvbl said:
I still get "Software status: Modified"
Click to expand...
Click to collapse
I think "Modified" means you unlocked the bootloader, right?
I used to successfully update my xt1095 to 5.1 by these steps:
unroot by using the uninstalling root function in the SEusers, and flash the stock recovery.img back.
download the OTA update, and let it flash my phone automatically.
got a stock 5.1. then you may do whatever you want.
unfnknblvbl said:
I still get "Software status: Modified"
Click to expand...
Click to collapse
+1
This method don't change to Status Official.
thomstrack said:
Also, RSDLite does not work in Windows 10.
Thanks for tutorial.
Click to expand...
Click to collapse
RSD Lite works perfectly in Windows 10.
I followed these steps, and reflashed to 5.1-21.3, then update to 21.6 (security patch).
Now I'm running 6.0! The OTA works!
We def need to get this stock image re-upped, because I could get gray hairs waiting for this to download... Anyone have any other links? Thanks
help!!! I downloaded the recovery image from the official motorola site, i have system image of 2 Gb and have no idea about how to flash the system image. I have a folder called windows(which was included in the recovery image zip that i downloaded) that folder contains a fastboot.exe file so is that the mfastoot file?If yes then how do i use it?
EDIT- Solved!
nikky2u20 said:
Is this for Stock 6.0 Firmware : VICTARA_RETEU_XT1092_6.0_MPE24.49-18_cid7_CFC.xml.zip
Click to expand...
Click to collapse
unfnknblvbl said:
well, it's got all the right words and numbers (although the one I'm running from the TWRP method thread is MPE24.11-18, and this appears to be MPE24.49-18). I'm downloading it now - has anybody else tried it?
Click to expand...
Click to collapse
Can confirm, this is the real deal. Works a treat, and none of those RPC errors that plagued me on the TWRP backup image.
I am on Brazilian frimware with 6.0 now on my device, but my actual model of the device is xt 1092 Indian version.
I want to go back to Indian frimware. Have anyone tried downgrading from 6.0 Brazilian frimware to 5.1 Indian frimware, is it possible? Is full image of 6.0 out for xt 1092, if so please share the link.
Sent from my XT1097 using Tapatalk
unfnknblvbl said:
Can confirm, this is the real deal. Works a treat, and none of those RPC errors that plagued me on the TWRP backup image.
Click to expand...
Click to collapse
Thnx for the info m8.
Could you upload it to something that is faster then filefactory perhaps? Cause this **** is SLOW
Thnx in advance
Cheers
Edit: it is also available here: https://mega.nz/#F!ow8igZRL!Z7vmN8GOpez2bVMYDvEKkg!IkEVHRxS
With thnx to @salaesp for finding the MU folder
Used this firmware on my MotoX
VICTARA_RETEU_XT1092_6.0_MPE24.49-18_cid7_CFC.xml.zip
And was able to get back to the stock state. The Bootloader is still unlocked but that I guess I can lock via OEM lock way?
Since this is the latest one couldn't verify if the OTA works or not.

Stock ROM Nougat 7.0 For Moto G4 Plus XT1643

Hello guyz do you have or post the latest version stock rom for Moto G4 Plus XT1643 ?
Waiting eagerly for your heads up
edit :
head to this link for flashing procedure and lock/ re-lock the bootloader on moto g4 plus :
https://forum.xda-developers.com/showpost.php?p=70383231&postcount=15
http://forum.xda-developers.com/mot...d-ota-nougat-ota-moto-g4-plus-t3517059/page37
Sent from my Moto G (4) using Tapatalk
Sent from my Moto G (4) using Tapatalk
zazzy24 said:
http://forum.xda-developers.com/mot...d-ota-nougat-ota-moto-g4-plus-t3517059/page37
Sent from my Moto G (4) using Tapatalk
Sent from my Moto G (4) using Tapatalk
Click to expand...
Click to collapse
this is captured ota I'm asking for updated stock rom for flashing.. thanks for your head up (Y)
snd team said:
this is captured ota I'm asking for updated stock rom for flashing.. thanks for your head up (Y)
Click to expand...
Click to collapse
It isn't released. That's already discussed.
snd team said:
Hello guyz do you have or post the latest version stock rom for Moto G4 Plus XT1643 ?
Waiting eagerly for your heads up
Click to expand...
Click to collapse
Find it here. It's flashable ROM zip:
removed link.. mod edit: not flashable..
removed link.. mod edit: not flashable..
Anyone tried this ? is it compatible with Indian (XT1643) version?
Arivendu said:
Find it here. It's flashable ROM zip:
removed link.. mod edit: not flashable..]
Click to expand...
Click to collapse
Don't misguide users. You shouldn't post if you are not sure about something.
First, its not a zip file. Its a rar file.
Second, its not flashable. You need to flash it using fastboot.
Arivendu said:
Find it here. It's flashable ROM zip:
https://cloud.mail.ru/public/CKF3/AWVREk6s9
Click to expand...
Click to collapse
Thanks buddy you're the best
praveenbda said:
Anyone tried this ? is it compatible with Indian (XT1643) version?
Click to expand...
Click to collapse
yes sure see the topic title and also tested on XT1643
also I'm able to re-lock the bootloader
TO relock the bootloader and Flashing
First of all download the stock firmware rar file ( thanks to Arivendu for heads up) - multi platform support (windows linux etc)
https://cloud.mail.ru/public/CKF3/AWVREk6s9
Mirrors :
https://files.fm/u/hfapbktm
https://drive.google.com/open?id=0B-ReAPgYg5ISNFpaeV92V2hRaWc
https://mega.nz/#!0oV33RhI!5U51UqC4v16qTSN5ur6FAV7EOpLTXL0Pfm12n71GGwc
***** this firmware also worked for other moto g4 variants *****
extract it
open folder name : athene_oem_user_7.0_NPJ25.93-11_12_release
under the folder their is a folder name "Windows"
copy files from "windows" folder to root folder
and use below command to re-lock bootloader and flash your phone with latest version of stock 7.0 (tested on xt1643)
SHIFT + Mouse right click >>> open command window here
and enter this commands one by one
Code:
fastboot oem lock begin
fastboot oem lock begin
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem lock
Or download the oem unlock and flash mobile.zip (833.6 KB) from atatchment and place the files in root dir where you extracted the firmware
and run the OEM lock.bat file for automation
if the device not reboot after firmware flash run this command at the end :
Code:
fastboot reboot
I can confirm that rar contains factory images and it's working fine on my Moto G4 Plus XT1644 64GB/4Gb RAM (RETUS). Finally, running Nougat on my device.
snd team said:
no i don't have any link and i confirm it is original moto firmware
Click to expand...
Click to collapse
Thanks, I had a browse and it looks like it's from http://lenovo-forums.ru/topic/22076-moto-g⁴-plus-npj2593-11/
Although the website says they are not an official Lenovo forum, if it's working for people, that's great. It'd be nice if we get a Nougat ROM we can flash in stock recovery without adb fastboot
Massive cleaning on the thread.. Please be warry of whatever type of file you are flashing on your devices.. A little mistake will brick your devices. I hope no one will post again a non-flashable zip.. and pls. put into considerations the knowledge of others. Not everyone knows what a RAR file or a ZIP file is... Please be cautious.. AND LASTLY .. NO FLAMING ..... NEVER ALLOWED HERE
reyscott said:
Massive cleaning on the thread.. Please be warry of whatever type of file you are flashing on your devices.. A little mistake will brick your devices. I hope no one will post again a non-flashable zip.. and pls. put into considerations the knowledge of others. Not everyone knows what a RAR file or a ZIP file is... Please be cautious.. AND LASTLY .. NO FLAMING ..... NEVER ALLOWED HERE
Click to expand...
Click to collapse
thanks for cleaning cheers
Fastboot flashing steps
snd team said:
Hello guyz do you have or post the latest version stock rom for Moto G4 Plus XT1643 ?
Waiting eagerly for your heads up
edit :
head to this link for flashing procedure and lock/ re-lock the bootloader on moto g4 plus :
https://forum.xda-developers.com/showpost.php?p=70383231&postcount=15
Click to expand...
Click to collapse
Hi guys
I have an XT1643 and I have downloaded the firmware mentioned below. It was a 7z compressed file with password as "lenovo-forums.ru"
"athene_oem_user_7.0_NPJ25.93-14_16_release.7z"
I couldn't find the commands for flashing this through bootloader. If someone may know a solution, could you please post the command or guide me?
thanks
shailuo said:
Hi guys
I have an XT1643 and I have downloaded the firmware mentioned below. It was a 7z compressed file with password as "lenovo-forums.ru"
"athene_oem_user_7.0_NPJ25.93-14_16_release.7z"
I couldn't find the commands for flashing this through bootloader. If someone may know a solution, could you please post the command or guide me?
thanks
Click to expand...
Click to collapse
The fastboot commands are the same as in the post you linked in your quote. Alternatively, you may refer to the instructions listed here: https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-xt1640-43-athene-npj25-93-t3549369
One way to flash your stock ROM is (just expanding on the instructions mentioned previously):
1) Download the Motorola drivers and minimal adb tool from the links here: https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-xt1640-43-athene-npj25-93-t3549369 Install the drivers and tool as directed by the installers.
2)Extract the 7z ROM with your preferred decompression tool (that can handle .7z file types). The resulting folder should be about 2 GB. Copy the files (from the extracted stock ROM) to your adb folder (may be on your C:\ drive, you may have to give permission to copy).
3)Connect your device to your computer. Enable USB debugging.
3a)Once recognised by your computer, open the adb terminal and type/execute 'adb devices' without the quotes. Your device should return back its serial number if properly detected.
4)Back up all necessary data and files to your computer. Flashing a fastboot ROM may wipe your data from your device.
5)Reboot your device to bootloader mode.
5a) Re-confirm you can still detect your device in fastboot mode by executing 'fastboot devices'. Should get your serial number again.
6)Run the commands as directed in the fastboot ROM thread in the adb terminal.
6a)These commands are for relocking your bootloader:
Code:
fastboot oem lock begin
fastboot oem lock begin
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize (optional: will erase any customizations if ordered through motomaker)
fastboot erase clogo (optional: will erase the custom boot logo if ordered through motomaker)
fastboot oem lock
fastboot reboot
6b) If you don't wish to type all this, you may wish to download and run the scripts from this thread: https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 Ensure you copy the scripts to the adb folder, where your ROM files and the adb terminal should be. There should be 2 scripts there, one for if you want to relock your bootloader, one if you don't wish to.
getting error whilw flashing
snd team said:
First of all download the stock firmware rar file ( thanks to Arivendu for heads up) - multi platform support (windows linux etc)
https://cloud.mail.ru/public/CKF3/AWVREk6s9
Mirrors :
https://files.fm/u/hfapbktm
https://drive.google.com/open?id=0B-ReAPgYg5ISNFpaeV92V2hRaWc
https://mega.nz/#!0oV33RhI!5U51UqC4v16qTSN5ur6FAV7EOpLTXL0Pfm12n71GGwc
***** this firmware also worked for other moto g4 variants *****
extract it
open folder name : athene_oem_user_7.0_NPJ25.93-11_12_release
under the folder their is a folder name "Windows"
copy files from "windows" folder to root folder
and use below command to re-lock bootloader and flash your phone with latest version of stock 7.0 (tested on xt1643)
SHIFT + Mouse right click >>> open command window here
and enter this commands one by one
Code:
fastboot oem lock begin
fastboot oem lock begin
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem lock
Or download the oem unlock and flash mobile.zip (833.6 KB) from atatchment and place the files in root dir where you extracted the firmware
and run the OEM lock.bat file for automation
if the device not reboot after firmware flash run this command at the end :
Code:
fastboot reboot
Click to expand...
Click to collapse
log:
Fastboot device is ready
There are 1 device(s) connected: ZY2237XWMH
Trying to flash device ZY2237XWMH
Starting flashing device ZY2237XWMH...
Flashing partition table ...
Executing ".\Windows\fastboot.exe -s ZY2237XWMH flash partition gpt.bin"
target max-download-size: 512MB
sending 'partition' (32 KB)...
OKAY [ 0.000s]
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.048s
All devices are flashed
Press any key to continue .
Iam getting same error even while flshing without bootloader and GPT. (Iam trying downgrade from 7.1.2 to stock 7.0)
please help me with this
Udaya.kr said:
log:
Fastboot device is ready
There are 1 device(s) connected: ZY2237XWMH
Trying to flash device ZY2237XWMH
Starting flashing device ZY2237XWMH...
Flashing partition table ...
Executing ".\Windows\fastboot.exe -s ZY2237XWMH flash partition gpt.bin"
target max-download-size: 512MB
sending 'partition' (32 KB)...
OKAY [ 0.000s]
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.048s
All devices are flashed
Press any key to continue .
please help me with this
Click to expand...
Click to collapse
What firmware did you have previously on your device, and are you trying to relock your bootloader? The firmware linked here is quite old (November 2016 security patch), and the warning you're getting suggests you have newer firmware on your device.
If you're on the June update, do not flash this firmware.
echo92 said:
What firmware did you have previously on your device, and are you trying to relock your bootloader? The firmware linked here is quite old (November 2016 security patch), and the warning you're getting suggests you have newer firmware on your device.
If you're on the June update, do not flash this firmware.
Click to expand...
Click to collapse
Successfully flashed june firmware and re locked bootloader. thank you for your help.
Udaya.kr said:
Successfully flashed june firmware and re locked bootloader. thank you for your help.
Click to expand...
Click to collapse
Can you please share the link for june fastboot rom for XT1643?

Categories

Resources