yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Questions & Answers] echo92:
As far as I know, you would need to re-flash the stock ROM or at least the fsg and non-HLOS images, which are the modem images, after flashing the hw image. The combination of flashing the modem images and the hw image appears to fix the issues you're facing in some cases. AOSP custom ROMs do not have those modem images included, hence maybe why your 2nd SIM still isn't showing up (it's not fully fixed yet).

I'm still confused about what you mean by 'locking', I don't fully understand what you wrote.

Why do you want to hard brick your device again? I would suggest to try to flash the latest stock ROM (NPJS25.93-14-18) from here https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 If you try to flash an older stock ROM, and then try to hard brick your device again, I may consider not assisting.

This is unlikely to be a blankflash problem, blankflashes only flash a new GPT and bootloader when they work. Though we don't really know why devices revert to a G4, it may be due to corruption of the hw partition (which tells the OS what device variant you have), hence why it's been suggested to flash a clean hw image and then flash the stock ROM to hopefully link with the new hw image and load the correct parameters (including dual SIM or fingerprint sensor for the G4 Plus).
[Moto G4 Plus Questions & Answers] bonnyshroff:
Forget the locking thing.

Ignore it.

I have still faith in you people. And I thanks god for existence of people like you out there.

So here I am gonna do now.

1) I first flash that hwXT1643 thing.

2) I flash stock ROM from the link you give.

But I have a doubt.

You said the modem thing.

Do I need to flash modem.img or something also cuz if yes then the link from previous post you gave to download hwXT1643.img doesn't have other files like modem.img or any other.

If you say that those file included in stock ROM then okay I am gonna flash stock ROM straight after flashing hwXT1643.img and tell you what happens.
[Moto G4 Plus Questions & Answers] echo92:
Since you've already flashed the hw.img, you do not need to flash it again. Flashing the stock ROM will flash the modem files as well (as the link you mentioned should have if it was still working) - the stock ROM has non-HLOS.bin and fsg.mbn which are the 2 parts of the baseband and modem. That's likely why you need to flash the stock ROM as well (and why flashing a custom ROM won't fix your issue, if it is fixable).
[Moto G4 Plus Questions & Answers] bonnyshroff:
Nope, din't work.

It again flashes to moto g(4) instead of Moto g4 plus.

Just 1 IMEI, no 2nd IMEI.

Darn.:crying:
[Moto G4 Plus Questions & Answers] echo92:
Hrm, that's a problem. Unfortunately, as you'll find reading through that lost IMEI thread, it's been a long term issue without a real solution that does not involve spending money (either on a motherboard replacement or a new device).

Perhaps the best thing to do is to read through the thread, maybe see if there's another hw.img you could try, but if there is no resolution and you need a 2nd SIM slot, you may have to consider a service centre visit (pay for a replacement motherboard) or a new device, and perhaps consider this an unfortunate consequence of ROM flashing.
[Moto G4 Plus Questions & Answers] Tengakallan:
Flash any firmware ,that shows 2 imei (still no network ,that's ok) .backup that firmware in twrp. after Flash any custom rom with twrp. eg:experiance rom nougat version) reboot .then Flash uk modem (it is in xda thread) via twrp reboot . I think you will get your signal back .
[Moto G4 Plus Questions & Answers] bonnyshroff:
No Firmware (STOCK OR CUSTOM ROM) showing 2 IMEI..

All changed to one friend...!
[Moto G4 Plus Questions & Answers] Tengakallan:
Model?
[Moto G4 Plus Questions & Answers] bonnyshroff:
MOTO G4 PLUS

HARDWARE Info -> SKU ===> XT1643

MODEL NUMBER => MOTO G4 (actually phone is Moto G4 PLUS)

while checking colleague's phone(same as mine), the baseband version is different.

My baseband version is ==> M8952_70030.25.03.62.02R DFLT_FSG

While it should be ==> M8952_70030.25.03.62.02R ATHENE_INDIA_DSDS_CUST

Other details seem normal.!
[Moto G4 Plus Questions & Answers] Tengakallan:
https://xdaforums.com/moto-g4-plus/help/moto-g4-pluss-model-changed-to-g4-lost-t3496912/page15 try with this1643 hw.img file

Don't forgot to change rename it to hw.img.

---------- Post added at 08:22 AM ---------- Previous post was at 08:18 AM ----------
[Moto G4 Plus Questions & Answers] bonnyshroff:
Actually, echo92 gave me the same link you gave me above.. It didn't work. See #647/648 of this thread for our discussion. on Page 64-65 I guess.

But I try it again..

---------- Post added at 08:15 AM ---------- Previous post was at 07:37 AM ----------

Tried.

Downloaded a new hwXT1643.img

renamed it to hw.img

started twrp.

Executed the following codes :

fastboot flashing unlock

adb push hw.img /data/media/0/hw.img
adb shell dd if=/data/media/0/hw.img of=/dev/block/mmcblk0p43

Phone restarted.

Again started bootloader.

Downloaded a new stock ROM from here

Flashed the stock ROM using the commands in the link.

Still same issue.

Baseband is different.

Moto G4 instead of Moto G4 Plus

No 2nd IMEI, FP sensor
[Moto G4 Plus Questions & Answers] Tengakallan:
Use this method for pushing the hw.img

But you need to enter twrp for this

But that is easy ,you can Flash twrp for athene via fast boot.https://xdaforums.com/moto-g4-plus/help/moto-g4-pluss-model-changed-to-g4-lost-t3496912/page25
[Moto G4 Plus Questions & Answers] bonnyshroff:
This phone doesn't want to change to Moto G4 plus.

Still same problem..

Steps I did.

1) Unlocked bootloader, as it was locked by flashing stock ROM

2) Flashed TWRP Recovery Image.

3) Downloaded hw.img from the link you given.. (the guy has two files given. I rejected single sim file.)

4) Entered into TWRP.

Executed the following command

adb push hw.img /dev/block/mmcblk0p43

After this, the phone getting Rebooted but I pressed Volume down + power key to stop rebooting into OS.

5) Later I flashed the stock ROM from the link I previously given.

And this Pikachu doesn't want to evolve to Raichu.

(Still the same Baseband and same Phone Model Number (Still stays G4))
[Moto G4 Plus Questions & Answers] Tengakallan:
Try to Flash custom 7.1 rom like xperiance

After Flash any modem for athene

Uk version modem available in moto g4 plus thread.maybe atleat your one sim work.
[Moto G4 Plus Questions & Answers] bonnyshroff:
No, this is not a solution.

I don't want network detection.

If I can get 2 IMEI then I can sell this crap..!
[Moto G4 Plus Questions & Answers] bonnyshroff:
Okay I did it.

Phone is working as new.

Things I did.

I flashed the modem.img. - The actual problem.

It brings me the 2 imei. but the baseband version became unknown.

So I reflashed with the stock firmware. And it is working like a new model. (I swear I am never gonna flash to custom ROM again.)

Thanx to XDA Community And I am very grateful to echo92.

Soon I will post the whole thing out with the required files. Will post by today or Tomorrow.

I can receive calls, can call someone. Even VOLTE is working.

:victory::laugh::D
[Moto G4 Plus Questions & Answers] bonnyshroff:
Solution for 2nd IMEI lost, no fp SENSOR working, phone changed to moto g4 instead of moto g4 plus.

Click the link below

https://xdaforums.com/moto-g4-plus/how-to/solve-moto-g4-plus-one-imei-fp-sensor-t3800410/post76735630#post76735630
[Moto G4 Plus Questions & Answers] gioyocho:
For me this topic helped. I had bricked my device and computer sees only qualcomm driver. Moto g4

https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761
[Moto G4 Plus Questions & Answers] sanjaybaidya:
Please help
[Moto G4 Plus Questions & Answers] akarsp:
same problem here please help
[Moto G4 Plus Questions & Answers] echo92:
sanjaybaidya appears to have gotten the blankflash to work by disabling device signature enforcement - if you are on Windows 10 or 8.1, it's recommended to disable that (or go through the bcd testing mode as described in the original post), else the drivers won't load.

You will also want to try the blankflash here - if you have a G4/G4 Plus - https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761 Older blankflashes, such as the ones provided in this post, may not work otherwise. The blankflash provided in that other thread is currently the newest G4/G4 Plus blankflash leaked to us.
[Moto G4 Plus Questions & Answers] sanjaybaidya:
I don't how i solved this problem, but i tried 20-25 times after disabling test mode in my pc then the problem solved.
[Moto G4 Plus Questions & Answers] riyan65:
Can you ask the Motorola employee to release the Moto g5 blank flash file
[Moto G4 Plus Questions & Answers] dilali5485:
moto g2 xt1068 Titan blanflash working send me

moto g2 xt1068 Titan blanflash working send me
[Moto G4 Plus Questions & Answers] 22matthis03:
[ 0.000] Opening device: \\.\COM4

[ 0.000] Detecting device

[ 0.000] ...cpu.id = 2418 (0x972)

[ 0.000] ...cpu.sn = 39883993 (0x26094d9)

[ 0.000] Opening singleimage

[ 0.000] Loading package

[ 0.000] ...filename = singleimage.pkg.xml

[ 0.000] Loading programmer

[ 0.016] ...filename = programmer.mbn

[ 0.016] Sending programmer

[ 0.234] Handling things over to programmer

[ 0.234] Identifying CPU version

[ 0.234] Waiting for firehose to get ready

[ 60.483] Waiting for firehose to get ready

[120.575] ...MSM8952 unknown

[120.575] Determining target secure state

[120.577] Waiting for firehose to get ready

[180.671] ...secure = no

[180.681] Flashing GPT...

[180.682] Flashing partition:0 with gpt_main0.bin

[180.683] Initializing storage

[180.685] Waiting for firehose to get ready

[240.766] Configuring device...

[240.767] Waiting for firehose to get ready

[300.856] Waiting for firehose to get ready

[361.005] Waiting for firehose to get ready

[421.083] Waiting for firehose to get ready

[481.169] ERROR: do_package()->do_recipe()->do_flash()->gpt_flash()->get_storage()->init_storage()->firehose_do_fmt()->do_recipe()->do_configure()->buffer_read()->device_read()->IO error

[481.170] Check qboot_log.txt for more details

[481.170] Total time: 481.170s

FAILED: qb_flash_singleimage()->do_package()->do_recipe()->do_flash()->gpt_flash()->get_storage()->init_storage()->firehose_do_fmt()->do_recipe()->do_configure()->buffer_read()->device_read()->IO error

this happens every time, can you help me??
[Moto G4 Plus Questions & Answers] echo92:
You may wish to try the blankflash from this guide https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761 The blankflashes here are too old, and the opening poster hasn't updated them in a long time.
[Moto G4 Plus Questions & Answers] zydmeister:
thanks so much bro!!! it worked but it's tricky to make recognisable with blank flash :) :) :) :fingers-crossed: :good: :laugh: :cool:
[Moto G4 Plus Questions & Answers] HeethJain21:
Thank you very much. You are a savior!!
[Moto G4 Plus Questions & Answers] SMARTHACKER67:
Thanks ton bro you are saviour
[Moto G4 Plus Questions & Answers] Alee_Khan:
Here is something i found if it can help

http://gadgetstwist.com/failed-flashing-process-flash-partition-gpt-bin/
[Moto G4 Plus Questions & Answers] bonnyshroff:
Your Stock is not might latest. Try searching for latest stock firmware. Your bootloader is latest and when you install old stock, you create a serious problem.

I did the same before.

I don't know if I am correct but try downloading a latest stock of moto G4 Plus and try again.
[Moto G4 Plus Questions & Answers] luckyno7:
Moto G4 plus waiting for device

Hi,

I tried the 1st step and it is not working for me. I tried pressing and holding the power button and volume down button while simultaneously clicking on the blank-flash.bat file. It is still not working for me.

Any further help is appreciated.
[Moto G4 Plus Questions & Answers] echo92:
Try the blankflash from here https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761
[Moto G4 Plus Questions & Answers] Mikebsimte:
FAILED (blank-flash:greet-device:error reading packet)

am still getting this error [U]"FAILED (blank-flash:greet-device:error reading packet)"[/U]over and over again, can you please help

---------- Post added at 06:26 AM ---------- Previous post was at 06:06 AM ----------

OKAY [ 0.003s]

greeting device for command mode

opening device: \\.\COM3

OKAY [ 0.003s]

greeting device for command mode

opening device: \\.\COM3

OKAY [ 0.002s]

greeting device for command mode

opening device: \\.\COM3

OKAY [ 0.003s]

greeting device for command mode

opening device: \\.\COM3

OKAY [ 0.002s]

greeting device for command mode

opening device: \\.\COM3

OKAY [ 0.002s]

greeting device for command mode

opening device: \\.\COM3

OKAY [ 0.002s]

greeting device for command mode

opening device: \\.\COM3

OKAY [ 0.002s]

greeting device for command mode

opening device: \\.\COM3

OKAY [ 0.002s]

greeting device for command mode

opening device: \\.\COM3

OKAY [ 0.002s]

greeting device for command mode

opening device: \\.\COM3

OKAY [ 0.002s]

HELP ME FIX THIS PLEASE

greeting device for command mode

FAILED (blank-flash:greet-device:error reading packet)
[Moto G4 Plus Questions & Answers] mukesh555:
hi bro this is the error I'm getting, help me out please.

C:\Users\Bablu\Downloads\blankflash1\blankflash>.\qboot.exe blank-flash

< waiting for device >

Motorola qboot utility version 3.40

[ 0.000] Opening device: \\.\COM8

[ 0.002] Detecting device

[ 0.004] ...cpu.id = 2418 (0x972)

[ 0.004] ...cpu.sn = 14330616 (0xdaaaf8)

[ 0.005] Opening singleimage

[ 0.179] Loading package

[ 0.195] ...filename = singleimage.pkg.xml

[ 0.195] Loading programmer

[ 0.195] ...filename = programmer.mbn

[ 0.195] Sending programmer

[ 0.429] Handling things over to programmer

[ 0.429] Identifying CPU version

[ 0.429] Waiting for firehose to get ready

[ 9.927] ReadFile() failed, GetLastError()=0

[ 9.927] ReadFile() failed, GetLastError()=0

[ 47.044] ReadFile() failed, GetLastError()=0

[ 47.060] ReadFile() failed, GetLastError()=0

[ 47.060] ReadFile() failed, GetLastError()=0

[ 56.147] ReadFile() failed, GetLastError()=0

[ 56.147] ReadFile() failed, GetLastError()=0

[ 62.704] Waiting for firehose to get ready

[ 74.715] ReadFile() failed, GetLastError()=0

[ 74.747] ReadFile() failed, GetLastError()=0

[122.847] ...MSM8952 unknown

[122.847] Determining target secure state

[122.847] Waiting for firehose to get ready

[125.863] WriteFile() failed, GetLastError()=0

[183.324] ...secure = no

[183.356] Flashing GPT...

[183.402] Flashing partition:0 with gpt_main0.bin

[183.402] Initializing storage

[183.418] Waiting for firehose to get ready

[186.437] WriteFile() failed, GetLastError()=0

[243.586] Configuring device...

[243.586] Waiting for firehose to get ready

[246.594] WriteFile() failed, GetLastError()=0

[303.637] Waiting for firehose to get ready

[306.652] WriteFile() failed, GetLastError()=0

[363.752] Waiting for firehose to get ready

[366.767] WriteFile() failed, GetLastError()=0

[423.833] Waiting for firehose to get ready

[426.849] WriteFile() failed, GetLastError()=0

[483.963] ERROR: do_package()->do_recipe()->do_flash()->gpt_flash()->get_storage()->init_storage()->firehose_do_fmt()->do_recipe()->do_configure()->get_fh()->device_open()->error opening device

[483.963] Check qboot_log.txt for more details

[483.963] Total time: 483.974s

FAILED: qb_flash_singleimage()->do_package()->do_recipe()->do_flash()->gpt_flash()->get_storage()->init_storage()->firehose_do_fmt()->do_recipe()->do_configure()->get_fh()->device_open()->error opening device
[Moto G4 Plus Questions & Answers] Mikebsimte:
same problem here

please do inform if there are any soln to solve this
[Moto G4 Plus Questions & Answers] echo92:
If you're running a Moto G4 or G4 Plus (not G4 Play), try the latest blankflash we have here: https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761
[Moto G4 Plus Questions & Answers] Mikebsimte:
thanks, but my phone is redmi not 5 pro. i have tried it but failed
[Moto G4 Plus Questions & Answers] echo92:
Hmm, if your device is bricked via the anti-rollback feature included in more recent MIUI ROMs, there's not much we can do to help. You'd have to contact Xiaomi to get them to authorise your Mi account so you can unbrick your device: https://xdaforums.com/redmi-note-5-pro/how-to/tutorial-unbrick-redmi-note-5-whyred-t3816260 Alternatively, take your device to a Xiaomi service centre if there's one in your country.
[Moto G4 Plus Questions & Answers] Skippyroo:
Hi - I'm trying to work through the unbricking process for my Moto G4 Plus. I've installed the Qualcomm driver. I went into Device Manager, viewed hidden devices and can see Qualcomm HS-USB QDLoader 9008 (Com3). The problem is my laptop won't recognise my phone - even when I press the power button, or power and vol down, or try plugging it into a different USB port, I keep getting a Code 45 error (device not found). Similarly when I try blank-flash.bat in the CMD manager, I get stuck on "waiting for device". Any suggestions? I'm not a tech-head but try my best to follow instructions correctly.

Laptop is running Windows 10 if it matters.
[Moto G4 Plus Questions & Answers] Luke1212:
sir.. still connecting g4 plus to laptop after installing qualcom driver x64 based, the led is blink now alos.. nothing is detected...what to do now??

after getting into device manager, the following problem occured..

unknown usb device(device descriptor request failed)

confused now.
[Moto G4 Plus Questions & Answers] echo92:
Hmm, have you also entered bcdtesting mode or disabled driver signature enforcement? https://www.howtogeek.com/167723/ho...8.1-so-that-you-can-install-unsigned-drivers/

Also, can you verify that you're using the original USB cable or a high quality data USB cable? Try another computer too - there seems to be various reports suggesting that USB 2.0 ports might be more amenable than USB 3.0.

---------- Post added at 02:28 PM ---------- Previous post was at 02:26 PM ----------

What happened to get your device in this state? If you're running Windows 10 or 8.1, do you have bcdtesting mode enabled as in the opening post instructions or disabled driver signature enforcement?

Also, check that you're using the original USB cable, and that the cable is connected securely to your device.
[Moto G4 Plus Questions & Answers] Luke1212:
My lapy is win 10. I installed stock rom signed one.. but after installing i got only marshmallow only.. so in a while i got updates.. for nougat.. i updated.. afer downloading the updAte.. it asked ms to install mos or some other time.. i installed at thAt time only.. so i startsd thd process.. and during installation.. almost reached 50% sudddnly it goes off.. when i tried to connect charging point which original got along with this mobile.. thdre is noting booted.. only thing is shown.. that is led blinking in white color.. thats the whole story.. 3 days gone.. still ssarching all nes threds.. pls help me to get out of thiz..

Thanks for replying..
[Moto G4 Plus Questions & Answers] fedyxz:
Hi! I have serious problems. No imei, no baseband, restart when pess power buttom then a factory reset in the firts start. Original software, never flash or somethinks. Only have Ubuntu (dont show with lsusb) and Sony m2 ( show with lsusb: 1d6b:0002 Linux 3.4.0-gc82e7of ehci_hcd qualcomm on-chip ehci host controller msm_hsusb_host). What can i do? Please, xt1641.. Sorry for my engish
[Moto G4 Plus Questions & Answers] echo92:
Ouch - so you flashed a really old stock ROM, and then hard bricked when you chose to use OTA updates. That's not good. Generally, it's recommended NOT to use OTA updates when you've downgraded.

Again, have you disabled the driver signature enforcement or entered bcd testing mode to allow the Qualcomm driver to load? https://www.howtogeek.com/167723/ho...8.1-so-that-you-can-install-unsigned-drivers/ If need be, try a USB 2.0 port and also ensure you're using the original USB cable or a high quality USB data cable to connect.

You may wish to look at this thread for the latest blankflash we have: https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761

---------- Post added at 02:43 PM ---------- Previous post was at 02:42 PM ----------

What happened when this happened, was it sudden or after an update? Is your bootloader still locked?
[Moto G4 Plus Questions & Answers] fedyxz:
---------- Post added at 02:43 PM ---------- Previous post was at 02:42 PM ----------

[/COLOR]

What happened when this happened, was it sudden or after an update? Is your bootloader still locked?[/QUOTE]

I dont know.

I used the phone and it restarted. later it did not have base band neither sign nor wifi. I did factory reset and worse, I could not pass for welcome. try with update zip before another factory reset but it gave error. this factory, neither adb nor fastboot, nothing, out of fear I did not..

Its locked
[Moto G4 Plus Questions & Answers] echo92:
I dont know.

I used the phone and it restarted. later it did not have base band neither sign nor wifi. I did factory reset and worse, I could not pass for welcome. try with update zip before another factory reset but it gave error. this factory, neither adb nor fastboot, nothing, out of fear I did not..

Its locked[/QUOTE]

Hmm, if your bootloader is locked, there's not much we can do. That sounds like firmware corruption or a hardware failure. As you've already performed a factory reset, you could try re-flashing the stock firmware: NPJS25.93-14-18 is here (April 2018 firmware): https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 If that doesn't work, you may have to consider taking your device to a service centre for repair, or purchase a new device.
[Moto G4 Plus Questions & Answers] fedyxz:
Hmm, if your bootloader is locked, there's not much we can do. That sounds like firmware corruption or a hardware failure. As you've already performed a factory reset, you could try re-flashing the stock firmware: NPJS25.93-14-18 is here (April 2018 firmware): https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 If that doesn't work, you may have to consider taking your device to a service centre for repair, or purchase a new device.[/QUOTE]

I try this but I cant, no devices found.. I think it's a hardware problem, what I do not understand is how the sony m2 detected via terminal, would flash from here? or in ubuntu could you create a rule to detect it or is it impossible? :crying:
[Moto G4 Plus Questions & Answers] echo92:
Is it possible that the M2 has installed its own drivers, allowing you to detect the device? Have you installed ADB and fastboot drivers on your computer?

Though I don't know if this will work on Ubuntu (should do), here's the driver download for Linux (credit to: https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 )

Linux: sudo apt-get install android-tools-fastboot && sudo apt-get install android-tools-adb

Failing that, you may have to find a Windows computer to try.
[Moto G4 Plus Questions & Answers] fedyxz:
Adb and fastboot installed. And nothing. Have xp sp2, but i cant install Motorola drivers, and blank flash its for 64bits not?

ask, if I create a script from sony m2 maybe I can install the rom from there? I do not know how I would detect the fastboot mode knowing that it detects it as I said above (with lsusb)
[Moto G4 Plus Questions & Answers] echo92:
Hmm, can you update your computer to XP SP3? The Motorola drivers appear to require XP SP3 or greater.

Blankflash is not 64 bit exclusive - but it's really only for devices that have a corrupted bootloader. As you can boot and load to system, but without Wi-Fi/baseband, then it's unlikely the blankflash would help you in this case.

I'm not familiar with Linux/Ubuntu, apologies. Perhaps someone else with more Linux experience can help you.
[Moto G4 Plus Questions & Answers] fedyxz:
Bad luckyy, well, thanks. I dont know too