yashsingh1/xdaforums huggingface dataset:
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Have you heard of a magical button on your keyboard called the delete key? (although backspace works equally as good)

Anyway the commands are written out on the first post for you - just copy & paste depending on which name your sd card is displayed as
[Moto G5 Guides, News, & Discussion] WiserJr:
I thought that I could to erase the "1" of the /dev/mmcblk0p1...
[Moto G5 Guides, News, & Discussion] jimmy999x:
Well, I have revived my xt1671 (now xt1676) I have understood the process and I have to provide some things, once they record the image in the microsd they should start in fastboot mode and remove the microsd (without turning off the device) is simple, after that, use these commands and this stock rom:

fastboot oem fb_mode_set

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.img

fastboot flash dsp adspso.bin

fastboot flash oem oem.img

fastboot flash system system.img_sparsechunk.0

fastboot flash system system.img_sparsechunk.1

fastboot flash system system.img_sparsechunk.2

fastboot flash system system.img_sparsechunk.3

fastboot flash system system.img_sparsechunk.4

fastboot flash 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

and and the stock rom is this: https://drive.google.com/file/d/1gkFH4avWRx-FD5G9t-oCdLuHx-TyC0y8/view?usp=drive_open

they will run out of imei, do not worry, you should only install the update to oreo or execute some commands (if you do not like oreo) the post to update oreo I leave it here as well, as the method to recover the imei

oreo update: https://xdaforums.com/g5/development/stock-upgrade-to-official-stock-oreo-8-t3823598 (I recommend updating by adb, it's a bit slow but it worked)

https://xdaforums.com/g5/how-to/recovering-2g-3g-set-radio-band-to-usa-t3668767 (recover imei)

PS: the whole process was done in 32 bit lubuntu, (my main operating system) is easier than in windows
[Moto G5 Guides, News, & Discussion] mohamednashat:
this rom work on xt1676???

and this command
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Read first post
[Moto G5 Guides, News, & Discussion] mohamednashat:
i read it and i bought new card 64 gb but i afraid from the rom file because my motorola xt1676 and i need the correct rom
[Moto G5 Guides, News, & Discussion] TheFixItMan:
It will either flash or it won't - the only condition is the firmware version needs to be the same or newer if you want to boot it without sd card

What firmware you flash is your choice & any that are the same or newer than what is on your phone already will flash

Anything else will give a pre-validation error when flashing gpt & bootloader
[Moto G5 Guides, News, & Discussion] jimmy999x:
absolutely, my model is xt1676 (it is on the label under the battery) but it is very strange, because when I bought it xt1671 said, the camera keeps giving me problems and I am in DOTos rom, it is the most stable and with the most camera functional
[Moto G5 Guides, News, & Discussion] mohamednashat:
i finished it and my device is work but when i power of i need the sd card to power on or to enter bootloader

i understood i need another rom newer than i have installed

iam installed android 7 november and this is screen from bootloader
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Since I no longer own this device I don't keep track on firmware version numbers

You could try for example

Latest firmware I could find NPPS25.137-93-2-3 May 2018 Security Patch

https://mirrors.lolinet.com/firmwar...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

Or do a search for what firmware is available for this device

You need to flash gpt & bootloader successfully to boot without sd card image
[Moto G5 Guides, News, & Discussion] mohamednashat:
this rom is worked well but i didnt use this command

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

thanks to u and TheFixItMan and xda

but i didnt update it to oreo

what your opinion ?
[Moto G5 Guides, News, & Discussion] jimmy999x:
the same thing happened to me, once you are in fastboot mode remove the micro sd without turning off the device, it will continue in fastboot mode, just connect the computer and install the rom, in my previous comments I left the instructions, successful
[Moto G5 Guides, News, & Discussion] pedrofadad:
need some answer

Ive rooted my moto g5 xt 1672 , then updated so it gets a hardbrick.. the tutorial on the first page works 100% for my phone??
[Moto G5 Guides, News, & Discussion] TheFixItMan:
OMG seriously! Read the first post!

I seriously give up with some people who simply don't read although to make it clearer I have changed the message to now read
[Moto G5 Guides, News, & Discussion] pedrofadad:
i read dude, im just not too good on english , ive seen some people sayin that on their models it didnt worked i just wanted to ask before to be a little more sure, ill buy 64gb card so thats why i asked before, im sorry
[Moto G5 Guides, News, & Discussion] TheFixItMan:
For those who couldn't flash gpt & bootloader because of security downgrade here's the oreo firmware files

Flash the entire firmware

https://drive.google.com/file/d/1bBFZ6I2ayCMMCDejKMewShs01N6GTnzf/view?usp=sharing
[Moto G5 Guides, News, & Discussion] chopondrilio:
thank you very much, following the tutorial, only in my case I had to buy the 64gb micro sd and as a recommendation use the firmware that comes in the update post to oreo, so it does not battle for the gpt no error.
[Moto G5 Guides, News, & Discussion] Carol Barros:
erased
[Moto G5 Guides, News, & Discussion] mahalo2099:
Thank you ThefixMan!!!!

TheFixItMan, brother: I only have thanks for your post that solved the problem with my Moto g5, which after an update became at that time an unusable device with only a flashing white led.

* Because of the solution you posted, I solved my problem at once, without having to repeat it, and for those who will try to revive their device: I advise using a 64GB micro sd.

* I am very grateful to you and XDA for providing this level of knowledge and help to others.

* Forgive English language, I'm Brazilian and I'm using Google translator, rsrsrsr.

* Thank you and may the force be with you.
[Moto G5 Guides, News, & Discussion] f2003077:
Thanks for the thorough guide. Before I came across this post, I totally gave up on my device post the hard brick. None of the methods based on using Qualcomm flash tools seem to work. Please make sure you or on the linked stock rom before you attempt to flash. Also, use Linux dd utility to copy over the mmcblk0 file, none of the windows alternatives seem to work.
[Moto G5 Guides, News, & Discussion] Emilio_BG97:
THANK YOU SO MUCH

You saved me from buying a new phone.
[Moto G5 Guides, News, & Discussion] kelmevoltan:
Hi, first thanks for the help, because I do not know what else to do!

I followed all the steps described, used linux, 64gb sdcard, and no errors in steps...

When i put the sdcard in the phone and try to power on, nothing happens! The white led flashes and it does not turn on.

My phone model is XT1672 32GB, can you help me?

Sorry my english, used google translate...
[Moto G5 Guides, News, & Discussion] riyan65:
Try to charge it for 3 to 4 hours. Then give it a try.
[Moto G5 Guides, News, & Discussion] matheus alves oliveira:
after I bought my 64gb card, I made the mistake did not give a bug in linux, but when I start my bike g5 and does not turn on even pressing power, power + down, apparently I have to give up

:rolar os olhos:
[Moto G5 Guides, News, & Discussion] TheFixItMan:
You haven't flashed the entire firmware - you didn't flash bootloader

See first post for all the fastboot commands
[Moto G5 Guides, News, & Discussion] marcosldn:
thanks now works
[Moto G5 Guides, News, & Discussion] Chekm8Qc:
[MENTION=4728903]TheFixItMan[/MENTION]

Hey I have a question, is it possible to test this method even if we're not bricked ? Like preparing the SD card and power up the phone to see if it boots automatically to bootloader ?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
There's only one way to find out - its not going to do any harm

I no longer own this device
[Moto G5 Guides, News, & Discussion] Chekm8Qc:
Yep I'll do that, just to have a plan B ready hehe.
[Moto G5 Guides, News, & Discussion] kelmevoltan:
Hi, I left the cell phone charging 12 hours, the led is flashing only ... I tried to power on with the sdcard and it still did not work ... anything else I can do?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Use Linux mint live dvd/USB if not already

Use a 64gib SD card or try a different one

Follow instructions on first post

Not much help I can give here
[Moto G5 Guides, News, & Discussion] ALLZOKU:
Ok ur guide works PERFECTLY for me thats great !! but i need to find a way to boot my phone without the sd 64gb asap

PS : apparently a guy in the thread (dont remember the name lol) has said , this rom

(CEDRIC_NPPS25.137-93-2-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip) WORKS without sd card but the google drive link not work for me, u feel me ?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Try this oreo firmware

https://drive.google.com/file/d/1bBFZ6I2ayCMMCDejKMewShs01N6GTnzf/view?usp=sharing

It will only work if the gpt & bootloader in the firmware is the same or newer than what was previously used
[Moto G5 Guides, News, & Discussion] galbm12:
Moto G5 XT1676 3+16GB

Please help me with my cell phone I have the same problem I am from Ecuador I use the google translator;)
[Moto G5 Guides, News, & Discussion] galbm12:
what image did you use? friend help me I have the XT1676 3 + 16GB

---------- Post added at 05:27 PM ---------- Previous post was at 05:14 PM ----------

what image did you use? friend help me
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Read the first post - everything you need is there

I don't post firmware as this will change - see my post above yours for one of the latest oreo firmwares

If you're talking about the mmcblk0 - again read the first post - its there - just follow the guide!
[Moto G5 Guides, News, & Discussion] Jay De Anda:
Can we get a Windows tutorial please?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
No because it doesn't work in windows

Just use a Linux live usb/dvd
[Moto G5 Guides, News, & Discussion] galbm12:
Thanks for answering Bro ..... My question is if that file serves me mmbklc0 for my device XT1676 3 ram 16gb internal memory.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
As per my first post I'm just going to copy & paste the following to you
[Moto G5 Guides, News, & Discussion] riyan65:
Is xt1677 device model is able to recover by this method???
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Let me copy & paste this to you

I'm not going to write down every single variant it works with but it should work with all as I've stated!
[Moto G5 Guides, News, & Discussion] nsvir:
Hi, thanks a lot with all this work, it's amazing!

Your link is dead and I definitively need this one.

Thanks if you can upload it back
[Moto G5 Guides, News, & Discussion] TheFixItMan:
It worked when I posted it - its not my link - provided by others

Try this one

https://drive.google.com/file/d/1gNB7vNM8xH5ueTPKh5Qwev87gJpSpyyK/view?usp=sharing
[Moto G5 Guides, News, & Discussion] galbm12:
not job in XT1676 3 + 16GB

mint@mint:~$ cd /media/mint/D0001C7D001C6D2A/Users/User/Downloads/mmcblk0

mint@mint:/media/mint/D0001C7D001C6D2A/Users/User/Downloads/mmcblk0$ sudo dd bs=4M if=mmcblk0.img of=/dev/mmcblk0 status=progress oflag=sync

31268536320 bytes (31 GB, 29 GiB) copied, 102898 s, 304 kB/s

7455+0 records in

7455+0 records out

31268536320 bytes (31 GB, 29 GiB) copied, 102898 s, 304 kB/s

Please can you help me if I copied the file well to 64GB memory
[Moto G5 Guides, News, & Discussion] TheFixItMan:
All I can say is make sure you phone is fully charged before trying or try a different sd card

Not a lot of help I can give
[Moto G5 Guides, News, & Discussion] torro.rosso:
Cheers, man. My zombie is back. Thanks a ton.
[Moto G5 Guides, News, & Discussion] xxl30xx:
Bricked

Hi guys i have a big problem my phone is only led flashing when i connect usb my pc detect Qualcom HS QLoader 9008 i have a SD Card with 64gb but i dont know how to power on the phone, when i use blank flash my phone is detected how Unknown.

I read all the thread and try and try but idk
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Firstly there is no blank flash for this device

Secondly follow the guide on the first post!
[Moto G5 Guides, News, & Discussion] xxl30xx:
Thx for the answer i already tried but only can flash 2 gbs in my sd 64 gb, i have other with 32 gb but only flash 29
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Use the 64gb

Delete all partitions in Linux and create a new fat32 partition

If you are getting flashing errors in the Linux terminal you will need to use a different sdcard
[Moto G5 Guides, News, & Discussion] bolaaugusto:
mmcblk0.img no longer works on g5 XT1672 after the last update

mmcblk0.img no longer works on g5 XT1672 after the last update made available by motorola, it does not fit into any fastboot at all.

Any solution?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Get someone to create a new image who has the latest bootloader version but I don't see why it wouldn't work as the bootloader had changed with the first oreo update so if that was going to to stop it then it would have then but the only way to tell is to get another image from a working updated phone

Good luck with that as it took me months to get someone to provide the working image on the first post

I haven't had this device in a year
[Moto G5 Guides, News, & Discussion] Andrej_SK:
I might give it a try tomorrow if you tell me, how to proceed.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
https://xdaforums.com/moto-g5s/how-to/guide-how-to-create-mmcblk0-img-device-t3803176/
[Moto G5 Guides, News, & Discussion] Andrej_SK:
So... I'm really sorry but I won't be able to - my sdcard is only an 8GB one. :(
[Moto G5 Guides, News, & Discussion] xxl30xx:
i got some error about input output, i need to delete partition of windows? maybe i have too much partitions and this is the problem
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Everything is done in Linux using the Linux live dvd/usb

Delete all partitions on the sd card using the disk utility as per instructions on the first post
[Moto G5 Guides, News, & Discussion] xxl30xx:
I know i try all in linux but idk what is the problem, when i insert the sd in pc when all the process is finished y can see all the partitions when i mount

---------- Post added at 01:06 AM ---------- Previous post was at 12:53 AM ----------

can i create a mmcblk0 of my moto g4 play for the moto g5?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
No - different phone - different chipset etc etc
[Moto G5 Guides, News, & Discussion] Exanneon:
Hey just a question out of interest; is linux mint the only distro that this works on for some reason, or can it be done on others as well? I don't see much reason why not.

Another question: Could it be done through a vm instead of booting linux? It is known that vms can also use usb connections that are made to the physical hardware.
[Moto G5 Guides, News, & Discussion] bonpiton:
Hi everybody

i try to back from the dead my moto g5 xt1676 cedric, hardbricked

i try to download to the phone via QFIL but i receive some errors.

13: C:\Program Files (x86)\Qualcomm\QPST\bin\firmware\prog_emmc_firehose_8937.mbn

2018-11-29 10:14:20.070

2018-11-29 10:14:20.070 10:14:19: Requested ID 13, file: "C:\Program Files (x86)\Qualcomm\QPST\bin\firmware\prog_emmc_firehose_8937.mbn"

2018-11-29 10:14:20.070

2018-11-29 10:14:20.070 10:14:19: ERROR: function: is_ack_successful:1086 SAHARA_NAK_INVALID_ELF_HDR

2018-11-29 10:14:20.070

2018-11-29 10:14:20.070 10:14:19: ERROR: function: sahara_start:895 Exiting abruptly

2018-11-29 10:14:20.070

2018-11-29 10:14:20.070 10:14:19: ERROR: function: sahara_main:924 Sahara protocol error

2018-11-29 10:14:20.070

2018-11-29 10:14:20.070 10:14:19: ERROR: function: main:303 Uploading Image using Sahara protocol failed

2018-11-29 10:14:20.070

2018-11-29 10:14:20.070

2018-11-29 10:14:20.085 Download Fail:Sahara Fail:QSaharaServer Fail:Process fail

2018-11-29 10:14:20.085 Finish Download

13: C:\Program Files (x86)\Qualcomm\QPST\bin\firmware\prog_emmc_firehose_8937.mbn

2018-11-29 10:15:16.919

2018-11-29 10:15:16.919 10:15:16: ERROR: function: rx_data:247 Error occurred while reading from COM port

2018-11-29 10:15:16.919

2018-11-29 10:15:16.919 10:15:16: ERROR: function: sahara_main:924 Sahara protocol error

2018-11-29 10:15:16.919

2018-11-29 10:15:16.919 10:15:16: ERROR: function: main:303 Uploading Image using Sahara protocol failed

2018-11-29 10:15:16.935

2018-11-29 10:15:16.935

2018-11-29 10:15:16.935 Download Fail:Sahara Fail:QSaharaServer Fail:Process fail

2018-11-29 10:15:16.935 Finish Download

Start Sending Programmer

Download Fail:System.Exception: Unable to download Flash Programmer using Sahara Protocol

en QC.QMSLPhone.Phone.QPHONEMS_SaharaArmPrgDownload(String sFileName)

en QC.SwDownloadDLL.SwDownload.QPHONEMSSaharaDownloadArmPrg(UInt64& version, String armPrgPath)

Download Fail:Sahara FailSahara Fail

Finish Download

anyone has an idea to help me ? in internet only there's a bunch of videos solving sahara error on QFIL, but none is doing on motorola. So none of these work for me.

Thanks in advance

Juan
[Moto G5 Guides, News, & Discussion] Agusto120:
hello help I have a problem !!!

hace unos dias hice el procedimiento y todo bien, pero al momento de flasear la rom stock me da errores asi:

I have tried several rom but I can not install the fireware

I hope your help thank you very much!!!!!
[Moto G5 Guides, News, & Discussion] TheFixItMan:
You clearly haven't read the first post as what you are doing obviously won't work as it's totally different from the first post guide!
[Moto G5 Guides, News, & Discussion] TheFixItMan:
You will need to flash gpt successfully before flashing anything else

This file must be the same or newer than the version that was previously on your device

If you were on the latest firmware you will need the latest gpt file that comes with that firmware - if it's not available you will just have to wait until it is

However you can flash the rest of the firmware after the bootloader but you will not be able to to boot the phone without the use of the mmcblk0 sd card
[Moto G5 Guides, News, & Discussion] bonpiton:
Hello TheFixItMan, yes i have read the first post.

I follow these instructions but no effect on my phone, never boot from sdcard (at least on my phone).

reading all 37 pages, see instructions on how to create a rawprogram and patch files, so, my question is for that procedure.

i need to move forward to revive my cellphone, this method or whatever it works for me.

Regards

Juan
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Ignore everything you have read in the thread relating to other things - this thread used to be a collection of ideas etc to work on unbricking this device

The guide on the first post is the outcome of these discussions and is the only known method other than a JTAG to unbrick this device
[Moto G5 Guides, News, & Discussion] bonpiton:
so it's the only method that i have? ok, but clear me some doubts.

when install the mmcblk in the sd card, it be readable on other computer and see what it contains?

when put the sd in the phone, i just turn power on and boot? or some key combo?

Regards

Juan
[Moto G5 Guides, News, & Discussion] TheFixItMan:
I think you can see contents on a Linux system - windows machines won't be able to read it

Everything needs to be done in Linux

Turn phone on with sd card inserted and it will show bootloader screen

Or try with power button & Vol down to enter bootloader

Note I haven't had this phone for a year
[Moto G5 Guides, News, & Discussion] bonpiton:
for now, i've been copy mmcblk0 in sd card, this result

15619588096 bytes copied 763 sec

3727+1 records in

3727+1 records out

15634268160 bytes copied 763,74 sec

so far ok?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Like I said - I no longer own this device

I don't know what the output should be but it's copied something to the sd card - as long as your sd is big enough it should have copied all of it

I suggest a 64gb card but it will work with a 32gb card as long as it is around 31.3gb after formatting
[Moto G5 Guides, News, & Discussion] bonpiton:
Hi

has anyone try this method on your device lately?

finally i have to revive my cell, but show IMEI 0 and don't have cellular signal.

plus, if i power off the phone, it don't power on anymore, only repeat the operation to boot from sd card and flashing again

Thanks

Juan
[Moto G5 Guides, News, & Discussion] TheFixItMan:
To boot without sd card you must flash gpt & and bootloader successfully

This requires a firmware version equal to or newer to what is currently on your phone
[Moto G5 Guides, News, & Discussion] Andrej_SK:
TheFixItMan gave you already an advice for booting phone without sdcard inserted. Here's a tutorial for fixing lost IMEI, that works even on G5 (cedric) --> https://xdaforums.com/g5-plus/how-to/fix-persist-resolve-imei0-explanation-t3825147.
[Moto G5 Guides, News, & Discussion] kelmevoltan:
Don't Work in XT1672

Hi all,

I tried to revive my xt1672 in every possible way, on all operating systems, with 32/64 sdcards, but nothing worked, my G5 is still dead !!!

So sad, I'm paying and I can't use my cell phone haha.
[Moto G5 Guides, News, & Discussion] riyan65:
Hey what is the spec of your device???

---------- Post added at 03:35 PM ---------- Previous post was at 03:34 PM ----------

Hey what is the spec of your device???

.
[Moto G5 Guides, News, & Discussion] kelmevoltan:
motorola moto g5 xt1672 32gb

need something else?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
What do you mean by all operating systems?

It will only work on Linux - use the Linux mint live dvd/usb as directed in the guide

Do not use an emulator/virtual machine!
[Moto G5 Guides, News, & Discussion] takoa:
I'm trying it and it does not work either.

if someone else can prove it, it would serve to confirm that this method does not work on this device
[Moto G5 Guides, News, & Discussion] magix01:
I tryed this multiple times, doesnt work.
[Moto G5 Guides, News, & Discussion] oxxo.andatti:
dead moto g5 xt1671

He is already dead then moto G5 xt1671

ya esta muerto entonces mi moto G5 xt1671
[Moto G5 Guides, News, & Discussion] takoa:
Mientras no se liberen o alguien cocinen un blankflash ... si :crying:
[Moto G5 Guides, News, & Discussion] 006fazer:
Hi,

I tested this solution, but my XT1676 don't boot on the sd card :(

Just the blank flash when plug-in on USB.
[Moto G5 Guides, News, & Discussion] 006fazer:
Hi,

My moto g5 is on the road to RMA.

If some body can test this topic : http://tatooine.xyz/group/topic/view/4/4/unbrick-moto-g5-qualcomm-9008

It seems to be working....
[Moto G5 Guides, News, & Discussion] NABECKER16:
not working the method in the Motorola g5
[Moto G5 Guides, News, & Discussion] TheFixItMan:
First post updated with new potential method