Lost EFS / IMEI?

dmo580

Senior Member
Dec 29, 2009
2,606
708
0
So stupid me. I've had a Nexus S and a Galaxy S2. I should've known better. However, in my defense I've only run into EFS problems once on my Nexus S and never on my S2. In proper ROM flashing it never becomes an issue.

Up til now I had been doing well. But I guess it has to do with the recent addition by CM to include modems in the ROMs also that causes trouble? TWRP seems to have trouble restoring them. To make a long story short, I was trying to bug test for CM by going back nightly by nightly from 0913 and backwards. Once I isolated the bug, I tried to restore back to my TWRP 0913 backup.

Well what happened upon restore? No signal. No IMEI. No WiFi. Well Crap. No EFS backup.

Steps I have taken to try to restore:
  1. Tried this fix: http://forum.xda-developers.com/oneplus-one/general/fix-people-corrupt-efs-mobile-data-t2836389
  2. Tried flashing Calkulin's 33R Rooted http://forum.xda-developers.com/oneplus-one/development/rom-stock-rooted-4-4-4-xnph33r-t2855276

But no dice. I've noticed that my root folder just does not have an EFS folder. I'm not even sure what to do. Am I SOL? Do I just need to return the phone? The worst part is my Nexus 5 is out on RMA as of YESTERDAY (wow timing?).

Question to those who managed to restore their EFS, was your EFS folder somewhat intact? Mine was completely gone. Not sure if anyone can help me here.

Update 9/15:

I flashed Unofficial TWRP 2.7.0.1 and performed a restore of the TWRP backup. It seems that WiFi and Bluetooth can work. Bluetooth and WiFi Mac addresses show. However, IMEI is still empty.

When I reboot its gone.

So I've gotten closer, but no mobile connectivity yet.

I'm not sure whats missing!!! Agh.
 
Last edited:

playya

Senior Member
Jan 12, 2007
6,873
2,514
253
Florida
First thing have you searched the forum. You are not the first and there have been success stories. You should be searching through here looking for them Instead of waiting for them to come to you. Search man search and I hope you get it done good luck..
 

dmo580

Senior Member
Dec 29, 2009
2,606
708
0
First thing have you searched the forum. You are not the first and there have been success stories. You should be searching through here looking for them Instead of waiting for them to come to you. Search man search and I hope you get it done good luck..
I did search. I showed you links to the threads I found and the solutions I tried. I'm reporting that I've had no luck with those that people claim success with. I'm also asking for more information here because I'm saying that my EFS folder is completely nonexistent (compared with my GS2 for example).

I'm trying to understand what everyone else's situation was because there's even in the threads with success stories, people just say "wow it worked." Done. No more info.
 

playya

Senior Member
Jan 12, 2007
6,873
2,514
253
Florida
I did search. I showed you links to the threads I found and the solutions I tried. I'm reporting that I've had no luck with those that people claim success with. I'm also asking for more information here because I'm saying that my EFS folder is completely nonexistent (compared with my GS2 for example).

I'm trying to understand what everyone else's situation was because there's even in the threads with success stories, people just say "wow it worked." Done. No more info.
That was not up when I responded you have since edited your post but its ok I see you are in other threads trying to fix it. I am seeing colorOs, I read where someone reflashed stock rom then flashed radio and it worked.

Edit: Do you have another nandroid you can possibly restore?
 
Last edited:

dmo580

Senior Member
Dec 29, 2009
2,606
708
0
That was not up when I responded you have since edited your post but its ok I see you are in other threads trying to fix it. I am seeing colorOs, I read where someone reflashed stock rom then flashed radio and it worked.

Edit: Do you have another nandroid you can possibly restore?
The posts were there. I only edited the post becuase it said "Lots EFS" and not "Lost."

As for what else I've tried, I have since tried flashing the stock ROM using the 33R ZIP from CyanogenMod. Using Fastboot it basically wipes all your partitions and repartitions everything. No dice. No IMEI still.

I have only 1 Nandroid. Its 5gb so I don't usually make multiple. I actually have Online Nandroid Manager usually keep 2, but since 2.8.0.1 just dropped that day I did a NEW backup prior to going to an older CM ROM. As a result of new backup, I deleted the older ones to save space.

Stupid me. But either way I think the restore feature just screws things up. I never used the unofficial TWRPs to make EFS backups because I'm more scared of unoffical recoveries. I should've just done it anyway. Ugh.
 

playya

Senior Member
Jan 12, 2007
6,873
2,514
253
Florida
The posts were there. I only edited the post becuase it said "Lots EFS" and not "Lost."

As for what else I've tried, I have since tried flashing the stock ROM using the 33R ZIP from CyanogenMod. Using Fastboot it basically wipes all your partitions and repartitions everything. No dice. No IMEI still.

I have only 1 Nandroid. Its 5gb so I don't usually make multiple. I actually have Online Nandroid Manager usually keep 2, but since 2.8.0.1 just dropped that day I did a NEW backup prior to going to an older CM ROM. As a result of new backup, I deleted the older ones to save space.

Stupid me. But either way I think the restore feature just screws things up. I never used the unofficial TWRPs to make EFS backups because I'm more scared of unoffical recoveries. I should've just done it anyway. Ugh.
I used the script to back mine up... Well I am always looking around so if I see anything I will let you know

Sent from my A0001 using Tapatalk
 

dmo580

Senior Member
Dec 29, 2009
2,606
708
0
I used the script to back mine up... Well I am always looking around so if I see anything I will let you know

Sent from my A0001 using Tapatalk
Yeah good idea. What script BTW if you don't mind sharing.

I should've been more aware, but somehow I figured "its not a Samsung" so I wasn't careful enough.
 

dmo580

Senior Member
Dec 29, 2009
2,606
708
0
Update 9/15:

I flashed Unofficial TWRP 2.7.0.1 and performed a restore of the TWRP backup. It seems that WiFi and Bluetooth can work. Bluetooth and WiFi Mac addresses show. However, IMEI is still empty.

When I reboot its gone.

So I've gotten closer, but no mobile connectivity yet.

I'm not sure whats missing!!! Agh.
 

IRPnet

Senior Member
Jan 27, 2011
106
25
0
Update 9/15:

I flashed Unofficial TWRP 2.7.0.1 and performed a restore of the TWRP backup. It seems that WiFi and Bluetooth can work. Bluetooth and WiFi Mac addresses show. However, IMEI is still empty.

When I reboot its gone.

So I've gotten closer, but no mobile connectivity yet.

I'm not sure whats missing!!! Agh.
I lost EFS on my S3. I assume you know that EFS is a partition? I had to to type in commands (via ADB or a shell on your phone) to set the permissions and make them stick. This way, when you reboot it stayed.
I half guess that it's something along similar lines.

Ok, EDIT..here is my post relating to S3.

Originally Posted by kocweb

Here is the exact solution for this problem which i have recently had!

You have to root your phone and install Terminal Emulator from Google Play.

Open terminal emulator and type as ;

su
rm /efs/FactoryApp/keystr
rm /efs/FactoryApp/factorymode
echo -n ON >> /efs/FactoryApp/keystr
echo -n ON >> /efs/FactoryApp/factorymode
chown 1000.1000 /efs/FactoryApp/keystr
chown 1000.1000 /efs/FactoryApp/factorymode
chmod 0744 /efs/FactoryApp/keystr
chmod 0744 /efs/FactoryApp/factorymode
reboot

You now should not see the that message anymore. Its because of an EFS corruption. ( Thanks to yesilcin*com (sawgent) ) for exact solution.
Hope it helps!!!
 
Last edited:

playya

Senior Member
Jan 12, 2007
6,873
2,514
253
Florida
Update 9/15:

I flashed Unofficial TWRP 2.7.0.1 and performed a restore of the TWRP backup. It seems that WiFi and Bluetooth can work. Bluetooth and WiFi Mac addresses show. However, IMEI is still empty.

When I reboot its gone.

So I've gotten closer, but no mobile connectivity yet.

I'm not sure whats missing!!! Agh.
ok so now flash the Color OS that people say seem to help when you get to that point or try flashing stock rom and radio like others have said worked
 

dmo580

Senior Member
Dec 29, 2009
2,606
708
0
ok so now flash the Color OS that people say seem to help when you get to that point or try flashing stock rom and radio like others have said worked
Yeah so i tried flashing both after my recovery and with stock I get WiFi and BT. Reboot and its gone

With ColorOS it doesn't work.
 

dmo580

Senior Member
Dec 29, 2009
2,606
708
0
As you may know, I have already tried your method and its no good.

Other things I've tried:

  • Flashing ColorOS 1.20, 2.18, no go
  • Flashing the factory image of 33R, 38R
  • Flashing my supposed backup of modemst1, modemst2, but I suspect they are corrupted because they were corrupted when I accidentally restored modem in TWRP

So what's interesting is when I do flash the factory image of 38R with the flashall.bat, upon initial boot, Wifi does work. However, after a reboot, it goes away.

Does anyone think they can help me figure out why that happens and if I can just keep WiFi around at the very minimum?

Edit: I think I'm a special case because most people have just seen reboot loops or persist partition corruption which is easily fixed by flashing the backup persist or the persist in that other thread. However, the issue here is I think what triggered my issue was somehow TWRP offered an option to restore the modem partition (I'm guessing it was TWRP trying to restore an Online Nandroid Backup which by default includes the modem partition). As a result, my modem likely got screwed.

However the fact that I can get WiFi on a first boot after a factory flash leads me to think maybe I'm not all screwed? Even if my IMEI is lost forever, I'll accept that, but if I can get a WiFi only device, that would still be sweet?
 
Last edited:

Negan

Forum Moderator / Recognized Themer
Staff member
Jan 30, 2013
7,998
11,085
263
40
Ottawa
tinyurl.com
As you may know, I have already tried your method and its no good.

Other things I've tried:

  • Flashing ColorOS 1.20, 2.18, no go
  • Flashing the factory image of 33R, 38R
  • Flashing my supposed backup of modemst1, modemst2, but I suspect they are corrupted because they were corrupted when I accidentally restored modem in TWRP

So what's interesting is when I do flash the factory image of 38R with the flashall.bat, upon initial boot, Wifi does work. However, after a reboot, it goes away.

Does anyone think they can help me figure out why that happens and if I can just keep WiFi around at the very minimum?

Edit: I think I'm a special case because most people have just seen reboot loops or persist partition corruption which is easily fixed by flashing the backup persist or the persist in that other thread. However, the issue here is I think what triggered my issue was somehow TWRP offered an option to restore the modem partition (I'm guessing it was TWRP trying to restore an Online Nandroid Backup which by default includes the modem partition). As a result, my modem likely got screwed.

However the fact that I can get WiFi on a first boot after a factory flash leads me to think maybe I'm not all screwed? Even if my IMEI is lost forever, I'll accept that, but if I can get a WiFi only device, that would still be sweet?
If nothing is working why not just RMA?
All opo come with 1 year warranty
 

akhilnarang

Recognized Contributor / Recognized Developer
May 8, 2014
1,876
12,756
143
21
Pune
akhilnarang.dev
Did anyone manage to find a fix for lost imei
Same thing happened to me yesterday, restored a nandroid, and efs disappeared
Tried flashing full stock, no result
Phone comes on, reboots after a minute
IMEI,bt, wifi mac id,baseband=unknown