[SOLVED][Guide] How to backup EFS + Modemfs folders
So I recently stumbled upon some information that while flashing all kinds of Roms, you might lose your IMEI, thus being left over with a nice paper weight.
To my understanding this information is stored in the EFS folder (though according to this thread
it is actually stored in modemfs).
I googled around and saw many options: PC software, terminal commands, apps etc.
Since each phone utilizes this option in different ways, which would be a good way to backup these folders in case of emergency on the S Advance?
These are the commands from the ADB shell, but can also be used within the terminal.
Restore Backup Process:
dd if=/dev/block/mmcblk0p7 of=/sdcard/efs_backup.img
dd if=/dev/block/mmcblk0p2 of=/sdcard/modemfs_backup.img
adb pull /sdcard/efs_backup.img efs_backup.img
adb pull /sdcard/modemfs_backup.img modemfs_backup.img
adb push efs_backup.img /sdcard/efs_backup.img
adb push modemfs_backup.img /sdcard/modemfs_backup.img
dd if=/sdcard/efs_backup.img of=/dev/block/mmcblk0p7
dd if=/sdcard/modemfs_backup.img of=/dev/block/mmcblk0p2
Thanks to @mr.harsh
for help and KINGbabasula for making the script!
Please note that the restore commands haven't been tested out, but theoretically its supposed to work.
If someone has made a backup and wiped his EFS folder, he wont mind testing it out
Samsung Galaxy S Advance I9070
Base: Deodexed JellyBean 4.1.2 XXLQE
Rom: CyanogenMod 10.2