Stock ROM Nougat 7.0 For Moto G4 Plus XT1643 - Moto G4 Plus Questions & Answers

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?

Related

[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.

Moto G boots only into TWRP

My XT1625 has an unlocked bootloader and TWRP installed. Today I got a notification that the Sept security patch was available so I downloaded it and tried to install. I was paying attention until I noticed it booted back into TWRP and does it everytime so I guess accepting and installing that patch was a no-no. I got it to boot into Android from instructions in another post.
Can I locate the patch in TWRP and flash it from there? Btw, I did notice that the patch was only 49MB so it clearly wasn't the entire Nougat ROM.
lmacmil said:
My XT1625 has an unlocked bootloader and TWRP installed. Today I got a notification that the Sept security patch was available so I downloaded it and tried to install. I was paying attention until I noticed it booted back into TWRP and does it everytime so I guess accepting and installing that patch was a no-no. I got it to boot into Android from instructions in another post.
Can I locate the patch in TWRP and flash it from there? Btw, I did notice that the patch was only 49MB so it clearly wasn't the entire Nougat ROM.
Click to expand...
Click to collapse
You cannot flash an official OTA update. You need to be on official recovery for this. Have a look at here, same question https://forum.xda-developers.com/moto-g4-plus/help/luck-moto-g4-plus-flashable-logo-bin-t3701652
For update its advisable to use the full stock rom to be flashed with fastboot like this one https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
Please use always search function as this happens every week a few times and same question is answered already enough.
Also worth having a look here https://forum.xda-developers.com/moto-g4-plus/help/help-thread-question-noob-friendly-t3526598 and also ask here.
strongst said:
You cannot flash an official OTA update. You need to be on official recovery for this. Have a look at here, same question https://forum.xda-developers.com/moto-g4-plus/help/luck-moto-g4-plus-flashable-logo-bin-t3701652
I saw that other post and edited mine to acknowledge that I saw the fix (see last sentence of 1st paragraph.)
For update its advisable to use the full stock rom to be flashed with fastboot like this one https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 Thanks. I probably won't go to that much trouble.
Please use always search function as this happens every week a few times and same question is answered already enough. I generally do.
Also worth having a look here https://forum.xda-developers.com/moto-g4-plus/help/help-thread-question-noob-friendly-t3526598 and also ask here.
Click to expand...
Click to collapse
I rebooted and it went back to TWRP again. I will ask how to fix this in the help thread.
lmacmil said:
I rebooted and it went back to TWRP again. Will I have to boot to fastboot mode and select factory mode every time now or is there a fix that will boot into Android instead of TWRP?
Click to expand...
Click to collapse
Try to run these commands from fastboot..
fastboot oem fb_mode_set
fastboot oem fb_mode_clear
____Mdd said:
Try to run these commands from fastboot..
fastboot oem fb_mode_set
fastboot oem fb_mode_clear
Click to expand...
Click to collapse
I will give it a try.
lmacmil said:
I will give it a try.
Click to expand...
Click to collapse
use the following script :
Code:
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 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
fastboot erase clogo
fastboot oem fb_mode_clear
fastboot reboot
____Mdd said:
Try to run these commands from fastboot..
fastboot oem fb_mode_set
fastboot oem fb_mode_clear
Click to expand...
Click to collapse
Got error messages:
D:\Computer\Minimal ADB and Fastboot>fastboot oem fb_mode_set
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
...
OKAY [ 0.005s]
finished. total time: 0.008s
siddhesh9146 said:
use the following script :
Code:
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 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
fastboot erase clogo
fastboot oem fb_mode_clear
fastboot reboot
Click to expand...
Click to collapse
Is this going to wipe my system like a factory reset? If so, can I just restore the backup I made after I installed TWRP initially? Or just do a factory reset?
@lmacmil ignore it, use both commands then try to boot.
---------- Post added at 12:41 AM ---------- Previous post was at 12:34 AM ----------
lmacmil said:
Is this going to wipe my system like a factory reset? If so, can I just restore the backup I made after I installed TWRP initially? Or just do a factory reset?
Click to expand...
Click to collapse
Don't use it if you are thinking to just run script and not to flash... since it has "erase modemst1 & 2" it will erase modem, but will not flash fsg/modem, also "erase data" will wipe everything on phone.. this can put you in trouble..
Instead of doing this, as strongst said in his post, flash complete firmware, see the link for september's update he gave in his post.
Then move everything from your phone to PC (images / video/ etc)
Then flash firmware...
____Mdd said:
@lmacmil ignore it, use both commands then try to boot.
---------- Post added at 12:41 AM ---------- Previous post was at 12:34 AM ----------
Don't use it if you are thinking to just run script and not to flash... since it has "erase modemst1 & 2" it will erase modem, but will not flash fsg/modem, also "erase data" will wipe everything on phone.. this can put you in trouble..
Instead of doing this, as strongst said in his post, flash complete firmware, see the link for september's update he gave in his post.
Then move everything from your phone to PC (images / video/ etc)
Then flash firmware...
Click to expand...
Click to collapse
Still boots to TWRP. Maybe this is the time to move to LineageOS 14.1. I was going to wait until 15 was stable but if I'm going to lose everything, I might as well get more up to date.
This seems to have killed my cell signal too. Just noticed that last time I booted to Android.
lmacmil said:
Still boots to TWRP. Maybe this is the time to move to LineageOS 14.1. I was going to wait until 15 was stable but if I'm going to lose everything, I might as well get more up to date.
This seems to have killed my cell signal too. Just noticed that last time I booted to Android.
Click to expand...
Click to collapse
Did you flash complete stock ROM ?
Move your files to External Storage then try it.
____Mdd said:
Did you flash complete stock ROM ?
Move your files to External Storage then try it.
Click to expand...
Click to collapse
I decided since I would have to reinstall all my apps anyway that I would flash LineageOS 14.1, which I did. I did the appropriate wipes (data, system, cache, Dalvik/ART), then flashed the latest nightly and Gapps. It was successful but it's still booting into TWRP and I still have no cell service. I thought that a complete wipe and installation of new ROM would correct those issues but it did not. And since it didn't, I'm not confident that flashing the stock ROM would either but unless there's something else to try, I will do it. One concern I have is I have a plain G4 and the ROM is for the G4 Plus. My build was NPJ25.93-14.5 and I think the Plus build is NPJS... Not sure if that makes a difference.
Maybe I should restore my original Nandroid backup first and see if that fixes things.
lmacmil said:
. My build was NPJ25.93-14.5 and I think the Plus build is NPJS... Not sure if that makes a difference.
Click to expand...
Click to collapse
NPJ25.93-14.5 was for Amazon variant if i am not wrong.
I don't know but in past that two commands [fb_mode_set and fb_mode_clear] worked fine for this problem.
Try this thing, [reboot to bootloader and flash TWRP but with fb_mode_ commands]
- fastboot oem fb_mode_set
- fastboot flash recovery twrp(name).img
- fastboot oem fb_mode_clear
If this too doesn't work, then you have to find correct firmware for your phone and flash it..
EDIT: for easiness to find correct firmware, restore backup, then see "about phone" for build number, it will help to find firmware..
EDIT-2:
I found 2 firmware of version you said,
But one says Amazon and another doesn't. You have Nandroid, restore and check your phone build..
Then go for following one correctly..
AMAZON : Click here
Non-AMAZON : Click here
____Mdd said:
NPJ25.93-14.5 was for Amazon variant if i am not wrong.
I don't know but in past that two commands [fb_mode_set and fb_mode_clear] worked fine for this problem.
Try this thing, [reboot to bootloader and flash TWRP but with fb_mode_ commands]
- fastboot oem fb_mode_set
- fastboot flash recovery twrp(name).img
- fastboot oem fb_mode_clear
If this too doesn't work, then you have to find correct firmware for your phone and flash it..
EDIT: for easiness to find correct firmware, restore backup, then see "about phone" for build number, it will help to find firmware..
EDIT-2:
I found 2 firmware of version you said,
But one says Amazon and another doesn't. You have Nandroid, restore and check your phone build..
Then go for following one correctly..
AMAZON : Click here
Non-AMAZON : Click here
Click to expand...
Click to collapse
Mine was the non-Amazon version. See attachment. The software channel was "retus" and the baseband version also said "ATHENE_RETUSA_CUST" The Amazon version software channel is amz.
I was able to get the bootloader unlock code from Motorola and they don't allow the Amazon versions to be unlocked.
I'll try your suggestions. Thanks for your continued help.
____Mdd said:
NPJ25.93-14.5 was for Amazon variant if i am not wrong.
I don't know but in past that two commands [fb_mode_set and fb_mode_clear] worked fine for this problem.
Try this thing, [reboot to bootloader and flash TWRP but with fb_mode_ commands]
- fastboot oem fb_mode_set
- fastboot flash recovery twrp(name).img
- fastboot oem fb_mode_clear
Click to expand...
Click to collapse
This is what I got:
D:\Computer\Minimal ADB and Fastboot>fastboot devices
ZY223N5GLF fastboot
D:\Computer\Minimal ADB and Fastboot>fastboot oem fb_mode_set
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
...
OKAY [ -0.000s]
finished. total time: -0.000s
D:\Computer\Minimal ADB and Fastboot>fastboot flash recovery twrp.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:recovery: not found
target reported max download size of 536870912 bytes
sending 'recovery' (12530 KB)...
OKAY [ 0.402s]
writing 'recovery'...
(bootloader) Image not signed or corrupt
OKAY [ 0.190s]
finished. total time: 0.595s
D:\Computer\Minimal ADB and Fastboot>fastboot oem fb_mode_clear
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
...
OKAY [ 0.001s]
finished. total time: 0.001s
=================================
Not sure why I'm getting the bootloader error messages but I backed up just the bootloader recently so am going to restore that and see what happens.
@lmacmil that "not found" is ignorable, just check you get "OKAY" after one command ends... Since GPT and Bootloader commands got "OKAY" they are flashed successfully..... Go for complete firmware...
____Mdd said:
@lmacmil that "not found" is ignorable, just check you get "OKAY" after one command ends... Since GPT and Bootloader commands got "OKAY" they are flashed successfully..... Go for complete firmware...
Click to expand...
Click to collapse
I guess I need to bite the bullet and do this. It will install stock recovery and erase TWRP, right? If that's the case, and I don't relock the bootloader, will I be able to accept the OTA update? Or does an unlocked bootloader prevent OTA updates?
Last question: I just extract the firmware .zip file to the same folder where fastboot and adb reside? Then type the commands one by one (or copy/paste from the script shown in the thread about flashing stock firmware.)
Thanks again.
lmacmil said:
I guess I need to bite the bullet and do this. It will install stock recovery and erase TWRP, right?
Click to expand...
Click to collapse
Yes, it will install stock recovery, you will have to install TWRP again.
If that's the case, and I don't relock the bootloader, will I be able to accept the OTA update? Or does an unlocked bootloader prevent OTA updates?
Click to expand...
Click to collapse
It will be fine, You will have successful installation with unlocked bootloader too, no need to lock back..
Last question: I just extract the firmware .zip file to the same folder where fastboot and adb reside? Then type the commands one by one (or copy/paste from the script shown in the thread about flashing stock firmware.)
Thanks again.
Click to expand...
Click to collapse
You did right, that's why there is "OKAY" when command end, see your own post where you asked for "not found" error... Keep Going..
____Mdd said:
Yes, it will install stock recovery, you will have to install TWRP again.
You did right, that's why there is "OKAY" when command end, see your own post where you asked for "not found" error... Keep Going..
Click to expand...
Click to collapse
Success! Just flashed the stock Nougat ROM and as soon as it booted up, I let it download and install the Sept security patch. I am now on NPJ25.93-14.7.
Thanks again for all your help.
Lee

Official Oreo 8.1.0 OPP28.85-16 Fastboot Firmware (and how to relock BL with it).

Someone managed to get the RSD Secure link for the FASTBOOT files of the final Oreo 8.1 release for RETAIL Moto G5/cedric.
With these files you'll be able to update to official oreo, relock your bootloader or simply go back to stock.
Using the guide I'll write below you'll be able to flash it from Linux, Windows and MacOS.
The new firmware is named OPP28.85-16 and Blur Version listed within the firmware package is:
Code:
Blur_Version.28.41.15.cedric.retail.en.US
whereas the OTA file for the corresponding Firmware lists it as:
Code:
Blur_Version.25.361.10.cedric.retail.en.US
I dont know which is "correct", but anyways, this should not alter your results when flashing this with fastboot.
DOWNLOAD
Gdrive: https://drive.google.com/file/d/1gNB7vNM8xH5ueTPKh5Qwev87gJpSpyyK/view?usp=sharing
RSD Secure: https://rsdsecure-cloud.motorola.co...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
FLASHING IT
If your seeing this post long after Setember 2018 it may be the case you have updated your firmware past this one and got a different bootloader version, in that case, make sure to check you bootloader version is BELOW B8.31. Flashing bootloader of equal or minor version will hardbrick your device
UPDATING FROM PREVIOUS ANDROID VERSION
1. If you're on Windows/Mac, download motorola USB drivers here. (You shouldn't need these on Linux)
2. Download Android Platform Tools (ADB & Fastboot ) for Windows/Mac/ Linux here (if you're on Linux, get these from your distro's repo instead).
3. Extract the platform tools somewhere
4. Extract the firmware's ZIP too (I recommend extracting it to the same directory as platform tools, this will make your life easier).
5.Open a command prompt/terminal where you extracted platform tools (To do that on windows, Hold SHIFT + right Click some blank area within platform-tools directory, then click "Open Command Prompt Here".
6. Reboot into fastboot (power off and connect USB while holding Vol Down) and Execute the following commands
Code:
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 system system.img_sparsechunk.8
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
7. Reboot your phone by typing fastboot reboot or by selecting the "START" option in phone's screen and then pressing the power button
PS: Do not execute commands related to erasing the modemst1 and modemst2 partitions. This has been related to people losing their IMEI's.
RELOCKING YOUR BOOTLOADER
edit
Seems like my instructions on how to relock didn't work, but I want to thank Andrej_SK, who managed to do it and posted instructions on how to do it. Just remember that you should Not flash bootloader if you're already on B8.31 or past it. Flashing gpt.bin can also hardbrick your phone and there have been reports of it happening here on XDA and on telegram. I personally didn't flash it when moving from NPPS25.137-93-2-5 and had no problem at all, and I think you shouldn't too, unless you know you absolutely need it (which I think is unlikely, since the partition scheme looks the same on both nougat and Oreo)
Andrej_SK said:
I was able to lock my bootloader with this firmware (but I wasn't satisfied with official Oreo at all so I unlocked it again and downgraded to Nougat).
Try this (on your own risk only): input "fastboot oem lock" twice (first time for starting the whole process of locking, second time for confirmation). Then, execute commands below, one by one
Code:
fastboot flash oem oem.img
fastboot flash boot boot.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
Then, input "fastboot oem lock" for the last time. Your phone should immediately reboot, as mine did. If there will be problem with booting into OS, just reflash the whole system with commands below:
Code:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img (do not flash this if you're on B8.31 or further, so as not to hardbrick the device)
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 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
Click to expand...
Click to collapse
DOWNGRADING FROM A FIRMWARE NEWER THAN OPP28.85-16
1. Follow steps one 1 up to five described in the first section UPDATING FROM PREVIOUS ANDROID VERSION
2. Omit these lines from step 6:
Code:
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
Notice that omitting these two lines is VERY IMPORTANT if you're downgrading, otherwise you'll hardbrick your device.
3.7. Reboot your phone by typing fastboot reboot or by selecting the "START" option in phone's screen and then pressing the power button
That's it. If you liked, press thanks
Ps: some of my friends have reported phone is rebooting right after flashing sparsechunk.5.
phone will apparently boot normally and show the setup wizard screen, but in actuality there will be missing files on the system partition.
in that case, reboot into fastboot and finish flashing the system normally, then boot your phone
Thank you very much! Excuse me if I'm wrong but with this file it's safe to install Oreo from stock Nuggat right? I just need to unlock the bootloader and flash normally?
Thank, you to provide the firmware.
On another thread (https://forum.xda-developers.com/g5...eo-8-1-0-release-opp28-t3849273/post77771786) you wrote it's necessary to be on firmware NPPS25.137-93-2-5. Maybe you forgot to mention that!?
I believe the two threads are separate updates. One being OTA and this thread being fastboot firmware. I was wondering if this would work on my Moto g5 xt1670 (137-93-8)?
Woooow
Thanks
Ahasverus said:
Thank you very much! Excuse me if I'm wrong but with this file it's safe to install Oreo from stock Nuggat right? I just need to unlock the bootloader and flash normally?
Click to expand...
Click to collapse
no need to unlock BL to flash this. If you're on stock Nougat just make sure you're on NPPS25.137-93-2-5 (July security patch), then grab the ota here and sideload or flash it using the stock recovery
if you're not on NPPS25.137-93-2-5 then you'll need to flash it before flashing the ota.
AndroidenKalle said:
Thank, you to provide the firmware.
On another thread (https://forum.xda-developers.com/g5...eo-8-1-0-release-opp28-t3849273/post77771786) you wrote it's necessary to be on firmware NPPS25.137-93-2-5. Maybe you forgot to mention that!?
Click to expand...
Click to collapse
if you're going to install it from fastboot there's no need to be on NPPS25.137-93-2-5
TWRP v3.2.3.0 for Cedric: works
Magisk v17.1: works (don't use safetynet)
Thank you very much for this! I've been using the soak Oreo and could not be happier until this thread, time for the final Oreo for my beloved G5.
Blur_Version.28.41.15 for OPP28.85-16 is correct!
I'm on the 2nd soak test update OPP28.85-13 and tried the OTA update from your other post. This failed due to wrong version (E3002) since it expects the last NPPS25.137-93-2-5 version.
How can I update from OPP28.85-13 to the latest OPP28.85-16 via fastboot flash without losing my current data and settings?
Can I flash without "erase userdata"?
The thing I don't like in your instructions is lack of DDR errase command.
Please explain your point. Also please compare with flashfile.xml from Oreo firmware.
PsyClip-R said:
The thing I don't like in your instructions is lack of DDR errase command.
Please explain your point. Also please compare with flashfile.xml from Oreo firmware.
Click to expand...
Click to collapse
So "fastboot erase ddr" command should be included while flashing stock Oreo through fastboot? What does that command do?
I am on amzin software channel and my build number is NPPS25.137-93-14 (July Security Patch). Will this fastboot method work for me?
Hello,
the bootloader locking seems not to be working. At the last "fastboot oem lock" it says that it needs a signed boot.img. Has anyone else experienced this issue ?
achintyakv said:
I am on amzin software channel and my build number is NPPS25.137-93-14 (July Security Patch). Will this fastboot method work for me?
Click to expand...
Click to collapse
I don't think so since this is definitely a retail version.
BUILD REQUEST INFO:
SW Version: cedric-user 8.1.0 OPP28.85-16 0400 release-keysM8937_22.29.02.70R
MBM Version: B8.31
Modem Version: M8937_22.29.02.70R
FSG Version: FSG-8937-02.65.33
Build Fingerprint: motorola/cedric/cedric:8.1.0/OPP28.85-16/0400:user/release-keys
CQATest App Version: 6.0.6
VERSION INFO FOUND UNDER 'ABOUT PHONE' SCREEN:
System Version: 28.41.15.cedric.retail.en.US
Model Number: Moto G (5)
Android Version: 8.1.0
Baseband Version: M8937_22.29.02.70R
Build Id: OPP28.85-16
SW Display Build ID: OPP28.85-16
Build Date: Wed Sep 5 09:46:09 CDT 2018
OTHER MISC VERSION INFO:
Subsidy Lock Config: slcf_rev_d_default_v1.0.nvm
Regulatory Info (eLabel): regulatory_info_default.png
Blur Version: Blur_Version.28.41.15.cedric.retail.en.US
Version when read from CPV: cedric-user 8.1.0 OPP28.85-16 0400 release-keys
slsmaster said:
Hello,
the bootloader locking seems not to be working. At the last "fastboot oem lock" it says that it needs a signed boot.img. Has anyone else experienced this issue ?
Click to expand...
Click to collapse
I was able to lock my bootloader with this firmware (but I wasn't satisfied with official Oreo at all so I unlocked it again and downgraded to Nougat).
Try this (on your own risk only): input "fastboot oem lock" twice (first time for starting the whole process of locking, second time for confirmation). Then, execute commands below, one by one
Code:
fastboot flash oem oem.img
fastboot flash boot boot.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
Then, input "fastboot oem lock" for the last time. Your phone should immediately reboot, as mine did. If there will be problem with booting into OS, just reflash the whole system with commands below:
Code:
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 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 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
Edit: as you can see at the screenshots in the attachment, I'm able to lock bootloader with this firmware. First, I reflashed the whole Oreo firmware, then rebooted into bootloader using "fastboot reboot-bootloader" command and at last I tried to relock bootloader which was (once again) successful.
Phone specs: XT1676 (3/16), DualSIM, reteu soft. channel
Andrej_SK said:
I was able to lock my bootloader with this firmware (but I wasn't satisfied with official Oreo at all so I unlocked it again and downgraded to Nougat).
......
......
Click to expand...
Click to collapse
Thank you very much, worked like a charm.
need cedric amzin oreo update before was on soak oreo ,after upate this phone stay in fastboot mode
PsyClip-R said:
The thing I don't like in your instructions is lack of DDR errase command.
Please explain your point. Also please compare with flashfile.xml from Oreo firmware.
Click to expand...
Click to collapse
never heard about this command before, I have never used it ever and I flashed this firmware without any problem so far
Andrej_SK said:
So "fastboot erase ddr" command should be included while flashing stock Oreo through fastboot? What does that command do?
Click to expand...
Click to collapse
As I said above, I and other people I know who flashed this didn't have any problem by flashing without typing "fastboot erase DDR" and in fact I'm curious to know what does this command do.
JoeDoe0 said:
Blur_Version.28.41.15 for OPP28.85-16 is correct!
I'm on the 2nd soak test update OPP28.85-13 and tried the OTA update from your other post. This failed due to wrong version (E3002) since it expects the last NPPS25.137-93-2-5 version.
How can I update from OPP28.85-13 to the latest OPP28.85-16 via fastboot flash without losing my current data and settings?
Can I flash without "erase userdata"?
Click to expand...
Click to collapse
I think it's very unlikely anyone has this OPP25.85-16, otherwise it would've already surfaced somewhere.
(edit)
seems like I was wrong, I just reflashed the firmware and managed to keep my data by not using fastboot erase user data.
(/edit)
regarding the "fastboot erase user data" it doesn't matter if you use it or not, since once you flash all sparse chunks you'll lose your data partition anyways.
what I'd suggest you to do is
1.backup your data partition using twrp and your internal storage to a pc/sdcard/whatever (twrp doesn't backup your internal storage)
2. flash the firmware just as described on the main thread
3 fastboot boot twrp.img PRIOR to the first boot
4. restore your data
5. connect your phone to USB cable with twrp still open and copy back your internal storage through TWRP's MTP(or use twrp's file manager/aroma FM in case you backed internal storage to sd card)
5. boot your phone.
I never tried backing up internal storage but I already did this when fastbooting and managed to keep my data (settings, apps, etc) .
I just advice you to remove any screen lock prior to backing up your data since your previous pattern/pin/password generally won't work after restoring a twrp backup, but in case you forget it use twrp and go to /data/system and delete locksettings.db and your
lock screen protection will be gone
achintyakv said:
I am on amzin software channel and my build number is NPPS25.137-93-14 (July Security Patch). Will this fastboot method work for me?
Click to expand...
Click to collapse
I don't know, this could brick your phone, but I'm not sure
tapan8914 said:
need cedric amzin oreo update before was on soak oreo ,after upate this phone stay in fastboot mode
Click to expand...
Click to collapse
as I said idk what'd happen if someone did this. the best you can do now is to find some old amzin firmware and fastboot it (do not flash gpt.bin or bootloader.bin, so as not to hard brick your device)
Andrej_SK said:
I was able to lock my bootloader with this firmware (but I wasn't satisfied with official Oreo at all so I unlocked it again and downgraded to Nougat).
Try this (on your own risk only): input "fastboot oem lock" twice (first time for starting the whole process of locking, second time for confirmation). Then, execute commands below, one by one
Code:
fastboot flash oem oem.img
fastboot flash boot boot.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
Then, input "fastboot oem lock" for the last time. Your phone should immediately reboot, as mine did. If there will be problem with booting into OS, just reflash the whole system with commands below:
Code:
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 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 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
Edit: as you can see at the screenshots in the attachment, I'm able to lock bootloader with this firmware. First, I reflashed the whole Oreo firmware, then rebooted into bootloader using "fastboot reboot-bootloader" command and at last I tried to relock bootloader which was (once again) successful.
Phone specs: XT1676 (3/16), DualSIM, reteu soft. channel
Click to expand...
Click to collapse
many a thanks, I'll put this on the main thread
Currently on OPP28.85-3
Currect me if I'm wrong, but by what I have been reading,
I cant go from OPP28.85-3 to OPP28.85-16
What I've read, I can't be on bootloader B8.31 (which I am) and since this isn't a "full system" image, just a "patch" for official Nougat to upgrade to offical Oreo, I need to be on Nougat.
If this is the case, could I go back to nougat through a TWRP Zip, or would this need to be done through fastboot commands. I know I need a downgraded Bootloader and I don't think ROM flashing affects anything else but /system
PLEASE correct me if I'm wrong. Just a curious guy who loves learning.

[SOLVED] Can I install Nougat Fastboot ROM even if I am on Oreo?

I do not know whether my EFS and Persist are intact but I have backed them up. I had installed Pixel Experience 9.0 and then restored my TWRP backup to go to Stock Oreo, Build Number: OPSS28.85-13-5. This is my current Build, unlocked, rooted and has TWRP.
Can I follow this (https://forum.xda-developers.com/g5-plus/development/stock-firmware-npn25-137-67-5-fastboot-t3694738) guide to go back to Stock Nougat and then upgrade to the latest official update from moto?
I am asking to confirm as the Stock ROM given in the guide is Nougat ROM and I am on Oreo as mentioned above. I won't have any problems right? I do not want to lose VoLTE and my IMEI.
Any help will be appreciated.
Installed Oreo ROM via fastboot on my Moto G5 Plus [RETIN/Indian/ XT1686]
I am sharing my experience here so that it might help someone looking to flash stock ROM via fastboot. This is not meant to be a tutorial, but I will list out the steps I followed. I am not responsible if you mess up or hard/soft brick your device when following the steps I mentioned below. Always make a backup of your data/photos/videos/music and whatever else. Also make a backup with TWRP to be safe.
So instead of following the guide linked in the above post, I followed this one and successfully unrooted and returned to stock: https://forum.xda-developers.com/g5-plus/how-to/moto-g5-plus-fastboot-flash-stock-oreo-t3848433
But I did not use the ROM linked by the OP in that thread. Instead I downloaded this one : https://mirrors.lolinet.com/firmwar...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
This RETIN ROM works for me because I have the Indian XT1686. I don't know if it matters but I had the same version (13-5) before, but I am not sure whether it was RETAIL or RETIN.
Anyways guys make sure you download the right ROM for your device if you are going to install via fastboot. You can download the right ROM for your device from here: https://mirrors.lolinet.com/firmware/moto/potter/official/
There are different folders for ROMs of different regions in the above link. So carefully download the one your device is compatible with.
Also, I installed fastboot drivers from here: https://forum.xda-developers.com/showthread.php?t=2588979
Follow the instructions and also follow the video tutorials in the post to install fastboot drivers if your phone isn't detected in fastboot.
Then once I had downloaded the ROM and installed ADB, I extracted the ROM zip into a folder. Copy pasted ADB Files into the same folder (download ADB Files that worked for me _ attached to this post below).
FInally I put my phone in fastboot (turn off phone, then press volume down and power simultaneously till fastboot shows up). Connected the phone to my PC. Then opened CMD in the folder where I had extracted the ROM and copy pasted the ADB Files. To open cmd in a folder, just type cmd in the address bar of the folder and press enter.
And then I copy pasted the following code into the cmd window:
Code:
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 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 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
The above commands will run when pasted in cmd and your phone will be flashed with the ROM. It took a couple minutes to install and then I had to press enter while still in cmd to reboot the phone. Then the phone rebooted. Took a couple minutes more to boot, so stay patient. Then once the phone booted, I disconnected it from my PC and set the phone up as usual. DO NOT disconnect the phone when the fastboot commands are running and the ROM is being flashed. Note that the above fastboot commands will only flash the ROM. It will not lock the bootloader.
If you want to lock the bootloader then follow the instructions here: https://forum.xda-developers.com/g5-plus/how-to/moto-g5-plus-fastboot-flash-stock-oreo-t3848433
Note that I haven't locked my bootloader. So you will have to try and see for yourself whether it locks your bootloader.
Also once I booted up I got update notification and was able to update to the Feb 2019 OTA security update. So I can for sure say that updates work. VoLTE, calling, camera, almost everything I checked works.
Cheers. :victory:

Categories

Resources