yashsingh1/xdaforums huggingface dataset:
[Moto G 2015 General] lost101:
That command on it's own will not remove root. Include: fastboot flash boot boot.img

If you still have issues, do a factory reset as described in first post, and do every single command exactly as described. You should do more research regarding rooting Marshmallow before attempting that again.

You can but you may be unhappy with the results. For the best experience possible, factory reset as described in OP, and do all commands including ease userdata.
[Moto G 2015 General] DanGeorges:
lost101: thank you for the sober advice.

I believed I had researched the latest root method - using the appropriate TWRP (booted into TWRP - didn't flash it) and then the beta superuser app.

I'll try the two commands you suggested, and see what happens. Thank you very much! I'll let you know what happens.
[Moto G 2015 General] DanGeorges:
Edit -

the two commands weren't enough to allow a full boot. I did a getvar all in fastboot, and it appeared that there was no baseband version, leading me to believe that I hosed the OS - probably when booting TWRP and not preserving the partition information. Bad goof on my side if that caused the problem.

I was able to restore factory images following the instructions in the OP. Thank you!
[Moto G 2015 General] Vhugo98:
I installed the rom stock , but the warning bootloader unlocked again , how to remove ?

And someone have the bootlogo Motorola Android Marshmallow ?
[Moto G 2015 General] sethgreen:
stock rom don't relock bootloader, to flash original logo you need twrp
[Moto G 2015 General] Gravemind2015:
Follow this guide to remove the warning-http://xdaforums.com/showthread.php?t=3177801

If you want to flash/boot twrp ,follow-

http://xdaforums.com/showthread.php?t=3170537

Broadcasted from Zeta Reticuli
[Moto G 2015 General] srinuchry:
[MENTION=1006674]lost101[/MENTION] im on 6.0 and locked bootloader,i have 6.0.1 firmware files,i dont have internet to download ota,so can i flash that firmware without unlocking bootloader? Cause i dont want loose the warranty...
[Moto G 2015 General] jcalderonv74:
[MENTION=1006674]lost101[/MENTION] quick question... I am thinking on manually flash from zero (I am on stock) the 6.0 for my European 2g xt1541 but I can see only 4 sparsechunk while people says that 6.0 has six sparsechunk files.. Is the ROM complete? Sorry to disturb could be is a silly question but I can see 6 files on other marshmallow roms (xt1541 1g reteu for example) so this shocked me AND I prefered to wait as there is no rush to flash ;)) Thanks in advance

Enviado desde mi MotoG3 mediante Tapatalk
[Moto G 2015 General] lost101:
Yes. But follow instructions exactly, including factory reset.

If the zip gives no corruption error when extracting, then you have the correct number of sparsechunks for that specific image.
[Moto G 2015 General] jcalderonv74:
Ok, and thx!

Enviado desde mi MotoG3 mediante Tapatalk
[Moto G 2015 General] Gravemind2015:
Did you factory reset the device before flashing? Try factory reset from stock recovery now and see if it boots correctly.

Broadcasted from Zeta Reticuli
[Moto G 2015 General] $hin:
yes bro i did before and after that

---------- Post added at 06:46 PM ---------- Previous post was at 06:42 PM ----------

but the device dont boot in recovery i used the adb commands

---------- Post added at 06:50 PM ---------- Previous post was at 06:46 PM ----------

also i tried to unlock bootloader and write custom recovery/ custom rom , i toke the unlock code from offical website but it not work

C:\Users\shin\Desktop\New folder\mfastboot-v2>fastboot oem get_unlock_data

...

(bootloader) 3A55840936947220#5A593232323754

(bootloader) 39474B004D6F746F4733000000#1D11

(bootloader) 71FEE530A7081A04C5DDFCB337A9D48

(bootloader) 60F48#8E61940B00000000000000000

(bootloader) 0000000

OKAY [ 0.342s]

finished. total time: 0.347s

C:\Users\shin\Desktop\New folder\mfastboot-v2>fastboot oem unlock JONXYDKDY6YLLP

EZZY7D

...

(bootloader) Check 'Allow OEM Unlock' in Developer Options.

FAILED (remote failure)

finished. total time: 0.057s

C:\Users\shin\Desktop\New folder\mfastboot-v2>fastboot oem unlock JONXYDKDY6YLLP

EZZY7D

...

(bootloader) Check 'Allow OEM Unlock' in Developer Options.

FAILED (remote failure)

finished. total time: 0.010s
[Moto G 2015 General] acejavelin:
Flash the factory image by itself again, then verify boot, remember first boot can take in excess of 10 minutes in some cases... make sure to keep a log of the commands/responses and post them here if it needed.

The reason you can't unlock is clear... You do not have "Allow OEM Unlock" turned on in Developer Options, there is no way around this requirement, you must boot into the OS and turn this on before you can unlock the device's bootloader.
[Moto G 2015 General] loparaan:
Hi, I do not get to the root of the rom (xt1562 6.0.1). Every time I try to stay in a boot in motorola logo :(
[Moto G 2015 General] Dilbert83:
Can you flash factory images using rsd?
[Moto G 2015 General] Aman Dewett:
:(

Hello [MENTION=1006674]lost101[/MENTION] sir i'm stuck in a problem and may you can help me to get over it. I have Moto G 2015 (XT1550), before i was on stock and everything was working perfectly (including xposed and supersu). Then i moved to CyanogenMod 13.0 for my device. Now i want to flash stock again and i did it perfectly as well and it does boot up perfectly, but when i flash Supersu to root this time (I tried every supersu for marshmallow whether it is "2.67 or 2.71(latest)" it is not booting up, it freezes on logo.

1. I tried every version of TWRP for moto G

2. Tried every version of supersu

3. Without flashing supersu i boots up perfectly.

4. I can't provide log as phone is not booting up.

I'm attaching 3 screenshots, one of them is after flashing Stock firmware (of course through cmd method) and the another two after flashing cyanogenmod 13. There is difference between both images, please check them and try to provide me solution for it.

First two are after flashing cyanogenmod and last one is after flashing supersu on stock
[Moto G 2015 General] lost101:
[MENTION=5933842]Aman Dewett[/MENTION] - It's not appropriate to post your problem here. This thread is about flashing factory firmware images, not rooting. Please start a thread in Q & A so others benefit from the answer. I will try to help you there.
[Moto G 2015 General] Aman Dewett:
Help me now..... Link
[Moto G 2015 General] carlosslpmx:
Hi. I can't flash anything. Every command I give it says this. I don't know why.

I'm using Windows 10 on VMWare on Mac. Any Solution?

Thanks

This is what I get:

C:\Users\carlo\Desktop\platform-tools>mfastboot flash recovery recovery.img

target max-sparse-size: 256MB

sending 'recovery' (16484 KB)...

FAILED (data transfer failure (Unknown error))

finished. total time: 302.102s
[Moto G 2015 General] Mennon6:
Thank you very very very much [MENTION=1006674]lost101[/MENTION] for the guide.Really saved my day. And if anyone has updated to new version OS and wondering if you need factory version firmware or updated firmware then please go with updated one. and always check your flash text file inside your firmware folder and check how many numbers of "sparsechunk" img there.... follow it and get it done. thank you again.
[Moto G 2015 General] carlosslpmx:
I thought it was the mac's problem, but it appears not. Maybe it's the cell phone. Any way you can help me? I'm desperate.

Something to add. I managed to unlock the bootloader. Hope you can help me.
[Moto G 2015 General] Yousvel:
What about updating OP?

I think it would be good if OP was updated. Because now we have 5.1 , 6.0 and 6.0.1 and each has some slight differences in the commands required.

I would propose we have specific guide for each of these three versions(5.1, 6.0 and 6.0.1).

What do you think [MENTION=1006674]lost101[/MENTION] ?
[Moto G 2015 General] edward_mv933:
I have a XT1542 from Movistar Peru. Could I install Retail Latin America instead of Movistar Latin America for my model (xt1542)? Should I take some extra consideration before flash with some of those firmware?

Could you help me [MENTION=1006674]lost101[/MENTION] ?
[Moto G 2015 General] lost101:
The only difference is the number of sparsechunks, and I have added extra sparsechunk commands already to account for this. There is no harm in doing a command for a sparsechunk that does not exist - the main thing is that all that are present get flashed.
[Moto G 2015 General] lost101:
Any XT1542 Firmware image can be flashed on your phone. Simply follow the guide.
[Moto G 2015 General] lost101:
[MENTION=5730685]tariqblue125[/MENTION] - Is there a sparsechunk.8 or sparsechunk.9 in your firmware folder? Make sure you are flashing all of the sparsechunks.
[Moto G 2015 General] amp1590:
It isn't working bc my pc doesn't think it's connected with the moto G. The moto G still shows all the logs, though. I tried it and it says

"Your device didn't start up successfully. Use the Software Repair Assistant on computer to repair your device."
[Moto G 2015 General] sgloki77:
I upgraded the long way successfully

1. flashed original factory image(16.3), all partitions via fastboot

2. installed the OTA update

3. installed custom recovery(TWRP) via fastboot

4. flashed root/unlock logo zip/xposed via TWRP

5. restored user data via Tibu

the end :o
[Moto G 2015 General] mow4cash:
Thanks. Worked for me.
[Moto G 2015 General] dajhorn:
I bricked a Moto G 3rd Edition purchased from WIND Mobile using this procedure while trying to revert from TWRP+SuperSU to the MotoG3_XT1540_OSPREY_RETCA_5.1.1_LPI23.72-16.3_cid14_subsidy-DEFAULT_CFC.xml.zip image to get the latest OTA.

The phone is in QHSUSB_BULK emergency mode. Has a compatible "qboot blank-flash" package or other unbricking method for this model been discovered?
[Moto G 2015 General] sgloki77:
sorry for your loss, there are a few people with bricked phones, everyone in that situation might politely ask via personal message to the guys on this op's thread , maybe they can put something together for the moto g?

http://xdaforums.com/nexus-6/general/fix-fix-qhusbbulk-cm12-t3059518

btw I flashed back to 16.3 using the guide in this thread and had zero issues, but I'm XT1540 US 1GB RAM, different factory images for so many variants is sort of a cluster**** unfortunately..
[Moto G 2015 General] lost101:
This situation is very frustrating, as there is no obvious cause for a Hard-Brick. Many people follow this guide without any problems at all. Since the device will no longer show fastboot screen, it is quite certain you can get a replacement for free - even if you have unlocked the Bootloader - as there is no way to tell you have done so.

It is likely a recovery method will exist sooner rather than later.
[Moto G 2015 General] Tel864:
Well no not quite. Motorola clearly states on the unlock request page that requesting the bootloader will void your warranty whether you actually unlock or not. I can imagine they made that rule because of situations such as this.
[Moto G 2015 General] :
That is because they think you unlocked it whether you didn't they can check it. Request unlock doesn't mean warranty void as long as you haven't unlocked the bl
[Moto G 2015 General] Tel864:
Well, you'e wrong. It clearly states in black and white that requesting it voids the warranty. If you don't believe it, ask them. I have and they verified that it would void the warranty unless it was a hardware problem clearly not caused by a software problem.
[Moto G 2015 General] :
Think about it just because you request it doesn't change the fact that it should be repaired if it's caused by software since you haven't tampered the software
[Moto G 2015 General] christopherrrg:
I think this thread should appear more all over, a lot of users are claiming to mess up their phones while flashing the system thus creating the QUALCOMM USB error.

So thankful for this being here.

Sent from my MotoG3
[Moto G 2015 General] Tel864:
I don't give a damn about your faulty logic, I just know that they state that fact. It makes sense , since they can't tell if a hard bruck is caused by some newbie flashing or an honest software problem. That's why they cancel the warranty when the code is requested and that's why they say so in black and white. They also have the final say on how they think the problem is caused. It doesn't take a genius to know that they will usually fault the customer before yhey fault themselves.
[Moto G 2015 General] Prateek1224:
will it also lock the bootloader again? will i recieve updates again?? the official moto updates
[Moto G 2015 General] lost101:
Unlocked Bootloader has no impact on OTA Updates. All you need is an unmodified (unrooted) /system folder and stock recovery.

You can never undo Bootloader Unlock, and 'fastboot oem lock' will not change this.
[Moto G 2015 General] the87th:
Hello, I'm new to this but hopefully someone can answer my question. I'm currently on CM12.1 and I want to return to the stock FW. However, I'm using the TWRP recovery and my bootloader is unlocked. I'd like to preserve those two things if I can, and also keep my userdata (I think).

So I'm going to run all of the commands EXCEPT for :

fastboot flash bootloader bootloader.img

fastboot flash recovery recovery.img

fastboot erase userdata

Does that make sense? If I do that, will my contacts be retained or should I back them up? Is there any downside (performance or otherwise) to keeping the userdata, instead of just backing up the files I like?

Also I'm pretty sure that my moto g 2015 xt1540 8gb has 1gb of ram. I don't know how to check the ram otherwise.
[Moto G 2015 General] olisun39:
I flashed the 3UK firmware on my 1541 but it is still showing as tesco.gb in the about / status screen.

Any idea how to get rid of it?
[Moto G 2015 General] mellon113:
Lost101 when i turn on my phone XT1550 he ask email and pass, i dont have that and i can turn on the bootloader.

What i can do?
[Moto G 2015 General] lost101:
I'm not sure if it's possible. With Original Moto G (Falcon) you can, but not with Moto G 4G (Peregrine) - that was the first time I became aware of this.

Factory reset in Stock Recovery - at least I think the option is there. No need to flash a Firmware Image, unless you really want to.
[Moto G 2015 General] Diesel779:
Thanks for posting this tutorial lost101. Is there anyway I can get rid of the bootloader is unlocked warning at boot?
[Moto G 2015 General] creative21:
[MENTION=5033345]Diesel779[/MENTION] here

http://xdaforums.com/showthread.php?t=3177801
[Moto G 2015 General] bromoxitos:
yea check again

hello mate i have the xt1541 2gb ram and last day i flash the 6.0.1 i was in 6.0 and i see the EU 6.0.1 so i say why not.... my stock EU firmware have 7 system.img_sparsechunk.7 like you saw us but my phone boot normally..... NOTE

leave the phone at least 7-8 min with boot moto logo it need several min in fist boot!!! and always have the usb on your phone you can listen the boot noise after 7-8 min from your pc(noise conection). I do this every time when i do something like this!!!

NOTE 2

p.s sry for my bad english :(

check again if you have the right firmware
[Moto G 2015 General] tariqblue125:
i reflashed it it works thanks

i reflashed it it works thanks
[Moto G 2015 General] 1dtms:
Hello, right now I am running CM13 XT1540 rooted and unlocked.

I would like to go back to stock moto marshmallow (Retail US (2GB)). However I still want to stay root and unlocked.

Can I just flash the stock image since I just want to use the moto x firmware and keep root and unlocked?
[Moto G 2015 General] Tel864:
You will always be unlocked but you will have to root again if you flash a new image.
[Moto G 2015 General] comishi:
[MENTION=1006674]lost101[/MENTION] Hi! I have a XT1542 with 1GB RAM and 16GB of storage. Are the XT1542 firmwares posted fully compatible with this variant? Or are they just for 8GB storage model?

Thanks in advance.

I found the answer from a success flashing from an user in the firmware thread

here

, so I will try.
[Moto G 2015 General] 1dtms:
Is coming from CM13 6.0.1 to XT1540_OSPREY_RETUS_2GB_6.0_MPI24.65-25.1_cid9_subsidy-DEFAULT_CFC.xml.zip considered a downgrade (so pretty much from 6.0.1 to 6.0.0)?

and is there any way I can just flash to stock img but keep root?

I understand that I lose root if I follow the guide exactly, but can I skip anything to avoid losing my current root (I guess I am imagining if I can just flash a zip file like switching between different ROM just requires only flashing a zip)?

right now im unlocked bootloader and rooted running CM13 (the old unofficial version)
[Moto G 2015 General] lost101:
You cannot change between any ROM or firmware and keep root. I don't consider dirty flashing different ROMs a healthy activity. Follow instructions in OP and then do some research into which version of SuperSU will work, as some do not.
[Moto G 2015 General] lost101:
You are flashing on the correct screen. That's the fastboot screen, the only place that accepts fastboot commands. A factory reset in CM13 is not good enough. You must do a factory reset in Stock Recovery. See OP again.
[Moto G 2015 General] lost101:
Factory data reset via Stock Recovery:

(1) Flash via fastboot stock recovery.img (found in firmware image zip)

(2) Turn your phone off.

(3) Press and hold Volume DOWN + POWER.

(4) In recovery menu press Volume down twice.

(5) Press power. You will see a red exclamation mark.

(6) Hold power down, then tap Volume UP.

(7) Go to Wipe data / Factory reset and press power button.

(8) Scroll to Yes - delete all user data and press power.​
[Moto G 2015 General] 1dtms:
that did it!

Thank you!

I'm on the Welcome screen as I type:)
[Moto G 2015 General] THEHOLYG0D:
So after just reverting to Stock on the XT1550 , I flashed the beta superSU and Xposed 82 arm. aaannnnd now I'm stuck on the *M* logo, I'll just reflash the stuff but [MENTION=1006674]lost101[/MENTION] can you guide me for successful rooting and Xposed ? Thanks in Advance :)

EDIT: Nevermind Reflashed the Stock , flashed Latest TWRP 3.0.2 and xposed 82 arm along with beta SuperSU v71, all working now, thanks for the thread though :D
[Moto G 2015 General] exohas:
From the other thread

I've tried to flash the image once again, and im still facing the same thing. Everything went okay. But I just now tested my internet speed, and it works okay. It actualy does connect to HSPA+ network, but it shows UMTS or HSPA.

Here is a pic from T-Mobile which has UMTS base network (when phone is in idle, and doesnt use internt), and another pic from Vipnet which has HSPA base network (in idle, and the changes to HSPA+ once internet is in use)

So everything is okay, except false info about network under the setting. Thank for your help [MENTION=1006674]lost101[/MENTION]
[Moto G 2015 General] lost101:
[MENTION=4510688]exohas[/MENTION] - Are you doing a factory reset via Stock Recovery prior to flashing the firmware image, and fastboot erase userdata afterwards?
[Moto G 2015 General] exohas:
Yeah, prior to flashing I've erased it within stock recovery, and I've run the command inside cmd (admin). I've double checked every command and flashed all 0-7 chunk files.

Now that I've tested it, and it actually is connected to HSPA+ I don't mind it that much. At the end its just an icon next to the signal, and a text in "about phone". I've seen another user with same problem as me in other thread, so it could be rom bug as well. Except that, everything else works well. I've got ghost touches here and there, but it's not that big of a deal.

Will try to reflash newer rom when it comes available, because I don't have that much time to do the procedure once again.

Thanks once again for trying to help out!
[Moto G 2015 General] lost101:
[MENTION=4510688]exohas[/MENTION] - With the Moto G (1st Gen) - US Firmware would not display H/H+, only 3G iirc. Sometimes there are regional quirks with Motorola Firmware. It may also be a design choice, or ultimately an issue they have missed.
[Moto G 2015 General] exohas:
Yep, I remember when i had my Moto G 1st gen with KitKat. We had H+ next to signal bar, and with Lollipop it changed to only H. It bothered me, but just a few days.

Now on Moto G3 ive only seen just 3G next to icon on T-Mobile and it says UMTS under network details, when in reality it actualy is HSPA+. I was panicking that I've done something wrong while flashing, but after I've tested the speeds and they were okay, I was releaved that it's just a bug that shows incorrect icon and network info under settings. I'll get used to it :D
[Moto G 2015 General] Tel864:
Maybe for the 3 people out of a 100 that bother to even read the OP before they jump right in to flashing. :)
[Moto G 2015 General] Abdullaharis:
Thanks:good::good::good:
[Moto G 2015 General] lenp:
​Hey I flashed the latest version (6.0.1) for XT 1541, 1GB version, but unfortunately wifi is not working anymore :(

[6.0.1]

Retail Europe (1GB) - XT1541_OSPREY_RETEU_6.0.1_MPI24.107-55_cid7​
[Moto G 2015 General] lost101:
Please follow the flashing instructions in first post, including 'Factory data reset' in Stock Recovery before flashing the firmware image.
[Moto G 2015 General] lenp:
I have done that before flashing the image. I did a Factory Reset in Stock Recovery after flashing the image and now it's working... Now I'm struggling to get SuperSU on there....
[Moto G 2015 General] AleshSaar:
EDIT: Solved.
[Moto G 2015 General] Punraz_:
My Phone bootloap and if i try to go to original recovery menu there are only "No Command"

Edit: Problem solved , forgot to flash spacechunk 7
[Moto G 2015 General] Mimisf:
Do you have the European phone? If yes try to reflash the image.
[Moto G 2015 General] lenp:
Hey. I just reflashed same issues as I had before (wifi is working though)...

Whatsapp, backup not working

Spotify app works but can't play music.

edit: yeah i have a European phone
[Moto G 2015 General] Mimisf:
Dont restore data via backups in a new firmware. Try to flash the 2gb edition. They are exactly the same. And you have ok google on any screen too!
[Moto G 2015 General] lost101:
Yes, restoring apps with Titanium Backup etc can often create issues.
[Moto G 2015 General] Crabman1:
I want to go back to stockrom, phone currently runs on cm13. However I did not quiet understand the first step 'flash via fastboot stock recovery.img'. What is this step for? And what does the "factory data reset via stock recovery" actually do? I have seen two tutorials on YouTube about turning back to stock firmware, but neither ones included this first step. Thanks!
[Moto G 2015 General] acejavelin:
It deletes all user data... it is an essential part of the process. DO NOT SKIP this step, regardless of what other tutorials say, unless you want the potential of a bricked phone.
[Moto G 2015 General] Crabman1:
Thank you!

Last question: I also have the XT1541 model, is it recommended to update to the latest version or better to the 6.0 version?
[Moto G 2015 General] acejavelin:
Your call... I would go latest version, but remember that downgrading, although possible, can be troublesome later.
[Moto G 2015 General] ASHLEY117:
Xt1541 1gb EU and trying to flash 6.0.1 following EVERY step to the letter but one issue. Bootloader will not flash. Do I have to relock the bootloader to upgrade it from 6.0 to 6.0.1? I have tried all fastboot toolkits and separate command line fastboot flash but no luck. Says Baseband unknown in bootloader mode.
[Moto G 2015 General] Ardany Jolón:
I have a question. When installing the ROM factory, is my information that had as internal SD is lost? I have currently installed CM13, but the device has entered bootlop and TWRP not load, it stays like that stuck.
[Moto G 2015 General] Crabman1:
I'm a bit stuck on the first step. how is it performed?
[Moto G 2015 General] Gravemind2015:
Connect phone to pc while in bootloader mode.In pc go into the extracted folder where firmware files are present.Open a command prompt from there check if pc is properly communicating with phone by-

fastboot devices

Then type this command to flash stock recovery-

fastboot flash recovery recovery.img

This is the first step.[emoji4]

Also if you never flashed a custom recovery(say cm recovery or twrp),you may be already running stock one.Just check once.

Broadcasted from Zeta Reticuli