Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,868 Members 42,759 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] EFS/NV_DATA full backup and restore manually / Xperia L partitions table

Tip us?
 
samersh72
Old
(Last edited by samersh72; 31st May 2014 at 06:33 PM.)
#1  
samersh72's Avatar
Recognized Contributor - OP
Thanks Meter 6,928
Posts: 3,442
Join Date: Nov 2012
Location: Android City
Default [GUIDE] EFS/NV_DATA full backup and restore manually / Xperia L partitions table


Here i will show you how to backup & restore EFS and NV_data manually for your Xperia L without a third party app or tool.
Sure a third party app or tool will do the job, but it is good to learn something.....

Backuping efs (in this device it is "modemst") partition is an essential step to keep it safe after rooting since a bad flashing/modding of your Xperia L may result in a corruption of that partition. so it is better to be safe than sorry, so any disturbance in the EFS data might result in null IMEI and baseband version.

This will backup data like device specific essential information such as the IMEI (International Mobile Station Equipment Identity), wireless device MAC address, baseband version, product code, system ID and NV data.

You must have a proper root access in addition to busybox installed (preferred)
Do this step after rooting.
You can dump these partitions also using adb shell command. but here i will show you how to backup using a terminal emulator.




How to do it
Backup:

Download "terminal emulator" app from play store and install it.
Open the app and type (DONT MAKE MISTAKES!):
Code:
su
Grant permission
Code:
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/sdcard/efs1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/sdcard/efs2.img
copy images from internal sdcard to a safe place such as pc.

Note that the size of .img must be as follow: modemst1/2 (8MB each)

Restore:

Make sure Backuped images are in your internal sdcard (not in any folder).
open terminal emulator and type (DONT MAKE MISTAKES!):
Code:
su
dd if=/sdcard/efs1.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst1
dd if=/sdcard/efs2.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst2
Google Nexus 5: N5 Tips & Tricks
Galaxy S4 I9500/I9505: Unroot, flash official stock
Galaxy S5 G900: EFS Backup / Post your PIT file.
Galaxy Nexus I9250: Gnex Tips & Tricks ////// Odin/Back to stock 4.3 / 4.2.2
Galaxy SIII Mini I8190: Unroot, Flash official stock
Galaxy Ace Plus S7500: Unroot, Flash official stock
Galaxy Young S5360: Young Tips & Tricks
Galaxy S2 Plus I9105/P: Unroot, Flash official stock
Sony Experia SP C5303 // Sony Experia L C2105
The Following 8 Users Say Thank You to samersh72 For This Useful Post: [ Click to Expand ]
 
samersh72
Old
(Last edited by samersh72; 30th May 2014 at 04:22 PM.)
#2  
samersh72's Avatar
Recognized Contributor - OP
Thanks Meter 6,928
Posts: 3,442
Join Date: Nov 2012
Location: Android City
Default partitions table Xperia L


List of blocks by number:
Code:
adb shell
cat /proc/partitions
7 0 2111 loop0
7 1 31217 loop1
7 2 28098 loop2
7 3 12506 loop3
7 4 9387 loop4
7 5 15624 loop5
79 0 7634944 mmcblk0
79 1 2048 mmcblk0p1
79 2 256 mmcblk0p2
79 3 512 mmcblk0p3
79 4 512 mmcblk0p4
79 5 1024 mmcblk0p5
79 6 1024 mmcblk0p6
79 7 1024 mmcblk0p7
79 8 256 mmcblk0p8
79 9 512 mmcblk0p9
79 10 512 mmcblk0p10
79 11 1024 mmcblk0p11
79 12 1024 mmcblk0p12
79 13 1024 mmcblk0p13
79 14 1024 mmcblk0p14
79 15 1024 mmcblk0p15
79 16 3456 mmcblk0p16
79 17 16384 mmcblk0p17
79 18 8192 mmcblk0p18
79 19 8192 mmcblk0p19
79 20 16384 mmcblk0p20
79 21 8192 mmcblk0p21
79 22 8192 mmcblk0p22
79 23 65536 mmcblk0p23
79 24 19456 mmcblk0p24
79 25 5120 mmcblk0p25
79 26 8192 mmcblk0p26
79 27 16384 mmcblk0p27
79 28 1228800 mmcblk0p28
79 29 65536 mmcblk0p29
79 30 262144 mmcblk0p30
79 31 1671168 mmcblk0p31
59 0 4210671 mmcblk0p32
79 32 1943552 mmcblk1
79 33 1942528 mmcblk1p1
54 0 2110 dm-0
54 1 31216 dm-1
54 3 12505 dm-3
54 2 28098 dm-2
54 4 9387 dm-4
54 5 15624 dm-5

List of blocks by name:
Code:
adb shell
ls -al /dev/block/platform/msm_sdcc.1/by-name
lrwxrwxrwx root root 2014-05-27 20:34 FOTAKernel -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 2014-05-27 20:34 LTALabel -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 2014-05-27 20:34 TA -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2014-05-27 20:34 aboot -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2014-05-27 20:34 alt_aboot -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 2014-05-27 20:34 alt_rpm -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 2014-05-27 20:34 alt_s1sbl2 -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 2014-05-27 20:34 alt_sbl1 -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2014-05-27 20:34 alt_sbl2 -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2014-05-27 20:34 alt_sbl3 -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2014-05-27 20:34 alt_tz -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 2014-05-27 20:34 apps_log -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 2014-05-27 20:34 boot -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 2014-05-27 20:34 cache -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 2014-05-27 20:34 fsg -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 2014-05-27 20:34 ftma -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 2014-05-27 20:34 ftmd -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 2014-05-27 20:34 modem -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 2014-05-27 20:34 modemst1 -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 2014-05-27 20:34 modemst2 -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 2014-05-27 20:34 persist -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 2014-05-27 20:34 ramdump -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 2014-05-27 20:34 rpm -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 2014-05-27 20:34 rsv -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 2014-05-27 20:34 s1sbl2 -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2014-05-27 20:34 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2014-05-27 20:34 sbl2 -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2014-05-27 20:34 sbl3 -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2014-05-27 20:34 sdcard -> /dev/block/mmcblk0p32
lrwxrwxrwx root root 2014-05-27 20:34 system -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 2014-05-27 20:34 tz -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2014-05-27 20:34 userdata -> /dev/block/mmcblk0p31
The Following 2 Users Say Thank You to samersh72 For This Useful Post: [ Click to Expand ]
 
RootLord
Old
#3  
RootLord's Avatar
Senior Member
Thanks Meter 64
Posts: 315
Join Date: Apr 2014
Quote:
Originally Posted by samersh72 View Post

Here i will show you how to backup & restore EFS and NV_data manually for your Xperia L without a third party app or tool.
Sure a third party app or tool will do the job, but it is good to learn something.....

Backuping efs (in this device it is "modemst") partition is an essential step to keep it safe after rooting since a bad flashing/modding of your Xperia L may result in a corruption of that partition. so it is better to be safe than sorry, so any disturbance in the EFS data might result in null IMEI and baseband version.

This will backup data like device specific essential information such as the IMEI (International Mobile Station Equipment Identity), wireless device MAC address, baseband version, product code, system ID and NV data.

You must have a proper root access in addition to busybox installed (preferred)
you can dump these partitions also using adb shell command. but here i will show you how to backup using a terminal emulator.




How to do it
Backup:

Download "terminal emulator" app from play store and install it.
Open the app and type:
Code:
su
Grant permission
Code:
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/sdcard/efs1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/sdcard/efs2.img
copy images from internal sdcard to a safe place such as pc.

Note that the size of .img must be as follow: efs (14MB) modemst1/2 (8MB each)

Restore:

Make sure Backuped images are in your internal sdcard (not in any folder).
open terminal emulator and type (HERE DONT MAKE MISTAKES!) :
Code:
su
dd if=/sdcard/efs1.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst1
dd if=/sdcard/efs2.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst2
We have TA backup[emoji6]

Sent from my C2104 using Tapatalk
SONY XPERIA L
MY WORK :
Using others work
 
samersh72
Old
#4  
samersh72's Avatar
Recognized Contributor - OP
Thanks Meter 6,928
Posts: 3,442
Join Date: Nov 2012
Location: Android City
Quote:
Originally Posted by RootLord View Post
We have TA backup[emoji6]

Sent from my C2104 using Tapatalk
TA partition (block 1) is totally different than modemst1 (block 21) and modemst2 (block 22)
dont mix between them...
Google Nexus 5: N5 Tips & Tricks
Galaxy S4 I9500/I9505: Unroot, flash official stock
Galaxy S5 G900: EFS Backup / Post your PIT file.
Galaxy Nexus I9250: Gnex Tips & Tricks ////// Odin/Back to stock 4.3 / 4.2.2
Galaxy SIII Mini I8190: Unroot, Flash official stock
Galaxy Ace Plus S7500: Unroot, Flash official stock
Galaxy Young S5360: Young Tips & Tricks
Galaxy S2 Plus I9105/P: Unroot, Flash official stock
Sony Experia SP C5303 // Sony Experia L C2105
 
RootLord
Old
#5  
RootLord's Avatar
Senior Member
Thanks Meter 64
Posts: 315
Join Date: Apr 2014
Oh..
So sorry,
Btw I flashed cm11,resurrection remix roms..
But currently now I am on stock.
Can I backup now??

Sent from my C2104 using Tapatalk
SONY XPERIA L
MY WORK :
Using others work
 
samersh72
Old
#6  
samersh72's Avatar
Recognized Contributor - OP
Thanks Meter 6,928
Posts: 3,442
Join Date: Nov 2012
Location: Android City
Quote:
Originally Posted by RootLord View Post
Oh..
So sorry,
Btw I flashed cm11,resurrection remix roms..
But currently now I am on stock.
Can I backup now??

Sent from my C2104 using Tapatalk
yes, those partitions are untouched when flashing rom
Google Nexus 5: N5 Tips & Tricks
Galaxy S4 I9500/I9505: Unroot, flash official stock
Galaxy S5 G900: EFS Backup / Post your PIT file.
Galaxy Nexus I9250: Gnex Tips & Tricks ////// Odin/Back to stock 4.3 / 4.2.2
Galaxy SIII Mini I8190: Unroot, Flash official stock
Galaxy Ace Plus S7500: Unroot, Flash official stock
Galaxy Young S5360: Young Tips & Tricks
Galaxy S2 Plus I9105/P: Unroot, Flash official stock
Sony Experia SP C5303 // Sony Experia L C2105
The Following User Says Thank You to samersh72 For This Useful Post: [ Click to Expand ]
 
JaleXNet
Old
#7  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Aug 2014
Location: Santiago, CL
this backup files, work with another xperia l or only work with the same device ?? thank you.
 
samersh72
Old
#8  
samersh72's Avatar
Recognized Contributor - OP
Thanks Meter 6,928
Posts: 3,442
Join Date: Nov 2012
Location: Android City
Quote:
Originally Posted by JaleXNet View Post
this backup files, work with another xperia l or only work with the same device ?? thank you.
Same procedure but you must know the partition table of your device before
Google Nexus 5: N5 Tips & Tricks
Galaxy S4 I9500/I9505: Unroot, flash official stock
Galaxy S5 G900: EFS Backup / Post your PIT file.
Galaxy Nexus I9250: Gnex Tips & Tricks ////// Odin/Back to stock 4.3 / 4.2.2
Galaxy SIII Mini I8190: Unroot, Flash official stock
Galaxy Ace Plus S7500: Unroot, Flash official stock
Galaxy Young S5360: Young Tips & Tricks
Galaxy S2 Plus I9105/P: Unroot, Flash official stock
Sony Experia SP C5303 // Sony Experia L C2105

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


LuneOS Goes Official and Brings webOS to Android Devices

webOS has had rather turbulent history. Initially developed by Palm, the Linux … more

Try to Keep Up with Just Swipe Game

Sometimes, the simplest of games are the ones that end up beingthe most addictive and end up consuming … more

MultiROM Ported to the Moto E

Few categoriesof Android development are as intrinsically interestingas the ability to boot into multiple … more

XDA Xposed Tuesday: How to Control Google Play Wake Locks – XDA Developer TV

Xposed Modules are usually pretty simple. There are a few … more