Moto G4 Plus's Model changed to G4,lost one imei and finger print.

tk8320

Member
Jun 1, 2018
33
0
0
Thank you m.swastik for noticing the issue in the hw partition and MK+2017 for posting the image! The hw partition was indeed corrupted as the attached diff shows. After copying over all those bytes in the attached image and using dd to overwrite my hw partition, my Moto G4 plus is a Plus again. No need to reflash the OS as the firmware simply reads this partition on startup. FYI, I have an XT1644 and even though MK+2017's image was an XT1642, it worked fine. Note I didn't copy MK+2017's entire hw.img, only the first few bytes of it.

Next time I flash, I won't be relying on the very partial TWRP backup, but rather use the script I posted here:

Complete Partition Backup Script

HEY nice to hear that it worked fr u but in my moto 4 plus XT1643 i am unable topush hw image it completes upto 100% but stuck in between after rebooting it jump back to faulty hw again help mee

---------- Post added at 04:40 AM ---------- Previous post was at 04:31 AM ----------

Anybody not having this issue can you please share your /dev/block/platform/7824900.sdhci/by-name/hw file.
My hw file has __UTAG_TAIL__ just after __UTAG_HEAD__ so may be due to this our hw properties are not being read. Since __UTAG_TAIL__ should be at the end of the file, all scripts stops executing after reading UTAG_TAIL.

Also, people having this issue can try deleting __UTAG_TAIL__ from this file using ES Explorer and try flashing firmware and post results.


hey bro can u post/dev/block/platform/7824900.sdhci/by-name copy
 
Jun 27, 2018
24
1
0
drive link not found

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.
  • 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/mmcblk0p43
Hope this helps:fingers-crossed:



Google drive link for modem and hw file error....is there any other link
 

BrunoF.

Member
Oct 3, 2018
5
0
0
Those images were obsolete so I removed them for good. Search around here and you might get new images maybe. I don't have this device now so never pulled newer images.
Hey, can you help me? I got this error while using the command in cmd
adb: error: target 'mmcblk0p1' is not a directory, you know how to solve?

---------- Post added at 07:04 AM ---------- Previous post was at 06:56 AM ----------

Did you re-name hw.img or did you download that hwxt1643.img from here https://forum.xda-developers.com/showpost.php?p=73915567&postcount=125

I see you're pushing hwxt1643.img rather than hw.img and I want to establish its source.
Hey, can you help me? I got this error while using the command in cmd
adb: error: target 'mmcblk0p1' is not a directory, you know how to solve?
 

echo92

Senior Member
Jan 1, 2017
3,730
1,987
223
Plymouth
Hey, can you help me? I got this error while using the command in cmd
adb: error: target 'mmcblk0p1' is not a directory, you know how to solve?

---------- Post added at 07:04 AM ---------- Previous post was at 06:56 AM ----------



Hey, can you help me? I got this error while using the command in cmd
adb: error: target 'mmcblk0p1' is not a directory, you know how to solve?
What commands are you using? Is your device rooted and with TWRP and is your device booted to recovery whilst using these commands?
 
  • Like
Reactions: BrunoF.

Kaejin

Member
Feb 21, 2014
25
12
33
Recife
plus.google.com
FINALLY a solution!!!

---------- Post added at 07:40 AM ---------- Previous post was at 07:37 AM ----------

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:
Code:
adb push hw.img /dev/block/mmcblk0p43
or (not tested)
Code:
adb push hwSingleSim.img /dev/block/mmcblk0p43
For single sim moto g4 plus


Reflash the latest firmware via fastboot and it might be done!


THANK YOU SOOO MUCH!!!! Worked on my XT1640 (brazil dual chip variant). Flashed first the HW file and then the last stock firmware. Baseband and signal are back too!!!
 
Last edited:

clonechill

Senior Member
Nov 16, 2017
136
57
38
26
Please help

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.
  • 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/mmcblk0p43
Hope this helps:fingers-crossed:
Whenever I flash these codes, I get the error:

Code:
adb: error: failed to copy 'modem.img' to '/dev/block/mmcblk0p1': couldn't creat
e file: Permission denied

C:\Program Files (x86)\Minimal ADB and Fastboot>adb push fsg.img /dev/block/mmcb
lk0p16
adb: error: failed to copy 'fsg.img' to '/dev/block/mmcblk0p16': couldn't create
 file: Permission denied
 

clonechill

Senior Member
Nov 16, 2017
136
57
38
26
Please help me

:crying:
Thank you m.swastik for noticing the issue in the hw partition and MK+2017 for posting the image! The hw partition was indeed corrupted as the attached diff shows. After copying over all those bytes in the attached image and using dd to overwrite my hw partition, my Moto G4 plus is a Plus again. No need to reflash the OS as the firmware simply reads this partition on startup. FYI, I have an XT1644 and even though MK+2017's image was an XT1642, it worked fine. Note I didn't copy MK+2017's entire hw.img, only the first few bytes of it.

Next time I flash, I won't be relying on the very partial TWRP backup, but rather use the script I posted here:

Complete Partition Backup Script
I have an xt1642 (european variant with emea baseband) now the baseband is changed to M8952_70030.25.03.62.02R and both the sim cards are detected but I won't get network. The IMEI has changed to MEID when dialling *#06# and only SIM1 shows the old IMEI number the other SIM shows some weird alphanumeric code. No network is the problem. What do I do? I tried flashing images of hw, modem and fsg posted by @echo92 but with no success.

as a final resort, how can I completely brick the phone and start installing everything from scratch? Please help me do something.
 

faisalkhan77

New member
Nov 6, 2017
1
0
0
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.
  • 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/mmcblk0p43
Hope this helps:fingers-crossed:
Link is not Working plz help..
 

HeethJain21

Senior Member
Mar 10, 2015
457
206
73
Mumbai
:crying:

I have an xt1642 (european variant with emea baseband) now the baseband is changed to M8952_70030.25.03.62.02R and both the sim cards are detected but I won't get network. The IMEI has changed to MEID when dialling *#06# and only SIM1 shows the old IMEI number the other SIM shows some weird alphanumeric code. No network is the problem. What do I do? I tried flashing images of hw, modem and fsg posted by @echo92 but with no success.

as a final resort, how can I completely brick the phone and start installing everything from scratch? Please help me do something.
Link is not Working plz help..
Try this method. It worked for me but I am not sure if it would work for other devices or not.

Edit: didnt add the link: https://forum.xda-developers.com/showpost.php?p=78024403&postcount=11
 
Last edited:

Risky_05

New member
May 30, 2018
3
0
0
same issue.

Thank you m.swastik for noticing the issue in the hw partition and MK+2017 for posting the image! The hw partition was indeed corrupted as the attached diff shows. After copying over all those bytes in the attached image and using dd to overwrite my hw partition, my Moto G4 plus is a Plus again. No need to reflash the OS as the firmware simply reads this partition on startup. FYI, I have an XT1644 and even though MK+2017's image was an XT1642, it worked fine. Note I didn't copy MK+2017's entire hw.img, only the first few bytes of it.

Next time I flash, I won't be relying on the very partial TWRP backup, but rather use the script I posted here:

Complete Partition Backup Script

please can you guide me by providing the exact steps and files.
please hep!!!!!
 

Ruan Carlos

Member
Dec 17, 2018
5
0
0
Good afternoon! I have a motorola g4 plus (xt1640) Brazilian, when I put the baseband of Brazil it does not work, I tried several hw, and it did not work, if someone has hw to pass me to see.
 

Rushak Pachpande

New member
Jan 19, 2019
1
0
0
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:
please send me a link for your edited hw file please:fingers-crossed:

---------- Post added at 09:34 PM ---------- Previous post was at 09:17 PM ----------

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.
  • 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/mmcblk0p43
Hope this helps:fingers-crossed:
it cannot push hw file "E:\Minimal ADB and Fastboot\123456>adb push hw1.img /dev/block/mmcblk0p43
adb: error: failed to copy 'hw1.img' to '/dev/block/mmcblk0p43': couldn't read from device
hw1.img: 0 files pushed. 0.2 MB/s (8388608 bytes in 35.884s)"
this problem arises....
please help
:crying:
 

HeethJain21

Senior Member
Mar 10, 2015
457
206
73
Mumbai
please send me a link for your edited hw file please:fingers-crossed:

---------- Post added at 09:34 PM ---------- Previous post was at 09:17 PM ----------



it cannot push hw file "E:\Minimal ADB and Fastboot\123456>adb push hw1.img /dev/block/mmcblk0p43
adb: error: failed to copy 'hw1.img' to '/dev/block/mmcblk0p43': couldn't read from device
hw1.img: 0 files pushed. 0.2 MB/s (8388608 bytes in 35.884s)"
this problem arises....
please help
:crying:
Follow this: https://forum.xda-developers.com/moto-g4-plus/how-to/guide-g4-baseband-network-volte-issue-t3865608
 
Jun 6, 2020
5
0
1
1. I ROOTED MY DEVICE EARLIER AND TRIED SOME THEMES IN MY MOTO G4 PLUS,
AFTER SOMETIME MY PHONE SOFT BRICKED HAS STARTED AND
TAKING TOO LONG OR STUCK IN BOOT LOGO OR BOOTLOADER UNLOCKED MESSAGE.

2. I THOUGHT TO RE-FLASH BUT MY DEVICE HAVNT FIXED, I WATCHED VIDEO TO HOW TO SOLVE BRICKED PHONE THEY SHOWED TO BLANKFLASH FIRST BUT THE BLANKFLASH.BAT FILE SHOWING <WAITING FOR DEVICES>.

3. THEN I SAW A VIDEO WHICH SAYS TO FORMATE PHONE AND removes EVERYTHING VIA TWRP
FROM PHONE AND FLASH AGAIN SO WEHN I FLASH IT AGAIN I CAME TO KNOW THAT THE BASEBAND VERSION IS CHANGED FROM
"ATHENE_INDIA_DSDS_CUST" TO "DFLT_FSG" AND 1 SIM IMEI IS 0 AND ON AND 2ND SIM
IS OF AND IMEI IS NOT SHOWING AND MY PHONE NAME IS CHANGED MOTO G4 PLUS TO MOTO G4.

I HAD TRIED SOME FILE SHARED IN XDA FORUM BUT IT DIDDNT WORKED FOR ME. PLEASE HELP ME TO FIX THIS ISSUE
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone