yashsingh1/xdaforums huggingface dataset:
[Moto G5 Questions & Answers] Exanneon:
Are you running stock firmware? If this is so then I suggest trying a custom rom and see if that fixes it.
[Moto G5 Questions & Answers] Cairo100:
I also have the same problem on any ROM.
[Moto G5 Questions & Answers] guiperriraz:
I'm also having the same problem. I think the problem with the 4G is due to the Oreo modem, which remains in the Nougat system, has an error or is not compatible. It's just a guess.

If I'm not mistaken, I was also with Custom, in my case at PixelExperience (Oreo 64bits).

Eu também estou tendo o mesmo problema. Acho que o problema com o 4G é devido ao modem Oreo, que permanece no sistema Nougat, possui algum bug ou não é compatível. É apenas um palpite.

Se não me engano, estava assim também com a Custom, no meu caso a PixelExperience.
[Moto G5 Questions & Answers] Cairo100:
Maybe if we get a method to backup the IMEI, we could execute the command '' fastboot erase modemst '' and after that, restore the IMEI with the backup. With this the IMEI might come back with the 4G working.

Of course I'm counting on a possibility of the modemst not being without backup.
[Moto G5 Questions & Answers] Exanneon:
Some ideas here are actually really good, I guess we'll just have to wait until backing up such a thing is possible.
[Moto G5 Questions & Answers] soumitro316:
Okay so I have the same variant as you (XT1677) and was facing this problem. I followed your steps exactly (with crDroid V4.0 BETA) and got my IMEI number back. However, once I was back on stock, I got the March 2017 OTA update (originally on Jan 2017). And after updating via OTA, I have lost my IMEI numbers again. Is there any way to fix this now? Any help would be appreciated!
[Moto G5 Questions & Answers] blaze_me:
Have to think, never faced this before.

Is your bl locked?
[Moto G5 Questions & Answers] soumitro316:
No bootloader is unlocked! Should I try locking it?
[Moto G5 Questions & Answers] blaze_me:
beta

I think this will get back your IMEI no and latest patch in stock ROM

1. Try taking the system and data backup, and

2. do the below process.

3. If your IMEI no is back then go to twrp.

4. restore the backup.
[Moto G5 Questions & Answers] jonathars:
my imei is 0 already tried everything but I did not have any results help me please it's an xt1672
[Moto G5 Questions & Answers] guiperriraz:
Start from scratch, it does not matter how you are at the moment.

1. Install STOCK ROM with all commands via adb fastboot.

2. Install the 64-bit PixelExperience 8.1 OREO 64-bit ROM with TWRP 64-bit.

3. See if your IMEI has appeared in CUSTOM.

4. If it appeared, install the STOCK ROM, via adb fastboot, without the commands:

fastboot erase modemst1

fastboot erase modemst2

The IMEI should appear.
[Moto G5 Questions & Answers] jonathars:
muito obrigado thank you very much
[Moto G5 Questions & Answers] JhonMii:
After recovering the IMEI can I enter all the Fasboot commands?
[Moto G5 Questions & Answers] guiperriraz:
4. If it appeared, install the STOCK ROM, via adb fastboot, without the commands:

fastboot erase modemst1

fastboot erase modemst2
[Moto G5 Questions & Answers] salsaelpato:
I faced this problem some days ago, I was wondering why this happen, I know it has to do with erasing modemst1 and modemst2 but why this happen? I always do clean flash so I do all possible wipes and this never happened to me untill I flashed an specific Android Oreo rom, because this didn't happened when I flashed other Oreo roms as LOS or Pixel Experience, im just curious, thanks in advance
[Moto G5 Questions & Answers] Livi-Tech:
When coming from an Oreo rom to stock the first time, this method worked of installing an Oreo rom then installing stock through fastboot without the fastboot erase modemst1 and modemst2 commands but when i decided to go to an Oreo rom again my sim card weren't detected so tried these steps again and my signal did not get restored on stock :/
[Moto G5 Questions & Answers] Maurício Lopes:
I found a solution, it was made on the Moto g5 plus, with the right files has a great chance of working at Cedric, but I can not post link here, sorry my English is from Brazil.
[Moto G5 Questions & Answers] guiperriraz:
Aqui estão todos tentando se ajudar, se vc encontrou uma solução então posta o link de forma que não fique o link (dê espaços nos caracteres) ou escreva como é a solução. Fazer isso que vc fez, não ajuda em nada, ou seja, post desnecessário, pra não falar outra coisa.

Here they are all trying to help themselves, if you have found a solution then put the link so that it does not stay the link (give spaces in the characters) or write as is the solution. Doing what you did, does not help at all, that is, post unnecessary, not to mention something else.
[Moto G5 Questions & Answers] Maurício Lopes:
Good people this is one of my first contributions in which I will explain how to recover the IMEI that some lost when flashing a rom in 8.1 (in my case the Pixel Experience) and wanting to return to a stock they ran into the surprise of that the imei had been erased and showed 0. Well, to the point:

You will need to:

- TWRP 3.2.1

- Stock rom:

- Relock Bootloader

- Rom Pixel Experience 8.1

- Rom stock of your preference

- And patience

Step by Step:

1. We flash TWRP.

2. We flash the Pix Pixel Experience if we do not have it flashed.

3. We start the flashed rom to get the signal.

4. At this point we will only have 3g in the custom rom, for which we must reboot in booloader mode and through fastboot write "fastboot erase modemst1" and "fastboot erase modemst2", these two commands will allow us to get 4g again. *

5. Start Pixel Experience to get 4g (verify that it arrives), turn it off and go back into fastboot mode.

6. At this point -and the most important to get the imei and recover the signal- we must flash our phone with the rom stock we want, if it is with closed or open booloader we execute the appropriate script BUT, you should not write the two commands "fastboot erase modemst1" and "fastboot erase modemst2" (in the above script and leave them ready if you want to run all of one), because these two will leave our phone without signal.

7. We hope the process ends, we write "fastboot reboot" and hopefully turn it on.

And ready!! they already have their equipment with IMEI and blocked bootloader if they have done so ￼

* NOTE: It is important to turn on the device once the Pixel Experience is flashed to obtain the IMEI information and again to obtain 4G.
[Moto G5 Questions & Answers] :
To recover the 4g does it have to be in the pixel experience ROM?
[Moto G5 Questions & Answers] soumitro316:
Everything works fine till step 3. But after flashing the commands fastboot erase modemst1" and "fastboot erase modemst2" and rebooting Pixel Experience ROM, my IMEI numbers become 0 again and I get no cellular network.
[Moto G5 Questions & Answers] guiperriraz:
This procedure DOES NOT WORK ON CEDRIC.

Before posting a solution, test on the topic device, MOTO G5 CEDRIC, you can cause a person to lose your device forever. Before you help, be sure of what you are doing.

Esse procedimento NÃO FUNCIONA NO CEDRIC.

Antes de postar uma solução, faça o teste no dispositivo do tópico, MOTO G5 CEDRIC, você pode levar uma pessoa a perder seu dispositivo para sempre. Antes de ajudar, tenha certeza do que está fazendo.
[Moto G5 Questions & Answers] davydenfer:
Thank you all, my g5 is the xt1676. My imei is 0 after flashing oréo. I tried all the methods here to find my imei, but nothing works. Does anyone have a solution?

1. Install STOCK ROM with all commands via adb fastboot.

2. Install the 64-bit PixelExperience 8.1 OREO 64-bit ROM with TWRP 64-bit.

3. See if your IMEI has appeared in CUSTOM.

4. If it appeared, install the STOCK ROM, via adb fastboot, without the commands:

fastboot erase modemst1

fastboot erase modemst2

The IMEI should appear.[/QUOTE]
[Moto G5 Questions & Answers] woozie.2007:
for me only firmware that it works was colt os, but when i flashed stock rom everything was fine, i made a call, it works normally. And after 10 minutes the signal was lost and the imei disappear....what can be the problem with this phone?
[Moto G5 Questions & Answers] woozie.2007:
i restore the imei with colt os, i installed the stock, but after the first update(march) the both imei was lost again, but now i can't recover with no one solution, nothing works. Can somebody help me please?

---------- Post added at 10:03 AM ---------- Previous post was at 09:11 AM ----------

you fix something?
[Moto G5 Questions & Answers] Livi-Tech:
managed to get data ( internet ) but not able to make phone calls or send texts

IMEI:0

Voice service: Emergency calls only

Data service: Connected

Voice network type: Unknown

Data network type: HSPAP
[Moto G5 Questions & Answers] woozie.2007:
so, what can be doing, nobody here who can give us an ideea?
[Moto G5 Questions & Answers] Cairo100:
Whenever you lose the IMEI, you need to flash the stock with the erase modemst commands. Then flash the Pixel Experience.

On upgrades you need to get a full zip of the stock with the update already integrated to install via fastboot. You can achieve this by modifying rsd cloud links by inserting the update version.

Maybe this will only be fixed with an update to Oreo or an alternate method to insert the IMEI.
[Moto G5 Questions & Answers] woozie.2007:
Flashing the stock doesn't fix it, after flashed pixel experience i had imei but only for 3g, now i restored a persist partition from a backup and i got 4g again. But i'm afraid if i want to flash stock i will loose again the signal and imei. How can i integrate the november update in the stock rom?
[Moto G5 Questions & Answers] Cairo100:
Do you know exactly which partition you've restored to get 4g again? Well maybe if you upload the partition containing the 4g, it will be useful for several people who have lost it.

About the rom stock, I'm leaving link already with the January patch:

https://xdaforums.com/showpost.php?p=75669874&postcount=189

Notice that in the download link there is a part where it has the version numbering (NPPS25.137-93-4). In future updates, you only need to change this number to the new update to get the full zip.
[Moto G5 Questions & Answers] woozie.2007:
The link is here https://mega.nz/#!Yd82hSZZ!vdmbqAG0bQhNyR5g95KOrZjVvBw2QDrirpOwhD96gPc

and this is the thread where i found this file, many thanks to jeriito https://xdaforums.com/g5/help/help-lost-imei-signal-t3666060

i didn't understood what to do with the stock rom, please explain again , i got acces denied, thanks
[Moto G5 Questions & Answers] Cairo100:
Thank you. I'll test it as soon as I finish downloading.

To get the full zip of an update, you just need to change those numbers to what OTA tells you: https://i.imgur.com/4YcSz4Y.png
[Moto G5 Questions & Answers] woozie.2007:
my friend, check the link please, i can't download anything, i get access denied, please check

<Error>

<Code>AccessDenied</Code>

<Message>Access Denied</Message>

<RequestId>54D021310427C204</RequestId>

<HostId>

GzDwZ+xuxWBHZGCcYq3YxwQtdl4HvKDgWKFceMZypszXPoRg1C9VMs49s0908vQXiIozRQ1+eBA=

</HostId>

</Error>
[Moto G5 Questions & Answers] Cairo100:
Here it is working. I found a link through Google Drive: https://drive.google.com/uc?id=1B0DnceNB3rJLcL_4j9SMb7VdRoyXQuxy&export=download

Credits to merlinolillo

About 4g, it really came back up. Thanks.

The only problem is with regard to IMEI that is 0 but soon we will get the solution ?
[Moto G5 Questions & Answers] woozie.2007:
after flashed pixel experience, the imei cames back, after that flash persist partition via twrp restore

---------- Post added at 10:01 AM ---------- Previous post was at 09:58 AM ----------

that link is for my version of phone xt 1676 ? Thanks
[Moto G5 Questions & Answers] Cairo100:
Sorry for the delay but after recovering the 4g, my IMEI does not come back even cleaning the modemst in stock and after that install the Pixel Experience. I think this is because the persist.ext4.win file is from Mexico operators and I live in Brazil. Maybe if I could get the persist.ext4.win file from someone from Brazil, my IMEI would come back.

On the stock zip, it works perfectly on the XT1676. I also have this model.
[Moto G5 Questions & Answers] woozie.2007:
i tried now with the persist backup from another xt1676 like mine, nothing changed, i get the signal but i have no imei
[Moto G5 Questions & Answers] woozie.2007:
which partition contains baseband? who knows....i want to make a backup from another phone, but i dont know what partition i must backup and restore to my phone
[Moto G5 Questions & Answers] Cairo100:
The partition we installed where we lost the IMEI was the '' persist ''. So in theory the files we need to get back to normal are files from our respective countries.

https://i.imgur.com/p1TmV2Q.png

https://i.imgur.com/CkmXWkP.png

It's a guess but I think these files registered my phone as if it were from Mexico, so I can not get the IMEI anymore after installing Pixel.

Are you Brazilian?

NOTE: There are apps that promise to backup the '' persist '' partition but these apps do not work. I believe that to backup it is necessary for twrp to have this option or you can try to copy that partition manually using a file manager.

I also think that you do not have to necessarily have a backup of the MOTO G5, it can be G4, G4 Plus, G5 Plus, several motorola. The most important thing is that the backup is from the country where you live.
[Moto G5 Questions & Answers] woozie.2007:
i have two identical phones, from romania europe both, the same location. i will try to copy all folder persist, ok?
[Moto G5 Questions & Answers] Cairo100:
ok
[Moto G5 Questions & Answers] woozie.2007:
I completely remove the persist partition and nothing changed. No imei but i still have 4g. So i think that persist have nothing to do with imei. Wait other ideas....
[Moto G5 Questions & Answers] Cairo100:
Have you changed the permissions of the files and folders within the '' persist '' partition? I thought of doing the following if I had a '' persist '' partition in hand:

1- Paste the partition and check all the permissions in the folder:https://i.imgur.com/jADpYS3.png

2- Clean the modemst.

3- Install the rom stock with the modemst command.

4- Then install the Pixel Experience.

5- After this probably the IMEI will be back.

If that did not work you would probably have to fix a twrp that has the option to backup the persistent partition. That file from Mexico was done in a twrp backup using a MOTO G4. If that does not even work, then I have no idea what you can fix.

Since I do not have a '' persist '' folder on hand, I'll try on the weekend to unlock the bootloader of a MOTO G5S Plus to copy this folder. I will see what I can do.
[Moto G5 Questions & Answers] woozie.2007:
My friend, i deleted all partition persist from twrp, so the persist folder was empty, after that i booted the phone and nothing was changed
[Moto G5 Questions & Answers] Cairo100:
Friend but it's no use you just paste the folder. You need to give the necessary permissions. Without permission it is as if there is nothing. To know what permissions you have to give, you can write down on a paper what the current permissions are on the '' persist '' partition, and after pasting the folder, change those permissions. After that you restart the phone.

If I still can not, at the end of the week I will unlock the Moto G5S Plus bootloader and copy that partition and try to recover the IMEI. If I do I'll create a sharing tutorial as it will help a lot of people who have this problem.
[Moto G5 Questions & Answers] woozie.2007:
i think you don't understand me, my english is bad i know that...but i tried again. I do not paste the persist folder to owerwrite it, i just delete the original folder "persist". You understand me now? i hope so
[Moto G5 Questions & Answers] Cairo100:
I do not speak English either and I'm using a translator.

I mean, it's quite likely that twrp will not give the permissions on the partition. So you have to check using a file manager, because if you do not have any permissions, it would be the same as if you had nothing. The system simply does not read because there is no permission.
[Moto G5 Questions & Answers] woozie.2007:
i understand what you mean, but if i delete the persist partition....i reboot again in twrp and i see the folder is empty, so where is the informations about imei and baseband if the persist folder is empty?

---------- Post added at 05:24 PM ---------- Previous post was at 04:46 PM ----------

i dont know what i do, but now i have lost fingerprint too, not working but neither in security option doesnt appear :(((( can anybody tell me what permission must have to firmware partition? Thanks
[Moto G5 Questions & Answers] woozie.2007:
I repaired my fingerprint sensor, i had set wrong permission to the firmware folder, now its working. But the persist have the same permission like in your picture
[Moto G5 Questions & Answers] shad.man92:
Hey dude, I'm having the same issue with 4G network not appearing. Could you please tell me whether to restore this Persist folder on any custom ROM or any specific one?

Reply to me ASAP. It's really urgent and would be really helpful.

Thanks in advance:)
[Moto G5 Questions & Answers] claudiotoretto:
IMEI lost after installing rom DOTOS 2.3

after installing the custom rom DOTs I left in airplane mode during the day because I was traveling, when I removed the imeis were zero I already did everything and no one can help me?
[Moto G5 Questions & Answers] maserati2011:
I too lost my IMEI but got it back, still no 4G though, any solution? its the XT1676 European version.
[Moto G5 Questions & Answers] ei146:
Now this happened to me on my XT1767: Lost the IMEI flashing Lineage 18.1 I tried the steps given in this thread for recovery, but both IMEI are still 0 and I don't get network connection. Are there any more ideas for recovering or manually setting the IMEI?
[Moto G5 Questions & Answers] alexrps96:
FIX: READ BEFORE DO ANYTHING

if you having the issue of imei 0 and imei sv 15 do this

in order to get back your imei we will need to flash lineageOs to get back to "normal",

download that firmware

CEDRIC_RETAIL_8.1.0_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

we will flash that firmware but first we will only need the NON-HLOS file for now

code:

fastboot flash modem NON-HLOS.bin

after that install recovery and lineageos from their page and install lineage os from their recovery

in the phone:

factoryreset

apply update

adb

in your pc terminal:

adb sideload lineageos.zip

after that just restart your phone, it will stuck in a loop after 5 or 7 minutes if it do just hold power button and wait til finish to load

after that u will notice that the signal is back

now to get the Default Firmware from the Moto G5 u will need to unzip the previous CEDRIC file into your platform tools folder

then create a txt with the next code and rename that txt to flash.bat

then open it and wait til it finish and it should be working fine again and ur imei and signal icon should be filled

FLASH.BAT CODE

echo off

fastboot getvar max-sparse-size

fastboot oem fb_mode_set

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash modem NON-HLOS.bin

fastboot flash fsg fsg.mbn

fastboot flash dsp adspso.bin

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.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 system system.img_sparsechunk.8

fastboot flash oem oem.img

fastboot erase cache

fastboot erase userdata

fastboot erase DDR

fastboot flash fsg fsg.mbn

fastboot oem fb_mode_clear

echo -------------------------------------------------------------------------

echo please scroll up and check your flash for any errors

echo -------------------------------------------------------------------------

pause

fastboot reboot

exit
[Huawei Mate 10  Questions & Answers] Usama-CW:
i recently rooted mate 10 lite by unlocking boot loader .i had TWRP Recovery but forgot to backup my Stock Recovery (Now i uninstalled TWRP) now there is a system update when i select install it says Download Recovery.. then when i select download it says "Getting Package Info From The Server" after that this appears "Getting Package Failed" . How can i download and install from Huawei eRecovery . i tried frimware finder but there is no full firmware just updates . and i also tried manually update my Device but same thing happen . Thank You!!!
[Huawei Mate 10  Questions & Answers] ante0:
what full build are you on now? RNE-LxxCxxxBxxx

Anyway, you can download your build's update.zip from http://pro-teammt.ru/firmware-database/

and download Huawei Update Extractor.

Extract update.app from update.zip

Extract Huawei Update Extractor

Open update.app in Huawei Update Extractor

Rightclick on Recovery and "Extract Selected".

Flash extracted RECOVERY.img using Fastboot
[Huawei Mate 10  Questions & Answers] Usama-CW:
Rne-l21c185b101
[Huawei Mate 10  Questions & Answers] rendar123:
any news? were you able to update your rooted mate 10 lite to the latest firmware (the one with ar lens & face unlock feature) ? if yes, what steps have you done?
[Huawei Mate 10  Questions & Answers] rendar123:
and also i would like to know when you updated your phone and it failed, does your phone boot normally again? were you able to use it again normally after failed update or it bootloop(ed)?
[Huawei Mate 10  Questions & Answers] jjpainkiller:
Oh no

How can I know the full build? (from non booting phone), I only know it is RNE-L03... Please help
[Huawei Mate 10  Questions & Answers] ante0:
Can you use fastboot?

If so you can use:

fastboot oem get-product-model

fastboot oem get-build-number
[Huawei Mate 10  Questions & Answers] jjpainkiller:
You're the best, yeah so I now know i have to get the RNE-L03C69B001, not that I can find it easy lol

Thanks a lot