yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Questions & Answers] echo92:
I don't understand what you mean.

Do you have network now, after flashing custom ROMs, or before you flashed the stock ROM?
[Moto G4 Plus Questions & Answers] r1rony:
In customs roms I have network by flashing those files in stock no network
[Moto G4 Plus Questions & Answers] echo92:
What baseband is reported on your device, can we see a screenshot of Settings>About Phone? If you've properly flashed NPJS25.93-14-10 it should end in .62.01R.
[Moto G4 Plus Questions & Answers] r1rony:
yes it's ended with. 62.01R but no network
[Moto G4 Plus Questions & Answers] echo92:
Screenshot of your baseband version please?

Or if you're near your computer, can you upload your getvar all data please?

1)Boot your device to the bootloader, connect to your computer.

2)In the ADB terminal, type 'fastboot getvar all' without the quotes.

3)Post the output here (you may wish to remove IMEI).
[Moto G4 Plus Questions & Answers] r1rony:
No no it ended with u said
[Moto G4 Plus Questions & Answers] echo92:
Okay, I saw your edit - if you're still on the stock ROM, do you see on the end of the baseband INDIA_DSDS or something similar? A screenshot of your About Phone screen or the getvar data as I requested would help!
[Moto G4 Plus Questions & Answers] r1rony:
Now lost Imei
[Moto G4 Plus Questions & Answers] echo92:
Yeah, that DFLT_FSG would correlate with the loss of network and IMEI. That does not look good.

Can I just confirm what's happened please?

You were on custom ROMs with network but no VoLTE

Then you re-flashed stock ROM, but lost network

You've re-flashed hw, modem and fsg partitions as per the post (using adb push commands), and still no network.

You've re-flashed the stock ROM as well?

Is that correct? It's been difficult following what you've done. I understand English may not be your language of choice, I ask you provide as much information as possible/all the information asked for.

Might be worth trying to push the hw, modem and fsg partitions again, reboot to check if signal has returned, then fully re-flash the stock ROM if you have signal again. Else, if we can't repair this, it might require a motherboard replacement (around 7000-8000 rupees+ or your regional equivalent).
[Moto G4 Plus Questions & Answers] r1rony:
Yes it's correct what you understood let me try once again hw partitions
[Moto G4 Plus Questions & Answers] echo92:
Okay, I'd like to see the output from the ADB terminal commands after you try to push the files, see if the copy succeeded.
[Moto G4 Plus Questions & Answers] r1rony:
I done it successfully
[Moto G4 Plus Questions & Answers] echo92:
Uh, why are there 2 copies of hw.img in your flash folder/flash script? Are they the same (i.e. from ICrD512's thread) or is the 2nd from another post in the thread?

If they're the same, then that should be okay (check filesize and md5), if they're different that might cause a problem. You should only be flashing 3 images, all from ICrD512's Google Drive zip.

They should be named: hw.img, fsg.img and modem.img.
[Moto G4 Plus Questions & Answers] r1rony:
Yes I have downloaded athene radio 14-8 zip only
[Moto G4 Plus Questions & Answers] echo92:
Did you re-name hw.img or did you download that hwxt1643.img from here https://xdaforums.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.
[Moto G4 Plus Questions & Answers] r1rony:
Did not renamed the file
[Moto G4 Plus Questions & Answers] echo92:
That's not good.

I'm now concerned you've been flashing the wrong hw.img files. Hopefully you can still recover from this, and that your device has not been permanently corrupted.

1)Delete your athene_hw-radio_14-8 folder (the one with all your images).

2)From the athene_hw-radio_14-8.7z, extract a fresh copy of the files. You should have 3 files only. hw.img, fsg.img and modem.img. Do not re-name and do not add files from other sources.

3)Re-flash as directed.
[Moto G4 Plus Questions & Answers] r1rony:
Done still no network
[Moto G4 Plus Questions & Answers] echo92:
If a full stock ROM flash doesn't work, then I'm out of ideas. You may have to submit your device to service and be prepared to pay for an expensive motherboard replacement.
[Moto G4 Plus Questions & Answers] r1rony:
Can u plz provide qcn file so that it fix baseband and Imei also plz:crying: u can extract from qfil

---------- Post added at 09:39 PM ---------- Previous post was at 09:36 PM ----------

Their only one hope of qcn plz extract from qfil send it me plz:crying:
[Moto G4 Plus Questions & Answers] DgnrtnX:
https://goo.gl/jJU42F

Yours all ans are here
[Moto G4 Plus Questions & Answers] :
where did you find the modem file?
[Moto G4 Plus Questions & Answers] biel.paes:
Has anyone made any progress?
[Moto G4 Plus Questions & Answers] m.swastik:
It is in the stock ROM file that you can download from xda. Latest file is here https://androidfilehost.com/?fid=745849072291698845. Look for NON-HLOS.bin and fsg.mbn after extracting.
[Moto G4 Plus Questions & Answers] biel.paes:
fps works?!
[Moto G4 Plus Questions & Answers] m.swastik:
No, only signal.
[Moto G4 Plus Questions & Answers] DECHTECH:
Hey everyone, I've just gone through every page on every thread about IMEI and fingerprint issues and I have not found anything that has been able to help me. Possible fixes either don't work or files required aren't available anymore.

After using custom ROMs for a long while I wanted to go back to stock as I heard that the oreo roll out is going to start (Or has started) soon in Australia. I wiped my partitions and flashed the ROM via the instructions here: https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 (I had also locked my bootloader)

After booting and setting up the ROM I noticed that my data was locked on 3G, originally I thought I was out of LTE range or the setting wasn't checked but after a reboot I was put into a "Emergency calls only" state where I am stuck at now.

I thought it was the ROMs issue and decided to flash another custom rom, I re-unlocked my bootloader, and re flashed twrp. After that I flashed the latest build of pixel experience and the latest frostbite kernel. My SIM issue wasn't fixed, and my fingerprint is now gone too!

After that I found my IMEI was set to 0 and my model of phone was changed to Moto G4 instead of G4 Plus. I saw several threads about the issue and I have been trying to fix the issue for 3 days now. I'm completely lost and cannot afford to replace anything :\. If possible I'd like some assistance on any way to solve at least the IMEI issue, I couldn't care less about the fingerprint issue X3.

Regardless, any assistance at all would be great! Thanks in advance.
[Moto G4 Plus Questions & Answers] DECHTECH:
I tried flashing the HW partition but I got nowhere fast. I'm not exactly sure how to flash it, naturally I tried fastboot but I found it's not a partition that is mounted so..

Do I use the "512" byte thingo? Or do I push the entire thing, again I found no clear command or method to push the file onto my XT1642.

I flashed the rom found on the thread I posted, here is the AFH link: https://www.androidfilehost.com/?fid=745849072291698845
[Moto G4 Plus Questions & Answers] ____Mdd:
After that 512byte post, manyone said it didn't work, but post on 14 page, someone confirmed for fingerprint.

Go to 14, and try it..

I have seen this issue mostly when people attempt to install older firmware, that linked firmware is latest and should not cause any issue.:confused:
[Moto G4 Plus Questions & Answers] DECHTECH:
Attempting to push things to my devices results in the errors shown here: http://prntscr.com/ibplok

---------- Post added at 05:34 AM ---------- Previous post was at 05:27 AM ----------

I don't understand it either, I even had to check that I downloaded the right firmware as I understood this issue mostly affects people flashing the older versions of stock.
[Moto G4 Plus Questions & Answers] echo92:
If you're looking to flash the hw.img partition, it's a flash to be performed whilst your device is booted in TWRP, fastboot likely won't let you (as you've discovered).

I don't know if you've read this post, hopefully it's a little illuminating https://xdaforums.com/showpost.php?p=75007986&postcount=498 But the general gist is: Boot your device into TWRP, connect to your computer if not already and in the ADB terminal push the image file to the directed partition, which should overwrite the damaged partition with a fresh copy. If you do use this method, please verify that the correct partition is typed, as these commands are very powerful and won't ask for confirmation.

As ____Mdd has noted, this isn't a perfected method, it's worked on some devices and not others, and I would love to know what deepaktinku's method does differently, as this IMEI loss is an ongoing problem. I'm still not sure about what causes it, apart from hw partition corruption, which somehow erases the variables that tell the firmware if the device is a G4 or G4 Plus. The root cause is also a mystery from what I've seen, though one factor appears to have been a flash of the incorrect variant of the stock ROM at some point in the past, which seems to cause subsequent stock ROM flashes, even if they are the correct stock ROM, to cause IMEI loss. However, that's not a consistent source from the looks of the reports.

The hw.img listed in https://xdaforums.com/showpost.php?p=73977941&postcount=139 is for the XT1643 (Indian variant), so flashing it may cause some odd results. You could try the hw.img I've pulled from my XT1642 (UK, EMEA baseband) on my Google Drive: https://drive.google.com/drive/folders/0B-GUyOfb8OgzR1VrQ1NHWDVmWE0 However, it's an older hw.img from the NPJS25.93-14-8 June 2017 build, so you could wait for me to upload an image from the NPJS25.93-14-13 build, or try to ADB push the XT1642 hw.img and then attempt to reflash the latest stock ROM we have, see if that repairs anything.
[Moto G4 Plus Questions & Answers] DECHTECH:
I used the hw, fsg and modem images found here: http://www.mediafire.com/file/es45hobzs4ghtjz/DD.XT1642.BaseBand.EMEA.Channel.Retail.Europe.7z

By flashing them with your method I managed to make my G4 plus back into a G4 plus, fingerprint is operating AFAIK (Vibrates on touch). But the IMEI is still showing 0 and cellular is completely unavailable. Would flashing the stock rom again be a good idea? Later I'm going to post a screenshot of my device info and SIM status, if that would be of help at all.

EDIT: Screenshots attached!
[Moto G4 Plus Questions & Answers] echo92:
Okay, so you've made some progress, that's good :)

Might be worth re-flashing the stock ROM, at least bring your modem and other firmware to the same patch level, but up to you as always. It may re-link your IMEI to your firmware. If you don't wish to perform a full flash, these are the modem relevant fastboot commands as I recall:

fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn

modemst1/st2 are temporary caches for storing settings, whereas NON-HLOS and fsg contain the modem/baseband code.

Else, do you have any of your TWRP backups around? I noted in your previous post that you wiped your partitions, was that in TWRP, and can you remember which partitions got wiped? I'm just wondering if restoring /fsg, for example, from a TWRP backup is an option...

If you can, a getvar all info output, listing your device variables, would be handy:

1)Boot your device to the bootloader

2)Connect your device to your computer

3)In the ADB terminal, type 'fastboot getvar all' without quotes and press Enter.

4)Copy/paste the info here (or upload it as a text file and attach it to the post) - you may wish to remove your IMEI if present, but if you do remove the IMEI, please state whether it was present or absent in the output.
[Moto G4 Plus Questions & Answers] DECHTECH:
1. The only backup I have only contains data and system. I am punching myself as I had S E V E R A L backups in full that I deleted just TWO DAYS before all this stuff happened.

2. You can't wipe the fsg, oem, etc partitions from twrp but you can back them up and restore them.

3...

(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8952-B1.07
(bootloader) product: athene_16mp
(bootloader) board: athene_16mp
(bootloader) secure: yes
(bootloader) hwrev: P2A
(bootloader) radio: 3
(bootloader) storage-type: emmc
(bootloader) emmc: 16GB MICRON Q3J96R RV=08 PV=10 FV=0000000000000054
(bootloader) ram: 2GB MICRON LP3 DIE=8Gb M5=FF M6=01 M7=00 M8=1F
(bootloader) cpu: MSM8952
(bootloader) serialno: ZY224CQLJD
(bootloader) cid: 0x0032
(bootloader) channelid: 0x51
(bootloader) uid: 3D80C20200000000000000000000
(bootloader) securestate: flashing_unlocked
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 536870912
(bootloader) reason: Reboot mode set to fastboot
(bootloader) imei: 000000000000000
(bootloader) meid:
(bootloader) date: 01-01-1970
(bootloader) sku: 000000000000000
(bootloader) battid:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time:
(bootloader) ro.build.fingerprint[0]: motorola/athene/athene:7.0/NPJS25.
(bootloader) ro.build.fingerprint[1]: 93-14-13/3:user/release-keys
(bootloader) ro.build.version.full[0]: Blur_Version.25.226.3.athene.reta
(bootloader) ro.build.version.full[1]: il.en.US
(bootloader) ro.build.version.qcom: LA.BR.1.3.6-01710-8976.0
(bootloader) version-baseband: M8952_70030.25.03.62.01u ATHENE_EMEA_CUST
(bootloader) kernel.version[0]: Linux version 3.10.84-ElementalX-G4-2.00
(bootloader) kernel.version[1]: (aaron@bella) (gcc version 4.9.4 201506
(bootloader) kernel.version[2]: 29 (prerelease) (crosstool-NG 1.20.0 - L
(bootloader) kernel.version[3]: inaro GCC 2015.06 - Cortex-A15) ) #1 SMP
(bootloader) kernel.version[4]: PREEMPT Thu Jan 25 12:45:01 EST 2018
(bootloader) sbl1.git: git=MBM-NG-VB1.07-0-g57d1343
(bootloader) rpm.git: git=1dc910e
(bootloader) tz.git: git=69dd24b-dirty
(bootloader) hyp.git: git=9fa1804
(bootloader) keymaster.git: git=9fa1804
(bootloader) cmnlib.git: git=9fa1804
(bootloader) aboot.git: git=MBM-NG-VB1.07-0-gf9b89ba
(bootloader) qe: qe 0/0
(bootloader) frp-state: no protection (77)
(bootloader) ro.carrier: retapac
all: listed above

EDIT: Is it normal for the kernel to be completely wrong? I'm not using that kernel nor the supporting operating system currently.
[Moto G4 Plus Questions & Answers] DECHTECH:
Booting into the ROM after flashing the modem and stuff slightly changed my IMEI situation.
[Moto G4 Plus Questions & Answers] ____Mdd:
Just checked the sequence of push files,

It's, > modem > fsg > hw.

Instead of above,

If we use

HW> correct/latest Modem > latest fsg,

It can be beneficial.. if modem gets installed after reading HW things ?

Also instead of flashing whole firmware, you should try modem and fsg for now, because it's same firmware that caused problem and it can also wipe HW again..

System and data of which ROM ? Does it has backup of boot?

Restoring old (where everything was fine) it can give you network back, read on old pages befor..
[Moto G4 Plus Questions & Answers] DECHTECH:
The ROM was an october build of Cosmic OS stored on an SD card I had gave to my 12 year old sister. It only contained data and system as mentioned...
[Moto G4 Plus Questions & Answers] ____Mdd:
I would suggest you to, (wait for echo92's reply)

Take backup of /data and wipe /cache and /data.

Don't touch any other partitions.

[You have dirty (flash) setup, if ROM was not able to read correct IMEI before, it will not be able to read on dirty too. Make it little clean. Just /data only.]
[Moto G4 Plus Questions & Answers] DECHTECH:
I clean flashed my current oreo rom.
[Moto G4 Plus Questions & Answers] ____Mdd:
Before flashing hw/modem/fsg or after ?

You need to clean it after flashing hw/modem/fsg.

So, it can build new data according to current modem/fsg/hw/ most important device model again g4 plus..
[Moto G4 Plus Questions & Answers] DECHTECH:
Right, sorry didn't understand exactly what you meant.

---------- Post added at 06:58 AM ---------- Previous post was at 06:45 AM ----------

Wiping my data and cache partitions did little unfortunately :(
[Moto G4 Plus Questions & Answers] ____Mdd:
Flashing stock is option, but it's the same which cause this issue.

If HW is got placed correctly in your device, then next flash should work.

You can compare your device's current HW with recent Link's HW. Use hex viwer to compare.
[Moto G4 Plus Questions & Answers] DECHTECH:
IMEI still showing 0 for both sim slots, thanks for the help anyway.
[Moto G4 Plus Questions & Answers] ____Mdd:
After flashing, is it G4 plus ? Baseband and other things are correct ?

---------- Post added at 01:25 PM ---------- Previous post was at 01:15 PM ----------

I have gone through reading most of post in this thread.

My bad, it was not good idea to flash hw without confirmation, you need hw specific to your device.

Which is same as your device model and specifications.

May be that link was for different model.

Post 139 confirms he got network and fingerprint both working. Still there is chance if you find correct hw for your device..
[Moto G4 Plus Questions & Answers] DECHTECH:
I used a hw IMG from a XT1642, the same model I have.
[Moto G4 Plus Questions & Answers] DECHTECH:
It's safe to assume I require a motherboard replacement. I feel like I've tried everything. I guess I'm stuck without a phone until christmas X3.

Thanks for the assistance that was given, at least I got the phone as an ipod kind of thing :\
[Moto G4 Plus Questions & Answers] ____Mdd:
Can you try to flash Cosmos ROM from around date of backup ? and then restore /data of it.

Another mystery here is where is IMEI for 1 now ? You lost it too?:confused:
[Moto G4 Plus Questions & Answers] echo92:
After flashing the hw partition from a XT1642, did you try re-flashing the stock ROM? As ____Mdd has noted, it could cause the same issue with the IMEI, but I've not seen any confirmation that a re-flash been done. I see from the getvar info that your modem's been updated to 62.01 (the latest stock modem) but with a U on the end, suggesting it's not fully fixed yet. I also would like to revert to the stock ROM to remove as many variables as possible, though the 8.1 Pixel Experience ROM may not be doing anything to complicate the situation.

It's been a while since I flashed a custom ROM, though I recall that getvar info may record the last state of your stock ROM (and custom kernel), before you flashed a custom ROM onto the device. Hence why it's likely recorded your stock firmware and the EX kernel. The only other explanation is that the flashes may not be working properly, hence why I'd like to see the getvar info on a clean stock ROM flash if possible, making sure that the flashing is working okay and properly updating your device.
[Moto G4 Plus Questions & Answers] DECHTECH:
I clean flashed the stock rom from pixel experience and then went back to AICP 13.1 as flashing the stock rom didn't work.

Check post #235
[Moto G4 Plus Questions & Answers] ____Mdd:
I still think your imei is correctly stored in your phone...

Here i found something useful same as your situation..

Here is little quote from original post in G5s plus,

After he got 'U' in baseband, he got generic imei (but in your case, it's still 0!) Somehow that means you have got baseband/modem problem..
[Moto G4 Plus Questions & Answers] DECHTECH:
Should I flash modems/baseband then? I'm currently asking my friend to dump his partitions off his AUS XT1642 to see if flashing his repairs my problem. Until he manages to get them though I'm not too worried about doing much.

Do you recommend any modems or other files I should flash?
[Moto G4 Plus Questions & Answers] DECHTECH:
Nothing works.

Flashing friends partitions did nothing for me at all. Nothing changed even after flashing stock rom. I honestly believe there is no way I can revive the phone at this point.

I'd like to be told otherwise though...
[Moto G4 Plus Questions & Answers] kur0g4ne:
Hi! [MENTION=4522189]mexifunk[/MENTION] 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:

adb push hw.img /dev/block/mmcblk0p43

or (not tested)

adb push hwSingleSim.img /dev/block/mmcblk0p43

For single sim moto g4 plus

Reflash the latest firmware via fastboot and it might be done!
[Moto G4 Plus Questions & Answers] kur0g4ne:
---------- Post added at 05:35 AM ---------- Previous post was at 05:34 AM ----------

[/COLOR]

Hi! [MENTION=4522189]mexifunk[/MENTION] 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:

adb push hw.img /dev/block/mmcblk0p43

or (not tested)

adb push hwSingleSim.img /dev/block/mmcblk0p43

For single sim moto g4 plus

Reflash the latest firmware via fastboot and it might be done!
[Moto G4 Plus Questions & Answers] DECHTECH:
Delete the other posts to remove clutter.
[Moto G4 Plus Questions & Answers] boxwall:
it work !

work on xt1641 single sim
[Moto G4 Plus Questions & Answers] mexifunk:
Thanks bro, it worked on XT1641 single sim! :victory:
[Moto G4 Plus Questions & Answers] biel.paes:
the device must be in adb sideload feature?
[Moto G4 Plus Questions & Answers] kur0g4ne:
It's enough if you booted in TWRP and enable MTP (altough it's enabled by default)

---------- Post added at 06:21 AM ---------- Previous post was at 06:20 AM ----------

That's great! :)

---------- Post added at 06:23 AM ---------- Previous post was at 06:21 AM ----------

That's nice!

---------- Post added at 06:28 AM ---------- Previous post was at 06:23 AM ----------

Thanks to point that out, I'm still pretty new to this forum ;)

---------- Post added at 06:32 AM ---------- Previous post was at 06:28 AM ----------

if you can obtain your file maybe I can fix it for the variant that you have, it's just a matter of where your phone is and the exact model it is.
[Moto G4 Plus Questions & Answers] DECHTECH:
I dumped a friends partitions and flashed them to my phone, we have the exact same model and his cellular works fine.

Though I'll gladly take any chance to get this fixed, just tell me what partitions you want from me and I'll upload them ASAP.
[Moto G4 Plus Questions & Answers] joaopaulo_:
If I upload the hw partition you fix it? Or theach me how do i do this. Model is xt1626

edit:

This take long time to reflash?
[Moto G4 Plus Questions & Answers] cahuanabellini:
Hi dude, when I enter the code for dual sim model it doesn't do anything, my computer's console just doesn't allow me to write anything and doesn't show any changes, do you have any idea of what this could be?

thanks in advance
[Moto G4 Plus Questions & Answers] kur0g4ne:
Maybe the speed of your usb-port is not good, you should try to move the hw.img file to a micro sd and rename it "mmcblk0p43" (without any extension) and navigate to /dev/block/mmcblk0p43 and swap the file for the new one in TWRP's filemanager.
[Moto G4 Plus Questions & Answers] biel.paes:
worked perfectly here ..... I will not need to buy another device: D
[Moto G4 Plus Questions & Answers] cahuanabellini:
It didn't work, do you have any idea of what else can I do? :(
[Moto G4 Plus Questions & Answers] kur0g4ne:
Maybe you have a more serious problem, can you give more details?