yashsingh1/xdaforums huggingface dataset:
[Moto G 2015 General] Sushilsingh:
yes i have done it but when i flash supersu it get stuck on bootlogo

even waited for an hr

what should i do.
[Moto G 2015 General] harikrishnanharry139:
Mention super su version
[Moto G 2015 General] Sushilsingh:
SuperSU-v2.78-201609011115
[Moto G 2015 General] lost101:
[MENTION=7640646]harikrishnanharry139[/MENTION] - In the first post it states:

WARNING: You must perform a 'Factory data reset' in Stock Recovery before flashing any Firmware Image​

You MUST do this!
[Moto G 2015 General] harikrishnanharry139:
Bro....I can't wipe them through stock recovery.....its pulls me to twrp when I choose recovery in bootloader menu
[Moto G 2015 General] lost101:
Try: fastboot boot recovery.img
[Moto G 2015 General] harikrishnanharry139:
Bro...should I try to flash that firmware again
[Moto G 2015 General] lost101:
You have not followed the instructions in first post. You have therefore not even flashed the firmware image properly. You have to start again. The stock recovery file is in the firmware folder.
[Moto G 2015 General] harikrishnanharry139:
bro when should i apply

fastboot boot recovery.img

At first or....tell me bro....you are my hope....
[Moto G 2015 General] lost101:
The first thing to do is read the instructions in OP. Then boot into Stock Recovery and do a factory data reset.
[Moto G 2015 General] Diesel779:
Thank you! I appreciate it.
[Moto G 2015 General] bama78792000:
I'm in the exact same situation and was wondering what commands I can skip. I just tried the process from the beginning and kept getting errors.
[Moto G 2015 General] lost101:
It would be wise to simply use all the commands - rather than spend more time trying to fix the issues that arise from not wiping userdata. If you must skip this, the commands to avoid have already been stated.

If you get errors, provide a log - copy and paste command prompt window contents.
[Moto G 2015 General] Diesel779:
Does this file have to be flashed in a custom recovery? Because I've set my phone back to factory settings ready for sale and I just tried flashing this file by going into stock recovery and selecting 'apply update from SD card' and it failed so the error message is still there.
[Moto G 2015 General] creative21:
yes, in needs to be flashed from twrp. you should try relocking botloader that'll fix bootlogo maybe.
[Moto G 2015 General] Diesel779:
I've tried fastboot oem lock it doesn't seem to work on this device. I've read through this thread and Googled it and it seems the bootloader can not be re-locked on this device. Does anyone know how I could temporarily boot into TWRP to flash this file?
[Moto G 2015 General] lost101:
Fastboot boot twrp.img​
[Moto G 2015 General] creative21:
head over to twrp thread in original development section. you can get instructions for temporarily booting TWRP from that OP.
[Moto G 2015 General] Diesel779:
Thank you! I appreciate it. The warning message doesn't bother me, but some buyers might think it means the device is going to self-destruct lol.

---------- Post added at 10:25 AM ---------- Previous post was at 10:25 AM ----------

Thank you.
[Moto G 2015 General] Softkillerboy:
Everything went fine. Thanks for the useful guide. I am totally on stock firmware now. But I have little confusion, If in future I want to OTA update, does I need to lock my bootloader ? Is it necessary to lock bootloader for getting OTA update ?
[Moto G 2015 General] lost101:
Once Bootloader has been unlocked; it's permanent. OTA Updates will work fine regardless.
[Moto G 2015 General] FoxyDrew:
I have flashed back to stock using the method in the OP before, however today it isn't working. After flashing all files, I go into a bootloop where it just stays on a black screen and occasionally flashes a picture of the android guy with the text "no command found".

I have tripled checked all commands were successful and ended in "OKAY". And I did all the commands separately.

I tried flashing TWRP and flashing a ROM but I can't mount /data. I tried to fastboot "erase data" in fastboot but that didn't fix the problem. Edit: Can't mount /cache either.

After flashing ROM's and rebooting I go straight into TWRP And I can still boot into fastboot mode. I believe my data partition somehow got currupted, and I don't know how.

Any solution..?
[Moto G 2015 General] lost101:
[MENTION=5995633]FoxyDrew[/MENTION] - Could you provide a log? Copy and paste the contents of Command Prompt after doing all the commands.
[Moto G 2015 General] lost101:
[MENTION=5995633]FoxyDrew[/MENTION] - Try mfastboot: https://www.androidfilehost.com/?fid=24052804347778493
[Moto G 2015 General] FoxyDrew:
[MENTION=1006674]lost101[/MENTION] That zip only includes an "mfastboot.exe" file which windows is telling me it can't run due to a dll error.

Edit: Tried replacing the fastboot.exe file from the original folder with mfastboot.exe and retrying the commands. Still same bootloop.
[Moto G 2015 General] sgloki77:
flash TWRP via fastboot and restore a nandroid, hopefully you have a backup
[Moto G 2015 General] alexandrehdk:
Are there only 5 "sparsechunks"?
[Moto G 2015 General] FoxyDrew:
As I mentioned, no ROMs flash, that includes TWRP backups. As a TWRP backup has to restore /data, which won't mount.

Reguardless, in the bootloader menu there was an option called factory mode. Using that turned the phone on normally. This phone was only a temporary one while my s5 was in for repair.

Goodluck this phone has a great community. Hell it even got cm13 before the s5.
[Moto G 2015 General] originaldexter:
Awesome ! Thanks :)
[Moto G 2015 General] harikrishnanharry139:
All u said is to boot into stock recovery via command prompt and do a factory reset before doing flashing firmware........
[Moto G 2015 General] Sushilsingh:
its say no command.
[Moto G 2015 General] lost101:
I mean these instructions on how to do a factory data reset in Stock Recovery: http://xdaforums.com/showpost.php?p=66521508&postcount=590
[Moto G 2015 General] harikrishnanharry139:
Bro first u said.......fastboot boot recovery.img then in the link it says

fastboot stock recovery.img

Bro...I will tell u one thing.....I have twrp in my phone.....when I switched off and get into boot loader mode and select recovery......it gets me to twrp......Instead of get in to factory reset option.......I can wipe it only through twrp.......please give a brief help.....
[Moto G 2015 General] Sushilsingh:
buddy i have successfully install rom

but when i select recovery it shows message

no command

now what to do
[Moto G 2015 General] lost101:
What the link is saying is, flash Stock Recovery via fastboot. The command is:

fastboot flash recovery recovery.img​

See the link in my post above on how to use Stock Recovery.
[Moto G 2015 General] harikrishnanharry139:
Bro.....i would like to know one thing........

1.How can I factory reset data via stock recovery mode instead of twrp........plz answer me with this only.......

2.for my device there are two types of firmwares that u posted......can I fix issue if I changed the 2nd allotted firmware........

My device XT1550
[Moto G 2015 General] lost101:
This is how to factory data reset via Stock Recovery: http://xdaforums.com/showpost.php?p=66521508&postcount=590

The issue is that you have not done a factory data reset in Stock Recovery before flashing the firmware image. Not doing this creates all sorts of problems.
[Moto G 2015 General] harikrishnanharry139:
I have a doubt......

Now when i have downgraded my phone to 5.1.1,

Can I upgrade to 6.1.1 through MM firmware images.......

[Note: via ignoring bootloader.img command]
[Moto G 2015 General] acejavelin:
This thread is not about, or for info on, rooting your device... There are at least 3 threads dedicated to that topic (one is linked in my sig) and all are valid methods. Please move your questions about rooting to a relevant thread.
[Moto G 2015 General] lost101:
Yes, you can upgrade at anytime.
[Moto G 2015 General] harikrishnanharry139:
Is there any problem occured while flashing MM firmware images in 5.1.1 ROM.......[should I have to ignore bootloader command or not? ]
[Moto G 2015 General] acejavelin:
Read the first 2 posts... The only time you need to ignore flashing the bootloader or gpt partition is when downgrading. If you are flashing the same or a newer version, flash everything.

Again, the only time special changes are needed to the instructions are when downgrading.
[Moto G 2015 General] Pacer_456:
I apologize if this was posted before, but I would like to confirm that do you flash the stock recovery over TWRP, and then boot into the stock recovery and factory reset and flash the firmware images?

I heard that hard-bricks can occur when downgrading if you install the bootloader/gpt, does this apply to a custom nougat rom, like Slim7, AICP12 or CM14?

Thanks.
[Moto G 2015 General] acejavelin:
You can flash or boot stock recovery then reset.

Those roms don't touch the bootloader, that's not part of a custom ROM, so I'm not sure I understand the second part of your question.
[Moto G 2015 General] pio80:
This is strange, it looks like moto intentionally kept the recovery mode.

If You press recovery mode and receive "no command" You have to use a combination : while holding down the Power key, press and release the Volume Up key, then release Power.

Really I dont understand why [emoji12] but it works.
[Moto G 2015 General] acejavelin:
It's to keep people out of it and accidentally resetting their phone... AOSP stock recovery has been like that for years..
[Moto G 2015 General] gpvecchi:
I'd like to flash from XT1541 6.0.1 rev.1 to same version but rev.2, do I have to wipe data? May I just skip the format userdata command? Thanks!
[Moto G 2015 General] lost101:
You need to follow the instructions exactly every single time you flash a firmware image. If you do not; a wide range of issues can occur, from very minor to very serious.
[Moto G 2015 General] Vikram8:
I have unlocked my bootloader and am running a custom ROM(AOSP 7.0).

Can I flash these firmware image files?

Will it lock my bootloader again?

Thanks :)
[Moto G 2015 General] Gravemind2015:
1. Yes.

2. No

Broadcasted from Zeta Reticuli
[Moto G 2015 General] vygavedha:
I have flashed an optimized rom STOCK_6.0.1_optimized_MOTOG3_Ver1.0.zip in my moto g3 (indian version 2 GB/16Gb). I had to do this to boot my phone which goes to bootloop because of incompatible superSu.zip i used to rootAny way i have installed TWRP and installed the above file from TWRP menu install. Since this is not supporting VOLTE, i am planned to flash

XT1550_OSPREY_RETASIA_DS_2GB_6.0.1_MPI24.107-55_cid7_subsidy-DEFAULT_CFC.xml.zip file i got from this forum.

Initially i thought that, i can install this file from Install Menu of TWRP. But sadly heard that i have to use a pc.

I am a newbie and i could not found the commands/forum to flash the stock recovery. Please check the following command in cmd will works(cmd is opened in the folder where the ADB+fastboot tools installed)

adb reboot-bootloader

fastboot flash recovery <<name of stock recovery>>

fastboot reboot

Please confirm and suggest if any changes needs to be done.

ps: Can you share your contact no/email:rolleyes:
[Moto G 2015 General] Gravemind2015:
The commands are correct.

But instead of doing 'fastboot reboot', you can directly go to the newly flashed stock recovery directly from fastboot mode on the phone.

Broadcasted from Zeta Reticuli
[Moto G 2015 General] vygavedha:
Thanks bro..

I will do the following steps

After flashing stock, type exit,dn unplug USB and press power+ volume + button to go to fastboot mode,will select recovery mode, and then power+volume button and release volume button to see the recovery menu..From there I can do factory reset..

Is that fine?

PS: My aim is to flash stock ROM with VOLTE support.
[Moto G 2015 General] Gravemind2015:
Yup. You can even leave the usb cable connected.

Broadcasted from Zeta Reticuli
[Moto G 2015 General] Vikram8:
One last question, if I flash these will I get VoLTE to work?

I have the 2GB/16GB Indian variant.
[Moto G 2015 General] Gravemind2015:
Most probably yes. I can't be certain as I don't have a use of VoLTE.

Broadcasted from Zeta Reticuli
[Moto G 2015 General] Vikram8:
Flashed the XT1550 2GB Indian variant and everything is fine but I cannot root it!

Whenever I install SuperSU phone bootloops :/

Any solution? Thanks :)
[Moto G 2015 General] acejavelin:
Look in my signature...
[Moto G 2015 General] ExaHamza:
Don't wipe Cache and Dalvick Cache Before, but after!
[Moto G 2015 General] acejavelin:
Cache wipes are not necessary for rooting... before or after.

The problem is not for this thread, it is not about rooting or anything else except stock firmware. Rooting this device is discussed in several threads and there are known working methods for all available stock versions. A little reading will go along way.
[Moto G 2015 General] Tron_Legacy1680:
The OP says that you must use the factory data reset in STOCK recovery before flashing with fastboot. Can it be done via TWRP instead?
[Moto G 2015 General] Gravemind2015:
Nope.

Broadcasted from Zeta Reticuli
[Moto G 2015 General] Tron_Legacy1680:
Well then, where can I get the stock recovery img? Will the one included in the zip work?
[Moto G 2015 General] acejavelin:
Yes... Just use 'fastboot boot recovery.img' and do a factory reset from there.
[Moto G 2015 General] Tron_Legacy1680:
Thank you very much!
[Moto G 2015 General] vygavedha:
I too had the same question in my mind.But followed the thread as such and rooted..
[Moto G 2015 General] mariox_92:
Back to stock

I was running CM13 and I wanted to go back to stock so I restored a backup of it, but it included TWRP and not stock recovery. So I flashed stock recovery via fastboot.

Is that enough to accept the OTA updates now? Or should I flash the whole official image from fastboot?

Thanks in advance!
[Moto G 2015 General] Mimisf:
No. Bootloader is still unlocked. It is advisable not to accept OTA but flash the firmware images once you unlock the bootloader. There is a big possibility of bricking your phone if you accept OTA.
[Moto G 2015 General] acejavelin:
OTAs don't care if the bootloader is locked or not. As long as your bootloader, radios, recovery and system versions match, there is no issue taking an OTA. If in doubt, fastboot flash latest stock image, further OTAs should be fine
[Moto G 2015 General] Tron_Legacy1680:
I have the XT1550 variant. I have extracted all the files but when I try to run the command "fastboot flash partition gpt.bin" it returns an error "error: cannot load gpt.bin". Please help!

Thanks in advance!
[Moto G 2015 General] acejavelin:
That's a fastboot error... Fastboot can't find gpt.bin, are the files you extracted in the same directory as fastboot?
[Moto G 2015 General] Tron_Legacy1680:
Yes, in the same directory.
[Moto G 2015 General] acejavelin:
Can you post a screenshot or log of your terminal session?
[Moto G 2015 General] Tron_Legacy1680:
Here is the log.

Microsoft Windows [Version 6.3.9600]

(c) 2013 Microsoft Corporation. All rights reserved.

C:\adb>fastboot boot C:\adb\recovery.img

downloading 'boot.img'...

OKAY [ 0.516s]

booting...

OKAY [ 0.219s]

finished. total time: 0.734s

C:\adb>fastboot boot C:\adb\recovery.img

downloading 'boot.img'...

OKAY [ 0.518s]

booting...

OKAY [ 0.203s]

finished. total time: 0.721s

C:\adb>fastboot flash C:\adb\recovery.img

unknown partition 'C:\adb\recovery.img'

error: cannot determine image filename for 'C:\adb\recovery.img'

C:\adb>fastboot flash recovery C:\adb\recovery.img

target reported max download size of 268435456 bytes

sending 'recovery' (16484 KB)...

OKAY [ 0.529s]

writing 'recovery'...

OKAY [ 0.908s]

finished. total time: 1.436s

C:\adb>fastboot flash recovery C:\adb\recovery.img

target reported max download size of 268435456 bytes

sending 'recovery' (16484 KB)...

OKAY [ 0.531s]

writing 'recovery'...

OKAY [ 0.234s]

finished. total time: 0.766s

C:\adb>fastboot oem fb_mode_set

...

OKAY [ 0.109s]

finished. total time: 0.109s

C:\adb>fastboot flash partition gpt.bin

error: cannot load 'gpt.bin'

C:\adb>fastboot flash partition gpt.bin

error: cannot load 'gpt.bin'

C:\adb>fastboot flash partition gpt.bin

error: cannot load 'gpt.bin'

C:\adb>fastboot oem fb_mode_clear

...

OKAY [ 0.125s]

finished. total time: 0.125s

C:\adb>fastboot flash recovery C:\adb\twrp-osprey-3.0.2-r1.img

target reported max download size of 268435456 bytes

sending 'recovery' (7414 KB)...

OKAY [ 0.234s]

writing 'recovery'...

OKAY [ 0.456s]

finished. total time: 0.691s

C:\adb>fastboot flash recovery C:\adb\twrp-osprey-3.0.2-r1.img

target reported max download size of 268435456 bytes

sending 'recovery' (7414 KB)...

OKAY [ 0.234s]

writing 'recovery'...

OKAY [ 0.122s]

finished. total time: 0.373s

C:\adb>
[Moto G 2015 General] acejavelin:
I know your telling me gpt.bin is in c:\adb but fastboot is not finding it there. The error is fastboot saying it can't find the file, it's not a phone issue, it's an issue on your computer.
[Moto G 2015 General] Tron_Legacy1680:
Should I try inputting the entire path of gpt.bin? Like "C:\adb\gpt.bin"?
[Moto G 2015 General] acejavelin:
It won't hurt, but you shouldn't have to.
[Moto G 2015 General] Somebeachsomewhere:
Success with unlocked bootloader and erasing bootloop

As you can see from title flashed a version of SuperSU that caused the bootloop. Did the OP even after flashing w/o big WARNING do factory data reset first. Have since learned to read the posts first. :(. Went through all 83 pages for a few days. Following ALL the steps in the OP is ALL that's necessary. Can't thank you enough lost101. I marvel at your patience. The number of people that ask the same questions is amazing. Should I flash using all steps? Should I flash bootloader? Should I downgrade? All the answers are found with explanations on these pages. Thank you again. Have made a complete backup using twrp boot recovery to an OTG flash drive from stock before proceeding with anything else. As I write have an unlocked bootloader, of course, flashed twrp-osprey-3.0.2-r1.img, flashed supersu zip v2.62-3, (the right version this time)from another part of the forum all working great. Read the posts and you'll find the information you need. Wished I would have done that the first time.:D
[Moto G 2015 General] sanchith.hegde:
[MENTION=1006674]lost101[/MENTION] Will this command relock bootloader or is it just hoax?

fastboot oem lock

Found it somewhere and wanted to ask you.

Thank you!
[Moto G 2015 General] acejavelin:
There is more to it than that on this device, on a (older) Nexus this is all that's needed... There is a thread with instructions on relocking the bootloader, but there is no reason to do it on this device. This is off topic for this thread.
[Moto G 2015 General] sanchith.hegde:
OK thanks for the info.
[Moto G 2015 General] vishalpal555@gmail.com:
I m using asus zenfone max... I unlocked the bootloader but in csc mode fast boot cant read devices..... I have installed all drivers.. but I cant get it
[Moto G 2015 General] Gravemind2015:
If you flash these images on your zenfone, your phone **gets doomed**. These fastboot flashable factory images are for Motorola Moto G 2015 variants (osprey and merlin), and not for ASUS devices.

Please post in appropriate thread so you can get help. Thank you :D

Regards.

Gravemind2015

Broadcasted from Zeta Reticuli
[Moto G 2015 General] vishalpal555@gmail.com:
i used mine.......... I just posted here cause i wanted to know the situation.... Not the particulars....... I have the asus twrp...... But the fastboot mode cant read the device.... Say i wrote fastboot devices...... It gives nothing.................. Or say i typed fastboot flash recovery recovery.img it gives wating for the device..... I need that help..........
[Moto G 2015 General] acejavelin:
Sounds like a driver issue. I would suggest going to your devices section though, this section is about adding factory firmware images to Motorola G 3rd gen devices, we have no idea about your specific device and how or if any of the methods are even slightly similar.
[Moto G 2015 General] Karumbaiah:
Moto g4 Plus stuck at bootloader

Hi,

My Moto G4 plus is now stuck at bootloader. Below are the details of errors that I get

Recovery Mode - Failed to validate recovery image

Start the phone - Failed to validate boot image

Flash stock ROM via ADB - Pre flash validation failed

Flash stock boot.img - Image boot failed validation (Security version Downgare)

I am not even able to unlock the bootloader as the adb returns a message saying I need to toggle 'Allow OEM Unlock" in the Developers Menu. I connot do that as I cannot boot my phone.

Basically anything that I try to do on bootloader mode throws an error saying "Failed to pass validation, back up to fastboot"
[Moto G 2015 General] Gravemind2015:
Wrong thread, this thread is for Moto G 2015 variants.

Broadcasted from Zeta Reticuli
[Moto G 2015 General] acejavelin:
Preflash Validation errors mean your using the incorrect factory image, it's older than what's installed (most likely) or for the wrong device. Downgrading is only possible if the bootloader is unlocked, and even then it can be dangerous, so you must use a factory firmware image that is the same or newer version than what's installed... Unfortunately, Lenovo's Moto hasn't been quite as forthcoming with new firmware images as in the past.

I suggest going to the G4 Plus group and asking there, other than basic knowledge most of us can't help you here.
[Moto G 2015 General] Karumbaiah:
Everyone so far has been suggesting pretty much the same to me. But I'm sure I'm using the latest version of the firmware. It's the one before the latest security patch. However, the boot image and recovery image should remain the same.

Here's the version that I'm trying to flash.

XT1641-XT1643_6.0.1_MPJ24.139-13.1_cid50_subsidy-DEFAULT_CFC

I came across this version after a lot of research. Please help me if I'm still using the wrong one.
[Moto G 2015 General] acejavelin:
Wouldn't know anymore than you... But in newer devices there could be a version that is newer only by OTA, if you have taken and there is no same or newer full image, you're basically SOL
[Moto G 2015 General] mahesh ws:
when i tried the command flash partiton gpt.bin

it shows<bootloader> permission denied

help me
[Moto G 2015 General] mahesh ws:
my g3 got stuck in the bootloader it shows bootup failed. can you help me out?
[Moto G 2015 General] mjf042:
so everything worked fine but my imei is 0. any way to fix it?
[Moto G 2015 General] rizwan.mahai:
Thank You

Flashed 6.0 successfully on MotoG3 from 5.1.1. I lost TWRP, so now I have to flash it and get rid of that bootloader unlocked logo.

One question though, I took a TWRP backup of 5.1.1 before flashing 6.0. I just wanted to know whether after flashing TWRP can I flash that 5.1.1 and roll back to lollipop rom ?
[Moto G 2015 General] acejavelin:
No, although restoring the backup may make the device bootable or not, it would be in a mixed state with parts of the device on Marshmallow and marts on Lollipop... Remember we have 16+ partitions on this device, TWRP only backs up and restores less than half of them.
[Moto G 2015 General] Cookie Ninja:
Wow! 16+ partitions! I never knew this....any source where I can further my knowledge? Thanks....

Dead Cookies leave no trails...
[Moto G 2015 General] acejavelin:
Hopefully you never find out, some phones have as many as 37... Or so I've heard, most partitions are not accessible directly unless your bricked an Qpst modem mode..

If you want an idea of some of what the phone mounting, open a terminal emulator and just do some basic commands like mount and you will see some of tgem
[Moto G 2015 General] monilmehta:
i was writing the above code and its says remote failure now what to do??
[Moto G 2015 General] acejavelin:
What code? We need more info, can you post the log from the terminal, what model, firmware image, etc?
[Moto G 2015 General] saransh arya:
Can I downgrade from October security firmware to July security firmware
[Moto G 2015 General] acejavelin:
Did you read the second post?

The real question would be why would you want to? There is no significant difference between July and October except the secutiry patches...