yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus Guides, News, & Discussion] SsandYy:
Need help here..

I have a problem in persist file, when i flash g4 persist file my both sim cards and volte works perfectly but problem in camera photos ( photos become yellowish when taken with flash lights ),

But when i flash g5 plus persist file my camera works perfect with no issue in flashlights photos, but here i lost my imei and networks..?

Help me for recovering my imei or networks with g5 persist file by which my camera flashlights also works fine..//

Sorry for my bad english,

Help
[Moto G5 Plus Guides, News, & Discussion] Santys007:
Yes bro its also working for G5S PLUS xt1804 india....Akshu2697 thanks, your persist solution work for me...
[Moto G5 Plus Guides, News, & Discussion] david.gs.gm:
Hi....what is persist a reemplazar? And everybody have yeallow photos after flash persist of G4?
[Moto G5 Plus Guides, News, & Discussion] fivefour:
I don't know about VoLTE but this fixed my issue of being stuck in 1xRTT after updating to Lineage OS 15 (64bit) and trying to fix it by flashing stock, I have been pulling my hair out for the past week and spent 2.5 hours on chat with Sprint today alone dealing with this.

Ran Lineage OS 15.1 on GSM so no issues with LTE but I got in on the Sprint Kickstart deal and have had 100kbps 1xRTT for the past 6 days, I was already looking at new phones and figured I would give this a shot.

I had a factory backup with EFS but not persist, placed this into the folder, restored factory backup, restored persist....rebooted and instantly had LTE after 6 miserable days of dealing with Sprint wonderful tech support. I did not know it was my fault (sorry Sprint).

Thank you for this, saved me at least $200.

*edit*

I do have yellow photos, I can deal with that for now.

*edit2*

The proper G5 persist.ext4.win fixed the yellow camera.

https://drive.google.com/file/d/1VlqL5nI9Mnwok7I60unQi7YKNsdCmJ1Q
[Moto G5 Plus Guides, News, & Discussion] Santys007:
Yes bro i got my imei back with volte

moto g5s plus
[Moto G5 Plus Guides, News, & Discussion] boype:
Dude!! This is so awesome! Thank you very much!
[Moto G5 Plus Guides, News, & Discussion] nvntKriz:
Man!!! You are awsomeeee....

i've been in trouble for past 2 months.... you saved me..... ;) ;)
[Moto G5 Plus Guides, News, & Discussion] abhiark:
Thanks amigo !!
[Moto G5 Plus Guides, News, & Discussion] Himanshu.Shukla:
Plz help i have tried RR, PE, Validus But still no network no imei plzzzzzz help me...
[Moto G5 Plus Guides, News, & Discussion] anadarco7:
Follow this up will get it IMEI back. http://telegra.ph/Volte-Fix-For-Moto-G5-Plus-06-14-2
[Moto G5 Plus Guides, News, & Discussion] Himanshu.Shukla:
Thanks for ur response but mine is "Sanders" then

Will it work?
[Moto G5 Plus Guides, News, & Discussion] vishnuprasadku:
Hii, can you help me to fix this volte issue???

I have rooted my moto g5plus((indian firmware) ) and changed to custom rom, after flashing rom i lost my imei somehow. But i have recovered the imei using google pixel rom for motog5 plus. now i have installed the stock rom but i dont have volte or 4g support anymore.Iam kind of new to all this.could you please help me to fix this like you fixed your moto g5 plus ??
[Moto G5 Plus Guides, News, & Discussion] bird412:
You have to flash an Oreo ROM, such as the pixel experience one you were using so you get your imei back, then use TWRP to back up your EFS partition. From there, download the persist file in the op and put that in your TWRP backup folder. Flash the stock rom again, then restore tour EFS partition and persist. You should then have your IMEI and volte capabilities back
[Moto G5 Plus Guides, News, & Discussion] vishnuprasadku:
Thanks for your help.It worked. now i am getting signals for volte(using jio sim).but still I am not getting any signal for 4g for operators like Airtel and vodafone.I have checked my simcards in other phone and its working there. Do you face this issue? is there any solutions for this? thanks in advance
[Moto G5 Plus Guides, News, & Discussion] bird412:
I'm sorry I cannot help you with that, I've only used 1 sim in my g5
[Moto G5 Plus Guides, News, & Discussion] VaeVictis:
Anyone having volte issues, just flash magisk from https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 and reboot twice.
[Moto G5 Plus Guides, News, & Discussion] Drkmatr1984:
Saved Life

This saved my life <3 Much Love from USA
[Moto G5 Plus Guides, News, & Discussion] :
I'd strongly advise mods to suspend this thread. Persist is unique to each device and contains sensitive info like IMEI. Flashing this means overwriting unique hob binaries resulting in a permanent loss of IMEI. On top of that, sensors and led will be miscalibrated since this is g4+ persist.
[Moto G5 Plus Guides, News, & Discussion] bishop0114:
I lost my IMEI on a G5S+. Tried all the suggestions on fixing it and nothing worked. So I read through this thread and created an EFS backup and copied the persist.ext4.win file from the zip to the TWRP EFS backup directory. Flashed EFS and the persists. Rebooted and now have LTE and VOLTE. So far, I see no side effects on the OS. Everything works as expected. Thanks for the great info!!!
[Moto G5 Plus Guides, News, & Discussion] LenAsh:
Members wishing to try this are advised to take extreme caution. This Thread may explain: HERE
[Moto G5 Plus Guides, News, & Discussion] pratham.kamath:
It definitely worked for me on my Moto G5s plus XT1804 Model. I now have Volte enabled and can call using phone dialer and LTE data works fine too. THANKS A MILLION. Also can some one help me with increasing volume in custom ROM speaker output. Stock Moto 7.1 when used with Dolby has amazing speaker output and none of the 8.1 roms have good speaker output. Any help will be greatly appreciated.
[Moto G5 Plus Guides, News, & Discussion] nvntKriz:
Custom rom volte fix

Bro, is there any way to bring volte in custom rom..?

I've tried this persist backup in Resurrection remix nougat. But nothing works... :confused:
[Moto G5 Plus Guides, News, & Discussion] Ssachin.ss46:
Plz help me i have lost my imei how to re store imei

Plz help me i have lost my imei how to re store imei
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
Refer to this instead:

https://xdaforums.com/g5-plus/how-to/fix-persist-resolve-imei0-explanation-t3825147
[Moto G5 Plus Guides, News, & Discussion] mohit_2348:
moto g5s plus

i need help..i lost my volte feature after flashing custom rom..i need help to get back my volte feature..
[Moto G5 Plus Guides, News, & Discussion] mohit_2348:
volte problem

guys i was trying to flash stock rom in my moto g5s plus(big mistake) after flashing lost imei no.after that i have watched many videos on internet and recovered only imei and got networks but lost volte i need help(urgent)
[Moto G5 Plus Guides, News, & Discussion] Nandsun:
Shall I get my EFS file by flashing Stock ROM, Please show me a way ,I lost VoLTE ?????
[Moto G5 Plus Guides, News, & Discussion] sbcontt:
I tried this method because I have somehow already lost stock persist. My /persist folder is totally empty now. I have nothing to lose.

But it is not working. Upon reboot, the persist folder is getting automatically erased. Is it because I am on 8.1.0? Will a Nougat stock make a difference?
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
Download persist file from link

If you are on stock then good,if not then flash stock rom,

Unzip that persist file and put that file in your efs backup folder.

Reboot in twrp.

Go in to restore

Now select your efs

In that you will see both efs and persist

Just restore them
[Moto G5 Plus Guides, News, & Discussion] pranjal24:
How to get efs? can you pls tell the full procedure. I have stock rom and stock recovery so do i have to unlock it and flash TWRP??
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
This is only for those who has working volte but after flashing stock rom they had loose their imei ,

They managed to get imei but not volte.

So this guide is for them.
[Moto G5 Plus Guides, News, & Discussion] surendarsrk:
Ty so much [MENTION=7907867]akshu2697[/MENTION]?

It's working?

Zing zing amazing??
[Moto G5 Plus Guides, News, & Discussion] pranjal24:
Yes mate i had the same problem i reverted back to stock from pixel experience. I managed to get LTE back. i just want to know how can i Get EFS backup the one you r saying
[Moto G5 Plus Guides, News, & Discussion] irfanalinawaz:
Thanks for the file, volte working now, even I was able lock bootloader again. Thanks a lot, baseband changed to 47a instead 47r but volte working 1000%.
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
If your imei is working then flash twrp recovery,you need to unlock boot loder,

Go in to twrp and then backup option and then backup Every partition,make sure to do backup in SD card,then your efs backup will store in SD card,by doing this you will have your backup
[Moto G5 Plus Guides, News, & Discussion] Chandru1166:
i got my volte in moto g5s plus, now volte works fine in stock rom, shall i flash custom rom , it will work in custom rom after i got volte in stock rom.
[Moto G5 Plus Guides, News, & Discussion] brmbjn:
For non root device ?
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
If you get back volte then take efs backup ,

And you can flash any rom ,

If in future again your volte gone then just restore this efs backup with working volte;)
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
Try by your self,I think you will able to get volte.;)
[Moto G5 Plus Guides, News, & Discussion] Shonilchi:
Should I flash a full stock ROM or does it work if I perform this change on a debloated stock ROM as well?
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
Try it by your self,it may work in debloated,

:):D
[Moto G5 Plus Guides, News, & Discussion] Shonilchi:
You know what? I tried and it worked. Great thanks to you. I dont have to wait for an Oreo ROM for this... lol
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
Great,now don't forget to take efs backup of this working volte this time,and flash any rom you will always have your volte.;):D
[Moto G5 Plus Guides, News, & Discussion] firdous95:
i am now on lineage 15.1 so i should take efs backup now only or after flashing stock...then again restore and also restore that file from the zip?
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
If your have network (4g,lte) then take efs backup ,then you are good to go
[Moto G5 Plus Guides, News, & Discussion] Kdemwa:
I Love You Bro

;);)
[Moto G5 Plus Guides, News, & Discussion] firdous95:
ya 4g lte works but no volte
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
:D:D thank to god not me, this idea suddenly came in my mind.

Now don't forget to take this working volte efs backup;)
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
Then just follow my steps,

Restore persist.
[Moto G5 Plus Guides, News, & Discussion] antojamez:
Thanks brother

It works!!

Thanks a lot
[Moto G5 Plus Guides, News, & Discussion] surensince93:
I am on Pixel Experience now. My IMEI number is 0. What to do?
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
I can't say much about how to restore imei but,

Try to restore only persist,may be you will get network,
[Moto G5 Plus Guides, News, & Discussion] bird412:
First off, thank you sir!!!!!

Secondly, does this method require a clean ROM install or can I just flash without a clean install?
[Moto G5 Plus Guides, News, & Discussion] surensince93:
Didn't work :(
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
If you are on stock rom then you good to go,no clean install is required,but if you are on custom rom then first you have to come back to stock then proceed.;):)
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
I can't say much but try this,

flash stock room, restore persist,start device then setup(you may not have imei or network but don't worry) after that flash pixel rom,
[Moto G5 Plus Guides, News, & Discussion] Shad1234:
Volte working again

Alot help !

Thanks for saving the volte network
[Moto G5 Plus Guides, News, & Discussion] bird412:
Thank you much, it’s working
[Moto G5 Plus Guides, News, & Discussion] AdityaYT:
Can Volte work in oreo??

What if i backup the EFS(when volte is working) and restore it after installing oreo??:confused:
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
Yes it will work,I flashed pixel experience and yes it is working.:D

Just remember BACKUP YOUR CURRENT VOLTE WORKING EFS,SO IF IN FUTURE ANYTHING GOES WRONG WITH VOLTE YOU CAN EASILY RESTORE THAT EFS BACKUP AND HAVE VOLTE ;)
[Moto G5 Plus Guides, News, & Discussion] pranjal24:
After doing this can we relock the bootloader?
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
I haven't locked it yet but if you want to then,

See POST NO #26 he has locked his bootloader
[Moto G5 Plus Guides, News, & Discussion] pranjal24:
Thankyou so much VoLTE up and running. BTW Baseband changed to .47a earlier it was .47e Any particulat reason?
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
Because this file is of Moto g4 plus,

But worry not it will fix when stock Oreo comes
[Moto G5 Plus Guides, News, & Discussion] pranjal24:
How did you locked the bootloader? pls tell me the commands. Thankyou
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
commands are

fastboot oem lock
fastboot oem lock
fastboot flash oem oem.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 boot boot.img
fastboot oem lock
[Moto G5 Plus Guides, News, & Discussion] bra1niac:
so this has worked for me, sort of

I flashed the stock ROM from https://mega.nz/#!SFIXlDoA!INcRIuH-WnaQjMlaJwmUgbZDcx-Lt8Uip-2rqxqse6A

then I extracted the persist from this thread, added it to my efs backup folder, and restored that folder

then I booted into the system and boom, lte and volte are back (previously I could only get evdo/3g for data)

HOWEVER, after I reboot the phone, I lose service. the signal strength icon flashes between no signal and some signal and a "R" by the icon, for "Roaming" I presume. I never get a voice or data connection. even if I reboot before even starting the phone setup, I lose service on the reboot.

still this is a awesome find and farther than we've gotten before. if anyone has any thoughts, let me know!?
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
Yep, for some reason I have to reflash the efs with persist every time I reboot the phone. Oherwise, no cellular service at all.
[Moto G5 Plus Guides, News, & Discussion] antojamez:
I have Xt1686 Indian version

I flashed stock firmware via fastboot and then restored efs with the persist file in this thread. I was able to lock my bootloader too. Volte is working perfectly.

I have no issues when I reboot.
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
I didn't relock my bootloader yet, but with twrp recovery, every time I reboot there is no service until I restore efs and persist. Maybe locking the bootloader keeps it from changing efs.
[Moto G5 Plus Guides, News, & Discussion] antojamez:
Do you have IMEI after reboot?
[Moto G5 Plus Guides, News, & Discussion] bra1niac:
yes, this restores service for me as well.
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
It is not 0 but it is not correct when I checked it. This is with fastboot flashed stock rom POTTER_NPNS25.137-93-4_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.
[Moto G5 Plus Guides, News, & Discussion] antojamez:
Is 93-4 the correct version?.

Donno bro it's working alright for me.
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
Yes, it's the correct version for US Verizon carrier. Like I said, it works ok until a reboot. For some reason efs gets corrupted on reboot. It is at least a step ahead of where we were a day ago. LOL
[Moto G5 Plus Guides, News, & Discussion] antojamez:
Try locking the bootloader then.

It might work.
[Moto G5 Plus Guides, News, & Discussion] bra1niac:
I flashed my efs+persistent and then relocked the bootloader through fastboot with the 137-93-4 factory stock ROM.

I had no signal on the first boot into the stock ROM.
[Moto G5 Plus Guides, News, & Discussion] bird412:
im on 92-4 and it works perfectly fine for me, rebooted a few times as well
[Moto G5 Plus Guides, News, & Discussion] bra1niac:
VZW or another provider?
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
Because this persist is from Moto g4 plus you guys have issue like this but Guys if anyone share our "POTTER- MOTO G5 PLUS" ,

Persist backup then everyone's problem might be fixed in future.

So guys I'm requesting you if anyone has working volte and haven't Bricked it yet,can you please provide us twrp persist backup.???
[Moto G5 Plus Guides, News, & Discussion] bird412:
I'm on verizon
[Moto G5 Plus Guides, News, & Discussion] skmaiyad:
How to restore own efs backup? i don't understand this. please help me with this. i want volte back.
[Moto G5 Plus Guides, News, & Discussion] bird412:
If you have signal, there is no need to restore efs, simply restore the persist thing.

If you don't have signal and are on an Oreo rom, you have to go back to the stock room, get signal, and backup your efs partition in twrp. Then you can restore the persist file

If youre on the stock rom and have no signal, I'm not sure what you can do
[Moto G5 Plus Guides, News, & Discussion] skmaiyad:
right now, i am on custom Oreo ROM, and now I am moving to stock rom and i am sure i will not have signal on that..
[Moto G5 Plus Guides, News, & Discussion] Zuk z1 K2L:
put wht in backup folder of twrp?

persist.ext4.win file or put this file in folder?

give me suggestion.
[Moto G5 Plus Guides, News, & Discussion] Shad1234:
:cool:

Copy the persist.ext4.win file in twrp backup folder and restore the backup after 2-3 restart it will bring back your volte
[Moto G5 Plus Guides, News, & Discussion] berinaniesh:
Worked like charm

Volte works and will check for the stability issues in LTE. Thanks for the work bro.
[Moto G5 Plus Guides, News, & Discussion] skmaiyad:
how can i restore efs backup.? i dont have signal after flashing to stock rom.
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
First get your imei,

After that if you got all LTE/4g then take that backup in twrp.

-go into twrp.

-select backup

-select efs backup.

This is how you can create your own efs backup.

After getting efs backup proceed as mentioned
[Moto G5 Plus Guides, News, & Discussion] skmaiyad:
my imei showing 0 after moving back to stock rom.
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
You have to do this in any Oreo rom,

Once you get imei ,LTE/4g then do as I said in above post
[Moto G5 Plus Guides, News, & Discussion] skmaiyad:
right now, i am using omni ROM and i have on 3g signal. not LTE/4g.
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
If you have 3g signal then go into boot loader erase modem St 1 and modem St 2 by following commands

fastboot erase modemst1

fastboot erase modemst2

You will have 4g/Lte signals,then take backup
[Moto G5 Plus Guides, News, & Discussion] david.gs.gm:
Hi... new full Oreo update will fix VoLTE?
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
This doesn't work for all, but even having 3G will restore your IMEI. So he can back up his efs partition at that point.
[Moto G5 Plus Guides, News, & Discussion] irfanalinawaz:
How to take persist backup in twrp, please guide.

Because there are options for oem, efs, system, data, recovery but not an option for persist.
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Choose efs, take a backup of it, after rebooting search for it with a file explorer in the TWRP folder, copy it, zip and upload. You will make a lot of people happy.
[Moto G5 Plus Guides, News, & Discussion] namanshrimali:
How to reflash Oreo roms without loosing volte ?

I tried this and re-flashed an oreo rom, just to find out no volte connectivity :(. Would you please enlighten how to get volte on the custom rom ?

T.I.A :)
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
Once you get volte then take backup of this new volte working EFS,

And whenever you flash any Oreo ROM just restore that backup,you will have your IMEI as well as volte
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
Currently we can't take persist backup of MOTO G5 PLUS,but we have persist backup of MOTO G4 PLUS,

SO just place this persist backup in your twrp folder and restore this in twrp
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
Other devices used ADB shell commands to backup, fix, modify /persist partition. Have been looking into them but my phones partition is corrupt so no joy from my end. If I find a good tutorial on how to use ADB to back up this partition, I'll post it.
[Moto G5 Plus Guides, News, & Discussion] bra1niac:
I snagged a 2nd G5 plus which has never been unlocked/rooted/etc. So if you can figure out how to backup the persist partition using ADB without needing to unlock, I can do it.

I'll dig around as well.
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
I don't know how to do that,if anyone know how to edit/modify then it will be very helpful.
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
I'm not an expert in the android file structure, but it is linux related so I think to start would be to define where our persist partition is, compared to example at /dev/block/mmcblk0p14.

adb shell "dd if=/dev/block/mmcblk0p14 of=/storage/sdcard1/mybckup/persist"

I wonder if Lenovo publishes these as part of open source android project.
[Moto G5 Plus Guides, News, & Discussion] bra1niac:
Yeah I see this is just iterating over all the partitions on the flash and dumping whatever is in it into a local file. Without knowing which partition on the phone's sdcard is the persist partition, we won't get far.

I imagine that TWRP must know which is which, since it can restore the persist partition. If TWRP is open source we should be able to look at the source code for the potter version of TWRP and see what partition it writes to when restoring persist.

I'll have some time this afternoon and can look that over. I'll report back.
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
Does twrp restore this partition, or is it just morphed into efs. I do notice that twrp addresses "persist" in "mount".
[Moto G5 Plus Guides, News, & Discussion] bra1niac:
When I added the persist file from this thread to my EFS backup and then restored it, TWRP showed two checkboxes that I could choose to restore. One for EFS and one for persist. You could select one or both of them independently. So I tried checking just persist and restoring as well as restoring both.

If this means that TWRP was jamming the EFS backup and the persist backup together and restoring both to the EFS partition, then I don't know if TWRP has the means to extract only persist from the G5 plus. Since I really don't understand what TWRP is doing when it restores an EFS backup that we tossed the persist file into, I'm not sure how aware TWRP is of persist on the G5 Plus.

Still, it seems like there is something there worth digging deeper into.
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
Thank you brother for your big effort,we will get solution together.:)
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
open adb, then run su command.

Nevermind, I didn't see it wasn't rooted.
[Moto G5 Plus Guides, News, & Discussion] nsreddy4444:
Hi Akshu2697 , You are Genius .. Thanks for helping me brother...:)
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
No one knows for sure, but did you try the OP here?
[Moto G5 Plus Guides, News, & Discussion] psychopac:
[MENTION=9072657]Ravash7[/MENTION] just unlocked his phone, I read his post which is linked here...

https://xdaforums.com/g5-plus/how-to/boot-animation-getting-rewritten-to-t3774395