yashsingh1/xdaforums huggingface dataset:
[Moto G 2015 General] bso44:
I'm a little confused about the sequencing in this procedure.

Do I do the flash recovery command first, do a factory reset in stock recovery and then proceed with the all of the commands from the beginning?

fastboot flash recovery recovery.img

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

then:

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
[Moto G 2015 General] soadcma:
Hi Guys , I have been looking for a lot of pages, but I still dont know what to do because the tips didnt work.

I have a XT1544 that it only shows the Motorola logo and turn off.

I have the follow informations:

INFOsku: XT1544

INFObattid: OK///0019361052///SNN5959A

INFOiccid:

INFOcust_md5:

INFOmax-sparse-size: 268435456

INFOcurrent-time: "Fri Apr 7 8:48:24 UTC 2017"

INFOro.build.fingerprint[0]: motorola/osprey_retbr_dstv/osprey_

INFOro.build.fingerprint[1]: udstv:6.0/MPIS24.65-33.1-2-16/14:u

INFOro.build.fingerprint[2]: ser/release-keys

INFOro.build.version.full[0]: Blur_Version.24.221.16.osprey_ret

INFOro.build.version.full[1]: br_dstv.retbr.en.BR

INFOro.build.version.qcom[0]: AU_LINUX_ANDROID_LA.BR.1.1.3_RB1.

INFOro.build.version.qcom[1]: 05.01.00.032.015

INFOversion-baseband: <not available>

INFOkernel.version[0]: Linux version 3.10.49-g4b0683b (hudsoncm

INFOkernel.version[1]: [MENTION=387459]ilc[/MENTION]lbld30) (gcc version 4.8 (GCC) ) #1

INFOkernel.version[2]: SMP PREEMPT Thu Apr 6 10:54:17 CDT 2017

I have tried to flash with RDSLite and fastboot and not sucess. I always get the error below and as you can see I am trying to use XT1544_OSPREY_RETBR_DSTV_6.0_MPIS24.65-33.1-2-4_ and my telephone currently is MPIS24.65-33.1-2-16; so I dont think there is a problem.

And the worst is because I have not enable the developer options before the phone bricks so I cannot unlock the bootloader.

\XT1544_OSPREY_RETBR_DSTV_6.0_MPIS24.65-33.1-2-4_cid12_subsidy-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.4

target reported max download size of 268435456 bytes

sending 'system' (247762 KB)...

OKAY [ 8.200s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

Has anyone another suggestion?
[Moto G 2015 General] Gravemind2015:
Yes, exactly :)

Broadcasted from Zeta Reticuli
[Moto G 2015 General] lost101:
[MENTION=3634136]soadcma[/MENTION] - See post #2 of this thread.
[Moto G 2015 General] soadcma:
Hi my friend, Sorry about that but I have read it before, but the case is, I am applying the correct firmware, did you check my information? I would appreciate if you do it and give more suggestions.
[Moto G 2015 General] lost101:
The INDEX Thread also has an FAQ: https://xdaforums.com/showpost.php?p=62128583&postcount=3
[Moto G 2015 General] soadcma:
I got it. And is there a way of enable developer options through fastboot or adb? Because I cannot access the OS.

Thank you so much again.
[Moto G 2015 General] saransh arya:
Whenever I call anyone on stock or any rom screen goes black and I have to press power button twice then press recent apps button and then also sometimes screen is black. Any solutions?
[Moto G 2015 General] acejavelin:
No, if you can't boot the OS you can't enable OEM unlocking of the bootloader, but these are signed images and you don't need to be unlocked.

Sounds like a proximity sensor issue, make sure nothing is blocking it... Sometimes a screen protector or case can cause issues, otherwise try a factory reset. If it still fails, probably a bad sensor.
[Moto G 2015 General] soadcma:
Thanks for you answer.

But do I need to get exactly build :6.0/MPIS24.65-33.1-2-16/14??? If yes, where can I find it? I have looked on the internet a lot and I didn't find.

Because I have tried another 6.0 firmwares and no success.
[Moto G 2015 General] acejavelin:
https://firmware.center
[Moto G 2015 General] soadcma:
There is no MPIS24.65-33.1-2-16 there. I have attached the image :(

I have tried two of them XT1544_OSPREY_RETBR_DSTV_6.0_MPIS24.65-33.1-2-4_cid12_subsidy-DEFAULT_CFC.xml and XT1544_OSPREY_RETBR_DSTV_6.0_MPI24.65-33.1_cid12_subsidy-DEFAULT_CFC.xml and I got the same error.

target reported max download size of 268435456 bytes

sending 'system' (262141 KB)...

OKAY [ 8.676s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 9.117s

Could you advice me another repository that I could find?

Thanks a lot in advance
[Moto G 2015 General] acejavelin:
Get the newest one you can for the same device, then flash it... if it won't go, skip gpt.bin and bootloader.img.
[Moto G 2015 General] soadcma:
I got the newest there 6.0 MPIS24.65-33.1-2-4 2 and the same error even if I skip both steps.. I have tried with fastboot and RDSLite

I have attached the log.txt
[Moto G 2015 General] acejavelin:
Boot TWRP (not flash) and wipe caches, system, data, and boot. Check the data partition, if it's f2fs you need to change it to ext4 (common if you used LineageOS or anything based on it). Try to flash again.
[Moto G 2015 General] soadcma:
Thank you again, but can I install TWRP with locked bootloader? I don't think so.
[Moto G 2015 General] acejavelin:
No, sorry... Thought you were coming from custom rom. I was confused.
[Moto G 2015 General] Gravemind2015:
[MENTION=3634136]soadcma[/MENTION] : You can try alternative fastboot packages like 15 seconds ADB and fastboot installer/Minimal ADB and fastboot or the one provided in OP. Maybe that could solve the issue. Also, if you are using non-OEM usb cable, consider using original ones as they are a potential factor to affect the flashing process too.

Broadcasted from Zeta Reticuli
[Moto G 2015 General] soadcma:
Thank you so much guy, I am not a luck man. I have the latest Minimal adb and fastboot from https://devs-lab.com/download-minimal-adb-fastboot-tool.html and https://xdaforums.com/2015-moto-g/general/guide-fastboot-flashing-factory-t3187750 and I have tried again and the same error.

I dont wanna to give up, but my options is ending :(

PS: I am using the orginal cable

C:\temp\moto g 3\XT1544_OSPREY_RETBR_DSTV_6.0_MPIS24.65-33.1-2-4_cid12_subsidy-DEFAULT_CFC.xml_2>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.407s

C:\temp\moto g 3\XT1544_OSPREY_RETBR_DSTV_6.0_MPIS24.65-33.1-2-4_cid12_subsidy-DEFAULT_CFC.xml_2>fastboot flash bootloader bootloader.img

target reported max download size of 268435456 bytes

sending 'bootloader' (2546 KB)...

OKAY [ 0.092s]

writing 'bootloader'...

(bootloader) flashing sbl1 ...

(bootloader) flashing aboot ...

(bootloader) flashing tz ...

(bootloader) flashing hyp ...

(bootloader) flashing rpm ...

OKAY [ 1.493s]

finished. total time: 1.585s

C:\temp\moto g 3\XT1544_OSPREY_RETBR_DSTV_6.0_MPIS24.65-33.1-2-4_cid12_subsidy-DEFAULT_CFC.xml_2>fastboot flash logo logo.bin

target reported max download size of 268435456 bytes

sending 'logo' (1352 KB)...

OKAY [ 0.050s]

writing 'logo'...

OKAY [ 0.048s]

finished. total time: 0.099s

C:\temp\moto g 3\XT1544_OSPREY_RETBR_DSTV_6.0_MPIS24.65-33.1-2-4_cid12_subsidy-DEFAULT_CFC.xml_2>fastboot flash boot boot.img

target reported max download size of 268435456 bytes

sending 'boot' (16384 KB)...

OKAY [ 0.562s]

writing 'boot'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 1.090s

C:\temp\moto g 3\XT1544_OSPREY_RETBR_DSTV_6.0_MPIS24.65-33.1-2-4_cid12_subsidy-DEFAULT_CFC.xml_2>fastboot flash recovery recovery.img

target reported max download size of 268435456 bytes

sending 'recovery' (16484 KB)...

OKAY [ 0.559s]

writing 'recovery'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 1.092s

C:\temp\moto g 3\XT1544_OSPREY_RETBR_DSTV_6.0_MPIS24.65-33.1-2-4_cid12_subsidy-DEFAULT_CFC.xml_2>fastboot flash system system.img_sparsechunk.0

target reported max download size of 268435456 bytes

sending 'system' (262141 KB)...

OKAY [ 8.690s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 9.148s

C:\temp\moto g 3\XT1544_OSPREY_RETBR_DSTV_6.0_MPIS24.65-33.1-2-4_cid12_subsidy-DEFAULT_CFC.xml_2>fastboot flash system system.img_sparsechunk.1

target reported max download size of 268435456 bytes

sending 'system' (262142 KB)...

OKAY [ 8.746s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 8.782s
[Moto G 2015 General] acejavelin:
Try this...

fastboot erase boot

fastboot erase system

Then flash again... I'm running out of ideas if your bootloader is locked. :/
[Moto G 2015 General] soadcma:
If I run fastboot recovery I got the message bootloader version downgraded for recovery maybe because I cant find 6.0/MPIS24.65-33.1-2-16.

If I run the command you sent to me, both commands and the same errors, probably because of bootloader locked.

C:\temp\moto g 3\XT1544_OSPREY_RETBR_DSTV_6.0_MPIS24.65-33.1-2-4_cid12_subsidy-DEFAULT_CFC.xml_2>fastboot erase boot

erasing 'boot'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.066s

C:\temp\moto g 3\XT1544_OSPREY_RETBR_DSTV_6.0_MPIS24.65-33.1-2-4_cid12_subsidy-DEFAULT_CFC.xml_2>fastboot erase system

erasing 'system'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.006s
[Moto G 2015 General] Gravemind2015:
Have you tried even older releases? Maybe this certain build is giving this error and an older one could flash correctly.

Broadcasted from Zeta Reticuli
[Moto G 2015 General] lost101:
[MENTION=3634136]soadcma[/MENTION] - Does the FAQ entry I quoted above not cover this? There is nothing new in your scenario, that is why I added an FAQ entry to explain it. You are stuck, as many others are, because you have not unlocked your Bootloader. Your phone is working as designed. This is how Factory Reset Protection (FRP) functions. These Firmware Images are not created to solve this kind of situation.

You have no choice but to wait in the hope that a new Firmware Image is made available.

And again, the FAQ states: If you don't see a firmware image listed in the index, it most likely does not exist.
[Moto G 2015 General] madagascaradam:
Hi, I have a situation: I have an XT1557 (Moto G3 TE) and I installed AOSP Extended (latest July 7 version). It was working great for about a week, and then, in the middle of using it, the signal just died. Nothing I do can get the network to come back (I tried lots of options) even though the SIM is working fine in another phone. (I even tried another SIM on another carrier [same network] that's working fine in its phone, but that SIM is also not working in mine.) So, I tried clean-flashing AOSP Extended again, still no network signal.

So now I want to re-flash the stock rom and hope that'll fix my network issue. I tried reflashing just the modem (as mentioned in post 2), but that didn't help. Now I'm following directions here and I got the PreFlash validation failed on the gpt.bin step.

Is this because AEX is Nougat and I'm trying to flash back down to Marshmallow (stock)? Is there literally no way around that?

Any other advice would be appreciated. This is a new phone for me and it was working great and I have no idea why it just won't connect to the network on this phone anymore. Thanks for any help you can give me!
[Moto G 2015 General] madagascaradam:
So I just realized that I had a nandroid backup of my phone before rooting it and before installing any custom roms (but after unlocking it and TWRP obviously). So now I'm back on the stock rom, Android 6, and the network is STILL not working! Literally no signal! Does this mean it's a hardware error? Is there any app or any other way to check if my hardware is still working or not? PLEASE HELP!
[Moto G 2015 General] madagascaradam:
Here are a couple screenshots... one from the *#*#4636#*#* Phone info menu (notice that one lists the "emergency calls only" which makes me think it *does* have network access, just not registering me on the network), the other from the "about phone" "sim card" menu. (This was taken from stock rom now, since I restored my backup - from Android 6.0.)

Can anyone look at this and see if it indicates if it's a hardware issue or not? Or is there any other way to test the hardware? (And to remind people, this was working fine, with this sim card and this service for about a week, until yesterday it just stopped in the middle of usage.)
[Moto G 2015 General] lost101:
[MENTION=5203859]madagascaradam[/MENTION] - Try the following FASTBOOT commands:

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn​
[Moto G 2015 General] madagascaradam:
Thanks! Yeah, I did previously find that in your FAQ and I tried to do that before I tried re-flashing the entire stock rom. (And as I said, later I thankfully remembered my nandroid backup and wound up restoring my stock rom that way.) However, flashing just the original modem didn't change my signal problem. Thankfully (I hope), [MENTION=2001582]acejavelin[/MENTION] pointed out that my XT1557 isn't entirely compatible with the network frequencies AT&T uses and I may have literally just driven out of one part of AT&T's network (supported by the XT1557) and into another part of AT&T's network (unsupported frequency by XT1557). I'll be back in the area I know it was working in just over a week, so it at least gives me hope.

I do appreciate your attempt to help, lost101!
[Moto G 2015 General] sg23252:
U can try n skip "fastboot oem lock begin" this step

In my case i was also getting the same error... When i skipped this step i was able flash this stock rom...

---------- Post added at 11:43 PM ---------- Previous post was at 11:37 PM ----------

I got my issue solved...

I just skipped" fastboot oem lock begin" this step
[Moto G 2015 General] vinodrodricks:
Hi,

My friend's phone was struck in boot with the error "Your device didn't start successfully connect your phone to pc to get repair assistant"

So I tried flashing the phone through the method posted in first page. Now the phone is not booting up. Can anyone help me please??

---------- Post added at 05:58 PM ---------- Previous post was at 05:08 PM ----------

Seems like the phone is completely bricked, sometimes it is recognized in qualcomm hs-usb and sometimes it's not. Is there a way to fix this??
[Moto G 2015 General] acejavelin:
Honestly... If it's going to Qloader mode, it's toast. You need to contact Moto
[Moto G 2015 General] :
Hi, I went from Custom ROM of Android 7 ( lineage OS ) to Stock 5.1.1, Now I know in FAQ you have mentioned not to update the device. But I'm getting a notification of " Uninstall Motorola Sensor Services firmware" This will revert firmware to the previous version. " Later" and " Uninstall". What to choose?

update:

there are 2 notifications, 1 - Software update , 2- Motorola Sensor Services ( which i mentioned above)
[Moto G 2015 General] michiqueli:
Can I flash win Recovery?

Hi, Sry for my english...

i want know if i can flash this firmwares whit Recovery? or is the unique way ADB flash?

my Firmware is this:

XT1543_OSPREY_RETLA_DS_6.0.1_MPI24.107-55-2_cid12_subsidy-DEFAULT_CFC.xml.zip

Thank you
[Moto G 2015 General] abhi8939:
When im writting this command adb reboot-bootloader ... Error message comes in Device " Null " ie no device found and by hardware method error message comes " Please Connect UR USB cable " although USB debugging is installed and ADB drivers are also installed and i have tried different cable as well please help me out ... what to do ?? I want to return to stock
[Moto G 2015 General] MotoJunkie01:
Yes, like [MENTION=2001582]acejavelin[/MENTION] said, it sounds like a hard brick. Even in Qualcomm emergency mode, there is no "blankflash" file for this device to be able to recover it.
[Moto G 2015 General] Joser96:
Question. since am reading that theres is no 7.0 or 7.1 option i have to get the phone to a 6.0 firmware before doing this?
[Moto G 2015 General] Sertico:
hello, men i got this error

system system.img_sparsechunk.0

sending 'system' (262141 KB)...

FAILED (command write failed (Invalid argument))

finished. total time: 0.007s
[Moto G 2015 General] MotoJunkie01:
Did you execute the command like this?

fastboot flash system system.img_sparsechunk.0
[Moto G 2015 General] sathyabe:
I have just hard bricked my moto g turbo (XT1557). Is there any hope?
[Moto G 2015 General] ALPHAWolf96:
What you did!??
[Moto G 2015 General] acejavelin:
What do you mean by "hard bricked", does it power on, can you access fastboot, or does it just show up as a "QLoader" device now?
[Moto G 2015 General] sathyabe:
I unlocked the bootloader to load Lineage OS. I had some problem with lineage os. So I returned to stock rom. After installing stock rom, I received an ota update. After OTA Update, phone is totally dead. Can't load bootloader or enter fastboot mode. Long pressing volume - and power button did nothing. Screen is totally blank.
[Moto G 2015 General] acejavelin:
Plug it in and look in Device Manager, does anything show up? Look for a Qualcomm HS-USB QDloader 900x device in Ports specifically...
[Moto G 2015 General] sathyabe:
Yes it shows Qualcomm HS-USB QDloader 9008
[Moto G 2015 General] acejavelin:
Yup... sorry, it's Hard bricked, only Moto can fix it but they won't because the bootloader is unlocked. There is no fix we can do, the bootloader itself is corrupt.
[Moto G 2015 General] sathyabe:
No Motorola even won't help us. They have only one solution which is to change the PCB (i.e. Motherboard)
[Moto G 2015 General] acejavelin:
Yeah, and TBH it isn't worth it... if your going to open it up might as well replace the battery and by the time you replace those 2 items you might as well just replace the whole thing.
[Moto G 2015 General] ALPHAWolf96:
Even I have accepted OTAs after flashing stock rom with both twrp and stock recovery flashed. It went fine on stock recovery though. Don't know where you went wrong. But yeah, getting it repaired doesn't make any sense now. You might try swappa for a nice phone instead.
[Moto G 2015 General] sathyabe:
I've just found a solution. If you have rooted moto g turbo(XT1557) with stock rom installed, Kindly help me. I want the Loader.img file which can be generated by following steps. Kindly share the file with me.

1. Get another exact variant of your device and INSERT an SD Card on it. The device chipset must be the same. Thus, if your device (bricked) is MSM8269, the required device CPU has to be MSM8269, too.

2. Root the working (exact variant) device and install Terminal Emulator on it.

3. Download and install Busybox on the device. You may download Busybox from here

4. Once BusyBox is installed, launch/open it and run/install its dependencies/files by clicking on the appropriate key.

5. Now, launch/open Terminal Emulator on the device and follow these procedures:

a. On Terminal EmulatorType:

su

and hit/tap the Enter key. You will be prompted to GRANT Terminal emulator a Root Access, click GRANT.

b. Then, type:

dd if=/dev/block/mmcblk0 of=/sdcard/Loader.img bs=1024 count=168960

and hit/tap the Enter key.

6. Wait few minutes or until Terminal Emulator completes the process.

7. Now, check the Root Folder/Directory of the SD Card inserted on the phone. You will notice that a file named Loader.img has been created.
[Moto G 2015 General] abhi8939:
Bro u reverted back to lollipop with success any problem u faced and did u updated ur device to 6.0.1 can u please explain how u went back to stock 5.1.1 plz bro
[Moto G 2015 General] :
With success, no problems faced bro. To be clear, i was on 6.0.1 stock --> rooted and unlocked -- > 7.1 Custom ROM -> Clean Install of Stock ROM of 5.1.1 ( by clean install i mean i even formatted internal storage and everything , dont know if thats necessary )

Then , 5.1.1 still had ghost touch problems so reverted back to Lineage OS now without any problems.
[Moto G 2015 General] abhi8939:
Bro U flashed the 5.1.1 by TWRP or fastboot ?? curious to knw it :cool:
[Moto G 2015 General] :
fastboot
[Moto G 2015 General] sampark1995:
Hello, I'm trying to flash a stock Telus ROM for my XT1540 using TWRP.

However, it keeps saying: Invalid zip file format."

Why is this happening, and how can I resolve the issue?

Thanks :)
[Moto G 2015 General] myxored:
Issues with flashing the booloard

I am trying to flash pure nexues onto a Moto G3 XT1541 running 24.226.17.osprey_reteu.reteu.EI ... so 6.0.1

Using TWRP from https://eu.dl.twrp.me/osprey/twrp-3.1.1-0-osprey.img.html

Wit fastboot under OSX.

When i try to flash with fastboot

Onlocked OEM

fastboot oem fb_mode_set
fastboot oem unlock
fastboot oem fb_mode_clear

Rebootet the device to fastboot again and then tried

fastboot flash recovery twrp-osprey-3.1.0-r1.img

i get

(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 268435456 bytes
sending 'recovery' (8156 KB)...
OKAY [ 0.270s]
writing 'recovery'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.455s

I researched quiet a bit, i understand, that from March 2016 on you can no longer flash the bootload since it only will allow signed files from Motorola to get flashed, right?

I also understand then if one has updated his phone over OTA after 2016/03 there seem to be now way to get back to an unlocked bootloader, right?

What i did not quiet get though is:

a) can i flash the rom regardless ( i guess a rather manual way using flashboot / adb ) ?

b) can i alternatively unlock the bootloader so i can install TWRP 3.1.1?

The main core is, is the recovery-bootloader required for a new rom or not - because we are only talking about the recovery one - i guess every ROM has its own bootloader and is not dependend on the recovery one, so i suggest a) would work?

Thank you and sorry for me getting into that confusion - i had to not deal with any of this for my onyx - worked out just the normal / usual way with TWRP
[Moto G 2015 General] naenee:
I'd suggest using twrp-osprey-3.1.1-r1.img, I flashed that without issues.

I have a question which might be related:

I flashed stock 6.0.1, updated to the latest OTA and then decited to install the squid kernel.

I now wish to revert to the stock kernel, which I think can only be done using a stock reflash, starting with the usual "fastboot flash partition gpt.bin".

However, this step gives me the following output:

>fastboot flash partition gpt.bin

target reported max download size of 268435456 bytes

sending 'partition' (32 KB)...

OKAY [ 0.006s]

writing 'partition'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.414s

Ofcourse, I do not have a stock ROM of the version of the latest OTA update - can't seem to find it anywhere.