Restore Persist.img - Moto G6 Plus Questions & Answers

After a failed update and some flashing my 4G Connection is gone (sim is locked, no baseband).
Howeever I made a backup of persist.img, modemst1.img and modemst2.img months ago.
Couldn't figure out so far how to restore the files, could someone tell me how to do?

Code:
dd if=/path/to/persist.img*modemst1.img of=/path/to/persist*modemst1-partition

Thanx for the reply, so do I need to do this step 3 Times for all 3 Files?
dd if=/path/to/persist.img*modemst1.img of=/path/to/persist*modemst1-partition
would that mean then for modemst2:
dd if=/path/to/persist.img*modemst2.img of=/path/to/persist*modemst2-partition ???
Do I need another command for the persist.img too?
Sorry for asking, but I don't wanna mess up even more with my persist file.

How did you backup these partitions?
A .img file is a bit to bit copy of a partition or a drive.
Are you sure you have a backup ending with .img? That's very important for the way you restore your backup!!
If you have .img backups then you will restore them like this:
First copy your .img files to /sdcard (internal storage).
persist.img:
Code:
dd if=/sdcard/persist.img of=/dev/block/by-name/persist
modemst1.img
Code:
dd if=/sdcard/modemst1.img of=/dev/block/by-name/modemst1
modemst2.img
Code:
dd if=/sdcard/modemst2.img of=/dev/block/by-name/modemst2
Restart your device!

Thanx for the reply,
My files are definately .img files, I backed them up months ago when starting with the Custom Rom Stuff, too be (hopefully) save.
Backed them up with this 3 commands
dd if=/dev/block/mmcblk0p2 of=/sdcard/modemst1.img
dd if=/dev/block/mmcblk0p3 of=/sdcard/modemst2.img
dd if=/dev/block/mmcblk0p4 of=/sdcard/persist.img
Was long ago so I couldn't remember exactly everything in Detail.
One Question left, setting the Commands while in Bootloader, TWRP or normal in system?

Dave-C said:
Thanx for the reply,
My files are definately .img files, I backed them up months ago when starting with the Custom Rom Stuff, too be (hopefully) save.
Backed them up with this 3 commands
dd if=/dev/block/mmcblk0p2 of=/sdcard/modemst1.img
dd if=/dev/block/mmcblk0p3 of=/sdcard/modemst2.img
dd if=/dev/block/mmcblk0p4 of=/sdcard/persist.img
Was long ago so I couldn't remember exactly everything in Detail.
One Question left, setting the Commands while in Bootloader, TWRP or normal in system?
Click to expand...
Click to collapse
Are you sure you backed up mmcblk0p2/3/4?? Because these partitions are definitively not the persist or modemst ones! If you execute the commands above you will override your partitions with the wrong data!!

WoKoschekk said:
Are you sure you backed up mmcblk0p2/3/4?? Because these partitions are definitively not the persist or modemst ones! If you execute the commands above you will override your partitions with the wrong data!!
Click to expand...
Click to collapse
Yes backed up with these 3 Commands, found them somewhere in this board.
Had these commands saved on my PC, so definately used them but probably good that I didn't used them yet.
Howeever, I also have a TWRP Backup with EFS and persist files (efs1.emmc.win, efs2emmc.win, persist.ext4.win).
How could I use them, simply via TWRP or better way to do this?

Can't Believe it....
After lots of flashing (Back to Stock etc.) I got my 3G/4G/Baseband Connections back!
Could you tell me the right Commands to backup the Persist/EFS/Modem Parts?
Anyways thank you so much for patiently helping me through this.
Thanx!

Use the TWRP backups. They're perfect!

Did the TWRP Backups now.
In case you know the commands for the img output, i'd still like to know.
I'd like an independent solution, since I had two TWRP Backups each with the EFS/Partition Backup, while 1 of them was somehow not working (error output).
So i'd like to be as secure as possible.

You need the dd command to create an image of each partition. The partitions on your device are numbered consecutively:
persist= /dev/block/mmcblk0p38
modemst1= /dev/block/mmcblk0p34
modemst2= /dev/block/mmcblk0p35
Open a terminal app and type:
for persist:
Code:
dd if=/dev/block/[B]mmcblk0p38[/B] of=/sdcard/persist.img
if= input file (partition)
of= output file (.img backup)

Hello, I am having the same problem but only with a backup with no IMEI. Does anyone know how to solve this? Or to merge these two backups to form one with IMEI and stable signal. The backups are encrypted I guess because nothing makes sense in them

juampapo546 said:
Hello, I am having the same problem but only with a backup with no IMEI. Does anyone know how to solve this? Or to merge these two backups to form one with IMEI and stable signal. The backups are encrypted I guess because nothing makes sense in them
Click to expand...
Click to collapse
What kind of backup do you have?? What is a backup with no IMEI?

WoKoschekk said:
What kind of backup do you have?? What is a backup with no IMEI?
Click to expand...
Click to collapse
TWRP backup of persist and efs
When I made the backup I had no IMEI but the wifi was working (I actuall made the backup after the signal drop issue)

juampapo546 said:
TWRP backup of persist and efs
When I made the backup I had no IMEI but the wifi was working (I actuall made the backup after the signal drop issue)
Click to expand...
Click to collapse
If you don't have a backup of /persist with a IMEI then you won't be able to restore it.
https://forum.xda-developers.com/g5-plus/how-to/fix-persist-resolve-imei0-explanation-t3825147

WoKoschekk said:
If you don't have a backup of /persist with a IMEI then you won't be able to restore it.
https://forum.xda-developers.com/g5-plus/how-to/fix-persist-resolve-imei0-explanation-t3825147
Click to expand...
Click to collapse
But isn't there a way to edit the backup or merge both backups I have?
(However when I erase modemst1 and 2 IMEI comes back but with the signal drop, a fix for that would also help me)

For the right understanding:
You have two different TWRP backups for /persist and /efs. The first one restores IMEI but signal is lost and the other one restores your signal without IMEI??

WoKoschekk said:
For the right understanding:
You have two different TWRP backups for /persist and /efs. The first one restores IMEI but signal is lost and the other one restores your signal without IMEI??
Click to expand...
Click to collapse
I am so sorry I answered this late, yes that is correct and I have been using my phone with WiFi only for months now

Try to merge them manually if you know the corresponding files. I've no idea how to figure them out...
TWRP won't merge your backups.

Related

EFS IMEI Backup?

I have root my S4 and will make a backup from efs/imei but EFS Professional not working with the S4. How can i backup efs?
is it so hard to get a copy of ur EFS folder to safe place ?
You can use TWRP recovery to get a EFS backup
Gesendet von meinem GT-I9505 mit Tapatalk 2
You can back up a whole partition with Terminal Emulator from Play Store.
This is example made for I9505 ONLY!!!!
For I9500 use mmcblk0p3 and efs.img instead!!!
Download it , and run it, then type:
Code:
su
dd if=/dev/block/mmcblk0p10 of=/mnt/sdcard/efs.img.ext4
and it will dump whole partition into one file efs.img.ext4 on your internal SD card
or
Code:
su
dd if=/dev/block/mmcblk0p10 of=/mnt/extSdCard/efs.img.ext4
to save it on external SD.
If something goes wrong and you need to restore it:
Code:
su
dd if=/mnt/sdcard/efs.img.ext4 of=/dev/block/mmcblk0p10
or
Code:
su
dd if=/mnt/extSdCard/efs.img.ext4 of=/dev/block/mmcblk0p10
Keep it safe and enjoy
djembey said:
You can back up a whole partition with Terminal Emulator from Play Store.
Download it , and run it, then type:
Code:
su
dd if=/dev/block/mmcblk0p10 of=/mnt/sdcard/efs.img
and it will dump whole partition into one file efs.img on your internal SD card
or
Code:
su
dd if=/dev/block/mmcblk0p10 of=/mnt/extSdCard/efs.img
to save it on external SD.
If something goes wrong and you need to restore it:
Code:
su
dd if=/mnt/sdcard/efs.img of=/dev/block/mmcblk0p10
or
Code:
su
dd if=/mnt/extSdCard/efs.img of=/dev/block/mmcblk0p10
Keep it safe and enjoy
Click to expand...
Click to collapse
With all respect to your post, I would like to warn people that this is not working for all the models/devices. Although it might look fine when executing the commands, it might not have made a backup of EFS, but of something else... What I know for sure is that it will not work for atleast the international i9505-model of the S4, as the partition layout is different.
In my post below, more details are given on this partition id.
http://forum.xda-developers.com/showthread.php?t=2276599
While executing your commands does not affect the device, it does not always give the people a backup they expect it to be, depending on their device/model. In my case you are able to verify which 'mmcblk' is actually efs on your device. It also gives a TAR backup as option.
Mr_Q said:
With all respect to your post, I would like to warn people that this is not working for all the models/devices. Although it might look fine when executing the commands, it might not have made a backup of EFS, but of something else... What I know for sure is that it will not work for atleast the international i9505-model of the S4, as the partition layout is different.
In my post below, more details are given on this partition id.
http://forum.xda-developers.com/showthread.php?t=2276599
While executing your commands does not affect the device, it does not always give the people a backup they expect it to be, depending on their device/model. In my case you are able to verify which 'mmcblk' is actually efs on your device. It also gives a TAR backup as option.
Click to expand...
Click to collapse
Mate... I've added that it is for I9505!!!!
I9500 have EFS located @ mmcblk0p3...........
thanks
I used GS2 repair from play store. It went through the usual process and I can see the back up file on the sd card. Can anybody more qualified confirm if this app works on S4?
Sent from my GT-I9505 using xda premium
djembey said:
Mate... I've added that it is for I9505!!!!
I9500 have EFS located @ mmcblk0p3...........
thanks
Click to expand...
Click to collapse
Great. You are right, in my case it's mmcblk0p10 as well, as mentioned correctly in my guide already.
Thank you for updating.
HANDSY said:
I used GS2 repair from play store. It went through the usual process and I can see the back up file on the sd card. Can anybody more qualified confirm if this app works on S4?
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
The best thing is to check it with the developer. I do not know what file has been created, although I expect it to be a raw copy using dd. The best thing is to do it manually. Or by the instructions given by djembey, or by the more detailed step-by-step instructions in the thread of my previous post here.
Hey, I managed to backup the EFS folder. Is there any way to modify the backup file and restore it after the modification? I want to change the IMEI number but unfortunately I have no box / cables available to do so. There must be a solution?! I am currently living in Turkey and they restrict western mobile phone usage for foreign people.
thanks a lot
cheers,
ralf
,
ralfa1234 said:
Hey, I managed to backup the EFS folder. Is there any way to modify the backup file and restore it after the modification? I want to change the IMEI number but unfortunately I have no box / cables available to do so. There must be a solution?! I am currently living in Turkey and they restrict western mobile phone usage for foreign people.
thanks a lot
cheers,
ralf
Click to expand...
Click to collapse
Same here with me
i9505 imei null
please can somebody help me,what ever I try not working.Unfortynately everything working,but always show imei null and not have baseband,of course and network too.I am install with Odin few different fabrics roms or how you call that.Last is this one with 4 files inside
I9505XXUGNG8_I9505OXXGNG2_I9505XXUGNG8_HOME.tar.Everything going fine,but havent imei like on start.I am also try few different things with EFS_Professional.but cannot fix my problem.Also I am try to erase EFS,but folder cannot erase,just files inside,and trying other one downloaded from net,but not going.Every time after reboot,EFS be back automatics,Can you help me ,please
If I am write inside EFS folder must be a file nv_data.bin ,I dot have that.Have lots of,but dont see that.I have inside few folders,like imei and etc.. And inside imei folder I have mps_code.dat.I am hope somebody can understand my problem.Can somebody sent to me that file,and can I take from other phone.Is that my solution,or what.HELP PLEASE
this is in function to my i9505,but not help me to solve problem.Somehow I not have file nv_data.bin on my phone in efs folder,and backup and restore not help me.Please do you no some solutions?

Null IEMI , Unknown Baseband , no any efs backup . overwite efs by another device

Hi .
i have a i9500 device and my device baseband is null , IEMI is null .
Flashing official rom android 4.3 ... problem not solved ...
flashing custum rom ... problem not solved ...
downgrade to 4.2 .... problem not solved ...
flashing radio/modem ..... problem not solved ...
Remove EFS partition create again and mount again with adb shell ... problem not solved
overwrite EFS partition with another device partition . problem not solved ...
backup
EFS partition,
m9kefs1 partition ,
m9kefs2 partition,
m9kefs3 partition ,
CARRIER partition ,
CDMA-RADIO partition
RADIO partion ,
from another device with this commands
dd if=/dev/block/mmcblk0p3 of=/sdcard/efs.img
dd if=/dev/block/mmcblk0p4 of=/sdcard/efs1.bin
dd if=/dev/block/mmcblk0p5 of=/sdcard/efs2.bin
dd if=/dev/block/mmcblk0p6 of=/sdcard/efs3.bin
dd if=/dev/block/mmcblk0p7 of=/sdcard/carrier.bin
dd if=/dev/block/mmcblk0p12 of=/sdcard/cdma.bin
dd if=/dev/block/mmcblk0p13 of=/sdcard/radio.bin
then copy files to my device and restore with this command on my device
dd if=/sdcard/efs.img of=/dev/block/mmcblk0p3
dd if=/sdcard/efs1.bin of=/dev/block/mmcblk0p4
dd if=/sdcard/efs2.bin of=/dev/block/mmcblk0p5
dd if=/sdcard/efs3.bin of=/dev/block/mmcblk0p6
dd if=/sdcard/carr.bin of=/dev/block/mmcblk0p7
dd if=/sdcard/cdma.bin of=/dev/block/mmcblk0p12
dd if=/sdcard/radio.bin of=/dev/block/mmcblk0p13
BUT Problem Not Solved .....
HELP ME PLEASE
this should be in the Q&A thread bro.
first you always make an EFS Backup.
second don't restore any EFS from another device it will never work.
try this http://forum.xda-developers.com/showthread.php?t=2392632
or look for similar thread/posts as yours. goodluck :good:
I Have not any back Up ...
gonemad02 said:
this should be in the Q&A thread bro.
first you always make an EFS Backup.
second don't restore any EFS from another device it will never work.
try this http://forum.xda-developers.com/showthread.php?t=2392632
or look for similar thread/posts as yours. goodluck :good:
Click to expand...
Click to collapse
thanks ....
I did read that link ,,
but I have not any backup from my efs ...
What Should I do ?
tried flashing it back to stock? /efs folder empty right now? your last resort is to take it to your nearest service center
gonemad02 said:
tried flashing it back to stock? /efs folder empty right now? your last resort is to take it to your nearest service center
Click to expand...
Click to collapse
my efs folder is not empty ...
i restored efs from another device to this device ...
restoring another efs from another device will not do anything. because efs is related to your phone's S/N and IMEI. and it's like cloning or theft from another device. delete efs folder and reboot. if its still null imei. try reflashing stock rom. but if it does not work bring it to a samsung service center. they can fix that. or look for another forums to rewrite your whole efs including IMEI.
If your original EFS partition contents has been lost and you made no backup prior to that happening then there is nothing you can do. Flashing a stock rom won't fix it as the contents of that particular partition are unique to each phone and isn't touched when flashing.
Flash your original stock rom and take it to a service center, although make sure you format the EFS partition before hand. Just say it happened when you flashed it or something. I have even heard of one guy who's EFS was formatted just from turning on Airplane Mode, although I'm not sure he was being entirely honest about that. If your Knox flag is tripped you might find yourself on the wrong end of a bill though.
where is the baseband refrense
Pagnell said:
If your original EFS partition contents has been lost and you made no backup prior to that happening then there is nothing you can do. Flashing a stock rom won't fix it as the contents of that particular partition are unique to each phone and isn't touched when flashing.
Flash your original stock rom and take it to a service center, although make sure you format the EFS partition before hand. Just say it happened when you flashed it or something. I have even heard of one guy who's EFS was formatted just from turning on Airplane Mode, although I'm not sure he was being entirely honest about that. If your Knox flag is tripped you might find yourself on the wrong end of a bill though.
Click to expand...
Click to collapse
Hi , and thanks
Is there any way to put my imei and sn in efs folder (nv_data.bin)?
and I have a some question about BaseBand
how baseband read the baseband version (from where or form witch file or witch part of memory ) ?
and can you help me to find technical article about BaseBand and IMEI ?
sorry . if my english is not good ...
thanks ...

Backup Nexus 7 using dd command

Usually i would make ROM backups using the dd command. i come into a problem when i try to dd the data partition since the sdcard is syslink to /data/media in this device. it wants to pull a 25GB file.
is there any way to omit /data/media from the dd command when backing up /data partition?
thanks.
I don't think so, dd acts independently of the file system and hence isn't able to deal with directories.
Why don't you use nandroid or TiBu?
luckyrumo said:
I don't think so, dd acts independently of the file system and hence isn't able to deal with directories.
Why don't you use nandroid or TiBu?
Click to expand...
Click to collapse
thanks for the reply.
i dont use nandroid or TiBu because that is a extra step, when loading multiple devices with a rom it can get really time consuming to flash a recovery then copy a backup then run the backup then reflash a stock recovery.
i reason i want to have a userdata.img is so i can unlock the bootloader and flash in fastboot. its by far the quickest solution.
there just has to be a way to unlink /data/media from the partition. then dd the rest.
tronoftroy said:
thanks for the reply.
i dont use nandroid or TiBu because that is a extra step, when loading multiple devices with a rom it can get really time consuming to flash a recovery then copy a backup then run the backup then reflash a stock recovery.
i reason i want to have a userdata.img is so i can unlock the bootloader and flash in fastboot. its by far the quickest solution.
Click to expand...
Click to collapse
That makes sense, thanks for the explanation.
tronoftroy said:
there just has to be a way to unlink /data/media from the partition. then dd the rest.
Click to expand...
Click to collapse
Just an idea: Maybe you can get a hint by finding out how TWRP manages to wipe /data without /data/media?
luckyrumo said:
That makes sense, thanks for the explanation.
Just an idea: Maybe you can get a hint by finding out how TWRP manages to wipe /data without /data/media?
Click to expand...
Click to collapse
i was actually just looking at the source code for CWM and it seem similar to TWRP. they use a archive like Tar. TWRP just calls it .win. and will work directly with the filesystem. but i will check for how they wipe. thanks!

Backup EFS

Can someone post how one can backup efs? I did it thru adb on my one. Just want to make sure how to do it on the two. Thank you
From TWRP recovery choosing into backup only EFS
damsolu said:
From TWRP recovery choosing into backup only EFS
Click to expand...
Click to collapse
Thanks, had already done that and the files that it created didnt say modem.bin etc like it did when I backed up one my One a few months ago. Just want to make sure that what twrp created will be all i need to do? Thanks again
i lost my efs with no backup anyhelp?
godzulu said:
Thanks, had already done that and the files that it created didnt say modem.bin etc like it did when I backed up one my One a few months ago. Just want to make sure that what twrp created will be all i need to do? Thanks again
Click to expand...
Click to collapse
The last time I looked, the EFS backup option in TWRP didn't actually backup the two EFS partitions, so don't rely on it.
There's a flashable zip here that will backup your EFS partitions (modemst1 & modemst2). It also includes a Restore_EFS.bat file that can restore your EFS via fastboot.
Spannaa said:
The last time I looked, the EFS backup option in TWRP didn't actually backup the two EFS partitions, so don't rely on it.
There's a flashable zip here that will backup your EFS partitions (modemst1 & modemst1). It also includes a Restore_EFS.bat file that can restore your EFS via fastboot.
Click to expand...
Click to collapse
yeah..i have backup EFS from twrp but only realize that the EFS backup from TWRP is not EFS, now my IMEI2 lost & i dont know how to solve it. really head ache
I've done a complete device backup and could you tell me which files indicate efs has been backed up ? Is it modem.emmc.win or sbl1.emmc.win or some other file ?
akashpopat21 said:
I've done a complete device backup and could you tell me which files indicate efs has been backed up ? Is it modem.emmc.win or sbl1.emmc.win or some other file ?
Click to expand...
Click to collapse
Did you read the last few posts?
there is one more option, you can backup via flashfire
On creating a back up using TWRP it makes a file named "oem_stanvbk.emmc.win".... Maybe it is having two modems.....any idea how to explore this file? @Spannaa
Droidlover123 said:
On creating a back up using TWRP it makes a file named "oem_stanvbk.emmc.win".... Maybe it is having two modems.....any idea how to explore this file? @Spannaa
Click to expand...
Click to collapse
The oem_stanvbk partition contains the modem (static_nvbk.bin) which is included in OOS roms.
Not sure why you'd want to explore it...
I guess they lost the imei2 (h2o/erase modemst) and they are trying to find out, if this twrp backup file contains the imei2.
pryggi said:
I guess they lost the imei2 (h2o/erase modemst) and they are trying to find out, if this twrp backup file contains the imei2.
Click to expand...
Click to collapse
It doesn't, it's just the modem/radio.
AFAIK, the IMEIs are in modemst1 & modemst2 (The two modem firmware data partitions).
Yep, this is my understanding too. On op2 the modem firmware is in
oneplus2:/ # ls -l /dev/block/platform/soc.0/f9824900.sdhci/by-name
..
lrwxrwxrwx 1 root root 20 1970-08-26 21:51 modem -> /dev/block/mmcblk0p1
And the modem settings/imeis are in:
lrwxrwxrwx 1 root root 21 1970-08-26 21:51 modemst1 -> /dev/block/mmcblk0p17
lrwxrwxrwx 1 root root 21 1970-08-26 21:51 modemst2 -> /dev/block/mmcblk0p18
The question is, if it is possible to figure out the format of the data on p17/p18 and edit it by adding the imei2 back.
It doesn't seem to be a file system:
Oneplus2:/ # fdisk -l /dev/block/mmcblk0p17
Disk /dev/block/mmcblk0p17: 1 MB, 1572864 bytes
4 heads, 16 sectors/track, 48 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Device /dev/block/mmcblk0p17: doesn't contain a valid partition table
file -L /dev/block/mmcblk0p17
/dev/block/mmcblk0p17: block special
and
blkid -o value -s TYPE /dev/block/mmcblk0p17
does not return anything.
And if you open the modemst1/2.bin files it seems to be binary data, which does not make sense even in hex editor.
I wonder if oneplus staff could help the poor souls who have lost the imei2 and disclose this info how to get imei2 back...

[needed]persist backup of moto g5 plus which is not bricked yet

Hey guys as you know that we are able to get back volte successfully in Moto g5 plus by restoring PERSIST BACKUP.
So I think MAYBE persist partition got corrupted during flashing back stock.
But that backup is from MOTO G4 PLUS ,and some user facing a problem that whenever they reboot volte and imei again gone,and Everytime they have to restore efs (maybe because of that persist partition)so I am requesting you ,can someone please pull out persist backup of STOCK MOTO G5 PLUS WITH WORKING VOLTE (OR G5 PLUS WHICH IS NOT BRICKED YET).
I AM ATTACHING A TWRP FOR TAKING BACKUP WHICH IS MADE BY DEVELOPER.
SO YOU HAVE TO JUST GO IN TO BACKUP AND TAKE BACKUP OF PERSIST PARTITION
You can download twrp from below link.
https://potterroms.ddns.net/TWRP/twrp-3.2.1-1-potter_persist.img
I am not responsible for any brick/damage caused during you taking backu
Alright, so I got a Persist backup using the partition backup & restore app. I don't use VoLTE, but my IMEI hasn't become zero. I'm on Oreo. It's saved as a .img file. If this is helpful I'll upload the file. @akshu2697
thedr34m13 said:
Alright, so I got a Persist backup using the partition backup & restore app. I don't use VoLTE, but my IMEI hasn't become zero. I'm on Oreo. It's saved as a .img file. If this is helpful I'll upload the file. @akshu2697
Click to expand...
Click to collapse
I would definitely love to give it a go. I've had to restore my EFS every reboot since I tried installing Pixel Experience. I'd love to not have to remember anymore!
telegram @bcraw
thedr34m13 said:
Alright, so I got a Persist backup using the partition backup & restore app. I don't use VoLTE, but my IMEI hasn't become zero. I'm on Oreo. It's saved as a .img file. If this is helpful I'll upload the file. @akshu2697
Click to expand...
Click to collapse
Yes,it will be helpful,can you please upload that file.?
akshu2697 said:
Yes,it will be helpful,can you please upload that file.?
Click to expand...
Click to collapse
There you go.
thedr34m13 said:
There you go.
Click to expand...
Click to collapse
i will try ,
thank you so much brother
akshu2697 said:
i will try ,
thank you so much brother
Click to expand...
Click to collapse
No problem. Happy to help. If there's a way to get a better backup, tell me and I'll try.
thedr34m13 said:
No problem. Happy to help. If there's a way to get a better backup, tell me and I'll try.
Click to expand...
Click to collapse
sorry brother ,
i tried your backup,but this backup isn't working,
we need twrp persist backup as i have posted on the thread of volte.
akshu2697 said:
sorry brother ,
i tried your backup,but this backup isn't working,
we need twrp persist backup as i have posted on the thread of volte.
Click to expand...
Click to collapse
Not sure how to backup persist in twrp. Couldn't find instructions anywhere. If you find instructions, tell me and I'll upload the backup.
thedr34m13 said:
Not sure how to backup persist in twrp. Couldn't find instructions anywhere. If you find instructions, tell me and I'll upload the backup.
Click to expand...
Click to collapse
sure,i'll do
DELETED
With a lot of research, I was able to dump the persist partition using adb. My dump will do no good, as I have only been able to get persist back by OP's method. We need someone to dump who has not flashed an oreo rom. Ok, that being said, here is how.
Make sure your phone is rooted.
Make sure usb debugging is enabled.
Boot phone into recovery.
Open adb with phone connected to pc.
Code:
adb devices
You should see your device listed.
Code:
adb shell
You should get ~# and something like a backward arrow [6N. That was mine yours may differ. If you have ~$ instead of ~# you are not rooted properly. If you used magisk you may have to add the sudo module.
Code:
ls -al /dev/block/platform/soc/7824900.sdhci/by-name
This will give you a list of all partitions. Look through them and find one described as persist. Mine was this:
Code:
lrwxrwxrwx 1 root root 21 Jan 1970 persist -> /dev/block/mmcblk0p30
We are interested in the address /dev/block/mmcblk0p30.
We need to type in
Code:
dd if=/yourMountingPoint of=/yourDestination/partitionType
where /yourMounting point is the persist address, if like mine /dev/block/mmcblk0p30. /your destination will be where you want to save it, and partition type should be persist.img.
My command was this
Code:
dd if=/dev/block/mmcblk0p30 of=/external_sd/persist.img
This will give us a proper persist .img file.
Here it is.
I clean flash stock rom (potter_NPNS25.137-93-4) before getting the persist file, was on crDroid 7.1 before. I don't know if volte is working because we don't have it on my country, but I never flashed Oreo before and never lost imei or 4g/lte, so it should be fine.
Hope it helps us and use at your own risk.
https://drive.google.com/drive/folders/1bqdxheka3jKG76AXdEExIdhG81D3agLM
[email protected] said:
With a lot of research, I was able to dump the persist partition using adb. My dump will do no good, as I have only been able to get persist back by OP's method. We need someone to dump who has not flashed an oreo rom. Ok, that being said, here is how.
Make sure your phone is rooted.
Make sure usb debugging is enabled.
Boot phone into recovery.
Open adb with phone connected to pc.
Code:
adb devices
You should see your device listed.
Code:
adb shell
You should get ~# and something like a backward arrow [6N. That was mine yours may differ. If you have ~$ instead of ~# you are not rooted properly. If you used magisk you may have to add the sudo module.
Code:
ls -al /dev/block/platform/soc/7824900.sdhci/by-name
This will give you a list of all partitions. Look through them and find one described as persist. Mine was this:
Code:
lrwxrwxrwx 1 root root 21 Jan 1970 persist -> /dev/block/mmcblk0p30
We are interested in the address /dev/block/mmcblk0p30.
We need to type in
Code:
dd if=/yourMountingPoint of=/yourDestination/partitionType
where /yourMounting point is the persist address, if like mine /dev/block/mmcblk0p30. /your destination will be where you want to save it, and partition type should be persist.img.
My command was this
Code:
dd if=/dev/block/mmcblk0p30 of=/external_sd/persist.img
This will give us a proper persist .img file.
Click to expand...
Click to collapse
How to restore this file brother.?
N1vBruno said:
Here it is.
I clean flash stock rom (potter_NPNS25.137-93-4) before getting the persist file, was on crDroid 7.1 before. I don't know if volte is working because we don't have it on my country, but I never flashed Oreo before and never lost imei or 4g/lte, so it shoud be fine.
Hope it helps us and use at your own risk.
https://drive.google.com/drive/folders/1bqdxheka3jKG76AXdEExIdhG81D3agLM
Click to expand...
Click to collapse
Thank you sooo much brother.
Thank you for your support.
akshu2697 said:
How to restore this file brother.?
Click to expand...
Click to collapse
Aren't you the OP of this? I thought you needed a way to dump the original partitions, and I provided the method with step by step to do so. I've never coded for android systems, but I'm very familiar with close cousin linux, so I suppose I could investigate and learn. However I would think whomever developed the G4 plus method could use the above dump for our phone. I guess I assumed it was you who discovered this method. I'll dig into it further when I get some time, but getting the clean persist dump was what was asked to do.
I was able to write the above persist.img file by:
1. transfer persist.img to my external_sd
2. booting into twrp
3. opening terminal
4. entering
Code:
dd if=/external_sd/persist.img of=/dev/block/mmcblk0p30
However, this placed my EMEI to 0, and I had to restore my saved efs with moto g4 + persist to get signal back. But remember, I had problem with efs every time I reboot, so my case may not be typical of those of you whose moto g4+ persist was working fine for. I would be curious if N1vBruno's persist was at the same address as mine, namely
Code:
/dev/block/mmcblk0p30
Guys who have restored their VoLTE, does your IMEI match the one that came with your phone or has it changed to something else?
I'm just being curious as I thought using someone else's persist backup would restore his IMEI to your phone, or was it efs?
Please correct me if I'm wrong.
psychopac said:
Guys who have restored their VoLTE, does your IMEI match the one that came with your phone or has it changed to something else?
I'm just being curious as I thought using someone else's persist backup would restore his IMEI to your phone, or was it efs?
Please correct me if I'm wrong.
Click to expand...
Click to collapse
It is efs.
[email protected] said:
I would be curious if N1vBruno's persist was at the same address as mine, namely
Code:
/dev/block/mmcblk0p30
Click to expand...
Click to collapse
Yes,
Code:
persist -> /dev/block/mmcblk0p30
psychopac said:
I'm just being curious as I thought using someone else's persist backup would restore his IMEI to your phone, or was it efs?
Click to expand...
Click to collapse
I hope not lol

Categories

Resources