yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus Guides, News, & Discussion] MJSKY999:
but official oreo OTA update can fix this issue or not

Oreo rom make persist fix any chance, yesterday update ota oreo update and use fastboot erase modemst1 & 2 command, still don't get any sim signal or imei 0 fix,

any other oreo based custom roms can solve this problem.....
[Moto G5 Plus Guides, News, & Discussion] skykid2:
it really worked

this is the first solution:good: and it worked I am beyond physicked,
[Moto G5 Plus Guides, News, & Discussion] pranjal24:
i installed ota of oreo over stock nougot but forgot that i used other persist earlier. now my imei is gone no network is gone too. So i installed pixel experiance and also used erase modem command and now in pixel rom too my network is gone. what should i do. Pls guide me through this. I am really stuck i dont know what to do.
[Moto G5 Plus Guides, News, & Discussion] Andrej_SK:
It has been mentioned already for few times. If you flashed persist from another device and now is your IMEI and signal gone, you are stuck - you can fix it only with your own EFS or persist backup.
[Moto G5 Plus Guides, News, & Discussion] Mukesh_Khairnar:
I don't have dhob.bin , shob.bin and dhob.bin.bak files in my persist/rfs folder... please help what should i do to get my IMEI back.. Please reply someone
[Moto G5 Plus Guides, News, & Discussion] Vishalpatil0105:
Hey there i tried to get my vol5e back with moto g4 plus persists and i lost my imei i tried each and evey step.. i also flashed u r twrp persists file givn in description but still no imei working.i am on june patch stock and in baseband its now showing small a help me if u can
[Moto G5 Plus Guides, News, & Discussion] echo92:
Do you have your original persist (the one linked to your device) backed up before you flashed the G4 persist? If so, try restoring your old persist then try the TWRP fix as before.

If you do not have your original persist, I do not think there's a way to get VoLTE back to your device, especially as you've flashed the G4 persist (not even the same device...). As in the opening post, you need your own persist. One solution might be too get your motherboard replaced, but you may have to pay for that service.
[Moto G5 Plus Guides, News, & Discussion] Vishalpatil0105:
I dont have my persist btw how much i have to pay.?
[Moto G5 Plus Guides, News, & Discussion] echo92:
I'm not sure, though I've seen others get quoted for 10000 rupees or more. Your experience may vary but a motherboard is not cheap. You could visit a service centre for a quote or repair estimate, then see if you want to pay or buy a new device.
[Moto G5 Plus Guides, News, & Discussion] Vishalpatil0105:
Btw i am not able to do oreo update its showing error at time of installation after i flash u r persist fix .
[Moto G5 Plus Guides, News, & Discussion] echo92:
Hmm, that's odd, given the persist fix should only change permissions of your persist (then again, you don't have your original persist). Have you also got a fully stock NPNS25.137-92-14 firmware, so your system, modem, OEM, recovery etc partitions are all from the same firmware? OTA updates work when your firmware is unmodified.

Bear in mind that the Oreo OTA may erase your modemst1/modemst1 (EFS) leaving you without a signal and no IMEI if your persist was altered or replaced as it may be in your case.
[Moto G5 Plus Guides, News, & Discussion] finalmoksha:
Fixed VoLTE

Thanks for all the information. I was finally able to figure out what was happening. Downgraded to Nougat stock and then got the Oreo OTA update which fixed the VoLTE issue. Much appreciated.:good::good:
[Moto G5 Plus Guides, News, & Discussion] mdlgpt:
G5 -Mobile data LTE is ok, but no volte

Hello folks! I have an Cedric (g5) and I'm running LOS unofficial 14.1. I have mobile data and 4g, but volte is dead. My carrier suports it, in past with stock I used to have, but when I moved to LOS I loose it. My persist folder is ok, I have IMEI. When I saw tree view, I notice that my RFS and hlos folders have _old in end (rfs_old / rfs_shared_old). I changed owners and groups with terminal command, but with no luck. Can you help me?
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
As the guide says, the fix here is for stock nougat. If you lose volte on lineage, then it may just be an issue with lineage. Some people have found that by going back to stock and regaining volte, they can often retain volte when going to a custom rom. However your mileage may vary.
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
Answers to your questions:

1) It is possible that anything that has root access to your device can ruin the persist. So yes a badly designed custom rom could do it, but so could any root-enabled app. I've seen many cases of this happening (i.e. dhob.bin is in fact a dhob.bin.bak), however the underlying cause of this remains unknown.

2) I've had a few people try doing exactly this (renaming dhob.bin to dhob.bin.bak when the latter doesn't exist, and the dhob.bin looks like a .bak file), and it's never worked. I can only assume that the dhob.bin(.bak) file or another key file (e.g. shob.bin) was tampered with.

3) Nope - the only thing that the stock Oreo roms do is change the ownership of the /persist/rfs folder on boot, pretty much applying a similar fix on every boot. If the underlying mechanisms to get your IMEI back are broken (i.e. dhob.bin), then stock Oreo can't fix it.

4) The command to rename your dhob.bin to dhob.bin.bak is:

mv /persist/rfs/msm/mpss/dhob.bin /persist/rfs/msm/mpss/dhob.bin.bak

Do this under a root shell / TWRP.

5) Not sure why the OS doesn't read it from there, but the fact is it just doesn't.
[Moto G5 Plus Guides, News, & Discussion] jodru:
When I tried the command in TWRP, I got an error, but I was able to try it on my pc. Didn't work, but eh. Still worth a shot.

My father suggested I take my phone to a repair shop nearby, do you think they would be able to fix the problem with their special tools? (Assuming they have)
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
I haven't heard of anyone getting things fixed without getting a new motherboard (which I assume has a brand new flash device on it with it's own intact persist). Give it a go, but it may prove to cost a bit.
[Moto G5 Plus Guides, News, & Discussion] jodru:
Might as well see the price and decide what to do from there. I'd like to thank you again for everything you've done here, your research into this topic is invaluable. Thanks
[Moto G5 Plus Guides, News, & Discussion] mdlgpt:
Thanks!!! I followed your instructions and made it! I moved back to stock nougat, with volte ok, then I typed in console those commands and move back to LOS (fresh install): it's working like a charm. Thanks!!!!
[Moto G5 Plus Guides, News, & Discussion] zenez:
Hi, i cant restore my IMEI with this guide, i flash the persist of someone else sometime but it works on every ROM, unfortunately when i downgrade to stock oreo with twrp flasheble zip i lost my imei, i think that its because the aroma installer deletes my efs, this aroma installer also do a img backups of modemst1, modemst2 and persist, but i dont know what to do? there is some other solution to this?

thank you so much for your help :)
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
This guide states a couple of times that you need your own persist for it to work.

Instructions on how to restore the modest partitions are in the FAQ of the oreo thread.
[Moto G5 Plus Guides, News, & Discussion] zenez:
Sorry, i cant find these commands, only the erase modemst1 and 2, but no how to restore these img, i try with backup restore app but nothing works, imei still zero :crying:
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
From this post
[Moto G5 Plus Guides, News, & Discussion] zenez:
Thank you so much! these commands restore my files and then the IMEI (only with nougat modem) :D:)
[Moto G5 Plus Guides, News, & Discussion] sibtemax:
Tell me the procedure ?
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Just read! It´s all posted in the last 3 posts.
[Moto G5 Plus Guides, News, & Discussion] artistaproducer:
hello, I followed the commands and I have the persist own, but I have no volte, my question is: to have volte I must only flash oreo stock or stock nougat
[Moto G5 Plus Guides, News, & Discussion] artistaproducer:
I already managed to get (voLTE) in stock oreo, but as I take it to Rom Pie that if it supports I turn, but it does not work, help please
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
If you get it back in stock Oreo then that's a good outcome. If it then stops working in a custom rom, it's a question for the maintainers of the custom rom.
[Moto G5 Plus Guides, News, & Discussion] Nani dhfm:
How you got back your volte?
[Moto G5 Plus Guides, News, & Discussion] artistaproducer:
flash the fix to rename the persit and then flash the stock oreo by deleting the modems
[Moto G5 Plus Guides, News, & Discussion] Nani dhfm:
So i need to flash stock nougat then zip file and then finally stock oreo??
[Moto G5 Plus Guides, News, & Discussion] artistaproducer:
Yes
[Moto G5 Plus Guides, News, & Discussion] Nani dhfm:
I am on pe rom final build.. can i flash stock nougat?
[Moto G5 Plus Guides, News, & Discussion] Venomous Viper 119:
I'm on stock Oreo. I want to unlock my bootloader and flash Arrow OS based on pie. Can anyone tell me the easiest method to backup and restore my efs and persist, just in case? I had flashed custom ROMs before, but I've never lost my VOLTE, etc. I relocked my bootloader when I was on nougat. Please help.
[Moto G5 Plus Guides, News, & Discussion] Quantumizer:
After you unlock the bootloader and flash a custom recovery like TWRP you can easily take backup of EFS and Persist partition.
[Moto G5 Plus Guides, News, & Discussion] Venomous Viper 119:
Does the official twrp support backing up EFS and persist?
[Moto G5 Plus Guides, News, & Discussion] Quantumizer:
Yes.

The latest version i.e 3.2.3-1 supports backing up EFS and Persist.
[Moto G5 Plus Guides, News, & Discussion] Vivek Tiwari9874:
Will the fix file work on custom ROMs such as pixel experience?
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
No. If a custom rom has problems, for whatever reason, you have to revert to stock to get everything working again. After that, some people can go back to custom ROMs and have everything work fine, some don't. YMMV...
[Moto G5 Plus Guides, News, & Discussion] Vivek Tiwari9874:
So I should go back to stock "nougat ROM" to flash the above zip? The thing to mention here is I haven't played with my persist yet
[Moto G5 Plus Guides, News, & Discussion] Nandsun:
Please make a video about this topic,there are so many people who don't know the terminology that you are using and the procedure also..

From my self ,I'm using Moto g5 plus (XT1686),I lost my VoLTE by flashing directly the pixel experience ROM. In that time I don't know the full procedure and precautions...

Now I realised that I made a big mistake..

I have so much curious about this XDA and blindly followed it , I rooted my device,I lost my VoLTE,I lost my emei but I backed it through pixel experience but still the VoLTE is not solved.....

Please do a video or explain about this ,there are so many kids who don't know how to play with roms..

"No one is great untill he touches madness " ,Yeah I touched the madness now I want to become a great...

Don't worry ,I have guts to do risks. I love to take risks that's why I flashed the New Pixel experience (PIE) ROM.

Now I lost my fingerprint censor,except this everything is fine...

Hope you understand my problem....
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
See below.

The simplest way to overcome this nowadays is to either flash my TWRP Flashable Stock Oreo or TWRP Flashable Stock Nougat builds. Oreo 'fixes' things on its own, and the latest Nougat with aroma installer applies the persist fix as well.

Stock Oreo Thread

Stock Nougat Thread

Nowadays, with most custom roms moving to Oreo firmware, it's probably best to just go with the Oreo builds. That will also fix the issue with the fingerprint in the case of the latest PIE roms.

A video would have been more useful if I had done it about 2-3 months ago. Feel like I missed the boat on that one :D
[Moto G5 Plus Guides, News, & Discussion] Nandsun:
Then ,where is that video..Put that video on YouTube and give me the lin
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
Sorry, I wasn't clear enough - I never did a video, and it's probably not worth me doing one now.

Now the fix is simple - flash TWRP stock Oreo or Nougat in the links I provided, that's it.
[Moto G5 Plus Guides, News, & Discussion] Nandsun:
What about the VoLTE and emei
[Moto G5 Plus Guides, News, & Discussion] Vivek Tiwari9874:
I'm on pixel experience pie right now. Fingerprint is working fine. I've 4g connection with my IMEI. The only thing that isn't working is Volte. I will most probably fix it by flashing stock Oreo. Then I'll revert back to pixel experience pie
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
Can you explain what problem you have with your phone? If you flash the ROMs I've mentioned, and you still have problems, then it helps to know what exactly is not working.
[Moto G5 Plus Guides, News, & Discussion] manjcsathis@gmail.com:
IMEI 0 fix

Hi All, Am Moto G5 plus XT1687 user. I installed number of custom ROM's and finally head back to Stock. This is my headache now, I lost my IMEI & VOLTE. I tried so many steps as mentioned in XDA, same I also tried installing with someone's persist .win file. Permanently I lost my IMEI & VOLTE. If you guys need anything from my phone to find a solution, please ping me. Now I can use that phone as 2g device only.

---------- Post added at 04:49 PM ---------- Previous post was at 04:46 PM ----------

Hi All, Am Moto G5 plus XT1687 user. I installed number of custom ROM's and finally head back to Stock. This is my headache now, I lost my IMEI & VOLTE. I tried so many steps as mentioned in XDA, same I also tried installing with someone's persist .win file. Permanently I lost my IMEI & VOLTE. If you guys need anything from my phone to find a solution, please ping me. Now I can use that phone as 2g device only.
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Please don´t quote the whole OP, that clutters the thread. If you´ve read the OP you should have all the information you need.

If you´ve flashed someone elses persist file you are most probably out of luck now.
[Moto G5 Plus Guides, News, & Discussion] moizzupda:
Please help me my imei is sowing properly but my sim network are not showing please help me
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
What about some information? Just saying "help me" won't help you!

What have you done? Which ROM/firmware are you on and from which one you we're coming?

What device? Rooted? Locked/unlocked? Flashed someone else's persist? Have a backup?

How should somebody be able to help you if you don't give any information, nor logs, not anything?

This is a developers forum, not one for mind-readers.
[Moto G5 Plus Guides, News, & Discussion] Andrej_SK:
Hello,

commands for fixing IMEI works even on G5 (cedric) - tested by me. However, will the TWRP flashable zip file in the main thread work also? Thanks in advance.
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
Use this zip for Cedric

https://www.androidfilehost.com/?fid=3700668719832240875
[Moto G5 Plus Guides, News, & Discussion] Andrej_SK:
Is the zip for cedric (in your link) basically just a TWRP flashable script of commands in the first post or does it contain somebody's another persist, please?
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Why are you so lazy? Just download it and look inside. And just by the way, [MENTION=7346927]NZedPred[/MENTION] is one of the users who found out everything about this losing IMEI stuff and is also the one who is warning everyone to use someone else's persist file.

So he won't do something like that for sure.

FYI, the zip is same as the one for potter, just for cedric.;)
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
What [MENTION=5237901]Wolfcity[/MENTION] said ^^
[Moto G5 Plus Guides, News, & Discussion] vlrgamaley:
sry, but i write it here. my friend has moto g4 and after many manipulations he lost his imei (imei=0). and he didn`t do backup of "persist". after command in adb shell he watch these:

what will he do to return his imei? how he can flash persist? maybe he can flash donor persist from the same phone?

p.s sry for bad english/
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
Looks like the command wasn't run with root privileges. You need to use su first.

I do know that the G4 series is a bit different from the G5 series, so this approach may not work. I'm sure someone in one of the G4 forums posted their take on this solution, so have a search there.
[Moto G5 Plus Guides, News, & Discussion] HeethJain21:
Yes, thats me. I was the one who made a thread for G4/G4 Plus, and most of it was made from your thread.

Earlier I didn't think it was necessary to make the thread and just ask others to visit this thread, but then realized that my device had a major difference, i.e imei could be recovered uding dhob.bin.bak, so then thought it would be good to make a thread about it.

I just quoted your explanations there and also mentioned about this thread in the end, also for the flashable zip, I think I had mentioned you, but maybe you didn't reply. ;)

Some users of G4 Plus have restored some other's persist file and now this method isn't working for them, as the persist they restored has somebody else's imei.

The only way which seems to make this work is wait for Official Oreo or edit the persist file.

And good new, I was able to find the location of IMEI in persist file. The IMEI is just written in a different format in the persist file and I was able to recognize the first 14 digits.

The only problem now is, that I am unable to understand how the last digit is written/saved inside the persist.

If possible, could you please lend me a hand?

Maybe the persist for potter would have the same format.

Also I didn't try qcn method, because I fear of messing up with my working IMEI.

If you can help me, just send a PM, maybe we could talk about this on telegram, my username there is same as here Heeth21
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
[MENTION=7346927]NZedPred[/MENTION]: Just an OT question: Do you know if the loopback bug existing on the potter 7.0 stock kernel which needs a fix (loopback bug module by [MENTION=5228676]VR25[/MENTION]: https://xdaforums.com/apps/magisk/guide-magisk-official-version-including-t3577875/post71554247 or a custom kernel) to use magisk modules or mount other img files r/w has been fixed in Oreo firmware/kernel?
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
Not sure about recent versions, I've been using a custom kernel which has the fix. Certainly the older versions of Oreo didn't have the fix, would need to test on the latest versions.
[Moto G5 Plus Guides, News, & Discussion] bonpiton:
Andre, did you this method step by step? did you have a backup of your persist and/or efs?

i follow every step but no work for me

i'm not flash or restore any persist, only install by fastboot the stock rom from august 2017

thanks
[Moto G5 Plus Guides, News, & Discussion] Andrej_SK:
If you are trying to fix IMEI on Moto G5 (not Plus variant), first of all, repeat the whole process of fixing IMEI with the more recent firmware [for example with this one: https://drive.google.com/uc?id=1hlNzlFhLCEj6xigfKrYcvnwH9jy3f5j3&export=download - fastboot firmware (build number NPPS25.137-93-8) for Moto G5 (cedric) with March 2018 security patches].

Even I might give you mine backup of persist/efs, never ever try to flash persist or efs backup from any other than yours phone! - it will make your phone semibricked later (after an update or after running erase modem commands), as persist is original for each phone.
[Moto G5 Plus Guides, News, & Discussion] bonpiton:
imei 0, both sim, moto g5 cedric xt1676

Hi NzedPred

I face some problems to restore my imei numbers.

- Which version of STOCK rom are you on?

I flash via fastboot CEDRIC_NPPS25.137-93-8_cid50_subsidy

- Are you rooted, and running the commands under root privileges?

Yes, rooted with magisk v11.6

- Have you ever flashed someone else's, or another device's persist?

No never

- What functionality are you missing and trying to restore (e.g. IMEI=0, VolTE, etc)?

Both IMEI=0

- Do you get any error messages when trying to execute the commands?

No

I run the commands you post here, change owner for rfs and hlos_rfs, and when the phone reboot, the imei are still 0.

I have dhob.bin and dhob.bin.bak files, i've uploaded both to gdrive. i'll send you the link by pm

thanks in advance

Juan
[Moto G5 Plus Guides, News, & Discussion] Andrej_SK:
What's your baseband letter in "About phone" section., please?

I believe these are the correct meanings

R - correct persist and IMEI

E - broken persist but correct IMEI

U - broken persist and IMEI too
[Moto G5 Plus Guides, News, & Discussion] bonpiton:
None of this, M8937_22.29.02.56q CEDRIC_EMEADSDS_CUST

And notify me that I have a software update (OTA), if I apply this update it will work?

Thanks

Juan
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
You can update to Oreo. Check the Cedric ROMsforums, I did a TWRP flashable Oreo. In short, if Stock Oreo doesn't work, my guide wouldn't either.
[Moto G5 Plus Guides, News, & Discussion] bonpiton:
Thank you for replying Andre, I found a post to flash lineage 15.1 oreo 8.1.0 vía recovery.

I think if I can flash successfully this rom, and when my device turn on it has full signal, I will let it with.that rom installed. Do you think it's gonna work?

Regards

Juan
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
My last reply for mangled somehow...

It has to be stock Oreo. Use this

https://xdaforums.com/g5/development/twrp-flashable-soak-test-oreo-t3827913
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Jfyi, rooted a Moto G5+ running OPSS28.85-13-3 with Magisk 17.3 and all modules (Viper, Dolby, GMS doze) are working without the loopback bug fix or a custom kernel. Data partition encrypted.
[Moto G5 Plus Guides, News, & Discussion] aw14s:
dhob.bin.bak Contents

Do all phones have a unique dhob.bin.bak (or dhob.bin in the phones where .bak is missing, considering the rename mess), or is it the same? I've attached the entire hex dump of my "dhob.bin" (.bak is missing in my phone -> currently on Nougat NPP25.137-93-8)
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
Yes it's unique for each phone. Your dhob.bin hex dump is actually that of a dhob.bin.bak. Refer to the third post of this thread...
[Moto G5 Plus Guides, News, & Discussion] aw14s:
I did realize that, I've read the entire thread. Now unless I get access to Moto's internal repos, I won't be able to salvage my phone even when I still have my original IMEI intact and visible through fastboot. :crying: