Actually I did it with hw.img posted long ago for xt1643 ,but result is my g4 plus become g4 with no fingerprint and network .
Last edited by a moderator:
adb shellHow to get my broken hw.img file for editing
Please ...

I have the same problem.Hi! @mexifunk thanks for the file, It was very usefull I just "intelligently" made a merge between your file and the XT1643 (Indian) that is in some other post, Your file had zeros in some places that the XT1643 didn't, i just pasted that information and changed the necesary stuff according to our variant and left the information that wasn't zero from your file intact and it worked!!! signal and fingerprint, what I can't test is if this works for single sim variants because mine is dual.
Just enter to TWRP and do this from computer's console:
For Dual Sim:
<snipped>Code:adb push hw.img /dev/block/mmcblk0p43
adb push hw.img /dev/block/mmcblk0p43
Not Yet..Has anyone made any progress?
Assuming you have the same issue as mentioned in the OP, missing fp, imei, no network etc. You can try the following steps:
Note: If your device is rooted you can do this without rebooting to twrp (skip that particular step). Remember to give access to adb when prompted. If you are not rooted and also do not wish to flash custom recovery, you can temporarily boot through twrp for this purpose instead of flashing it using "fastboot boot twrp.img" without quotes.
- Download this zip, extract them in your adb directory, it contains the required images to be pushed via adb: https://drive.google.com/file/d/0B9tngVBGIajVOFFUeDRlTHg4a3c/view
- Flash TWRP recovery: https://dl.twrp.me/athene/twrp-3.1.1-0-athene.img
- Reboot to twrp (can skip this only if your device is rooted) > connect your device to PC > open cmd in the same directory i.e., where you have adb and those image files > type "adb devices" (without quotes) and hit enter to make sure your device is recognized via adb in recovery. It will show your device serial number probably. If not recognized check your adb setup, drivers etc. there are tons of guide here in xda for that.
- If recognized, execute the following adb commands one by one:
Code:adb push modem.img /dev/block/mmcblk0p1 adb push fsg.img /dev/block/mmcblk0p16 adb push hw.img /dev/block/mmcblk0p43Hope this helps:fingers-crossed:
- Once done flash the latest firmware from here, read the instructions carefully: https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
you are such a genius man after doing this my fingerprint is start working but i dont have the network i manullay search for the network but it gives me error that unable to search the network.... please do some thing for the network... you are such a g4 hero for me
---------- Post added at 07:41 PM ---------- Previous post was at 07:15 PM ----------
finally i fix my phone i flash my hw edited file using adb push my fingerprint and network is working...
thank you all who helped me in this issue special thanx to @givitago who edit my hw file. and lCrD512 who teach me how to do partition of.... this work for me :good::good::good::good::good::good:
Perhaps the restore of the TWRP backup was unnecessary. I'd guess that it was the modem replacement that may have fixed the issue.
If it were me, I'd follow the instructions here, including re-downloading the fastboot files.
Stock Firmware Sept 01 Security Patch to the letter (not running the batch file but rather using the manual method.
I would leave out the unlocking/locking of the bootloader and also flash the HW file.
These are the lines you should run, one by one in order and from the dos command prompt. Ensure all the files including hwXT1643.img are in the fastboot folder.
Code: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 system system.img_sparsechunk.5 fastboot flash system system.img_sparsechunk.6 fastboot flash system system.img_sparsechunk.7 fastboot flash modem NON-HLOS.bin fastboot flash hw hwXT1643.img fastboot erase modemst1 fastboot erase modemst2 fastboot flash fsg fsg.mbn fastboot erase cache fastboot erase userdata fastboot erase customize fastboot erase clogo fastboot reboot
Assuming you have the same issue as mentioned in the OP, missing fp, imei, no network etc. You can try the following steps:
Note: If your device is rooted you can do this without rebooting to twrp (skip that particular step). Remember to give access to adb when prompted. If you are not rooted and also do not wish to flash custom recovery, you can temporarily boot through twrp for this purpose instead of flashing it using "fastboot boot twrp.img" without quotes.
- Download this zip, extract them in your adb directory, it contains the required images to be pushed via adb: https://drive.google.com/file/d/0B9tngVBGIajVOFFUeDRlTHg4a3c/view
- Flash TWRP recovery: https://dl.twrp.me/athene/twrp-3.1.1-0-athene.img
- Reboot to twrp (can skip this only if your device is rooted) > connect your device to PC > open cmd in the same directory i.e., where you have adb and those image files > type "adb devices" (without quotes) and hit enter to make sure your device is recognized via adb in recovery. It will show your device serial number probably. If not recognized check your adb setup, drivers etc. there are tons of guide here in xda for that.
- If recognized, execute the following adb commands one by one:
Code:adb push modem.img /dev/block/mmcblk0p1 adb push fsg.img /dev/block/mmcblk0p16 adb push hw.img /dev/block/mmcblk0p43Hope this helps:fingers-crossed:
- Once done flash the latest firmware from here, read the instructions carefully: https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
Assuming you have the same issue as mentioned in the OP, missing fp, imei, no network etc. You can try the following steps:
Note: If your device is rooted you can do this without rebooting to twrp (skip that particular step). Remember to give access to adb when prompted. If you are not rooted and also do not wish to flash custom recovery, you can temporarily boot through twrp for this purpose instead of flashing it using "fastboot boot twrp.img" without quotes.
- Download this zip, extract them in your adb directory, it contains the required images to be pushed via adb: https://drive.google.com/file/d/0B9tngVBGIajVOFFUeDRlTHg4a3c/view
- Flash TWRP recovery: https://dl.twrp.me/athene/twrp-3.1.1-0-athene.img
- Reboot to twrp (can skip this only if your device is rooted) > connect your device to PC > open cmd in the same directory i.e., where you have adb and those image files > type "adb devices" (without quotes) and hit enter to make sure your device is recognized via adb in recovery. It will show your device serial number probably. If not recognized check your adb setup, drivers etc. there are tons of guide here in xda for that.
- If recognized, execute the following adb commands one by one:
Code:adb push modem.img /dev/block/mmcblk0p1 adb push fsg.img /dev/block/mmcblk0p16 adb push hw.img /dev/block/mmcblk0p43Hope this helps:fingers-crossed:
- Once done flash the latest firmware from here, read the instructions carefully: https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
He removed those file, may be because those files are including old modem and fsg..The link provided is not valid....plzzzz help.....plzzz give me different link
Assuming you have the same issue as mentioned in the OP, missing fp, imei, no network etc. You can try the following steps:
Note: If your device is rooted you can do this without rebooting to twrp (skip that particular step). Remember to give access to adb when prompted. If you are not rooted and also do not wish to flash custom recovery, you can temporarily boot through twrp for this purpose instead of flashing it using "fastboot boot twrp.img" without quotes.
- Download this zip, extract them in your adb directory, it contains the required images to be pushed via adb: https://drive.google.com/file/d/0B9tngVBGIajVOFFUeDRlTHg4a3c/view
- Flash TWRP recovery: https://dl.twrp.me/athene/twrp-3.1.1-0-athene.img
- Reboot to twrp (can skip this only if your device is rooted) > connect your device to PC > open cmd in the same directory i.e., where you have adb and those image files > type "adb devices" (without quotes) and hit enter to make sure your device is recognized via adb in recovery. It will show your device serial number probably. If not recognized check your adb setup, drivers etc. there are tons of guide here in xda for that.
- If recognized, execute the following adb commands one by one:
Code:adb push modem.img /dev/block/mmcblk0p1 adb push fsg.img /dev/block/mmcblk0p16 adb push hw.img /dev/block/mmcblk0p43Hope this helps:fingers-crossed:
- Once done flash the latest firmware from here, read the instructions carefully: https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
he.img file not working in my motog4 plus.the twrp got struck while flashing this file. And the command cannot do any thing...what to do...please help meHi! @mexifunk thanks for the file, It was very usefull I just "intelligently" made a merge between your file and the XT1643 (Indian) that is in some other post, Your file had zeros in some places that the XT1643 didn't, i just pasted that information and changed the necesary stuff according to our variant and left the information that wasn't zero from your file intact and it worked!!! signal and fingerprint, what I can't test is if this works for single sim variants because mine is dual.
Just enter to TWRP and do this from computer's console:
For Dual Sim:
or (not tested)Code:adb push hw.img /dev/block/mmcblk0p43
For single sim moto g4 plusCode:adb push hwSingleSim.img /dev/block/mmcblk0p43
Reflash the latest firmware via fastboot and it might be done!
Check on earlier posts, I don't have this device anymore, but as far as I remember you can't "flash" the file AT ALL with any recovery, you have to either copy it to your SD card then move it and then replace it on the location using the filemanager under TWRP, or with the device conected to the pc and booted into TWRP make an "adb push <the file> <wherever the hw partition goes>"he.img file not working in my motog4 plus.the twrp got struck while flashing this file. And the command cannot do any thing...what to do...please help me