5,606,297 Members 32,838 Now Online
XDA Developers Android and Mobile Development Forum

EFS Partition Backup [All G Flex Variants]

Tip us?
 
autoprime
Old
(Last edited by autoprime; 5th February 2014 at 03:22 AM.)
#1  
autoprime's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 3237
Posts: 1,459
Join Date: Jun 2010
Exclamation EFS Partition Backup [All G Flex Variants]


LG G Flex EFS Backup Zip
Background
The G Flex has no built in EFS backup partitions. EFS contains things like your MEID or IMEI... your data profiles.. radio settings. The EFS cannot be replaced... it is unique to your phone only... backing up your OWN EFS is highly recommended.

I have added EFS backup to the IOroot scripts so that everyone that roots will have a copy of their EFS partitions on the computer you run IOroot from. Regardless, this current thread will still be a good "heads up" and an alternative for those who insist on using other shady root methods or for those who just want another way to back things up.

I made a similar thread for both the LG Optimus G and LG G2... for reference the G2 thread can be found HERE.
Backing up EFS
Root is required!

In TWRP/CWM, flash the LG_G_Flex_Backup_EFS.zip attached in this thread. LG_G_Flex_Backup_EFS.zip is a flashable zip which creates a new flashable zip containing a backup of your EFS partitions and is saved in /sdcard/EFS_Backup/.

To manually backup EFS partitions without the zip you can use the commands below while in ADB shell. You can do this while booted in the rom or in custom recovery. If backing up EFS while booted in the rom I suggest placing the device into airplane mode first. And remember, root is required.
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
Backup your efsbackupflashable.zip or loose partitions somewhere else besides your internal SD!!!
Email.. "cloud".. PC..


Restoring EFS
To restore your original EFS just boot into custom recovery and flash the efsbackupflashable.zip in your /sdcard/EFS_Backup folder.

To manually restore EFS img files run the commands below using ADB shell while in recovery or booted up with airplane mode on...
Be sure to place .img files on the root of your /sdcard/(internal storage)..
Code:
adb shell
su
dd if=/sdcard/modemst1.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst1
dd if=/sdcard/modemst2.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst2
Attached Files
File Type: zip LG_G_Flex_Backup_EFS.zip - [Click for QR Code] (1,012.9 KB, 97 views)
The Following 6 Users Say Thank You to autoprime For This Useful Post: [ Click to Expand ]
 
antawnm26
Old
#2  
Senior Member
Thanks Meter 117
Posts: 968
Join Date: Apr 2008
Location: Atlanta
Curious as to why they didnt partition it the same as the lg g2
 
Techinstein
Old
#3  
Techinstein's Avatar
Senior Member
Thanks Meter 357
Posts: 449
Join Date: Jan 2013
Location: ©opy®ight !\lot Included
Quote:
Originally Posted by antawnm26 View Post
Curious as to why they didnt partition it the same as the lg g2
@autoprime is this the stock backup? Does this work on all variants of the Flex? The process of creating the back up. I assume it will.
Sorry, you are limited to 8 thanks per day... Whaaaa!!




Current DEVICES l HBOOT l KERNEL l ROM
l AT&T LG G Flex a.k.a LG-D950 l

Nexus 7 2012 l 4.23 l Stock l AICP the latest versions u just dont get.


Past && now testing devices


HTC One XL l 2.15 l Torched 3.5 l AICP the latest versions u just dont get.
 
autoprime
Old
#4  
autoprime's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 3237
Posts: 1,459
Join Date: Jun 2010
Quote:
Originally Posted by antawnm26 View Post
Curious as to why they didnt partition it the same as the lg g2
not sure what you mean? both the G2 and the G Flex have partitions modemst1 and modemst2 for their EFS.

Quote:
Originally Posted by Techinstein View Post
@autoprime is this the stock backup? Does this work on all variants of the Flex? The process of creating the back up. I assume it will.
EFS is static across all roms.. there is no "stock." It is key to backup EFS ASAP before any corruption can take place.

And no assuming needed... it states it in the title of the thread that it supports all variants. Reading is paramount.
The Following User Says Thank You to autoprime For This Useful Post: [ Click to Expand ]
 
Techinstein
Old
#5  
Techinstein's Avatar
Senior Member
Thanks Meter 357
Posts: 449
Join Date: Jan 2013
Location: ©opy®ight !\lot Included
Quote:
Originally Posted by autoprime View Post
not sure what you mean? both the G2 and the G Flex have partitions modemst1 and modemst2 for their EFS.



EFS is static across all roms.. there is no "stock." It is key to backup EFS ASAP before any corruption can take place.

And no assuming needed... it states it in the title of the thread that it supports all variants. Reading is paramount.
Thanks well do as soon as it arrives in mail. >.-
Sorry, you are limited to 8 thanks per day... Whaaaa!!




Current DEVICES l HBOOT l KERNEL l ROM
l AT&T LG G Flex a.k.a LG-D950 l

Nexus 7 2012 l 4.23 l Stock l AICP the latest versions u just dont get.


Past && now testing devices


HTC One XL l 2.15 l Torched 3.5 l AICP the latest versions u just dont get.
 
Bowmanspeer
Old
#6  
Bowmanspeer's Avatar
Senior Member
Thanks Meter 41
Posts: 393
Join Date: Jul 2011
Location: Oregon
So by using the code you put in OP under "Restoring" is what I would use to restore the efs that was backed up from root process?
 
moro30
Old
#7  
Senior Member
Thanks Meter 11
Posts: 226
Join Date: Aug 2008
work on the F320K LG G2??
 
reeher3287
Old
#8  
reeher3287's Avatar
Senior Member
Thanks Meter 111
Posts: 495
Join Date: Sep 2012
Location: Lake Charles
Quote:
Originally Posted by moro30 View Post
work on the F320K LG G2??
Link up top to G2

Sent from my LG-LS995 using xda app-developers app
 
Triad79
Old
#9  
Junior Member
Thanks Meter 1
Posts: 16
Join Date: Mar 2014
Can I manually restore EFS img files using ADB shell when Flex is in Qhsusb_bulk mode!??
I have modemst1.img and modemst2.img files...
Seems that it's not quite easy to solve freaking Qhsusb_bulk mode from this thread
Code:
http://forum.xda-developers.com/showthread.php?t=2582142
when Ubuntu doesn't recognize connected device at all !!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Speed up the ROM or Kernel Build Process

Creating a kernel, ROM, or any other development projectrequires knowledge and tools. While … more

Google Glass Now Open to Anyone… with $1500 to Spend (Update: Not Anymore)

Google Glass, which recently received its official update … more

Android 4.4.2 OTA Now Available for the Verizon Droid DNA

A couple of days ago, we talked about how the Android 4.4.2 upgrade for the HTC … more