FORUMS

Galaxy S6 & Edge get €100 Price Cut—New Models Incoming

Samsung has dropped the price of both the Galaxy S6 and S6 Edge by … more

How To Port Fully Featured Sony Xperia Z4 Camera

Xperia Z4’s hardware may not impress, but its software is definitely … more

Experimental TWRP Available For Moto G 2015

XDA Senior Member squid2 has posted experimental builds of TWRP for the Moto G … more

Sunday Debate: How Can We Get a No-Compromise Phone?

Join us in a fun Sunday Debate on Compromises. Come with your opinions and … more

[GUIDE] Backup/Restore/Repair Your EFS Partition [LS970]

2,056 posts
Thanks Meter: 8,302
 
By autoprime, Recognized Contributor / Recognized Developer on 22nd February 2013, 10:41 PM
Post Reply Subscribe to Thread Email Thread
7th January 2015, 03:17 AM |#131  
Junior Member
Thanks Meter: 0
 
More
please on writing my imei using dfs it refuses to stick. what do i do to make it stick? do i need to be on any particular rom for it to stick?
 
 
5th March 2015, 01:12 AM |#132  
kz6fittycent's Avatar
Senior Member
Flag Murfreesboro, TN
Thanks Meter: 23
 
More
Great Work and Tutorial!!
Quote:
Originally Posted by autoprime


LS970 EFS Backup/Restore/Repair

Every rooted Optimus G user should backup their EFS partitions!

Thanks goes to interloper, toastcfh and everyone in #lg-optimus-g that helped out.


PM me if interested in my Sprint LGOG LS970 EFS repair service.

Contents
1. Flashable EFS for backing up your EFS partitions and packing them into a new flashable .zip.
2. Commands for backing up/restoring EFS manually with terminal or ADB.
3. Flashable "ZERO EFS" with guide for repairing your EFS. This EFS needs to be reprogrammed but could be used in a "worst case" scenario where you didn't backup your EFS and the phone cannot be replaced by any LG/Sprint warranty.

Backup script/commands also work on the ATT/Telus variants. ZERO EFS zip is ONLY for Sprint LS970 users. ATT/Telus users, if you would like a ZERO EFS, please send me your efsbackup.tar in a private message. It is not suggested to publicly post your EFS file.

Background
You never know when your NV/EFS/PRL/RADIO may stop working. Restoring your WORKING EFS may save the day. A few users in the #lg-optimus-g IRC channel have run into issues and found their phone unusable, myself included. A few users who flashed the test/Korean JB builds found 3g not working.. or calls/text not working. Some users ran into radio issues after PRL writing failures. My own issues was a missing ICCID which resulted in no 4G. Data wipes, reactivations, ##786# resets were not helping. All of the above issues could have been fixed if an EFS backup was made while the phone was still in working order.

m9kefs1 seems to be radio related
m9kefs2 contains your unique phone identifiers: MEID, IMEI, phone number, MSL, data profiles etc
m9kefs3 seems to be blank 00s

Backing up EFS
It's easiest to run the Optimus_G_Create_Flashable_EFS.zip attached to this thread. Run in recovery. Optimus_G_Create_Flashable_EFS.zip creates a flashable zip backup of your EFS in /sdcard/EFS_Backup/(instead of just a .tar).

If you don't like convenience this can also be done manually with adb or terminal with the commands below.. root required.
Code:
su
dd if=/dev/block/platform/msm_sdcc.1/by-name/m9kefs1 of=/sdcard/m9kefs1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/m9kefs2 of=/sdcard/m9kefs2.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/m9kefs3 of=/sdcard/m9kefs3.img
Restoring EFS
To restore your original EFS just boot into recovery and flash the efsbackupflash.zip in your /sdcard/EFS_Backup folder.

If you don't like convenience this can also be done manually with adb or terminal with the commands below. Adjust the "dd if=/sdcard/" command depending on where your backup EFS .img files are located.
Code:
su
dd if=/sdcard/m9kefs1.img of=/dev/block/platform/msm_sdcc.1/by-name/m9kefs1
dd if=/sdcard/m9kefs2.img of=/dev/block/platform/msm_sdcc.1/by-name/m9kefs2
dd if=/sdcard/m9kefs3.img of=/dev/block/platform/msm_sdcc.1/by-name/m9kefs3

Repairing EFS

YOUR EFS IS *NOT* BROKEN IF YOU FLASHED AN AOSP ROM AND NO LONGER HAVE SIGNAL BUT STILL HAVE YOUR MEID AND PRL SAYS "40000"...
GO BACK INTO AOSP ROM > SETTINGS > MORE... > MOBILE NETWORK SETTINGS > CDMA SUBSCRIPTION > SET TO "NV"
YOU SHOULD NOW HAVE A SIGNAL AGAIN... NO EFS REPAIR NEEDED!!


If you have a messed up PRL/Radio/EFS(no signal.. calls/text doesn't work.. no PRL showing.. no 3G) then you should first confirm there are no outages in your area. After confirming no outages you may want to try a factory data reset(settings > backup & reset) or perform a ##786# reset(MSL required). If you are feeling daring you could even try a lgnpst reset which involves installing lgnpst(automated install on IRC suggested) and flashing a stock .tot to your phone while it's in download mode(power off phone > plug phone into USB cable/computer > vol up + vol down + power buttons). If none of the previous suggestions work you could see if Sprint/LG will warranty repair your device.

If NOTHING ABOVE works your final option is to flash a new EFS. Technically you could possibly look through each and every NV item with QXDM and see what's incorrect but that may take forever... so I have included a flashable zip at the bottom of this thread which flashes a fresh LS970 EFS to your device. This EFS is clear of all personal data and any previous phone identifiers. Below are directions on how to reprogram your EFS to the Sprint network after flashing the LS970_ZERO_EFS.zip. I'd rate this as medium-hard difficulty for those that are unfamiliar with how (Sprint)CDMA phones are programmed. For those that have flashed a phone in the past, this ZERO EFS zip just made your day even easier.

The ZERO EFS has a zero'd out SPC/MSL, zero'd out IMEI/MEID, zero'd out MDN/MSID and all data profiles emptied.
NV item 114(NV_FACTORY_INFO_I) has been "anonymized" and no longer identifies to anyones real account.




In recovery, flash LS970_ZERO_EFS.zip then wipe data/cache(factory wipe in TWRP). LS970_ZERO_EFS.zip backs up your current EFS partitions to /sdcard/EFS_Backup and then replaces your EFS with the ZERO EFS.

You will have to manually program your phone to get it working again.


READ EVERYTHING BELOW IF YOU DON'T KNOW WHAT YOU'RE DOING.

After flashing LS970_ZERO_EFS.zip:

For talk/text working - use DFS(www.cdmatool.com) or other known working CDMA tools.
a1. Set LS970 into diag mode.. open the dialer and hit ##3424# . Also make sure phone is set to "Charge only"
b1. Connect phone to DFS and set correct COM port. Use the diag port NOT the serial port.
c1. In DFS send SPC(MSL) to phone using "SPC" button(under the green ports button, top left). SPC = 000000.
d1. On Programming > General tab... Write desired IMEI with DFS. Hit "status" button to make sure it stuck. IMEI = MEID + 1 extra digit.
e1. After writing IMEI.. write the matching MEID. Hit "status" button to make sure it stuck.
f1. On your phone, open dialer and hit ##000000# and program in your MDN/MSID. Hit done. Phone will reboot.
Talk/text will now work!




For 1X/3G working - use DFS
a2. Connect phone to DFS and send SPC using above methods.
b2. In DFS, open the Programming > Data tab and hit the read button.
c2. Set the UID under HDR AN LONG to your MEID@hcm.sprintpcs.com
d2. Set the Pwd to your 32-char hex password, no spaces between hex bytes. Make sure box is checked next to Pwd!!
e2. In DFS go to the Programming > Mobile IP tab. Hit the blue "Read" button in the lower left.
f2. Set the username(NAI) to the same username you just wrote in step c2... MEID@hcm.sprintpcs.com
g. Set the AAA Shared Secret password. The same 32-char password used in step d. Make sure box is CHECKED for AAA!!!
h. Set the HA Shared Secret password to: secret . Yes, the word secret. MAke sure the box is UNCHECKED for HA!!!
i. Hit the red "Write Current Profile Settings" button.
j. Back on your phone, open the dialer and press ##3282# and click "Data Profile" then "edit". Enter 000000 for code.
k. Once inside Data Profile menu, set up your Sprint username and password(AAA password).
username@sprintpcs.com and the AAA password is a 6-char password.
l. Once data profile is written back out of the menu and the phone should reboot.
1X/3G will now work!! [as long as ALL usernames and passwords were written correctly with the 100% correct info!!!]

*Notes*
1. If a ##786# reset is ever done, the 1X/3G data passwords will be wiped and have to be rewritten.
2. Dialer code 3845#*970# > Data -LG menu has a PPP setting. Never set this to Sprint... always leave on "Undetermined"
3. You shouldn't have to do anything for 4G to work.








Now you may say "yeah, that's great... but I don't know my MEID, IMEI, MDN, MSID, 32-char AAA password, Data Profile username... now what?"

Good question.

IMEI - Hopefully your phone isn't TOO messed up and you can still view your IMEI via Settings > About Phone > Phone Identity.
If you can't read it, call Sprint and ask them for it, mention your phone acting up or blah blah. The IMEI is your MEID + 1 extra digit.
MEID - MEID is on your LG OG box. You can also see this by viewing the current phone on your plan using Sprint.com
You want to use the MEID HEX not MEID DEC. If you can only find the DEC you can use online converters to convert MEID DEC to HEX.
MDN - MDN is your phone number. You should know this.
MSID - MSID is sometimes the same as your phone number, but sometimes not. You can view this info in Settings > About Phone > Phone Identity
You can call Sprint to get this info if you can't view it on your phone.
Data Profile username/password - You can get this info by calling Sprint. You may be able to view the username with ##3282# > Data Profile > View
32-char AAA Password - If you are unable to acquire your 32-char AAA password(NV item 466 and 1192), ask Sprint. You may have to speak to some form of advanced tech support.


I would add that those (like me) who choose to use the terminal and adb shell, make sure that you are pointing dd to the correct directory. It's an easy mistake to try to copy/paste stuff into the terminal. It doesn't work that way, so make sure you are following the file tree appropriately.
8th March 2015, 12:18 AM |#133  
Member
Thanks Meter: 3
 
More
data size
Hello, I am glad I found this forum, but I am curious whether I can restore my files without taking up a lot of space. The file used to show 0 bytes. Thanks for any help.
6th May 2015, 06:01 AM |#134  
Member
Flag New Delhi
Thanks Meter: 7
 
More
IMEI Unknown :(
hi all,

I have LG optimus g PRO E988 20c indian version, I flashed beanstalk on my device, everything was working fine but then I flashed madmack modem (with wrong modem), I then got bootloop but I restored my nandroid backup then, so phone is working now but I have lost my IMEI and phone not detecting any sim card...

I have my EFS backup image which I backedup using freegee, I restored EFS backup using freegee but it is not working....... Please tell me some way to get my IMEI back and network signal........

How to restore IMEI using EFS backup.. I tried methods adb and terminal but no use....

Please help me.. I will be very grateful,...

Thanks in Advance.....
6th May 2015, 03:43 PM |#135  
autoprime's Avatar
OP Recognized Contributor / Recognized Developer
Thanks Meter: 8,302
 
Donate to Me
More
Quote:
Originally Posted by Pearl@ndroid

hi all,

I have LG optimus g PRO E988 20c indian version, I flashed beanstalk on my device, everything was working fine but then I flashed madmack modem (with wrong modem), I then got bootloop but I restored my nandroid backup then, so phone is working now but I have lost my IMEI and phone not detecting any sim card...

I have my EFS backup image which I backedup using freegee, I restored EFS backup using freegee but it is not working....... Please tell me some way to get my IMEI back and network signal........

How to restore IMEI using EFS backup.. I tried methods adb and terminal but no use....

Please help me.. I will be very grateful,...

Thanks in Advance.....

have you rewritten the correct modem for your device? a nandroid backup (clockwork or twrp backup) doesn't usually backup modem and it will have to be flash separately. tho some custom builds of cwm/twrp do have modem backup.. so perhaps you already have restored the proper modem... but just trying to cover everything.

when you use terminal emulator/adb... is the phone booted into the rom... or are you booted in custom recovery? I suggest that you only try to restore your EFS backup while in custom recovery. you can use adb shell in custom recovery (clockwork/twrp) to restore your efs backup. when restoring via adb... run each dd command 2 times.

with the proper modem and restoring EFS backup while in custom recovery... that should get it working. if not.. be sure to back your EFS up off of your internal storage... maybe on your computer... and backup anything else you need... then use LG Flash and restore your phone in Download Mode with official TOT for your model.

good luck. if that does not work... I am not sure what else you could try other than maybe rebuilding your EFS and rewriting the IMEI via diag mode with QPST or something.
7th May 2015, 05:35 AM |#136  
Member
Flag New Delhi
Thanks Meter: 7
 
More
Smile Solved IMEI Problem
hi,
Very much thanks for ur suggestion...

Yesterday I flashed original modem of my phone which I backed up before with flashable zip... and I got my signal and IMEI back...

I want to mention the mistake which I did
--Before I was doing mistake in packaging flashable zip file when replacing the modem in that file. So before it was giving abort error when flashing that zip but yesterday I drag and drop my original modem.img in that flashable zip and the flashed and it worked..:


But one thing I want to ask.... that flashable.zip did not flashed till the end it was showing aboot img error abort error in the end, but I got my IMEI back after that flash..

Please if you know, help me to understand how to make a proper flashable.zip file for modem and all.. IS there any guide???

Thanks for your support.....
11th July 2015, 07:12 AM |#137  
jcpowell's Avatar
Senior Member
Thanks Meter: 139
 
More
Is the EFS backup option in TWRP sufficient enough to fix any EFS issues that may arise?
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes