[Windows Tool] Moto G 2015 XT1072 Restore to to Stock Android 5.0.2 - Moto G 2014 LTE Android Development

HI FRIENDS!
This is a one-click tool I made to automatically restore your device back to stock firmware. This is for Windows only at the moment. This tool can restore your device to stock when the device is booted up, in a bootloop, in recovery, or in booloader mode (fastboot mode).
Introducing my new "Restore to Stock" tool for Windows! This is tool currently supports XT1072.
So how do u restore to stock?
***This will wipe all your data***
Step 1)
Download the "Moto G 2014 Restore to Android 5.0.2" zip from here:
XT1072:
1) Firmware 22.46.28 [5.0.2-EU] - LINK
Step 2)
Extract the .zip to a location on your PC/Laptop you can easily access
Step 3)
Plug your Moto G 2015 into your computer
***Make sure all the proper device drivers are installed***
Step 4)
In the extracted folder, find a file called "Auto Restore Script" and click it (It is a Windows batch file)
Step 5)
In less than 5 min. your Moto G 2015 will be restored to stock firmware
NOTE: I RECOMMEND YOU TRY THIS TOOL OUT ON YOUR MOTO G, SO JUST IN CASE IF YOU EVER ARE IN A PROBLEM (BOO-LOOP, CORRUPT PARTITION, ETC.) YOU KNOW HOW TO USE THIS TOOL AND U ARE ASSURED THIS TOOL WORKS! ​
If you like my work please donate by clicking "DONATE TO ME" on the left side of this post under my XDA username.
ALL DONATIONS ARE GREATLY APPRECIATED!

Oh my god, your lovely tool just saved my new Moto G from bricktown after an aborted attempt at rooting. Cannot thank you enough.
One note I want to add: in order to get this to work, I had to move the files into the same folder as my 'fastboot' and 'adb' installation, and also remove the 'm' from the start of each line. Otherwise, it worked perfectly.
Thank you thank you thank you!

you really need to add the mfastboot.exe file to this as in its current state it is not working until you add the file yourself. either add the file or change the script to use normal fastboot

Just to confirm ... will this restore my Moto G back 100% to how it was before I started rooting (and I can then receive official updates)? There are so many different versions of Moto G 2nd generation, like 2014 vs. 2015, Europe vs. USA, etc. I just want to be sure.
I tried rooting my phone yesterday, and I might want to go back to default at some point (I only unlocked bootloader + installed TWRP + installed SuperSU).
See attached photo of my phone's stats.

The link is broken

I have the file. I try to share it this weekend.
EDIT:
Here you are
https://dl.dropboxusercontent.com/u...1072] Restore to Android 5.0.2 (22.46.28).zip

Anyone have this already and can reupload it?

doesn't work on my XT1072
with my old phone, the galaxy nexus, it will take 1 click and 5 minutes time to restore to stock firmware with a simple toolkit, now i look like a freaking noob.

RandyRhoads1821 said:
doesn't work on my XT1072
with my old phone, the galaxy nexus, it will take 1 click and 5 minutes time to restore to stock firmware with a simple toolkit, now i look like a freaking noob.
Click to expand...
Click to collapse
Same here

if it doesn't work try this:
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot

Link doesn't work
EDIT: NVM, just saw the other post

mendelssohn said:
if it doesn't work try this:
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
Click to expand...
Click to collapse
I tried the whole process, but with "mfastbond" instead of "fastbond" ;-P, and it worked nicely, thanks a lot.
Piece of advice, DON'T SKIP THE ERASE USERDATA LINE!!, I tried to save me the time of setting up everyting again, and I had a memorable UPS! moment, when the boot process stopped into a black screen... thank god I could reboot into bootloader mode and start again :_o

switch to br retail from EU rom
after i install this EU rom, can i install a stock retail from brazil? as i am in Brazil, not EU. myne is a xt1078, updated to 6.0 but it is stuck in fastboot mode, with locked boot. tryed few comands no use,

did not work. mine is a xt1079. guess the same as the 1072. tried manual commands but still no use. any other help?
Shawn5162 said:
HI FRIENDS!
This is a one-click tool I made to automatically restore your device back to stock firmware. This is for Windows only at the moment. This tool can restore your device to stock when the device is booted up, in a bootloop, in recovery, or in booloader mode (fastboot mode).
Introducing my new "Restore to Stock" tool for Windows! This is tool currently supports XT1072.
So how do u restore to stock?
***This will wipe all your data***
Step 1)
Download the "Moto G 2014 Restore to Android 5.0.2" zip from here:
XT1072:
1) Firmware 22.46.28 [5.0.2-EU] -
Step 2)
Extract the .zip to a location on your PC/Laptop you can easily access
Step 3)
Plug your Moto G 2015 into your computer
***Make sure all the proper device drivers are installed***
Step 4)
In the extracted folder, find a file called "Auto Restore Script" and click it (It is a Windows batch file)
Step 5)
In less than 5 min. your Moto G 2015 will be restored to stock firmware
NOTE: I RECOMMEND YOU TRY THIS TOOL OUT ON YOUR MOTO G, SO JUST IN CASE IF YOU EVER ARE IN A PROBLEM (BOO-LOOP, CORRUPT PARTITION, ETC.) YOU KNOW HOW TO USE THIS TOOL AND U ARE ASSURED THIS TOOL WORKS! ​
If you like my work please donate by clicking "DONATE TO ME" on the left side of this post under my XDA username.
ALL DONATIONS ARE GREATLY APPRECIATED!
Click to expand...
Click to collapse

help
mendelssohn said:
if it doesn't work try this:
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
Click to expand...
Click to collapse
still dont work

erprando said:
after i install this EU rom, can i install a stock retail from brazil? as i am in Brazil, not EU. myne is a xt1078, updated to 6.0 but it is stuck in fastboot mode, with locked boot. tryed few comands no use,
Click to expand...
Click to collapse
Hey mate don't know if you fixed the problem but you can find the latest image for you phone xt1072 BR
MM XT1078_THEA_RETBR_DS_6.0_MPB24.65-34_cid12_subsidy-DEFAULT_CFC.xml.zip
or latest 5.0.2 whit stagefright fix
LL XT1078_THEA_RETBR_DS_5.0.2_LXB22.99-24.12_cid12_subsidy-DEFAULT_CFC.xml.zip
To flash this use the minimal fastboot folder in my sign and the correct bat script LP/MM, just put everything in the same folder and launch the bat
lucifermorn said:
still dont work
Click to expand...
Click to collapse
Grab the latest stock image for your phone from the repo linked in my sign, read the first answer in this post reply on how to flash it.
-------------------------------------------------------------------------------------------------------
Most of the times if you didn't flashed the wrong files you can recover from a bootloop by wiping data/cache (factory reset) whit bootloader or fastboot.
As @lucifermorn noted the original updater.bat file included by th OP wasn't complete, motoboot.img missing if i'm correct, and wasn't using mfastbootv2.
You can find bat scripts for flashing stock roms in my sign, latest minimal fastboot+mfastbootv2, and a link to the moto g stock roms repo on filefactory.
PS
@vegdroid that image is old too, latest 5.0.2 whit stagefright fix is 22.99-24.12 if i'm correct.
Check the moto g stock images repo linked in my sign.
EDIT
Ouch @erprando just realized you wasn't asking, but stating that you have flashed an xt1072 rom on an xt1078, that a very bad thing, if my bat script isn't working you know why.

help
mendelssohn said:
if it doesn't work try this:
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
Click to expand...
Click to collapse
IVE TRIED EVERYTHING, CAN SOMEONE PLEASE GO IN DETAILS ON THE STEPS TO ENSURE IT WORKS, IM DESPERATE:crying:

This works fine but only if you add the mfastboot files. Moto G 2nd XT1072 Tesco. Saved me from a previous Marshmallow custom rom! Many thanks.

help
ArchieGodfrey said:
This works fine but only if you add the mfastboot files. Moto G 2nd XT1072 Tesco. Saved me from a previous Marshmallow custom rom! Many thanks.
Click to expand...
Click to collapse
how do i get tge moto g 2nd XT1072 Tesco?
---------- Post added at 06:56 PM ---------- Previous post was at 06:06 PM ----------
Never mind i fixed it xd i dont know how but thank god its fixed

Guys this bat script or how some call it "WINDOWS TOOL" (make me laugh), is not OK from a loooooong time, check by yourself, USE AT YOUR OWN RISK.
Bootloader is left behind......
wrong script said:
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.exe reboot
Click to expand...
Click to collapse
bootloader.img ??? anyone noticed this file in the zip or any lollipop/mm stock rom?? is this from gen1 kikat roms ?
right script said:
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_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 reboot
Click to expand...
Click to collapse

Related

[GUIDE] Convert any Moto G into a GPE with root and custom recovery

'Morning, 'afternoon and 'night.
I saw some XT1033 (some XT1032 too) users having problems with the latest unified roms (falcon ones) and decided to help them. I already did a guide like this in a brazilian Android forum, so, I'm only translating it. Hope it can be helpful to XDA.
-- First, thanks to ffosilva. Without his "semi-official" firmware, this guide couldn't exist.
| PRE-REQUISITES
- You need to have bootloader unlocked.
- Google Play Edition rom - Google Drive
- Google Play Edition rom - MediaFire
- mfastboot
- Minimal ADB & Fastboot
- Motorola Device Manager (Drivers)
1 - Alright. First of all, install Minimal ADB & Fastboot in C:\, to keep things easy. After, extract Google Play Edition.tgz inside its folder with mfastboot.
2 - Turn off your Moto G and put it on Bootloader mode by pressing power + vol. down for a few seconds.
3 - Plug it in PC and verify if it is connected.
4 - Open cmd.exe and do this command: cd C:\Minimal ADB & Fastboot or the folder you've installed it.
5 - After, copy these commands and paste them. On the third one, cmd will crash, just wait your Moto G reboot and close the warning.
Code:
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot reboot-bootloader
mfastboot continue
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg_intl.img
mfastboot erase cache
mfastboot erase userdata
| If you live in USA, do these last commands instead:
Code:
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg_gpe.img
mfastboot erase cache
mfastboot erase userdata
| And after checking if all the commands returned an OKAY, do
Code:
mfastboot reboot
| To flash any custom recovery, download CWM or TWRP (thanks to Dhacker29!), put it inside of Minimal ADB & Fastboot folder, launch cmd.exe doing "cd" in folder and do:
Code:
mfastboot flash recovery filename.img
| After, just flash SuperSU from recovery to get root. (thanks chainfire!)
| THIS WILL WIPE YOUR DEVICE. INCLUDING INTERNAL STORAGE.
| THIS WILL ALLOW XT1033 TO INSTALL falcon ROMS WITH ONLY ONE SIM WORKING
| NOW YOUR DEVICE HAS EXT4 STORAGE, SOME TWEAKS WON'T WORK
| AND SORRY FOR ANY GRAMMAR ERRORS
-------------------
REVERSE GUIDE
| Use this guide if you failed with first one or want to go back to stock rom.
| Install Minimal ADB & Fastboot again in another folder to avoid conflicts and download here (thanks to droid-developers) your respective stock rom. Extract it inside the folder.
| After, just re-do steps 2, 3 and 4 from above.
| Step 5 you'll run with these commands below. On the third one, cmd will crash, just wait your Moto G reboot and close the warning.
| I'm not sure if system partitions are the same for ALL roms at sbf.droid-developers. Some will have sparsechunk.1, 2 and 3. Verify that before running the commands!
Code:
mfastboot.exe flash partition gpt.bin
mfastboot.exe flash motoboot motoboot.img
mfastboot.exe reboot-bootloader
mfastboot.exe continue
mfastboot.exe flash logo logo.bin
mfastboot.exe flash boot boot.img
mfastboot.exe flash recovery recovery.img
mfastboot.exe flash system system.img_sparsechunk.0
mfastboot.exe flash system system.img_sparsechunk.1
mfastboot.exe flash system system.img_sparsechunk.2
mfastboot.exe flash modem NON-HLOS.bin
mfastboot.exe erase modemst1
mfastboot.exe erase modemst2
mfastboot.exe flash fsg fsg.mbn
mfastboot.exe erase cache
mfastboot.exe erase userdata
mfastboot.exe reboot
--
Thanks to all XDA community. I've learned so much here with you guys.
Isn't similar to this: http://forum.xda-developers.com/showthread.php?t=2661022
Thanks for your effort though. :good:
BaghiXDA said:
Isn't similar to this: http://forum.xda-developers.com/showthread.php?t=2661022
Thanks for your effort though. :good:
Click to expand...
Click to collapse
Oh, sorry. I didn't know about this one..
BaghiXDA said:
Isn't similar to this: http://forum.xda-developers.com/showthread.php?t=2661022
Thanks for your effort though. :good:
Click to expand...
Click to collapse
It didn't work for me.
But this zip did.
Though I got hab check failed in boot.IMG and recovery.IMG but ROM still booted up and I got network.
Don't know how but this one is favourable to me.
Sent from my Moto G using XDA Premium 4 mobile app
antarix said:
It didn't work for me.
But this zip did.
Though I got hab check failed in boot.IMG and recovery.IMG but ROM still booted up and I got network.
Don't know how but this one is favourable to me
Click to expand...
Click to collapse
These are ignorable errors. I always get them when flashing this rom but never had problems.
Hi,
I have a question regarding the ROM linked in the thread. Is this the official ROM or is this a modified version? So if I install this ROM on my XT1032, will it get the updates directly OTA from Google?
Thanks
imbroken80 said:
Hi,
I have a question regarding the ROM linked in the thread. Is this the official ROM or is this a modified version? So if I install this ROM on my XT1032, will it get the updates directly OTA from Google?
Thanks
Click to expand...
Click to collapse
It may get ota unless you alter the system with custom recovery or root it.
Sent from my Moto G using XDA Premium 4 mobile app
---------- Post added at 05:13 PM ---------- Previous post was at 05:11 PM ----------
thelegendofzeth said:
These are ignorable errors. I always get them when flashing this rom but never had problems.
Click to expand...
Click to collapse
Yep. First I panicked but after booting up the rom I got network and was happy to ignore it.
Sent from my Moto G using XDA Premium 4 mobile app
imbroken80 said:
Hi,
I have a question regarding the ROM linked in the thread. Is this the official ROM or is this a modified version? So if I install this ROM on my XT1032, will it get the updates directly OTA from Google?
Thanks
Click to expand...
Click to collapse
No one knows because there is no OTA for test this. But I believe it will receive because it was made of the system-pull of original GPE Moto G.
Once I do this, how do I get back to non-gpe?
adizz4 said:
Once I do this, how do I get back to non-gpe?
Click to expand...
Click to collapse
Download your stock rom here and flash it with a flashall.bat that is inside the zip of each rom there. Or you can do manually. It's the same thing of those commands above, just change archive's names. Some will have system.img divided into three parts, so, flash in the sequence.
noob question?
this may be a really noobish question but how do i extract "Google Play Edition - falcon.tgz"
everytime i run mfastboot it closes.
LeslieKawiti said:
this may be a really noobish question but how do i extract "Google Play Edition - falcon.tgz"
everytime i run mfastboot it closes.
Click to expand...
Click to collapse
I used WinRAR but I believe 7zip will also work
LeslieKawiti said:
this may be a really noobish question but how do i extract "Google Play Edition - falcon.tgz"
everytime i run mfastboot it closes.
Click to expand...
Click to collapse
Use WinRAR to do so. You can't run mfastboot. Run "cmd.exe" and follow the guide. You have to cd a workspace.
Misunderstood
thelegendofzeth said:
Use WinRAR to do so. You can't run mfastboot. Run "cmd.exe" and follow the guide. You have to cd a workspace.
Click to expand...
Click to collapse
I got it to work, my problem was i was expecting the entire folder not a .tar image.
I then realized that i had to extract the tar file and use 7zip or winrar to extract all the files out of that one. Fileception if you will.
Thanks again for writing this tutorial.
LeslieKawiti said:
I got it to work, my problem was i was expecting the entire folder not a .tar image.
I then realized that i had to extract the tar file and use 7zip or winrar to extract all the files out of that one. Fileception if you will.
Thanks again for writing this tutorial.
Click to expand...
Click to collapse
You're welcome!
You're a life-saver man. Woot!!
Running PACman with single sim on xt1033
Added how to flash custom recovery, how to get root and reverse guide.
Change in code required
From OP
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot reboot-bootloader
Add "mfastboot continue" to stop fastboot crash after bootloader reboot
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg_intl.img
mfastboot erase cache
mfastboot erase userdata
robin0800 said:
From OP
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot reboot-bootloader
Add "mfastboot continue" to stop fastboot crash after bootloader reboot
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg_intl.img
mfastboot erase cache
mfastboot erase userdata
Click to expand...
Click to collapse
Thats weird , I didnt even faced any crash ... What was the reason of the crash anyways >?
prateek_gemini said:
Thats weird , I didnt even faced any crash ... What was the reason of the crash anyways >?
Click to expand...
Click to collapse
Mine crashes because the device will reboot and fastboot will lost connection to it for a few seconds. Added mfastboot continue to OP.

XT1039 now showing as XT1032

I softbricked my Moto G 4G this morning & the only way I could get it out of the bootloop was to flash with a X1032 firmware. I have subsequently managed to flash the latest stock XT1039 ((Moto_G_LTE_XT1039)_RET-EU-SS_4.4.4_KXB21.14-L1.46_cid7_CFC_1FF.xml) firmware but when I plug the phone into my PC it is shown as XT1032. Is there anything I can do to revert it back to its correct model number?
Did you use an included .bat file to flash or a series of fastboot commands? If the latter, what commands?
lost101 said:
Did you use an included .bat file to flash or a series of fastboot commands? If the latter, what commands?
Click to expand...
Click to collapse
Its was an included bat file. I used the files from this thread
http://forum.xda-developers.com/moto-g/help/easy-unbrick-moto-g-restore-4-4-4-stock-t2850282
You might want to consider doing the fastboot commands manually. If all commands are used, ant trace of XT1032 should be gone.
http://forum.xda-developers.com/showthread.php?t=2542219​
lost101 said:
You might want to consider doing the fastboot commands manually. If all commands are used, ant trace of XT1032 should be gone.
http://forum.xda-developers.com/showthread.php?t=2542219​
Click to expand...
Click to collapse
That was the method I used after using the bat file.
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_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 modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot reboot
these all worked OK without issue
I had to modify the sparsechunk files to match the ones in the rom that i downloaded
All Models of Moto G have 1032 in the baseband, is it possible your phone was always recognised on PC as XT1032?
It was definitely showing as1039 before the soft brick
Then obviously something is remaining from the XT1032 firmware. If you have a Custom Recovery, try the wipe options there.
Alternatively, the following command in Fastboot might be enough: fastboot erase system
BTW, never use the Fastboot command: fastboot erase all
lost101 said:
Then obviously something is remaining from the XT1032 firmware. If you have a Custom Recovery, try the wipe options there.
Alternatively, the following command in Fastboot might be enough: fastboot erase system
BTW, never use the Fastboot command: fastboot erase all
Click to expand...
Click to collapse
I have tried the wipe option before. I will try fastboot erase system then reflash the stock rom
This didn't solve the issue

Moto G (2013) GPE 5.0.1 to Motorola´s 5.0.2

Hello guys, I´m in doubt here, and although i´ve been reading some posts, I cannot seem to understand the procedure to install Motorola´s 5.0.2 in my Moto G, actually on 5.0.1 GPE.
As far as I know, I need to wipe it off, then convert partitions to f2fs and then flash via custom recovery?
I´ve tried twice, but cannot install TWRP, will try with Phillz.
BTWy, my device is rooted and bootloader unlocked.
Thanx for any guidance you may lend me, I´m at work and cannot dwelve deep into hundreds of threads. I have already downloaded Blur_Version.210.12.40.falcon_umts.Brasil.en.BR.zip the official Motorola 5.0.2.
Thanks!!
you need the 4.4.4 firmware first and mfastboot v2 files to go back to stock motorola firmware.
and since you updated to 5.0.1 GPE, your bootloader has been updated, so when you downgrade to 4.4.4, you will see screen flickers.
Here are the commands,you must enter these commands one by one using command prompt (hold shift, and right click and choose open command window here) in the folder where the firmware files are (including the mfastboot files)
connect your phone to the computer with usb cable and type the command to go into the bootloader
adb reboot bootloader
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 modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot reboot
and you need this firmware to be installed first before installing the lollipop update
XT1032_RETAIL-BR-SS_4.4.4_KXB21.14-L1.40_42_cid12_CFC_1FF
Thanx!
Well thank.you sir, very informative response.
Just to be super super-sure, no need to un-root or lock the bootloader right?
AgentChaos said:
you need the 4.4.4 firmware first and mfastboot v2 files to go back to stock motorola firmware.
and since you updated to 5.0.1 GPE, your bootloader has been updated, so when you downgrade to 4.4.4, you will see screen flickers.
Here are the commands,you must enter these commands one by one using command prompt (hold shift, and right click and choose open command window here) in the folder where the firmware files are (including the mfastboot files)
connect your phone to the computer with usb cable and type the command to go into the bootloader
adb reboot bootloader
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 modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot reboot
and you need this firmware to be installed first before installing the lollipop update
XT1032_RETAIL-BR-SS_4.4.4_KXB21.14-L1.40_42_cid12_CFC_1FF
Click to expand...
Click to collapse
Hello guys I would like to do the same, I have the Gpe and install Motorola 5.0.2, but before I want to know how to fix the flicker screen, I don't get it using android but when I'm on twrp, it's annoying, do you have any idea how to fix it?
Sent from my XT1058 using XDA Premium 4 mobile app
nice!
So i´ve flashed 5.0.2, with the method described here, it was *too* easy.
I did not, how ever, get the flickering screen bug...
So thanks again. and this is a safe way to go from gpe 5.0.1 to moto 5.0.2.
donlloreda said:
So i´ve flashed 5.0.2, with the method described here, it was *too* easy.
I did not, how ever, get the flickering screen bug...
So thanks again. and this is a safe way to go from gpe 5.0.1 to moto 5.0.2.
Click to expand...
Click to collapse
Which recovery do you have?
antarix said:
Which recovery do you have?
Click to expand...
Click to collapse
Stock recovery mate, well my happy story has come to a misterious error I cannot by any means sort out..
please see this post: Weird issue

[Q] Software status modified ? [SOLVED] IT IS OFFICIAL !

My phones' bootloader report " software status : modified " is there any way to revert it back to OFFFICAL ? Not rooted, no custom recovery, running bone stock motorola firmware flashed with RSD Lite but still it shows as " modified ". My phone was never able to take an OTA as well. Bootloader unlocked, puerto rico xt1225 flashed to brazil firmware. Any help to get this status into OFFICAL again will be appriciated.
ps : flashed puerto rico 5.0.2 firmware with rsd, wiped cache and factory resetted but still it shows " modified " grrr.
have you try via command in fastboot?
the commands are inside of the file flashfile.xml translating it become:
Code:
mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash motoboot bootloader.img
mfastboot flash radio radio.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 system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
mfastboot erase cache
mfastboot erase userdata
mfastboot erase clogo
mfastboot oem fb_mode_clear
mfastboot reboot
i use mfastboot and put all the file of the XML rom in that folder mfastboot folder.
you need to check the file flashfile.xml or the files to see how many system.img_sparsechunk.# you have to change how many command (mfastboot flash system system.img_sparsechunk.#) you will give, the 4.4.4 have 5 the 5.0.2 have 8, but it may be different in yours.
I did not check the last time i did the commands to see if i was on OFFICIAL, but it should work.
In the brazilian forum the guys say if you did the process to flash back the 4.4.4 after the device been 5.x.x, you will not be able to flash the file gpt.bin but you will be able to receive the OTA of 5.0.2 and install it after the install the OFFICIAL appears.
Here i'm able to flash all the files all the commands are accepted when flash the 5.0.2 stock but when i try 4.4.4 the gpt.bin doesn't accept, unfortunately i did not check to see the software status after the 5.0.2.
I will make a test if you not successful because i wanna to know if is possible, but flashing xml stock ROM erase internal memory and right now i have too many files on the device that need to backup and have no time.
If it work out to you post in here :good:
Thank you for your detailed post. I tried to flash the phone with these commands one by one, it was all successful until sparsechunk 5 and 6 and 7 . These images didn't flash and failed with preflash validation errors but for strange reasons it flashes fine with RSD Lite. I am assuming that the factory image i was trying to flash was " Retail Brazil " one but my phone is Puerto Rican, so i am downloading 5.0.2 of puerto rico firmware and try again. I will let you know about the outcome.
edit : i could execute all commands successfully with puerto rico 5.0.2 image but it still show as modified.
Semseddin said:
Thank you for your detailed post. I tried to flash the phone with these commands one by one, it was all successful until sparsechunk 5 and 6 and 7 . These images didn't flash and failed with preflash validation errors but for strange reasons it flashes fine with RSD Lite. I am assuming that the factory image i was trying to flash was " Retail Brazil " one but my phone is Puerto Rican, so i am downloading 5.0.2 of puerto rico firmware and try again. I will let you know about the outcome.
edit : i could execute all commands successfully with puerto rico 5.0.2 image but it still show as modified.
Click to expand...
Click to collapse
Ok. I will flash my device to stock today, i doing some tests in TWRP and have erase internal memory, my device is empty i can flash stock without worry about lose data...
My stock xml rom 5.0.2 from Brazili, flash all good with those commands, they all are accepted. The img_sparsechunk are related to the file with the same name they only give a error if the file is not there or have a different name, the stock 4.4.4 doesn't have img_sparsechunk 5 to 7.
Are you shore you have the 5.0.2 original untouched?
later today i put here my result...
i did it...
Is necessary to donwoad a ROM that will received a OTA this will:
Brasil Retail Stock Lollipop 5.0.2 /// QUARK_RETBR_5.0.2_LXG22.33-12.13_cid12_subsidy-DEFAULT_CFC.xml.zip
do the commands i posted before
this:
mfastboot flash motoboot bootloader.img
is not need unless you are upgrading from 4.4.4 to 5.x.x via fastboot for the first time.
in a downgrade don't use too...
Then after the device boot it will received the ota (only 15mb if you use that ROM) you accept after the download and install go back to bootloader and it will be change to Official, doesn't need to official to be show to install a OTA, just a original xml ROM installed.
i did exactly the same commands but brazil 5.0.2 sparsechunk 5 6 7 gave preflash validaton errors. So, i was successfull to flash all images of puerto rico 5.0.2 . There is some region information embedded in our phones even if it is flashed to other regions, phone still knows its origin. i will do as you said and flash 4.4.4 of pr and take ota on top of it.
..
You know what It is official now bro ! qe 0-1 as opposed 1-1.
Thank you
This is how i used the script.
mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot reboot-bootloader
mfastboot oem fb_mode_set
mfastboot flash motoboot bootloader.img
mfastboot reboot-bootloader
mfastboot oem fb_mode_set
mfastboot flash radio radio.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 system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
mfastboot erase cache
mfastboot erase userdata
mfastboot erase clogo
mfastboot oem fb_mode_clear
mfastboot reboot
Maybe your phone is fake!
Thread moved to Q&A, glad you guys are working to get this resolved!
Cheers,
Baja
Not solved with me anyway. Did downgrade, updated and nothing. Any method to solve this?
baybutcher27 said:
i did it...
Is necessary to donwoad a ROM that will received a OTA this will:
Brasil Retail Stock Lollipop 5.0.2 /// QUARK_RETBR_5.0.2_LXG22.33-12.13_cid12_subsidy-DEFAULT_CFC.xml.zip
do the commands i posted before
this:
mfastboot flash motoboot bootloader.img
is not need unless you are upgrading from 4.4.4 to 5.x.x via fastboot for the first time.
in a downgrade don't use too...
Then after the device boot it will received the ota (only 15mb if you use that ROM) you accept after the download and install go back to bootloader and it will be change to Official, doesn't need to official to be show to install a OTA, just a original xml ROM installed.
Click to expand...
Click to collapse
Thank you, this shed some light and helped me to get my Moto X Play 'official' again.
The OTA update did the trick after flashing the official.
Semseddin said:
My phones' bootloader report " software status : modified " is there any way to revert it back to OFFFICAL ? Not rooted, no custom recovery, running bone stock motorola firmware flashed with RSD Lite but still it shows as " modified ". My phone was never able to take an OTA as well. Bootloader unlocked, puerto rico xt1225 flashed to brazil firmware. Any help to get this status into OFFICAL again will be appriciated.
ps : flashed puerto rico 5.0.2 firmware with rsd, wiped cache and factory resetted but still it shows " modified " grrr.
Click to expand...
Click to collapse
bro how do you got the software oficial, i try but nothing... i have a dualsim moto x play... please i wait for you response sorry for my english...
doi you speak spanish?
Semseddin said:
You know what It is official now bro ! qe 0-1 as opposed 1-1.
Thank you
This is how i used the script.
mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot reboot-bootloader
mfastboot oem fb_mode_set
mfastboot flash motoboot bootloader.img
mfastboot reboot-bootloader
mfastboot oem fb_mode_set
mfastboot flash radio radio.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 system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
mfastboot erase cache
mfastboot erase userdata
mfastboot erase clogo
mfastboot oem fb_mode_clear
mfastboot reboot
Click to expand...
Click to collapse
bro how you software status official in you phone please helpme

Flash went bad, how to flash anything working?

Hi, I've flashed my Moto G and I messed up real bad, multiple flashes and so... I can still get into fastboot, but trying to power up normally just gives me the warning about unlocked bootloader, which hangs indefinitely.
The phone is Moto G 8GB XT1032, Retail DE, originally 4.4.2.
-> What can be done about this? Is there a way to reformat the partitions and flash them all fresh and new?
Just so you know, I've been flashing with this batch below. Whatever I flash with it now, doesn't help.
Code:
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
Btw, I know I probably made a lot of stupid mistakes, but in the past I've succesfully flashed dozens of phones and I never messed up like this... Feel free to mock me
Updated: I installed TWRP and found out I am unable to mount or repair system and cache. Also, both partitions show 0 MB size.
The restore to stock should work. Make sure you have mfastboot, the exact factory firmware images for your device, and that each file flashes successfully. Maybe you could post the cmd output if it doesn't flash correctly.
Swamp_cz said:
Hi, I've flashed my Moto G and I messed up real bad, multiple flashes and so... I can still get into fastboot, but trying to power up normally just gives me the warning about unlocked bootloader, which hangs indefinitely.
The phone is Moto G 8GB XT1032, Retail DE, originally 4.4.2.
-> What can be done about this? Is there a way to reformat the partitions and flash them all fresh and new?
Just so you know, I've been flashing with this batch below. Whatever I flash with it now, doesn't help.
Code:
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
Btw, I know I probably made a lot of stupid mistakes, but in the past I've succesfully flashed dozens of phones and I never messed up like this... Feel free to mock me
Click to expand...
Click to collapse
Use this tool: http://forum.xda-developers.com/moto-g/general/gpe-lollipop-5-1-1click-installer-t3075522
SLATE21&MOTOG said:
Use this tool: http://forum.xda-developers.com/moto-g/general/gpe-lollipop-5-1-1click-installer-t3075522
Click to expand...
Click to collapse
It initially worked, the phone booted up fine, but after I switched it off, it came back up in recovery mode. Now it only boots up in recovery.
Swamp_cz said:
It initially worked, the phone booted up fine, but after I switched it off, it came back up in recovery mode. Now it only boots up in recovery.
Click to expand...
Click to collapse
so you can't boot into system?
Finally, I solved it.
I couldn't, but then I found many people have this issue and the solution was to somehow repair the misc directory through ADB in TWRP (instructions are somewhere here at xda-dev). Now works well.

Categories

Resources