yashsingh1/xdaforums huggingface dataset:
[Moto G5 Guides, News, & Discussion] RishabhDhiman:
Poco X3 pro is hardbricking on it's own. I want to create that mmcblk img file. Can some one guide me how to do that?
[Moto G5 Guides, News, & Discussion] nift4:
Won't help, this is an moto specific.
[Moto G5 Guides, News, & Discussion] RishabhDhiman:
What do you mean by moto specific? Did you mean that this process can only be performed on a moto or this ing file is only for moto?
[Moto G5 Guides, News, & Discussion] nift4:
The process
[Moto G5 Guides, News, & Discussion] KryoZen:
Hello @TheFixItMan, thank you for you help in this post, I've read all the pages and I saw every answer you gave,it made me learn a little bit more.​

I'd had followed the original guide by @vaserbanix successsfully in my G5s, but I can't make it work in my G5 with the img provided in the 1st post. Two other users experienced the same behavior I'm experimenting. When I connect the phone to the PC without the sdcard, the phone is recognized as "Qualcomm HS-USB QDLoader 9008", but when I insert the sdcard, it is not, there's not even the sound of the connected device. As you mentioned several times before, it could be a bad motherboard. So my question is, if indeed the motherboard is broken, would the LED still be blinking? Would the phone still be recognized as "Qualcomm HS-USB QDLoader 9008" in the device manager? Or that means the motherboard is working and I should keep trying?

I hope you can enlight me in this. Thank you very much!
[Moto G5 Guides, News, & Discussion] barbot6:
Same here but when i have the sd card in the phone fastboot it says "software status: Modified" and the device manager says "Motorola ADB Interface". When i take the sd off the phone becomes a brick with the white led blinking again and it shows as "Qualcomm HS-USB QDLoader 9008"

I tried the Rescue and Smart Assistant but no luck, it says "Doesnt match the appropiate firmware" I suspect it is because of the sd card

C:\Users\Lucas>fastboot oem fb_mode_set
FAILED (remote: '')
fastboot: error: Command failed

C:\Users\Lucas>fastboot flash partition gpt.bin
(bootloader) has-slot:partition: not found
fastboot: error: cannot load 'gpt.bin': No such file or directory

C:\Users\Lucas>fastboot flash bootloader bootloader.img
(bootloader) has-slot:bootloader: not found
fastboot: error: cannot load 'bootloader.img': No such file or directory

C:\Users\Lucas>fastboot flash logo logo.bin
(bootloader) has-slot:logo: not found
fastboot: error: cannot load 'logo.bin': No such file or directory

-Moto G5 XT1676 16GB/2GB
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Looks to me like you are not running the commands from where you have the firmware on your pc

Also run cmd as administrator

Also your oem is locked - this means I'm guessing you tried to lock the bootloader and something went wrong

The chances of you being able to flash firmware on this device without unlocking the bootloader first is pretty much 0 without specialist equipment.
[Moto G5 Guides, News, & Discussion] grosobart:
hello, I already have my device in fastboot mode, but when I want to flash the firmware it gives me a gpt error due to the size, I suppose because it is not the firmware I had or higher, but I do not remember which one it had, error due to partition size , I tried several firmwares but I can't find the correct one, how can I solve it? From already thank you very much
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Firmware can be downloaded from

lolinet mirrors - firmware, software, iso etc.

lolinet mirrors - powered by h5ai

mirrors-obs-2.lolinet.com

I recommend the latest retail firmware
[Moto G5 Guides, News, & Discussion] grosobart:
hello, yes, I downloaded that same one, but it gives me the partition space error in gpt and bootloader all the time, I don't know what to do now, thanks
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Then you have done something to your phone which this guide can not help you

If you have altered the partition sizing there's nothing I can help you with.

Buy a new motherboard or take to repair shop
[Moto G5 Guides, News, & Discussion] grosobart:
Now I'm not at home, later I'll upload a photo of the error that comes up, so you tell me if that's the problem, thanks
[Moto G5 Guides, News, & Discussion] grosobart:
I get this
[Moto G5 Guides, News, & Discussion] TheFixItMan:
If this firmware doesn't work then there's not much I can do as it is the latest firmware for your variant

https://mirrors-obs-2.lolinet.com/firmware/motorola/2017/cedric/official/RETLA/XT1670_CEDRIC_RETLA_8.1.0_OPPS28.85-13-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

Make sure you are using the latest fastboot from

https://dl.google.com/android/repository/platform-tools-latest-windows.zip

Also a small tip - don't have spaces in folder names and keep them as short as possible to avoid issues with software
[Moto G5 Guides, News, & Discussion] grosobart:
hello, of course, I just realized that it is taking data from another folder called moto x4, mix the firmware, later I will fix it and tell you, thanks!
[Moto G5 Guides, News, & Discussion] grosobart:
I already solved it, thank you very much for your kind attention, working again, thank you very much
[Moto G5 Guides, News, & Discussion] Keith McKenzie:
It worked great for my Moto g5. Thank you!
[Moto G5 Guides, News, & Discussion] randomguy3356:
Can someone help me while flashing? when it's flashing certain parts, it says not found, example:

(bootloader) slot-suffixes: not found

EDIT: Just fixed it, can't thank you enough for this.
[Moto G5 Guides, News, & Discussion] koen1931:
I followed every step here precisely, inserted the SD card but the phone still won't boot into recovery. Still just getting white LED flashing. I've looked at other comments and none of the suggestions in the replies work for me. I have XT1675 and used the smaller file from the GitHub link
[Moto G5 Guides, News, & Discussion] Andrej_SK:
Could somebody create that file with all partitions from fully functional XT1676 and upload it somewhere for the whole public, please?
[Moto G5 Guides, News, & Discussion] NABECKER16:
Something new about it?????
[Moto G5 Guides, News, & Discussion] NABECKER16:
someone with the motorola xt1671 that I can do this procedure so that we podamls revive our motorola cedric https://xdaforums.com/moto-g5s/help/moto-g5s-montana-hardbrick-solution-t3804712 Please
[Moto G5 Guides, News, & Discussion] AllenGAMING01:
Will this work on Model XT1677?

I want to revive my bricked Cedric XT1677.

Please help me.
[Moto G5 Guides, News, & Discussion] :
You can't.... Buy a new phone
[Moto G5 Guides, News, & Discussion] riyan65:
I have bricked my Moto g5(xt1677).I think in this thread there is solution, but I don't know any codes to recover it.can any one give me the codes with any method ,so I can unbrick it.

When I connect my phone to PC,it gives me unrecognized device in device manager,should I change any drives so it can connect to PC.and work with it.:crying::crying:
[Moto G5 Guides, News, & Discussion] TheFixItMan:
If you can still get into the bootloader by holding Vol down & power button just flash stock rom via fastboot

See firmware thread in dev section

If you can't get into the bootloader there is no solution at present
[Moto G5 Guides, News, & Discussion] riyan65:
How can I use blank flash file.as I am having one.
[Moto G5 Guides, News, & Discussion] Andrej_SK:
Which one do u have? As I know there's still not a working one.
[Moto G5 Guides, News, & Discussion] riyan65:
I have the same, which is available in this thread
[Moto G5 Guides, News, & Discussion] riyan65:
Can anyone run this command's and upload on this thread

adb shell

su

dd if=/dev/block/mmcblk0 of=/storage/sdcard1/backup.img bs=512 count=30535646
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Iv already created a separate thread with instructions - plus your block size is probably wrong

Plus if someone just ran it, it would fail because you failed to mention you need to be rooted & have a blank 32gig micro sd card inserted (because the image is about 30gb) plus it needs to be done in twrp with a Linux terminal else you will probably get access denied

Link to thread discussing this

https://xdaforums.com/g5/help/roote...k0-via-adb-t3805441/post76852252#post76852252
[Moto G5 Guides, News, & Discussion] Uriel Lovera:
Someone that can this method or try a similar steps for g5 cedric

Https://youtu.be/AaUb5dETnm0
[Moto G5 Guides, News, & Discussion] TheFixItMan:
We are awaiting someone to provide the mmcblk0 - see my last post for link to instructions
[Moto G5 Guides, News, & Discussion] riyan65:
Can someone provide me how to make a flash file.so I can create a blank flash file and unbrick our device's. So if anyone provide me how a blank flash is create then I am going to create one.
[Moto G5 Guides, News, & Discussion] praneeth2722:
Go to the Following thread there u can find instructions please upload that as my device also hardbricked

you need to be rooted & have a blank 32gig micro sd card inserted (because the image is about 30gb) plus it needs to be done in twrp with a Linux terminal else you will probably get access denied

Link to thread discussing this

https://xdaforums.com/g5/...2#post76852252
[Moto G5 Guides, News, & Discussion] riyan65:
Hi,

I have run a blank flash file for Moto g5 (xt1677) which seems to be working but singleimage.bin is not working

If anyone is having singleimage.bin file for Moto g5 please give to me so I can run the black flash file.thanks in advance.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
It doesn't exist

I'm still waiting for someone to provide the mmcblk0 partition

I would do it myself but I no longer own this device

If you have a working rooted moto g5 & can provide the image see

https://xdaforums.com/g5/help/rooted-stock-rom-pull-mmcblk0-via-adb-t3805441
[Moto G5 Guides, News, & Discussion] riyan65:
Is there any other way to get the Moto g5 to get in working condition without changing the mother board and without having the blank flash file???

If any is there can please let me know what is the way to get the Moto g5 in working condition.as till now no one has put the mmcblk0 file
[Moto G5 Guides, News, & Discussion] TheFixItMan:
There is currently no known way
[Moto G5 Guides, News, & Discussion] riyan65:
Can you let me know how to combine .bin files so I can create a single image.bin file
[Moto G5 Guides, News, & Discussion] TheFixItMan:
You can't - they a manufacturer signed images

Only the manufacturer can provide these files so unless they leak it you will not be able to do it
[Moto G5 Guides, News, & Discussion] riyan65:
If I take the files from the stock rom and use as single image.bin then I think it will going to work as the stock rom is also having singed image.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
You need the programmer which is a factory signed image - it has not been leaked

You will not be able to flash the device that way

I'm awaiting someone to provide the mmcblk0 partition so you can boot off sd card
[Moto G5 Guides, News, & Discussion] riyan65:
If we get mmcblk0 can we boot our device's is any one has try this??? I am thinking that can we make a blank flash file for our device by using other blank flash file which has been leak by Motorola. if we got a developer or someone who is having knowledge about how a blank flash file is been made then we can make one and run in our device's.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Blank flash files are device specific for a particular board & device

They can't be modified - doing so would change the signature

There are no blank flash files for a msm8937 device that Iv seen

The moto g5s could be reflashed using the mmcblk0 sd card method so I would presume this device could be too
[Moto G5 Guides, News, & Discussion] riyan65:
Ok,but till now no one has put the mmcblk0 file.i think no one is going to put the mmcblk0 file as it is such a big file.
[Moto G5 Guides, News, & Discussion] NABECKER16:
what's new, nobody could get the mmcblk0 file or esque do not want to help, this is the last straw.

just because I do not have another motorcycle g5 but towards the attempt, but good.

but it will be necessary to take it with a technician to the end that already came out a method to revive it through a box precisely Medussa pro, but we see light in that help us in this I think it will be the only alternative so far, or wait for the blank to come out flash that as I see it will take time.

---------- Post added at 03:15 AM ---------- Previous post was at 03:13 AM ----------

https://www.youtube.com/watch?v=rJGsZuWkboo
[Moto G5 Guides, News, & Discussion] TheFixItMan:
First post updated with potential method
[Moto G5 Guides, News, & Discussion] NABECKER16:
not working in Motorola xt1671
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Image from

XT1676, model M2675 (3Gb mem + 16Gb storage), NPP25.137-93 (1nov2017), reteu, android 7.0

Might not work with other varients
[Moto G5 Guides, News, & Discussion] takoa:
does not work either
[Moto G5 Guides, News, & Discussion] AllenGAMING01:
XT1677

Can someone with XT1677 model get the Image?
[Moto G5 Guides, News, & Discussion] Preix:
xd

---------- Post added at 07:47 PM ---------- Previous post was at 07:44 PM ----------

I did the tutorial and it does not turn on the phone. What am I doing wrong? Or what should I do?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Unless you have that exact varient it won't work & even if it's an exact match its not yet a confirmed method

There's nothing you can do
[Moto G5 Guides, News, & Discussion] Preix:
I have exactly the same phone model you will have to wait for someone to launch an BlankFlash :/ I will buy an iphone for as long as.

Motorola is a sh1t company.
[Moto G5 Guides, News, & Discussion] Shooting Star Max:
I am afraid that some images won't work on some devices. For example, before I killed my device, I had updated the bootloader to the January version. So, now I think I need either a blankflash based on that bootloader or a mmcblk0 from someone with the exact same (or newer) bootloader version.
[Moto G5 Guides, News, & Discussion] MasterChris14:
Hello friend I have a motorcycle g5 xt1671 and I want to know if you have any blank flash file for this model, will you help me?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Please stop posting the same question across multiple threads - its against the xda rules

There are no known working blank flash files for this device
[Moto G5 Guides, News, & Discussion] riyan65:
I tried Qualcomm premium tool to unbrick but there is an error in opening the port.i think that is the only problem.if we fix that error then I think we can flash the firehose file or msm8937.mbn file.can anyone let me know how to fix that problem.help would be greatly appreciated.thanks in advance.

i am attaching a screenshot link:-

https://photos.app.goo.gl/suizHNb1VqJJV2nr8
[Moto G5 Guides, News, & Discussion] abhimanyuk:
I think you can't because fire horse files are device specific
[Moto G5 Guides, News, & Discussion] h3sh11:
+1 hard brick user here, XT1672 after OTA update (no root or bt unlocked)
[Moto G5 Guides, News, & Discussion] riyan65:
Can anyone let me know what to do in download mode.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Had you previously unlocked the bootloader or changed the firmware on the phone via fastboot?

If no & your phone was totally unmodified take it up with Motorola

Download mode is for Samsung phones

If you mean once you are in bootloader mode & have a fastboot connection with the pc flash stock firmware using fastboot commands
[Moto G5 Guides, News, & Discussion] riyan65:
When I connect my device to qfil emmc tool it shows that the device is in download mode while holding volume down button.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
There are currently no known working blank flash files for that method
[Moto G5 Guides, News, & Discussion] h3sh11:
I was on LOS 14.1 and came back for stock May patch, any chance to recovery this (now or future) ?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
My guess would be that you used firmware which was from a different varient/region

Currently your phone is a paperweight & unless files are leaked will probably remain that way
[Moto G5 Guides, News, & Discussion] h3sh11:
Via box (like Medusa Pro) I can recover this ?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
If the box is able to then yes but the cost of such boxes are normally more than the cost of the phone so unless you have one already or a repair shop that will do it for you it's not worth it
[Moto G5 Guides, News, & Discussion] TheFixItMan:
XT1677 mmcblk0 added to first post
[Moto G5 Guides, News, & Discussion] h3sh11:
I tried on XT1672 but not work, let's wait for someone to upload this version.

In the Moto G5s many users were successful with this procedure, let's hope the G5 has also :good:
[Moto G5 Guides, News, & Discussion] soumitro316:
First method doesn't work for me

So I just tried the first method on my XT1677 16GB Indian Version. Successfully wrote the image to my microSD card using win32diskimager. However, the phone does not boot after inserting the SD card and holding Vol Down + Power buttons. Will try the alternate method and update!

EDIT 1:

Tried the alternative method using Raw Copy Tool and Partition Wizard, still no luck. Phone doesn't boot. Even tried connecting the charger and then powering ON. On the G5S thread, a Linux method is recommended for writing to the SD card. I'll be trying that as well and will then update this post!
[Moto G5 Guides, News, & Discussion] h3sh11:
Use Linux Mint live USB
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Iv added the XT1672 mmcblk0 to the first post

Can those with this varient please try

Also can those who don't have this varient also try this image

When reporting if it worked or not please include your variant & which mmcblk0 you tried
[Moto G5 Guides, News, & Discussion] takoa:
I currently do not have a 32gb card, if someone checks that it works in xt1676, I will buy one.

:crying::crying::crying::crying:
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Unless it's from a 32gb varient I think 16gb sd card should be enough - as long as its big enough to write the image
[Moto G5 Guides, News, & Discussion] jcbotelho:
Works fine in XT1672.

BR 2 GB RAM 32GB.
[Moto G5 Guides, News, & Discussion] Shooting Star Max:
Not working with the XT1670 (2GB/32GB), but I guess that is to be expected. Damn it, Lenovorola!
[Moto G5 Guides, News, & Discussion] takoa:
do not. unfortunately it is not. the image is much heavier.
[Moto G5 Guides, News, & Discussion] VHNZERO:
Not working on my XT1672, tried both methods with no success
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Can you say how you wrote the image to sd card incase the methods I suggested are different
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Is it the 32gb veriant?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Yes sorry its from a 32gb varient so you would need that version
[Moto G5 Guides, News, & Discussion] jcbotelho:
My son uses Linux to write, I don´t know the commands him uses...
[Moto G5 Guides, News, & Discussion] VHNZERO:
Yes, 2GB 32GB, XT1672 model, here's the steps i did:

I formatted my microSD card (it's a 64GB Samsung EVO SDXC)

Wrote the mmcblk0 image with win32diskimager

Placed the SD on the device and hold the vol down power buttons, tried short and long presses, connected on wall charger and on usb on my pc but it does not leave the Qualcomm 9008 state.

Then i repeated the image writing process with hddrawcopy and did the same processes again on the device, no response at all.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
If he could provide the commands used as it seems its not booting through tools used by Windows to write it

I haven't tested as I no longer own this device
[Moto G5 Guides, News, & Discussion] h3sh11:
I helped jcbotelho son with the commands, I'll search in facebook chat and post it here, but i remember who followed in the footsteps of the vaserbanix

"- if your sdcard is seen like " /dev/sdb1"

in terminal aply that comand:

dd bs=4M if=mmcblk0.img of=/dev/sdb status=progress oflag=sync"

https://xdaforums.com/moto-g5s/how-to/blank-flash-montana-t3765150

---------- Post added at 09:18 PM ---------- Previous post was at 09:16 PM ----------

Not work in W10 (only W7) and Rufus is just only work program, we did it in Linux MInt
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Iv updated the first post with the commands for writing image to sdcard - if they are different let me know and I'll amend them
[Moto G5 Guides, News, & Discussion] VHNZERO:
So i need to use Rufus in Linux Mint to write the image, right?
[Moto G5 Guides, News, & Discussion] h3sh11:
No, you must do the commands in the terminal
[Moto G5 Guides, News, & Discussion] VHNZERO:
Yeah, i saw the updated tutorial now and i'm going to test it out, i'll post an update of my results soon.

I did the steps of the updated tutorial and my phone booted to AP Fastboot Flash Mode with the screen on and showing the fastboot screen, confirmed working for XT1672 via Linux Mint Cinnamon SD writing.
[Moto G5 Guides, News, & Discussion] VHNZERO:
I am a bit lost now, how do i flash stock rom to get the device working without the SD card?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Are you able to flash stock firmware via fastboot?

Gpt & bootloader need flashing too

The commands would be

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
[Moto G5 Guides, News, & Discussion] VHNZERO:
Yes i can use fastboot on the device, i did all the commands above but the smartphone doesn't boot without sdcard, after all the steps i connected it on my pc and it's showing qualcomm qdloader 9008
[Moto G5 Guides, News, & Discussion] TheFixItMan:
I'm not sure then - you will have to wait until other users can find a solution

Can you start the phone normally from the bootloader menu
[Moto G5 Guides, News, & Discussion] VHNZERO:
Yes i can use the phone normally, but only with the mmcblk0 sdcard on it, my phone sees it as the internal storage for flashing i think, all of the stuff i do with fastboot goes into the sdcard, but when i'm on android the phone sees the sdcard as android system and the space i can use for apps is the internal storage, proof of that is that i downloaded and configured some apps but messed up my sdcard trying some stuff with fastboot and formatting, then i did the writing process again that involved wiping the sdcard and when i booted my phone again, all i did on android was still there.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
If you booted to fastboot and then removed the sd and then flashed stock firmware what happens

Does it flash or give an error because the sdcard is not there

You may have to manually mount the phones partitions & flash to specific blocks - you'll have to do some reading about it
[Moto G5 Guides, News, & Discussion] TheFixItMan:
It looks like the gpt won't flash because the firmware is older than the version that is currently on your phone

You will need to use the same or newer firmware version

The rest looks likes it's flashing ok
[Moto G5 Guides, News, & Discussion] h3sh11:
Same problem here but it was solved with this rom

https://rsdsecure-cloud.motorola.co...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
[Moto G5 Guides, News, & Discussion] takoa:
What an illusion. Please have someone create the image of the model xt1676.