[Q] How to backup efs? - Moto E Q&A, Help & Troubleshooting

Hi
1. How can I backup the efs partition with TWRP v2.7.1.0 that is already installed on my xt1022?
If I boot to TWRP recovery, touch the backup icon, so I get only the possibility to backup:
[x]System
[x]Data
Cache
[x]Boot
But I don't get the choice for efs, like there is one I saw on pictures (hyperlinks are not allowed for new xda users) an older TWRP version then mine for an other smartphone.
2. How can I backup the efs partition with an dd linux command - in an root adb (root already activated)?
3. How can I then restore this efs partition in case of an efs disaster?
Thanks in advance!

Use this: https://play.google.com/store/apps/details?id=ma.wanam.partitions
It automatically highlights appropriate partitions. Restore functionality is also available.

Related

Changing the name of a CWM backup folder

Is it safe to change the names of a CWM backup folder? I remember reading that the CWM on my asus transformer would not restore a backup if the backup was renamed. Also (this is my first android phone), what is the best procedure when restoring a nandroid backup?
restore
wipe ----> restore
flash rom ------> restore

[Q] onandroid TWRP backups messed up

I've been using onandroid to make CWM backups of my device for a while now.
It does work really well and I want to take the time to congratulate onandroid developer, congratulations Ameer!
Anyway, I recently got a TWRP image that supports my device and was very pleased with it as it has neat features compared to CWM (which is still awesome and flawless). So, I flashed TWRP recovery image and the next thing I did was create a typical TWRP backup with onandroid (v9.51).
Now, the thing is that I cannot properly restore the backup from TWRP. The system/kernel/recovery images seem to be recovered correctly because the system boots fine after a complete wipe, but the data is just not there. Instead I'm greeted with the typical brand new Android OS language selection, bla, bla. Everything is missing.
In an attempt to understand why I also backed-up my tablet's system and data partitions with TWRP (from recovery), this is what I ended up with both method:
TWRP
=====
system.ext4.win (508 MB)
data.ext4.win000 (1.47 GB)
data.ext4.win001 (805 MB)
Onandroid v9.51
=============
system.ext4.win (507 MB)
data.ext4.win000 (1.02 GB)
data.ext4.win001 (1.16 GB)
data.ext4.win002 (30.0 MB)
TWRPs backed-up data partition is correctly restored while onandroid isn't. Also, the contents of those archives are totally different. TWRP creates a data.ext4.winXXX structure with AndroidManifest.xml, resources.arsc file, res and META-INF folder, etc... while onandroid structure is the raw folder/file structure from the partition. I also need to mention that onandroid doesn't log any error during the process which takes around 10 minutes.
Is this normal? Am I doing something wrong?
I also tried using onandroid through Online Android Backup and I had the exact same result/problem.
PS: FYI my data partition is >2GB
Thanks for the help.
I am having the same problem. Restoring from onandroid backup restores everything but the data for me. I have tried multiple different ways to restore the data but no luck.
Teleshot said:
I am having the same problem. Restoring from onandroid backup restores everything but the data for me. I have tried multiple different ways to restore the data but no luck.
Click to expand...
Click to collapse
Sorry about this but... FINALLY!
I thought nobody else had this damn problem.
I concluded onandroid is the problem because the backups do not follow the norm in comparison to the ones made by TWRP recovery.
I'm not sure if TWRP backups were officially made differently in previous versions. This is the single thing keeping me from using TWRP as a whole.
I even posted this issue on onandroid Github but so far I had no reply from the developer. Fortunately I have a choice between TWRP and CWM, unfortunately not everyone has both compatible custom recovery roms.
I have the same problem with a CWM based recovery. Everything is restoring fine but when It comes to the data it stops with an error
DirkStorck said:
I have the same problem with a CWM based recovery. Everything is restoring fine but when It comes to the data it stops with an error
Click to expand...
Click to collapse
That is a very different issue and I don't get errors restoring TWRP backups, it just doesn't restore the data.
Anyway, what error(s) do you get while restoring your CWM backup?
Is your data partition over 2GB?
What CWM backup method do you use (default, split, incremental)?
What is your CWM rom version?

EFS Backup with TWRP?

Hi!
Today i will switch from HTC One S to an I9300.
Can i Backup and restore the EFS Partition with TWRP and do i have to restore the EFS Partition after flashing a custom rom?
On my One S i´ve deleted all partitions and the flashed a custom rom but on that phone i did not have to backup any efs data.
thx in advance!
b0mb
You can backup&restore /efs with TWRP.
You should only wipe partitions, offered in TWRP, before flashing another rom. You mustn't restore /efs afterwards. Generally avoid any actions on /efs /dev: high chance of brick of losing your IMEI.
I've seen that there are different tools for backing up EFS partition but using TWRP looks like the easiest way to me....
Afaik these tools don't store anymore than TWRP. So keep it easy. But forum.xda-developers.com/showpost.php?p=56492632&postcount=15 @billa says, that this is no 100%-insurance: IMEI would be saved in dev-partition.
Lost EFS
rp158 said:
Afaik these tools don't store anymore than TWRP. So keep it easy. But forum.xda-developers.com/showpost.php?p=56492632&postcount=15 @billa says, that this is no 100%-insurance: IMEI would be saved in dev-partition.
Click to expand...
Click to collapse
Do you know how to regenerate the efs? I´ve lost it and now i have a corrupt IMEI.
No. Too few details.
First, search in Q&A for it.

OrangeFox Restore Failed

Hello Everyone!
When I was restoring one of my OrangeFox 10.1_1_stable backups, My device went-off almost in the middle of the backup. I somehow managed to bring it alive. But when I restored my backup with TWRP 3.2.3-1 recovery, it was restored perfectly, and the system booted.
I had posted my problem in detail here http://forum.xda-developers.com/showpost.php?p=83046045&postcount=667
I want to know whether the recovery had bugs OR I made the error of restoring the wrong partitions?
And I have one more query too -
In official TWRP, I always made backup of every partition EXCEPT RECOVERY AND FIRMWARE, and never ever had even a single problem in backup or restore.
But in Orangefox, I saw some partitions, which were not in TWRP. The backup in which I faced problem had all partitions EXCEPT RECOVERY AND INTERNAL STORAGE (i couldnt find FIRMWARE in Orangefox, and INTERNAL STORAGE in TWRP).
So, why the two recoveries show different partitions.
And most importantly, which partitions should be backed up, that can be restored safely to get my device in previous state exctly?
So here is some additional detail.
I have one-one backup - one from my TWRP 3.2.3-1, and the other from the OrangeFox 10.1-1-stable on my PC. On viewing the files of the backups, I found the following -
Common files in both the Backups -
aboot.emmc.win
aboot.emmc.win.sha2
boot.emmc.win
boot.emmc.win.sha2
cache.ext4.win
cache.ext4.win.sha2
cache.info
cmnlib.emmc.win
data.ext4.win000
data.ext4.win000.sha2
data.ext4.win001
data.ext4.win001.sha2
data.info
devcfg.emmc.win
efs1.emmc.win
efs1.emmc.win.sha2
efs2.emmc.win
efsc.emmc.win
efsg.emmc.win
keymaster.emmc.win
persist.ext4.win
persist.ext4.win.sha2
persist.info
recovery.log
rpm.emmc.win
system.ext4.win
system.ext4.win.sha2
system.info
tz.emmc.win
vendor.ext4.win
vendor.ext4.win.sha2
vendor.info
Files present in OrangeFox backup but not in the TWRP Backup) -
cmnlib.emmc.win.sha2
devcfg.emmc.win.sha2
dsp.emmc.win
dsp.emmc.win.sha2
efs2.emmc.win.sha2
efsc.emmc.win.sha2
efsg.emmc.win.sha2
keymaster.emmc.win.sha2
modem.emmc.win
modem.emmc.win.sha2
persist_image.emmc.win
persist_image.emmc.win.sha2
rpm.emmc.win.sha2
sec.emmc.win
sec.emmc.win.sha2
splash.emmc.win
splash.emmc.win.sha2
system_image.emmc.win
system_image.emmc.win.sha2
tz.emmc.win.sha2
vendor_image.emmc.win
vendor_image.emmc.win.sha2
Files in TWRP backup that are not in OrangeFox backup -
data.ext4.win002
data.ext4.win002.sha2
data.ext4.win003
data.ext4.win003.sha2
Viewing these... can someone find out which restoring which partition from orangefox caused problem for me?

Rsync backup as alternative to nandroid backup?

I am looking for a full backup solution for my rooted Pixel 5a.
Unfortunately, TWRP is not (yet) available, so I can't do nandroid backups.
Also, solutions such as Swift Backup don't backup everything (e.g., device settings, downloaded data).
Can 'rsync' be used to get a full and restorable backup?
If I am not concerned with the static (and non-user-writable system elements), would it be enough to backup:
/sdcard
/data
/cache
/persist
The notion would be that if I wanted to restore the phone at any point, I would just use 'rsync' to restore the previously transferred data.
Any limitations/challenges to this backup method?
If I wanted to extend this to also back up the static system itself, what would I need to backup and what would I need to do to restore?
Thanks

Categories

Resources