[Moto G4 Plus Guides, News, & Discussion] HeethJain21:
[Guide] [XT16XX] [Solve] G4+ Baseband/Network/Volte issue, Lost 1 IMEI & fingerprint

Important:

If you have IMEI=0, then this is the wrong thead. Follow this: [Guide] [XT16XX] [Solve] Moto G4/Plus IMEI=0 issue

This method is only tested on Nougat for now, for Oreo, new files will be needed.

#include <disclaimer.h>
/*
* Your warranty is now.......(wait a minute)........still valid?
*
* I am not responsible for bricked devices.
* YOU are choosing to make these modifications, and if you point
* your finger at me for messing up your device, I will laugh at you.
*/

This thread addresses the following problems:

Baseband version changed to some other country

Sim card getting detected, but no network

Both sims having a network but VoLTE doesn't work

G4 Plus turned to G4, i.e phone just shows one IMEI and no fingerprint

This method is only for the retail models of Moto G4/Plus, it may or may not work on any other models.

All of these issues have a common reason,

The modem files for your device has been

corrupted/has some issue or have been changed to some other country

.

Voltes isn't working since your baseband is of some other country and not Indian. If you have Indian baseband and still Volte doesn't work, then your modem files have been corrupted/ have some issues.

You have to push the modem, hw, fsg files for your own device.

We already had a thread addressing this issue, but it didn't have modem files for all baseband.

Finally, thanx to our fellow Moto G4 Plus users, for providing these files, we now have hw, modem, fsg files for all the five basebands i.e BRAZIL, LATAM, EMEA, INDIAN, and RETUSA.

Link to the files:

XT1640 [BRAZIL]:

Link: https://www.androidfilehost.com/?fid=11410963190603873179

md5: 8db666f13700e3d12b01051989e3f068

XT1641 [LATAM]:

Link: https://www.androidfilehost.com/?fid=11410963190603873829

md5: cab09417be82e508d0c54f54aac56498

XT1642 [EMEA]:

Link: https://www.androidfilehost.com/?fid=11410963190603873183

md5: e046d911b23c76cb88d5ccd7967d621f

XT1643 [INDIA]:

Link: https://www.androidfilehost.com/?fid=11410963190603873250

md5: d509c5a26305cc5261e707bdf91268e9

XT1644 [RETUSA]:

Link: https://www.androidfilehost.com/?fid=11410963190603873181

md5: 598191e577db1137df62ae996055f5da

Download modem, fsg, hw files according to your original baseband/device model.

Model Number Baseband
XT1640 BRAZIL
XT1641 LATAM
XT1642 EMEA
XT1643 INDIA
XT1644 RETUSA

Note: These files are extracted from the dual-SIM variant of Moto G4 Plus, so if you flash these on your Moto G4, these will work, but your device name will be changed to Moto G4 Plus (everything will still work fine, just your device will be treated as Moto G4 Plus by all apps) and if you flash these images on single SIM Moto G4 Plus, it will still work.

Pre-requisites:

You must be on Stock Nougat 7.0 (latest version preferred)

You must be rooted (install Elemental-X kernel first and then flash Magisk otherwise you will have boot issues)

Terminal app or adb drivers in PC/Laptop (I wouldn't recommend TWRP (official or unofficial as it has issues flashing hw.img)

Step 1: Download files

Download and place these files in your /sdcard directory.

/sdcard is the same as the Internal storage directory. Do not confuse it with micro Sdcard as it has its directory named as /external_sd

Step 2: Flash the files

Note: The below commands are to be typed in a terminal app or adb shell.

Q) How to type in adb shell?

A) Open command prompt in the folder where you have adb and fastboot installed and type:

adb shell

So lets start now!

su

This command it to get root access for the terminal/shell. Grant the root access and you will see that the $ symbol is replaced with # symbol which means that root access has been granted.

dd if=/sdcard/modem.img of=/dev/block/bootdevice/by-name/modem
dd if=/sdcard/fsg.img of=/dev/block/bootdevice/by-name/fsg
dd if=/sdcard/hw.img of=/dev/block/bootdevice/by-name/hw

Step 3: Flash the latest Stock ROM (April 2018)

That's it. After flashing, reboot and check your baseband. You would be on the baseband which you flashed in step 2.

Indian users, you will see INDIAN baseband if you flashed the files for it, and Volte would work.

Flash the latest Stock ROM from here: Stock N Firmware [Apr 01 Security Patch][fastboot]

Contributors:

[MENTION=2254598]djumie[/MENTION] and Erick Lima (for providing BRAZILIAN modem files)

[MENTION=8815980]Nacoro[/MENTION] and [MENTION=7201331]Deivid_21[/MENTION] (for providing LATAM modem files)

[MENTION=7970352]echo92[/MENTION] (for providing EMEA modem files)

[MENTION=7926139]checksamir[/MENTION] (for providing INDIAN modem files)

[MENTION=4481495]Jleeblanch[/MENTION] (for providing RETUSA modem files)

[MENTION=8401470]Pranav[/MENTION] (for testing the files)

[MENTION=6490709]Heeth21[/MENTION] (and lastly, myself)

Also all the others who helped during the process