Few days ago I was searching method to backup EFS ( EFS contains IMEI, radio and other settings unique to your specific hardware). I found this method in a XDA thread and sharing here for convenience of other G Pro 2 users.
This method is actually for G2 and G3 but works well on G Pro 2.
To backup EFS use the following ADB commands to backup your 2 EFS partitions into sdcard.(Root is mandatory)
Code:
adb shell
su
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/sdcard/modemst1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/sdcard/modemst2.img
Alternatively this app can this also be used.
https://play.google.com/store/apps/details?id=com.nthung.lgbackupimei&hl=en
Related
Hi!
I'm trying to find a way without rooting my phone to do a full backup of the ROM in order to keep my warranty and have the real version of my current ROM which I couldn't find on the Web (the only version I found didn't have LTE).
Anyway, I found that there is such a think as adb backup reading this: http://android.stackexchange.com/questions/28296/full-backup-of-non-rooted-devices/28315#28315
With this method, am I backuping the full ROM and Bootleader? I have a Samsung with Knox so I'd like my warranty bit to be 0 if I restore.
Thank you!
yeet no one answers. sadly.
better use twrp
add twrp mod to backup data too.
To backup any partitions of an Android device people usually use Linux dd ( read: diskdump ) command what is present in all Android versions.
With this command a 1:1 bitwise copy of the partition gets created what later on can get restored to any Android device with the dd too.
Prerequisites for dd command to work:
The partition in question must got mounted as RW.
In the aim of disabling encryption on my stock Nexus 5 I had to wipe the device. To not lose my data I researched backups and I came across the ADB method. I did several updates using different commands as I was never sure if the backup completed. The command did return however (i.e. the cursor appeared on CMD).
I ran the following:
Code:
adb backup -apk -shared -all -f C:\backup\backup.ab
Code:
adb backup -apk -shared -all -nosystem -f C:\backup\backup.ab
The end result is me having 4 backup files in the 2.8GB to 2.9GB range.
After trying ADB restore on two of them, most of my applications are not restored. I can live with that, but I would prefer if there is a way to restore my whatsapp data.
To try and diagnose the problem ibought Titanium Backup Pro to use their Extract from ADB backup option. That way I could tell what applications made it through. I unpacked then repacked the .ab file to remove the encryption by following this guide. Once I put the .ab on my phone, Titanium Backup said the backup file isn't supported.
Any thoughts ? I'm working on Windows 10 but I also dual boot with Ubuntu.
Hi
Try using the <packages...> tag
http://forum.xda-developers.com/google-nexus-5/general/guide-backup-data-root-t2824790
if you were to use
Code:
adb backup -all -apk -system -shared
would it also backup super su and the root binary?
so that a adb restore would bring back root?
or would it not back up or restore that information?
never used anything but titanium backups or nandroid backups. which require rooting then restoring of data.
i tried searching for a thread that explained what all the adb backup method restored but found no mention of it restoring su binary files or not.
Hey guys! I was doing some forum surfing and I heard about this image called persist.img. I found out that it's specific to each device and you lose widevine if you flash a generic one. So I have 2 questions to ask you guys.
1. If I have a backup of my own persist.img, can I flash it and not lose widevine?
2. How do I actually back up the image?
Thanks on advance guys! ⊂((・▽・))⊃
1. not sure honestly, but I backup anyway to try if it does when time comes.
(Root is needed)
From computer:
adb shell dd if=/dev/block/bootdevice/by-name/persist of=/tmp/persist.img
adb pull /tmp/persist.img persist.img
Or from phone from terminal emulator;
su
dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img
Make a copy of this to somewhere else(drive/pc etc).
Not completely sure about restoring it, I think you can just flash it via fastboot.
Lossyx said:
1. not sure honestly, but I backup anyway to try if it does when time comes.
(Root is needed)
From computer:
adb shell dd if=/dev/block/bootdevice/by-name/persist of=/tmp/persist.img
adb pull /tmp/persist.img persist.img
Or from phone from terminal emulator;
su
dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img
Make a copy of this to somewhere else(drive/pc etc).
Not completely sure about restoring it, I think you can just flash it via fastboot.
Click to expand...
Click to collapse
That's great! Thanks for the help
Hey. How can we backup it without root?
Lossyx said:
1. not sure honestly, but I backup anyway to try if it does when time comes.
(Root is needed)
From computer:
adb shell dd if=/dev/block/bootdevice/by-name/persist of=/tmp/persist.img
adb pull /tmp/persist.img persist.img
Or from phone from terminal emulator;
su
dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img
Make a copy of this to somewhere else(drive/pc etc).
Not completely sure about restoring it, I think you can just flash it via fastboot.
Click to expand...
Click to collapse
where can i find the persist.img file in the device ? i search using google files app and it wasnt there.
Kagetane Hiruko said:
where can i find the persist.img file in the device ? i search using google files app and it wasnt there.
Click to expand...
Click to collapse
There is a app from play store called partitions backup it shows all partitions including persist and let's u make a copy for back up
hammered58 said:
There is a app from play store called partitions backup it shows all partitions including persist and let's u make a copy for back up
Click to expand...
Click to collapse
Needs root though.
You could do an msmtool readback i think it's called using msmtool. to backup without root. you do need windows for it though.
Some phones no have twrp
and Google about to remove adb backup
Is there a good guide for Android 10+ to do image backup via adb for rooted production phones?
like from Linux or macOS:
for a in $(adb shell ls /dev/block/by-name); do
adb shell su -c dd if=/dev/block/sda11 | dd of=./sda11
done
how to do restore
how to pick partitions
it has like userdata and *_a, *_b
Look here:
[TOOL][ADB][WIN]Android Partitions Backupper / Cloner
Hi all, wrote a Windows CMD script that backups / clones partitions of an Android device via ADB because I wasn't content with any 3rd-party APK what claims to do this job. The backups /clones are stored on Windows computer as...
forum.xda-developers.com