Where are the protected files? - G2 and Desire Z Q&A, Help & Troubleshooting

Hey guys, I had a Samsung Vibrant recently that the IMEI and MAC addresses and such totally got ruined and reseted to some default numbers. Luckily I knew that they were saved in the efs folder in a file called nv_data.bin and backed those files up before doing any flashing. I was wondering where is the equivalent in the G2 so that I can copy them out of the device and place them in a safe spot in the special event if I ever need to replace those files.
I have rooted my device following the instructions on this site.

Changing IMEI's is strictly against the rules of xda. Even if you're not trying to get around an IMEI block.
Sent from my T-Mobile G2 running Cyanogenmod.

I am just looking to back up my files. From what I understood there is no way to change imei. I just don't want the reset to happen to me again. If you search around this has happened fairly frequently on android and iPhones.
Sent from my SGH-T959 using XDA App

Related

Missing IMEI / No Mobile Data / Dev block / EFS Thread (UPDATE 7.16.12)

TO MINIMIZE THE CHANCE YOU LOSE YOUR IMEI, BE SURE AND ROOT/CWM USING THIS METHOD:
http://forum.xda-developers.com/showthread.php?t=1739426
AND ONLY FLASH ROMS INTENDED FOR USE ON YOUR MODEL
**UPDATED 7/16/12**
questions we are trying to answer:
- what versions of clockworkmod, if any, are prone to causing IMEI problems?
- what rooting methods, if any, are prone to causing IMEI problems?
- what ROMs are causing imei issues, and on which models? is the rooting/cwm method related?
- where is the IMEI stored on the phone, and most importantly
- is it possible to back it up, and restore it once corrupt?
RESTORING AN /EFS BACKUP DOES NOT APPEAR TO RESTORE AN IMEI AT THIS TIME.
TO BE SAFE, USE THIS GREAT SCRIPT BROUGHT TO YOU BY DROTHENBERGER AND SFERNANDEZ:
http://forum.xda-developers.com/showpost.php?p=28528532&postcount=38
You will need Cygwin (http://www.cygwin.com/) for the script.
Original post by sfernandez detailing the partitions: http://forum.xda-developers.com/showpost.php?p=28519596&postcount=39
IF YOU HAVE THIS ISSUE, PLEASE FILL THIS OUT AND POST. THANKS PINOYMUTT:
1. CARRIER VERSION:
(ATT, TMo, Sprint, Verizon, Bell, etc.)
2. ROOT METHOD:
Exact method you used to root, please link to the thread if possible
3. CWM INSTALLATION METHOD:
Again, please be specific. Examples include the ADB/DD method, flashing via ODIN, etc.
4. CWM VERSION:
Which CWM are you using -- the Sprint version or one of the Clockwork ones?
5. ROM(s) FLASHED:
Did you flash any ROMs after the above, and how did you flash it?
6. WHEN DID YOU FIRST NOTICE IMEI WAS GONE?:
It helps if you know which step may have caused the issue
7. OTHER NOTES:
RULES
1. Please READ THE ENTIRE THREAD BEFORE POSTING. There is way too much info in here for me to summarize.
2. ALWAYS READ THE THREAD BEFORE POSTING
3. If your phone is working properly and your IMEI is intact, and the method you used to root and install CWM has already been detailed by another member, WE DO NOT NEED TO KNOW IT ALSO WORKED FOR YOU. LET'S TRY AND KEEP THE THREAD CLUTTER DOWN
4. No arguing or bickering over stupid crap. Keep that to PMs.
5. READ THE THREAD BEFORE POSTING. THANK YOU.
original post:
If you have flashed a new ROM on your phone recently and have found difficulty or impossibility in getting cellular or data service, chances are you have corrupted or deleted the file that stores your IMEI. i'll try to answer a couple of common questions and detail methods i used, and why i think they failed
What is an IMEI?
your network identifies your phone by its IMEI. once i had "lost" mine, AT&T's network would not provide service to my device, even after getting a new sim card.
How can I check if mine is corrupted?
your IMEI is a 15-digit number under your battery. dialing *#06# should display the same number under your battery. if you get a different number or something like 0 / 00, you have corrupted your IMEI.
Changing the APNs
marginally effective at best. your phone is not registering on AT&T's network as a device it should send data to, so it doesn't matter what APN you use.
flashing to stock rom
did not work for me. probably because this probably doesn't effect the /efs partition, where the IMEI is stored.
use CWM / nandroid restore
from what I can tell, a standard backup does not back up the EFS partition. you need to use something like EFS pro to backup your /efs directory (where the IMEI is stored). restoring my phone to a previously stable and working save did not restore my IMEI
editing nv_data.bin
no one has been able to find this file on the SGH-i747
using a terminal / AT interface
it looks like the IMEI is encrypted and causes a stack overflow when you try to query it. notice how i can query my IMSI (edited) fine, but querying the IMEI causes a stack overflow. pic:
http://imgur.com/uZxZL
i probably tried a few more things i can't think of right now. moral of the story is... approach unstable roms with caution, and BACK UP YOUR EFS PARTITION!!!
anyone had any luck restoring a busted IMEI? :highfive:
EFS pro has not been updated to the correct partition for i747, so currently that method to backup/restore will not work.
Sent from my HTC One X using xda app-developers app
thanks for the info. will copying the entire /efs directory to my extsd using root explorer work?
It's not the EFS folder but the correct block partition in the dev folder.
Sent from my HTC One X using xda app-developers app
thanks for filling me in on this, still an android nub compared to you guys... did some digging and found this:
http://forum.xda-developers.com/archive/index.php/t-1689623.html
is that info still relevant/correct?
Not sure but cant hurt to do a full backup of all the blocks until someone can confirm that it's the same with the s4 version of the galaxy s3.
Sent from my HTC One X using xda app-developers app
can anyone confirm if using root explorer to backup /dev safely backs up your IMEI?
how can you do a backup of all the blocks on the phone?
I have not used this yet but you should read this thread and give it a try.
http://forum.xda-developers.com/showthread.php?t=1746665
nunyabiziz said:
I have not used this yet but you should read this thread and give it a try.
http://forum.xda-developers.com/showthread.php?t=1746665
Click to expand...
Click to collapse
thanks ill check it out
On my older captivate backing up the efs folder worked. Then if you loose the imei, restoring the folder or nvdata file fixed it. I'd backup the efs folder just in case.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
EFS Pro DO work with the S3. (I haven't try restoring my EFS, but backup went fine)
http://forum.xda-developers.com/showthread.php?t=1308546
What did you to loose IMEI? What ROM did you flash or what did you do wrong to cause this? Better to learn from somebody's else mistakes then your own.
When I had the problem on my Samsung Captivate, the EFS was wiped out when I converted from a CyangonMod rom to a standard Captivate based ROM. I didn't actually lock down what caused the issue (since I could easily fix it by restoring the nvdata.bin file - which I just kept handy on my external SD card and PC as well). I think it might have been when I ran a one-click ODIN to restore back to the RFS file system to install one of the custom Captivate ROMS. The only issue I ran into was the IMEI was different than what it should have been, but no usability issues at all. So moral of the story is, it's possible it can happen any time you flash a new ROM, backup your EFS folder and keep it in a safe place (I believe it's just the NVDATA.BIN file you need because that's all I restored), and enjoy the variety of custom ROMs these developers are building (because they are great!).
That's my $.02
EDIT: Oh and the Nandroid backups don't backup the EFS folder, so don't think a CWM backup will save you.
to those of you suggesting to back up nv_data.bin... just tell me where it is and i'll be glad to. i was no able to find it anywhere in /efs or /dev
artisticcheese said:
What did you to loose IMEI? What ROM did you f
flash or what did you do wrong to cause this? Better to learn from somebody's else mistakes then your own.
Click to expand...
Click to collapse
i am pretty use it happened when i flashed redruM onto my phone like a dumbass thinking [GSM Universal] meant it would work for my device
On the Captivate flashing a 1-click ROM would fix the issue. I have the issue too, but I really do not know what to do about it, I have looked all around the /efs partition, and I'm not sure where it could be.
DemonWav said:
On the Captivate flashing a 1-click ROM would fix the issue. I have the issue too, but I really do not know what to do about it, I have looked all around the /efs partition, and I'm not sure where it could be.
Click to expand...
Click to collapse
don't mean to discourage you, but i had to get a new device.
one thing that i wanted to try but could not was to take a stable EFS backup from an SGH-i747, locate the IMEI and change it to my own, and restore my /efs folder with those files. i'm not sure if decrypting the IMEI is possible, or if even getting to that point is possible.
if anyone has any ideas on how to extract an IMEI from an EFS backup feel free to PM me. i'm interested in experimenting on my personal backup (from my second device)
Ultimately if anyone should lose their IMEI or bork the EFS partition...these guys can fix it. They are very reputable and have fixed my Captivate back in the day....they now offer fixes for this device now. Its only 30 bucks and keep them in mind instead of paying 200 for insurance claims.
NO SPRINT OR CDMA models.
http://mobiletechvideos.mybigcommerce.com/
Well I will be getting a new phone on the 10th, but until then I would really like to figure out how to restore the IMEI. Who knows, it might not be possible at this point. When I get the new phone I will definitely be backing up my /efs directory, first thing. I completely forgot to do it, and it cost me.
How are you guys backing up the efs partition? Just a simple folder copy? Or a complete cwm backup?
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2

Can someone make this IMEI tool for our phone?

Hey so i was browsing around this morning and i saw someone posted this from the verizon SGS3 thread http://forum.xda-developers.com/showthread.php?t=1852255. basically it has 3 guids for backing up IMEI. one is through terminal emulator,one through a backup .zip, and the other through QPST. the terminal emulator and QPST work with our phones. but the .zip method (which looks pretty dang helpful) does not. i was wondering if one of you dev savy people could take a look and see if this could be done on our phone. here is the link to the dev page of the .zip backup http://forum.xda-developers.com/showpost.php?p=30679476&postcount=5732.
Lol, we've had one for a while now.
Look in the dev section.
Here..
http://forum.xda-developers.com/showthread.php?t=1804123
Powered by the SGSIII
Yea that's kinda the last resort when it comes to restoring your imei. Read through the first link I posted it explains why the imei gets erased and why some people still lose data when the imei is injected "like in the reference above ". The. Zip backup backs up and restores the whole part of the phone that contains the imei info
Sent from my SGH-T999 using xda premium
I see, there's a lot more to it I guess.
Powered by the SGSIII

[Q] Need help restoring data after re-injecting IMEI

First: I have searched... alot.... seriously alot of searching
Second: I would have posted in the appropriate forum ( AT&T, Rogers, Bell, Telus Samsung Galaxy S III > AT&T Galaxy S III Android Development > [FIX/TOOL] Backup/Restore/Fix IMEI & Data Restore Tool v3.0 - Updated 11/01/2012!!!)
BUT I have less then ten posts so I guess I have to put it here.
I restored my IMEI via the instructions in the forum, that went ok, but when I try to load the .qcn backup file into SGS3 QCN Generator the .qcn backup cannot be found on my pc.
I made sure to put it in the correct bin folder and when I go into QPST Software Download the file shows up, but if you browse or even search for it outside of that application it cannot be found...
I'm sorry for posting this here I would rather posted this as a reply in the right forum but the ten posts thing, I guess I'm a noob but I have rooted and rom'd 4 phones now with 12 or 15 different roms and haven't had any issue like this.
any help would be much appreciated.
Phone is tmobile
SGH-T999
4.0.4
Baseband: T999UVLI6
Ok I flashed stock everything from odin, back to Baseband: T999UVLH2 and tried the whole process again and it worked, except I still don't have 4g data... so i could use some help if you know of a way to make my 4g come back pc also says it is unable to identify device when I connect via usb...
Only thing I can think of is when you restore your qcn backup, use the very first one you ever made. Dont know why, just that multiple members have reported that as working for them.
If it doesn't help, PM peoplearmy. I believe he has a file that should fix you right up. Or will at least know what to do.
Sent from my SGH-T999 using xda app-developers app
4G is back, apparently all it needed was another reboot and to sit about 10 min...
Thank you Doc for the reply, I didn't know what I was going to do if all of that didn't work.
If anyone has searched this problem and you have found this thread, please PM me and I will be glad to help you as best I can.

[Q] If a folder is open the phone will be bricked when rooted[?]

Okay, so this is probably a really simple question, but I could not find the answer
I bought a Galaxy Nexus this Friday. On the stock phone the IMEI on the phone back and the *#06# one are different(The back one starts with 359 and the other one starts with 00). The dealer of my phone got confused by this, and went ahead and asked a friend who, for his words "knew everything about android". He told him that I should check if some folder is open(1. I assume he means something about the permissions 2. The dealer could not remember the name)and if I root my phone it will brick.
So, my question is:
a)is it safe to root?
b)if not, what is the folder name?
tbh the gnex is almost impossible to brick.. and i have never heard of this folder...to me it sounds like those guys had no idea about what they were talking about
k786 said:
tbh the gnex is almost impossible to brick.. and i have never heard of this folder...to me it sounds like those guys had no idea about what they were talking about
Click to expand...
Click to collapse
+1 :good:
If it were not "safe" to root why would there be so many ROMs for it? If anything the GNex (and really any nexus) is the easiest device to root.
Is there anything that is wrong with the different IMEIs then?
IMEI is related to the EFS folder(/factory)
So it is completely safe to root it?
P.S: Is Nexus Root Toolkit v1.6.1 good?
Don't use a toolkit. Use a "real" root that uses adb/fastboot. Toolkits are why noobs can never fix their "bricked" device.
I do not believe that on the Galaxy Nexus the IMEI is stored in a partition. I believe it is stored directly on a special NAND portion similar to a BIOS. Chances are that the back of the phone was replaced with another and thats why the sticker doesn't match. You mentioned a 'dealer' and usually they what they do.
Other Samsung phones store it on a accessible partition and that can 'brick' the IMEI
Sent from my Nexus 7 using Tapatalk HD
altimax98 said:
I do not believe that on the Galaxy Nexus the IMEI is stored in a partition. I believe it is stored directly on a special NAND portion similar to a BIOS. Chances are that the back of the phone was replaced with another and thats why the sticker doesn't match. You mentioned a 'dealer' and usually they what they do.
Other Samsung phones store it on a accessible partition and that can 'brick' the IMEI
Sent from my Nexus 7 using Tapatalk HD
Click to expand...
Click to collapse
Make a backup of your efs partition, then delete the /factored folder, then check your imei.
Disclaimer:
I'm not responsible for it, if you f*cked up, you're on your own.
Beamed from my Maguro.
I'd hesitate before deleting the factory folder. Backups can be made with Hellcat's kTool, and make an additional copy via a file explorer just for good measure, if you're going to start deleting, that is.

Missing nv_data.bin from stock N7105

Hi All,
Have just ran into something quite strange on my phone and would love to know if there is anyone else who has encountered this.
I have an N7105 running build DMB2 (Android 4.1.2). I rooted my stock ROM some time ago and everything has been travelling along nicely. With KitKat ROMs starting to show up now and my desire to avoid exposing my phone to the new stock 4.3 recovery with KNOX baked into it, I am considering flashing to a custom 4.4 and skipping 4.3 entirely.
This lead me to wanting to make an EFS backup after reading plenty of horror stories on how not doing so can ruin your day. I went and backed up my /efs folder and popped it on my PC. My natural allergy to simplicity then lead me to ask "Is it really that easy?" and found out that the nv_data.bin file stores all the important bits. My /efs folder DOES NOT HAVE an nv_data file of ANY description.
To cover bases: Yes I am rooted, I also tried 2 different file explorers (Solid Explorer and Root Explorer) to make sure it was not a visibility setting in one of them.
I always assumed that the EFS backup "apps" that you can get were just an automated means of copying the folder. Am I wrong in assuming this? Do they pull other data from elsewhere? Why is this supposedly super important file missing from my phone >.>.....
Cheers,
Sheik.
Nobody have any idea what the deal is here?
There is a thread on it somewhere. Because the n7105 has a separate chip for the lte the efs folder can't be backed up in the usual way. The thread had a tool to back up the nv_data bin. I think that's how I remember it
Sent from my GT-N7105 using XDA Premium 4 mobile app
Thanks for that. Nice to hear that its not some strange security trigger or me going crazy then. If anyone knows the post that sawdoctor is referring to I would love a link.
I am very hesitant to do any kind of custom ROM flashing without an IMEI backup. From what I have read, if I lose my IMEI data its possible that even flashing a factory image wont fix things is that correct? Even though I do have a Nandroid backup I am not 100% sure it contains the IMEI data in it because of the absence of a file. : \
I m using this thread to backup efs.
The only method works to back up N7105 efs.
http://forum.xda-developers.com/showthread.php?t=2049155
Sent from the corner of this rounded earth (N7105 v4.3, powered by LionROM)
Thanks for confirming this. Was not sure if this would work for phones with the nv_data file missing. In the guide it does say "This will back up all your phones NV Items and save them to the QCN Backup File.". And theres a total absence of NV files on my phone. lol. But being its confirmed working by people I can only assume its looking in places that I cant/have not. Will test it after I have done all my various RL tasks for the day. If there is other people who have done a full backup and restore with this method and confirmed it functional I would love to hear from you.
Cheers.
Sheikx800 said:
Thanks for confirming this. Was not sure if this would work for phones with the nv_data file missing. In the guide it does say "This will back up all your phones NV Items and save them to the QCN Backup File.". And theres a total absence of NV files on my phone. lol. But being its confirmed working by people I can only assume its looking in places that I cant/have not. Will test it after I have done all my various RL tasks for the day. If there is other people who have done a full backup and restore with this method and confirmed it functional I would love to hear from you.
Cheers.
Click to expand...
Click to collapse
I have tried to restore, and all there. But I tried on 4.1.2.
Has never tried to restore on 4.3
Sent from the corner of this rounded earth (N7105 v4.3, powered by LionROM)
Just to make it that little bit more interesting I am going to be restoring on 4.4 if I do at all....Will probably keep this thread posted with updates because there seems to be very little info about this.
7105 nv backup
The 7105 is not like the 7100 model it has a completely different
frame behind the screen
a different plastic intermediate case
a different mainboard
the 7105 device also stores data in internal NV RAM which is not accessable easily
it is thought that the Qualcom tools or NV-Ram backup tools can backup these internal areas
BUT
it is possible to erase or damage the NV-Ram so that you cannot talk to the Ram to RESTORE the data
even when you have a backup
as a result even when you have a full NV Ram backup there is not yet a solution which
will ensure that a damaged NV-RAM area can be 100 percent sorted back to working if you are unlucky
just make sure you NEVER clear NV-RAM from Odin on a 7105
This is the kind of thing I was afraid of. Thanks to fibreoptix for sharing that. I am just glad that there is some method for backing it up. No idea how these chip-specific tools get released to us because I have no doubt its not intentional. I am glad that there is people out there willing to take them out of the OEM space and pass them to us so we can protect ourselves from disaster.
I dont know enough about this stuff to do anything but make assumptions, but I assume that this NV RAM that you mention is physically located in the SOC and not on memory anywhere. So I doubt that this will ever get any easier in terms of achieving a backup on any upcoming devices either. I guess all we can do is pray that various individuals keep releasing these OEM tools to us. In terms of the RAM becoming physically inaccessible and broken its not that concerning providing you can flash back to stock and get a warranty job.

Categories

Resources