IMEI=0 restore with QPST, provided a QCN is available? - Moto G 2015 Q&A, Help & Troubleshooting

First things first, I'm sorry for opening another thread on this but I feel the other ones weren't headed exactly in the correct direction.
A little background:
I was trying to downgrade my XT1541 to Lollipop since 6.0 was really bad and I got frustrated and used
Code:
fastboot erase all
The result was I erased my IMEI and I haven't been able to connect to a network carrier since. The problem can be solved by re-writing my IMEI but that's the difficult part.
What I gathered so far is I can use QPST, backup QCN, go into HEX and change IMEI there, then restore the QCN back to my device. The problem is I can't locate the IMEI in my QCN since my IMEI is now simply 0.
So in all, could someone make a backup of THEIR QCN and send it to me? I would flash it to my XT1541, locate the IMEI (since now I would know what I'm looking for), then change it back to my own.
Does that sound like something that could work? Can anyone help?
UPDATE1: Noone sent me their QCN however I did try to restore the one I backup up (which still has an IMEI=0). QPST Software Download reports
Received an invalid command from the phone.
Click to expand...
Click to collapse
I tried using Qualcomm NV Tools (from EFS Professional), which reads all the information correctly, however when attempting to write the following appears
Cannot Write: NV_UE_IMEI_I
Error: NV_ERR_BAD_SECURITY_STATE
Click to expand...
Click to collapse
So getting another QCN won't help as it seems that I can't write the IMEI (qcn) back to the device...

There are only two possibilities of fixing this... a 50/50 chance that a full factory flash will restore it (don't know how, but it does sometimes). If that doesn't work, then you need to send it to Moto for repair.

acejavelin said:
There are only two possibilities of fixing this... a 50/50 chance that a full factory flash will restore it (don't know how, but it does sometimes). If that doesn't work, then you need to send it to Moto for repair.
Click to expand...
Click to collapse
I have already tried with a full stock rom flash which didnt work...

zeusalmighty said:
I have already tried with a full stock rom flash which didnt work...
Click to expand...
Click to collapse
Well, unfortunately that leaves option 2... or turn it into a media play and buy a new phone.
Funny how `fastboot erase all` causes such a pain for some and not others... but once your IMEI is gone, there isn't much you can do. Moto kinda screwed the pooch on that one.

Hello, did u try Xposed IMEI changer? Maybe that will be a native fix for this issue.

Try this >http://forum.xda-developers.com/moto-g/help/info-moto-g-imei0-t2925970/post61725547#post61725547

Henriquefeira said:
Try this >http://forum.xda-developers.com/moto-g/help/info-moto-g-imei0-t2925970/post61725547#post61725547
Click to expand...
Click to collapse
Thanks but the dd commands wont work since it appears the folder structure is different on the XT1541...any help?

Forever Alone said:
Hello, did u try Xposed IMEI changer? Maybe that will be a native fix for this issue.
Click to expand...
Click to collapse
Hey, couldn't get any results with the xposed module

Just one bump

One last effort, not a bump. If anyone can direct me to commercial services for repairing the IMEI i'd be very greatful. Official Motorola Service wont repair it for me btw.
Thanks

try this guys
http://forum.xda-developers.com/2015-moto-g/help/tuto-fastboot-erase-signal-t3451362#post68445534

Related

[Q] Lost IMEI

Guys, need some help here.
I´m noob, After try some custom Roms, scripts, kernels, etc, I lost my IMEI. Device is working fine, but can make emergency calls.
Try many things to recover it, i flash a froyo stock rom, GB stock, try diferent programs and read a lot here in XDA.
Cant find EFS folder, even using Root Browser.
I didn´t know that was need to back up the EFS folder. I only had CWR backups, and even this not works.
Maybe there something especific for Galaxy Fit?
Thanks for any help!
nisiomorais said:
Guys, need some help here.
I´m noob, After try some custom Roms, scripts, kernels, etc, I lost my IMEI. Device is working fine, but can make emergency calls.
Try many things to recover it, i flash a froyo stock rom, GB stock, try diferent programs and read a lot here in XDA.
Cant find EFS folder, even using Root Browser.
I didn´t know that was need to back up the EFS folder. I only had CWR backups, and even this not works.
Maybe there something especific for Galaxy Fit?
Thanks for any help!
Click to expand...
Click to collapse
Try install stock ROM with 4 files via ODIN, after CWM via ODIN and after custom ROM which you want.
Tried exactly this using a stock froyo rom, doesn´t work...
nisiomorais said:
Tried exactly this using a stock froyo rom, doesn´t work...
Click to expand...
Click to collapse
Are you tried Gingerbread with 4 files?
No, i tried Gingerbread (one package) and Froyo (4 files). Is there any diference?
nisiomorais said:
No, i tried Gingerbread (one package) and Froyo (4 files). Is there any diference?
Click to expand...
Click to collapse
I do not know. After this what I suggested, custom ROMs should work normally.
I will try again, where i can find GB in 4 files?
thanks!
nisiomorais said:
I will try again, where i can find GB in 4 files?
thanks!
Click to expand...
Click to collapse
Here: http://www.sammobile.com/firmware/
In Search write s5670, and download ROM for your location.
Ahhh this is something that even I was perplexed with...
A lot of people have reported this already, but we haven't made headway in this area...
In samsung phones, IMEI is either in efs or in csc, but none of us have had a closer look at this...
Hopefully, we'll be able to have ways to backup imei in the future...(no promises, though)
I hope too, for now I'm trying many ways to recover my IMEI, nothing works...
Updating: I use EFS Pro V2 http://forum.xda-developers.com/showthread.php?t=1308546 , and finaly have my IMEI back. I post it cause coud be helpful for others.
nisiomorais said:
Updating: I use EFS Pro V2 http://forum.xda-developers.com/showthread.php?t=1308546 , and finaly have my IMEI back. I post it cause coud be helpful for others.
Click to expand...
Click to collapse
Can you be a bit detailed?
Maybe list the steps.
This would help a lot of people.
Well, sorry for my bad english, will try to explain step-by-step: i instaled the app (EFS Professional) in my notebook, conect my device via USB, debuggin, ADB too.
Open the app on computer, select Qualcom.
Click on Qualcom NV Tools, a new box will apear.
Click Connect.
First i try Imei Repair box, insert manally the IMEI number and click Write IMEI,doesn´t work (and i don´t know if to digit IMEI number was neccessary, but just in case)
Close this box, go back to initial box and click NV Restore. The fone will reboot and it´s done. IMEI original number was restored.
I don´t know if maybe just clicking NV Restore as first step will do all the job, maybe. But I was "exploring" the options and thats works for me.
I hope it be helpfull
nisiomorais said:
Well, sorry for my bad english, will try to explain step-by-step: i instaled the app (EFS Professional) in my notebook, conect my device via USB, debuggin, ADB too.
Open the app on computer, select Qualcom.
Click on Qualcom NV Tools, a new box will apear.
Click Connect.
First i try Imei Repair box, insert manally the IMEI number and click Write IMEI,doesn´t work (and i don´t know if to digit IMEI number was neccessary, but just in case)
Close this box, go back to initial box and click NV Restore. The fone will reboot and it´s done. IMEI original number was restored.
I don´t know if maybe just clicking NV Restore as first step will do all the job, maybe. But I was "exploring" the options and thats works for me.
I hope it be helpfull
Click to expand...
Click to collapse
Have a couple of thanks, coz this was helpful.
I'll ask around if somebody has lost their imei and we'll try to cross check this, make it noob proof and then have it added to my guide to help the poor souls who might need this in the future
a.cid said:
Ahhh this is something that even I was perplexed with...
A lot of people have reported this already, but we haven't made headway in this area...
In samsung phones, IMEI is either in efs or in csc, but none of us have had a closer look at this...
Hopefully, we'll be able to have ways to backup imei in the future...(no promises, though)
Click to expand...
Click to collapse
We do not hav EFS partition in ROM's that are released now and i dont see that y..... But afaik for the OP's concern he could flash some old FW which has csc file in it which might help him regain his IMEI

[Q] Invalid IMEI after installing ROM

Hello guys,
I just installed 4.1.2 Android from 4.2.2 and now My phone can't read my SIM card. When I'm trying to unlock my phone with GalaxSim Unlock it says "Warning: invalid IMEI. Restoring an EFS backup before unlocking is advised." The IMEI code on *#06# and on my phone's box are different. I have no ideas what I can do because I have never had this problem before after ROM installing. How I can solve this problem?
did you backup you umei/efs before at ant time?
Cruzin' tha Galaxy SIII via Obsessed Rom / "INAPPROPRIATE" Kernel
bbolton_98 said:
did you backup you umei/efs before at ant time?
Cruzin' tha Galaxy SIII via Obsessed Rom / "INAPPROPRIATE" Kernel
Click to expand...
Click to collapse
No I did not. Is there an other way to solve it?
check out below thread. hope you'd get it back!
http://forum.xda-developers.com/showthread.php?t=1852255
thats the best way (link in above post) if you happen to of installed synergy rom at any time it would have asked about making one for you. also nandroid manager can backup it also so check and see if any of your nandroids have a efs partition saved. if not read post in link more than once before doing anything.
Cruzin' tha Galaxy SIII via Obsessed Rom / "INAPPROPRIATE" Kernel
Is terminal emulator download available in Google play store??
bbolton_98 said:
thats the best way (link in above post) if you happen to of installed synergy rom at any time it would have asked about making one for you. also nandroid manager can backup it also so check and see if any of your nandroids have a efs partition saved. if not read post in link more than once before doing anything.
Cruzin' tha Galaxy SIII via Obsessed Rom / "INAPPROPRIATE" Kernel
Click to expand...
Click to collapse
I followed all steps but there is some problem in Restore. My phone is rooted and I have Terminal Emulator. When I write "su reboot nvbackup' it works and my phone reboot. But when I write "adb reboot nv restore" it says "device not found". Could you help me? I cannot reply on that thread.
http: //i39.tinypic.com/x513yc.png
Delete the space in this link because I cannot post any links until I do not have 10 post.
Edvinas1602 said:
I followed all steps but there is some problem in Restore. My phone is rooted and I have Terminal Emulator. When I write "su reboot nvbackup' it works and my phone reboot. But when I write "adb reboot nv restore" it says "device not found". Could you help me? I cannot reply on that thread.
http: //i39.tinypic.com/x513yc.png
Delete the space in this link because I cannot post any links until I do not have 10 post.
Click to expand...
Click to collapse
You need to reread the directions in the Comprehensive IMEI thread. You'll see why it's failing. I will say this though, "adb" is primarily a computer command so it's unnecessary on mobile.
Sent from my SCH-I535 using Tapatalk 4
I still do not get this. It says that I do not need ADB if I have Terminal Emulator and my phone is rooted. I just need to restore it in a some way.
Edvinas1602 said:
I still do not get this. It says that I do not need ADB if I have Terminal Emulator and my phone is rooted. I just need to restore it in a some way.
Click to expand...
Click to collapse
I'll ask you this now before I explain to you the command, does your IMEI in Settings/About Phone match what's on your Verizon GSIII retail box? Cuz restoring your IMEI will not work right now if its the wrong one. What you just backed up could be the "broken" IMEI and restoring it will do you more harm than good.
twistedillutions said:
Is terminal emulator download available in Google play store??
Click to expand...
Click to collapse
For clarity purposes, yes. Although, I see you posted this question in the Comprehensive IMEI thread and received an answer there as well.
SlimSnoopOS said:
I'll ask you this now before I explain to you the command, does your IMEI in Settings/About Phone match what's on your Verizon GSIII retail box? Cuz restoring your IMEI will not work right now if its the wrong one. What you just backed up could be the "broken" IMEI and restoring it will do you more harm than good.
Click to expand...
Click to collapse
IMEI codes are different. Now the IMEI code is 004999010640000. On my box the IMEI code is very different that one.
Edvinas1602 said:
IMEI codes are different. Now the IMEI code is 004999010640000. On my box the IMEI code is very different that one.
Click to expand...
Click to collapse
Aight, second question. Are you absolutely sure that you have a Verizon Galaxy SIII (d2vzw aka SCH-i535)? If so, proceed to read.
if you just performed this IMEI backup with the improper IMEI then the restore command will only reinsert this same wrong IMEI. You want your "proper" IMEI which is on the box to be backed up before you ever attempt an IMEI restore. If you have a CWM or TWRP rom backup then you should try restoring that THEN check if your IMEI is correct or wrong.
Do not post your proper IMEI. If it returns if/when you restore your rom in CWM or TWRP then just say "my IMEI is correct" or something like that. If you don't have a CWM or TWRP backup or don't know what I'm talking about then you're going to need a Windows computer and you'll need to Odin flash stock VRALF1 or VRAGL1 firmware tar. Make sure to unzip the file before using Odin, Odin flashes "tar" and "tar.md5" files only. If your IMEI is not restored at that point, then you'll need to reprovision your LTE sim card with the following code. It will erase your phone's storage. The dialer code only works o ICS software (so you'll need absolutely need VRALF2 or VRALG1):
Open the dialer and enter *2767*3855#
I'm stepping out for an hour or so. If you have any questions, hopefully someone else can provide input. If someone else things what I wrote above is unnecessary, please say so.
Edit: For clarity as well, I do not know if the VRALF2 or VRALG1 tar files format your internal storage (let's reasonably assume they do wipe /sdcard), so backup whatever important data you have on the phone to your computer or external sdcard.
Actually I have got SGS3 i9300. When I created this thread I didn't see that here is a subforum for i9300. Thanks for the help I will try it and let you know.
SlimSnoopOS said:
I'll ask you this now before I explain to you the command, does your IMEI in Settings/About Phone match what's on your Verizon GSIII retail box? Cuz restoring your IMEI will not work right now if its the wrong one. What you just backed up could be the "broken" IMEI and restoring it will do you more harm than good.
For clarity purposes, yes. Although, I see you posted this question in the Comprehensive IMEI thread and received an answer there as well.
Click to expand...
Click to collapse
Yes i posted both places up late last night ill stay over there for answers thnz for the response
SlimSnoopOS said:
Aight, second question. Are you absolutely sure that you have a Verizon Galaxy SIII (d2vzw aka SCH-i535)? If so, proceed to read.
if you just performed this IMEI backup with the improper IMEI then the restore command will only reinsert this same wrong IMEI. You want your "proper" IMEI which is on the box to be backed up before you ever attempt an IMEI restore. If you have a CWM or TWRP rom backup then you should try restoring that THEN check if your IMEI is correct or wrong.
Do not post your proper IMEI. If it returns if/when you restore your rom in CWM or TWRP then just say "my IMEI is correct" or something like that. If you don't have a CWM or TWRP backup or don't know what I'm talking about then you're going to need a Windows computer and you'll need to Odin flash stock VRALF1 or VRAGL1 firmware tar. Make sure to unzip the file before using Odin, Odin flashes "tar" and "tar.md5" files only. If your IMEI is not restored at that point, then you'll need to reprovision your LTE sim card with the following code. It will erase your phone's storage. The dialer code only works o ICS software (so you'll need absolutely need VRALF2 or VRALG1):
Open the dialer and enter *2767*3855#
I'm stepping out for an hour or so. If you have any questions, hopefully someone else can provide input. If someone else things what I wrote above is unnecessary, please say so.
Edit: For clarity as well, I do not know if the VRALF2 or VRALG1 tar files format your internal storage (let's reasonably assume they do wipe /sdcard), so backup whatever important data you have on the phone to your computer or external sdcard.
Click to expand...
Click to collapse
I'm actually considering doing this today. I lost my IMEI/ERI and restored them with the forbidden software but the problem I'm having is on some roms my google play store won't connect and it's been kinda frustrating and I don't know what else do, I've cleared store cache and data, plus every other fix I could find online. Plus it might be good practice for me if I have to send my phone back in the future as I bought my S3 rooted and unlocked.
TheAfroSamurai said:
I'm actually considering doing this today. I lost my IMEI/ERI and restored them with the forbidden software but the problem I'm having is on some roms my google play store won't connect and it's been kinda frustrating and I don't know what else do, I've cleared store cache and data, plus every other fix I could find online. Plus it might be good practice for me if I have to send my phone back in the future as I bought my S3 rooted and unlocked.
Click to expand...
Click to collapse
Might as well give it a try, not much at risk you know?
SlimSnoopOS said:
Might as well give it a try, not much at risk you know?
Click to expand...
Click to collapse
The only thing I can chalk it up to is maybe there was something still wonky because I didn't Odin back and used the Repair Tool. I'm off today and not really interested in the football game tonight so I got time. I'll Odin back, reprovision and reroot, unlock and see what happens with play store after that, thanks for all your help. Learned alot from your posts dude...:good:
TheAfroSamurai said:
I'm actually considering doing this today. I lost my IMEI/ERI and restored them with the forbidden software but the problem I'm having is on some roms my google play store won't connect and it's been kinda frustrating and I don't know what else do, I've cleared store cache and data, plus every other fix I could find online. Plus it might be good practice for me if I have to send my phone back in the future as I bought my S3 rooted and unlocked.
Click to expand...
Click to collapse
How did you restore your IMEI? What software did you use?
Edvinas1602 said:
How did you restore your IMEI? What software did you use?
Click to expand...
Click to collapse
This was before I found the Samsung Repair Utility so you may not need QPST and you can just use the repair utility.
1) I restored my IMEI using this guide here: http://droidmodderx.com/galaxys3/?page_id=79
2) Please note that since I hadn't found the repair utility you may not need to do step one, the repair utility does both IMEI/ERI
3) Go here: http://forum.xda-developers.com/showpost.php?p=44871571&postcount=3
4) We don't want to get XDA in trouble so I can't link the repair utility or have a mirror for it. I can only put you on the block and you have to find the house....
5) Once everything is ok flash your modem back up to whatever current modem you were using.
6) Also it may be best to just Odin back as I'm having issues with Play Store on certain roms.
TheAfroSamurai said:
This was before I found the Samsung Repair Utility so you may not need QPST and you can just use the repair utility.
1) I restored my IMEI using this guide here: http://droidmodderx.com/galaxys3/?page_id=79
2) Please note that since I hadn't found the repair utility you may not need to do step one, the repair utility does both IMEI/ERI
3) Go here: http://forum.xda-developers.com/showpost.php?p=44871571&postcount=3
4) We don't want to get XDA in trouble so I can't link the repair utility or have a mirror for it. I can only put you on the block and you have to find the house....
5) Once everything is ok flash your modem back up to whatever current modem you were using.
6) Also it may be best to just Odin back as I'm having issues with Play Store on certain roms.
Click to expand...
Click to collapse
What is the version of your Android? When I write *#7284# I don't see something like "Qualcomm USB Settings"

IMEI=0 - how to enter working IMEI?

Hi everyone & thanks for reading this!
I bought 2 new, unused Nexus 5 as presents for my sisters for Christmas (not via playstore, but via a reseller. Still: new, sealed, unused.)
I unlocked, installed a custom recovery, rooted both devices without problems, then set up one in a smartphone-newbie-friendly way, which took quite some time. Then, to save me some time, I fear I made quite a big mistake: I made a nandroid-backup of the newly-setup device and restored/installed it on the second nexus (so I wouldn't have to change all the settings again, install apps, etc).
Unfortunately, this seems to have erased the IMEI on the second device (it shows as IMEI=0), so I can't connect to any cell service. Some googling leads me to believe that this might be due to a corrupt/missing EFS-folder, which, second mistake, I did NOT make a backup of beforehand. I know, it's my own fault - my thinking was: why backup, there's nothing backupworthy on the device *yet*.
FML. :crying:
I am not sure if the phone is still in warranty (and even if it was - I guess I voided that by unlocking/rooting?!). I want to re-iterate that I own both devices LEGALLY, I have the bill, I have the original sticker with the original IMEI - I just need a way to re-enter it. Any dialer-code for that? Any modify-able EFS-backups? Any other way?
Thanks in advance!
PS: tried so far & found useless: other simcard (not working) & simcard in other phone (working), so it's a device-issue; factory-reset;
Try fastboot flashing the cache.img from the factory image.
jd1639 said:
Try fastboot flashing the cache.img from the factory image.
Click to expand...
Click to collapse
thanks for the super-quick reply jd1639!
to make sure I understand you correctly:
I can use the factory image from
https://dl.google.com/dl/android/aosp/hammerhead-kot49h-factory-02006b99.tgz
(nexus 5, android 4.4.2), extract the cache.img from there & flash that via fastboot? (or would it have to be a factory image of this very device - which I do not have, unfortunately)
and, just for my understanding: how does that restore the imei? I mean, the factory image itself (or it's cache) can't really contain MY imei. does this just delete the invalid imei & force the phone to get it's original imei from some other, not yet overwritten source? e.g. hardware?
Yes fastboot flash the cache.img from the factory image is a known fix for this issue. Something has corrupt your cache causing the imei to not display properly
Sent from my Nexus 5 using Tapatalk
Thank you for clarifying, rootSU - that gives me hope.
I will try tomorrow & hopefully report success
Just tried this (twice) - unfortunately no success, IMEI is still 0
downloaded factory image, verified md5, extracted cache.img, flashed in fastboot; every step successful - final result is still IMEI=0. Tried again, this time erasing cache beforehand for good measure - still IMEI 0.
What else can I try?
PS: this seems to be the only issue - no hw-problems or similar. directly after boot, the device seems to connect to a mobile network for a second, then gets kicked out (due to missing/invalid IMEI, I suppose).
RogerG said:
Just tried this (twice) - unfortunately no success, IMEI is still 0
downloaded factory image, verified md5, extracted cache.img, flashed in fastboot; every step successful - final result is still IMEI=0. Tried again, this time erasing cache beforehand for good measure - still IMEI 0.
What else can I try?
PS: this seems to be the only issue - no hw-problems or similar. directly after boot, the device seems to connect to a mobile network for a second, then gets kicked out (due to missing/invalid IMEI, I suppose).
Click to expand...
Click to collapse
Did you use TWRP for the original nandroid backup that you restored on the new one? If so, you may have backed up, and consequently flashed the EFS from the original N5 to the new one. If so, I hate to say this, but I don't think there's any hope of getting the IMEI back on the new one...
RogerG said:
Just tried this (twice) - unfortunately no success, IMEI is still 0
downloaded factory image, verified md5, extracted cache.img, flashed in fastboot; every step successful - final result is still IMEI=0. Tried again, this time erasing cache beforehand for good measure - still IMEI 0.
What else can I try?
PS: this seems to be the only issue - no hw-problems or similar. directly after boot, the device seems to connect to a mobile network for a second, then gets kicked out (due to missing/invalid IMEI, I suppose).
Click to expand...
Click to collapse
I had a problem with my phone IMEI (Nexus 4) before. It would say unknown. The reason why was I flashed a bad radio and boot loader version. So what I did was find a thread on the N4 section for the right radio and bootloader. I'm not exactly sure if this will work on your part, but I don't think it'll hurt to try. Oh and maybe reflash the factory image.
Sent from a potato
---------- Post added at 12:47 AM ---------- Previous post was at 12:44 AM ----------
Sorry for double post. Check this link out and go to the second post talking about IMEI. Idk if this will help you out. Good luck
http://forum.xda-developers.com/showthread.php?t=2510966
Sent from a potato
charesa39 said:
Did you use TWRP for the original nandroid backup that you restored on the new one? If so, you may have backed up, and consequently flashed the EFS from the original N5 to the new one. If so, I hate to say this, but I don't think there's any hope of getting the IMEI back on the new one...
Click to expand...
Click to collapse
yes, that's precisely what I did.
That's why I had little hope of restoring the original IMEI and was instead asking in my original post for a way to enter it anew (since I KNOW what it should be).
CellPhish said:
I had a problem with my phone IMEI (Nexus 4) before. It would say unknown. The reason why was I flashed a bad radio and boot loader version. So what I did was find a thread on the N4 section for the right radio and bootloader. I'm not exactly sure if this will work on your part, but I don't think it'll hurt to try. Oh and maybe reflash the factory image.
Sent from a potato
---------- Post added at 12:47 AM ---------- Previous post was at 12:44 AM ----------
Sorry for double post. Check this link out and go to the second post talking about IMEI. Idk if this will help you out. Good luck
http://forum.xda-developers.com/showthread.php?t=2510966
Sent from a potato
Click to expand...
Click to collapse
thanks I will try this (even though I think my problem is not related to radio/bootloader and I am generally skeptical about my chances of "restoring" IMEI, as opposed to "manually entering/modifying it"). Still, willing to try anything, thanks for the idea!
RogerG said:
thanks I will try this (even though I think my problem is not related to radio/bootloader and I am generally skeptical about my chances of "restoring" IMEI, as opposed to "manually entering/modifying it"). Still, willing to try anything, thanks for the idea!
Click to expand...
Click to collapse
If all fails you can try to contact LG service and tell them your situation. Though its not good to lie, just tell them you got the IMEI=0 problem, they'll say its a hardware problem and will replace the motherboard(if your device is on warranty)
Sent from a potato
You'll probably have a hard time here finding anyone to help you manually entering or modifying the imei.
rootSU said:
Yes fastboot flash the cache.img from the factory image is a known fix for this issue. Something has corrupt your cache causing the imei to not display properly
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
The IMEI is stored in the EFS partition, not the cache partition.
RogerG said:
yes, that's precisely what I did.
That's why I had little hope of restoring the original IMEI and was instead asking in my original post for a way to enter it anew (since I KNOW what it should be).
Click to expand...
Click to collapse
Sounds like you turned the phone into a $400 paperweight. TWRP backs up and restores the EFS partition by default, and each device has a unique EFS partition, which contains the IMEI among other things. I don't know of a way of manually restoring the EFS data. This is unfortunately a $400 lesson for people who tinker without first doing their homework.
Hey guy. Let's not be so judgemental. There's always a risk of the imei being corrupted when you flash a ROM. As a matter of fact just before I even unlocked my nexus the imei got corrupted and I had to factory flash my phone to save it. Its scary but op, if you manage to get your phone working again make a backup and store it on your PC and or email yourself the backup.
BirchBarlow said:
The IMEI is stored in the EFS partition, not the cache partition.
Click to expand...
Click to collapse
Ha ha thanks! Can't believe you think I don't know that :/
Actually the "EFS partition" is 2 partitions..
/dev/block/platform/msm_sdcc.1/by-name/modemst1
And...
/dev/block/platform/msm_sdcc.1/by-name/modemst2
That doesn't change the fact that reflashing the cache.img is a known fix for missing IMEI. Corrupt cache can make the imei appear as 0 even when the EFS imei is in tact so reflashing the cache.img can resolve this.
Unfortunately though, I didn't read the OP fully. I just elaborated on an earlier response for the OP
jd1639 said:
You'll probably have a hard time here finding anyone to help you manually entering or modifying the imei.
Click to expand...
Click to collapse
Modification is illegal however many mobile repair shops have equipment that can rewrite the existing imei and are legally allowed to. In the UK, this costs about £20. That said, i'm not aware of anyone having it done on the nexus 5. The galaxy s3 with a single /EFS partition could be done easily by a professional
Sent from my Nexus 5 using Tapatalk
rootSU said:
Modification is illegal however many mobile repair shops have equipment that can rewrite the existing imei and are legally allowed to. In the UK, this costs about £20. That said, i'm not aware of anyone having it done on the nexus 5. The galaxy s3 with a single /EFS partition could be done easily by a professional
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Yes but all talks about how to change it in any way are not allowed here. Legally the only people that are allowed to do so is the OEM. You can look at international news reports of cellular dealers that are doing so are being closed down and arrested.
That is why it is well know to back up the efs before you do anything.
Bat cave One
My newly bought Nexus 5 shows IMEI 0 also
RogerG said:
thanks I will try this (even though I think my problem is not related to radio/bootloader and I am generally skeptical about my chances of "restoring" IMEI, as opposed to "manually entering/modifying it"). Still, willing to try anything, thanks for the idea!
Click to expand...
Click to collapse
i just update my newly bought nexus 5 from initial 4.4.2 to 4.4.4 which is appear at update section but then my IMEI appear =0 .. dont understand what to do..
if your problem solved, pls tell me the detail procedure to recover my IMEI no.
RogerG, did you ever get this working? I'm on 6.0 and having the same problem, flashing cache.img also does nothing.
Thanks.

[Q] Lost IMEI when tried to restore TWRP backup from other phone

Hello everyone,
I wanted to move all the contents of one Nexus 5 to another one, but I'm learning that I might have failed to properly account for the EFS partition and now my phone has an IMEI of "0" and won't register with T-Mobile. I'm not sure how to restore it at this point, as no backup of this phone was ever taken (it was stock).
Can anyone point me in the right direction? I did find someone else who had this problem here:
http://android.stackexchange.com/questions/85807/nexus-5-imei-0-how-to-restore-imei
and that led me to
http://forum.xda-developers.com/goo...t/modem-nexus-5-flashable-modems-efs-t2514095
which had a script for, I think, helping to download or export the EFS information. Problem is that this phone doesn't have any IMEI info any longer! I do have another N5 I can use if needed to extract what I need and then perhaps I can edit the IMEI manually?
Thanks a lot everyone
Sorry to say, but there is no fix short of sending it to LG and they'll charge you
Sent from my Nexus 9 using XDA Free mobile app
I lost my IMEI a while ago when flashing a openmaster build (that's pure aosp). Reflashed stock by factory images/flash-all.sh, got my IMEI back no sweat.
a maguro wrote this.
beekay201 said:
I lost my IMEI a while ago when flashing a openmaster build (that's pure aosp). Reflashed stock by factory images/flash-all.sh, got my IMEI back no sweat.
a maguro wrote this.
Click to expand...
Click to collapse
That's a lot different than flashing a nandroid from a different device with the efs partition
Sent from my Nexus 9 using XDA Free mobile app
Not sure if it's possible but you could try... I'm thinking it may be possible to edit the nandroid with the EFS part to the IMEI of the 2nd device. Your device should have the IMEI sticker on the back, so you could try to replace the IMEI in the nandroid to the one on the back of the phone. Hopefully you understand what I'm trying to stay and good luck with it.
Sent from my Nexus 5 using the N5X LRX21V ROM
fastboot format cache
Sent from my Nexus 5 using Tapatalk
Tampering with the imei is illegal
procitysam said:
Not sure if it's possible but you could try... I'm thinking it may be possible to edit the nandroid with the EFS part to the IMEI of the 2nd device. Your device should have the IMEI sticker on the back, so you could try to replace the IMEI in the nandroid to the one on the back of the phone. Hopefully you understand what I'm trying to stay and good luck with it.
Sent from my Nexus 5 using the N5X LRX21V ROM
Click to expand...
Click to collapse
This is what I was thinking of doing. How would I get the EFS part from the 2nd device? Would I use TWRP to back that part up, then try to restore only that onto the old phone (after replacing the original, proper IMEI from the label)?
Thanks!
dicecuber said:
Tampering with the imei is illegal
Click to expand...
Click to collapse
Only if your changing it to another. In this case the OP would be legal to try and restore the correct IMEI to the phone.
I've done a backup on the other phone of just EFS, and have three files:
efs1.emmc.win
efs2.emmc.win
recovery.log
But I can't get anything out of the two .win files. I tried changing their extensions to .zip, .tar, and .tar.gz, but none allow me to open them with 7-Zip. And even if I did, they're each about 3MB in size and I wouldn't know where to look for the IMEI. If anyone has any thoughts I would appreciate them.
Thanks
jd1639 said:
That's a lot different than flashing a nandroid from a different device with the efs partition
Sent from my Nexus 9 using XDA Free mobile app
Click to expand...
Click to collapse
still, recovering /efs... forget copying it from another device.. just flash factory images.
beekay201 said:
still, recovering /efs... forget copying it from another device.. just flash factory images.
Click to expand...
Click to collapse
I've tried that twice already. Factory images would be awesome for me if they worked. After I do it, the IMEI is still zero.
It seems that everyone feels I am trying to do something illegal. On the contrary, I'm just trying to get the phone to work with its own IMEI short of sending it back to LG, which I will do if I have to, but I thought this would be a lot easier to do given that I have two Nexus 5s right hear to play with, and the IMEI stickers still on both of the phones. I read that on the Nexus 5 that stuff is stored in EFS, and erasing it was a total noob mistake (even though I've been flashing phone ROMs for years and years now), since I never suspected that IMEI info would be in non-hardware areas of the phone. Live and learn, I guess.
beekay201 said:
I lost my IMEI a while ago when flashing a openmaster build (that's pure aosp). Reflashed stock by factory images/flash-all.sh, got my IMEI back no sweat.
a maguro wrote this.
Click to expand...
Click to collapse
I will do it again. I flashed factory quite a few times with no luck. I then installed TWRP again just in case I find a way to recover or reinstall the EFS partition. So that's the current state of the phone.
sshanky said:
I will do it again. I flashed factory quite a few times with no luck. I then installed TWRP again just in case I find a way to recover or reinstall the EFS partition. So that's the current state of the phone.
Click to expand...
Click to collapse
You could try this http://forum.xda-developers.com/showthread.php?p=51823398. But from my experience the only way you're going to get the imei back is to send it to LG
Sent from my Nexus 9 using XDA Free mobile app
theesotericone said:
Only if your changing it to another. In this case the OP would be legal to try and restore the correct IMEI to the phone.
Click to expand...
Click to collapse
Suppose it depends on the law you read and how you interoperate it but most of them generically say something like "tamper" or "modify". Either way though, all discussion of it is banned.
jd1639 said:
You could try this http://forum.xda-developers.com/showthread.php?p=51823398. But from my experience the only way you're going to get the imei back is to send it to LG
Sent from my Nexus 9 using XDA Free mobile app
Click to expand...
Click to collapse
I just checked that out, and it looks interesting. However, someone asked if it rebuilds EFS and the answer was "no".
If anyone has any way to explain something to me in general terms, so that they do not feel they are discussing anything illegal, I would appreciate it a lot. Or a PM, or any roundabout way of discussing it...anything that can help me would be great.
Thanks
Did you ever do a TWRP backup?
Tried LG flash tool but it did not restore the IMEI.
sshanky said:
Tried LG flash tool but it did not restore the IMEI.
Click to expand...
Click to collapse
As mentioned. Unless you have an efs backup from the second device before restoring. You're screwed. Send it to LG for paid repair. It won't cost much.

No EFS Backup...IMEI Lost D821 :(

After multiple flashing of ROMs and kernels, suddenly my baseband has gone (Unknown) and IMEI too . After reading multiple forums, I figured out that it might be a corrupted EFS and my phone is not under warranty everything works fine...wifi, bluetooth etc...only no cellular signal...please help guys already flashed factory images (KK and Lollipop) and tried few custom roms....but same problem Was on latest optipop with Code blue r793 :crying:
Thanks in Advance
Fastboot flash stock cache.img usually fixes this. Not seen many EFS issues on nexus 5. Mainly Samsung has this problem
rootSU said:
Fastboot flash stock cache.img usually fixes this. Not seen many EFS issues on nexus 5. Mainly Samsung has this problem
Click to expand...
Click to collapse
Thanks for the reply but it did not work mate flashed entire stock rom by method 1 and 2 and also flashed cache.img seperately
rootSU said:
Fastboot flash stock cache.img usually fixes this. Not seen many EFS issues on nexus 5. Mainly Samsung has this problem
Click to expand...
Click to collapse
Please help friend, went to Lg Service Center and they say motherboard needs to be changed...about $230 ...tried flashing many custom roms, stock KK and Lollipop latest versions...I backed up my modemst1 and modemst2 and flashed a friend's EFS...the situation improved...baseband shows correctly but IMEI 0 and no cellular network though signal is there....I can see the signal bar full and also E for EDGe written but whn I try to call, no network. When I reflash my EFS files, it is back to unknown IMEI and baseband Please help mate as I see you are very much experienced in this...Thanks a ton in advance
No offence but can also donate you some $$s for your cause....
Try using this
rajvernekar said:
Please help friend, went to Lg Service Center and they say motherboard needs to be changed...about $230 ...tried flashing many custom roms, stock KK and Lollipop latest versions...I backed up my modemst1 and modemst2 and flashed a friend's EFS...the situation improved...baseband shows correctly but IMEI 0 and no cellular network though signal is there....I can see the signal bar full and also E for EDGe written but whn I try to call, no network. When I reflash my EFS files, it is back to unknown IMEI and baseband Please help mate as I see you are very much experienced in this...Thanks a ton in advance
No offence but can also donate you some $$s for your cause....
Click to expand...
Click to collapse
Afraid not mate . Messing with the EFS is illegal in some countries - and there's not much we can do anyway. The only ones who can help you are the guys at LG - keep pestering them until they agree to rewrite your efs.
Why did you not flash your own number. It's on the box and inside the back cover of the phone. To use a friends is stupid and illegal. You can't have two phones with the same number. It's highly illegal.
2G Only
Well, Managed to get back my IMEI as one of the local repair guys injected it...donno how bust maybe using Octoplus Box....But now stuck with 2G only as if I try to switch to 3G/4G, it does not work and phone reboots. Tried multiple roms, LG Flash tool...no resort....any help wud be highly appreciated
RajRockyBalboa said:
Well, Managed to get back my IMEI as one of the local repair guys injected it...donno how bust maybe using Octoplus Box....But now stuck with 2G only as if I try to switch to 3G/4G, it does not work and phone reboots. Tried multiple roms, LG Flash tool...no resort....any help wud be highly appreciated
Click to expand...
Click to collapse
Bring it back to the repair shop. To riffbox it he would of had to solder some stuff to make it work. I'd bet that solder got somewhere it's not supposed to.
theesotericone said:
Bring it back to the repair shop. To riffbox it he would of had to solder some stuff to make it work. I'd bet that solder got somewhere it's not supposed to.
Click to expand...
Click to collapse
The Local Guy did not open the phone....he did some software only changes...
RajRockyBalboa said:
The Local Guy did not open the phone....he did some software only changes...
Click to expand...
Click to collapse
Interesting. He just used an IMEI switcher app then? Check and make sure your APNs are correct. That could cause loss of 4g but shouldn't ever cause the phone to reboot.
theesotericone said:
Interesting. He just used an IMEI switcher app then? Check and make sure your APNs are correct. That could cause loss of 4g but shouldn't ever cause the phone to reboot.
Click to expand...
Click to collapse
I checked my APNs and am using the same ones I had earlier. Reboot does not happen if I fix my connection to 2g...anyways, I read on XDA that flashing back my QCN file of any other D821 using QPST might solve this..I also have a file which this person shared. (QCN does not hold IMEI info but only NV backup). Can someone guide me whether this will work and if yes, how do I do it?
RajRockyBalboa said:
I checked my APNs and am using the same ones I had earlier. Reboot does not happen if I fix my connection to 2g...anyways, I read on XDA that flashing back my QCN file of any other D821 using QPST might solve this..I also have a file which this person shared. (QCN does not hold IMEI info but only NV backup). Can someone guide me whether this will work and if yes, how do I do it?[/QUOTE
You may have to use the tools capable of flashing stuff to swap CDMA carriers to get AA passwords n stuff back. And its illegal to swap ESN/imei in some countries but i don't see harm in repairing what u broke as long as info is original to Device
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Tampering with the imei is illegal
dicecuber said:
Tampering with the imei is illegal
Click to expand...
Click to collapse
You sure like saying that.
(d) Exception- Subsection (b) shall not apply to the manufacturer of a mobile device or a person who repairs or refurbishes a mobile device unless the manufacturer or person knows that the mobile device or part involved is stolen.'.
Click to expand...
Click to collapse
From here:
http://thomas.loc.gov/cgi-bin/query/z?c112:S.3186.IS:
That bill didn't pass but one like it did. I can't find it right now but you get the idea. FCC regs also allow for REPAIRING of it.
XDA however won't really allow any talk of how to do that because in some countries it is illegal. Plus they gotta cover their arse. So I'll just leave it it that.
No tampering with IMEI here
Thanks for the replies. But I am at all not wanting to tamper with my Imei.. Infact the imei is stable and fixed... I just want my 3g back... Rest of the phone is working perfectly fine

Categories

Resources