yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] Graham19:
Look at the tags at the bottom of the page.
[Nexus S Android Development] deeren:
yep. very immature indeed.
[Nexus S Android Development] apreichner:
I had a moderator remove them. Thanks for letting me know, I was using my XDA app a lot and didn't see them.
[Nexus S Android Development] marsrogers:
Now the first problem in front of me is that I can't port my friends' efs onto my fake imei nexus s.

Perhaps we need use yaff to make a img file and use fastboot to flash it in.

How can we start a job even when we can't see the imei result....

My schedule after my tons of tests is:

1. Port my friend's efs to mine, and see my friend's imei on my phone. This is milestone1.

2. Compare two normal nv_data file in hex level to search for different which may be the imei part.

3. Find the code table Samsung use to encrypt the IMEI.

4. Then we win the game.
[Nexus S Android Development] leejeans:
mybe root exporer will not delete all the files in the efs folder,is there a way to do it?i will do my test again on my gf's phone
[Nexus S Android Development] deeren:
it does delete the files. or else you wouldnt have had the default nv restored. and it clearly says 1.06.11 . so the bin got deleted.

i was thinking of something u said earlier. you said u assigned chmod 775 to all the files.

did u mean all the files on the phone or just the backup u copied in the efs folder?
[Nexus S Android Development] leejeans:
just files in the efs folder and the efs folder
[Nexus S Android Development] Blu3D:
This won't work.

Or at least part 1 won't. Simply because you won't succeed in "porting" your friends imei. It is device specific, as in comparing files to actual hardware values, and trying to use someone else's files will just result of in a "corrupt" line in the log and the failsafe imei once again.

Guess you could try

rm -rf /efs

mkdir /efs

in terminal emulator. Not sure how you'd do it otherwise. Flashing a zip with a script to remove it I guess.
[Nexus S Android Development] deeren:
i tried that too. didnt work removing the efs completely through adb shell. :confused::confused:

i think that the best way is to find out from where the default nv is being loaded. modifying the corrupt bin is like an impossible task ( i hope someone proves me wrong)

its just that the bin lacks a lot of data and even if we succeed to input the imei , i dont think we'll call that fixed.
[Nexus S Android Development] marsrogers:
We did it on Samsung 5800 &5700, so does this mean NS is different?
[Nexus S Android Development] marsrogers:
I agree with you. But for now I think modifying a good NV file to our original imei to make it work is more practical.

Personally I think the issue script has done more than we thought.
[Nexus S Android Development] apreichner:
The script deleted the EFS folder and created it over, then tried to copy the backup from the SD card to the folder. Unfortunately, there was no backup and I never noticed because like many others, the phone worked flawlessly besides that IMEI.
[Nexus S Android Development] marsrogers:
As @leejeans said he deleted his gf's efs folder and rebooted, and it automatically restored. Really puzzled on this part. Feels like the script deleted the deeper backup of the imei.
[Nexus S Android Development] apreichner:
That's the puzzling part indeed. You can read the script, but all it does is delete the EFS folder and re-create it. It might have something to do with him being on a pure-stock ROM but I don't see how.
[Nexus S Android Development] Graham19:
Is leejeans test exactly the same? I think you may be comparing aples and oranges.

He mentions root explorer. Does that mean the phone is on during the delete?

Is a closer test to have someone delete the directory while the phone is in the bootloader/recovery? Can adb be used to remove /efs at that point?
[Nexus S Android Development] leejeans:
yeah,i do the test when the android os is on with root explorer,so is there something in the cache or ram or system folder?because when u deleted the efs folder the imei still was working properly
[Nexus S Android Development] Graham19:
What I mean is that the initial imei clear happened when in recovery. I am not sure that clearing through root explorer tests exactly the same situation.
[Nexus S Android Development] RisinT96:
I added the "imei" and "problem" tags in hope someone who knows something comes here.

As soon as the problem is solved ill remove them.

But, i think that we sould open a special thread to discuss the problems.
[Nexus S Android Development] RisinT96:
If i flash a stock rom that removes root can it remove CWM and put stock recovery? and can it lock the bootloader?

If the answer to the first question is no, than what file can i flash through CWM to get back root.
[Nexus S Android Development] marsrogers:
Plz Not, right now is good. Opening a new thread will make both discussion places, which doubles the work of seeing the progress.
[Nexus S Android Development] RisinT96:
ok

now i am adding a few letters to get more than 10.
[Nexus S Android Development] RisinT96:
what about my second question?
[Nexus S Android Development] Graham19:
See the thread here for how to gain root: http://xdaforums.com/showthread.php?t=1007782
[Nexus S Android Development] NexusCrazy:
Has anyone sent there nexus of to cpw or samsung under warrenty? And have they heard anything back?
[Nexus S Android Development] deeren:
@leejeans

that's very strange. i just tested it on a good nexus s and clearing the efs folder from root explorer damages the imei.

did u delete it with permissions set to r/w in root explorer?
[Nexus S Android Development] NexusCrazy:
Is this thread still alive or have we given up hope ?
[Nexus S Android Development] mr_recordman:
It is alive but not so many updates as before.

Crossing fingers that someone will come with the fix. ;)
[Nexus S Android Development] NexusCrazy:
Ive gone the warrany way, took to cpw today, fingers crossed.
[Nexus S Android Development] deeren:
i think they'll probably change the motherboard.
[Nexus S Android Development] marsrogers:
Maybe before we start to maddly dig into the NV_data.bin file, we should contact the man who posted Odin for us. Perhaps his English Samsung friend can give us a efs.tar or efs.img to make things easier.
[Nexus S Android Development] dima_sk8er:
I has found these lines in init.herring.rc

on fs
mkdir /efs 0775 radio radio
mount yaffs2 mtd@efs /efs nosuid nodev
chmod 770 /efs/bluetooth
chmod 770 /efs/imei
mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/system /system wait ro
mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/userdata /data wait noatime nosuid nodev

# We chown/chmod /efs because mount is run as root + defaults
chown radio radio /efs
chmod 0775 /efs

Maybe it can help?
[Nexus S Android Development] deeren:
Update of my findings:

for newcomers readers. odin or stock will not solve the problem. why?

Here is how our nexus s is partitioned :

When installing stock or odin roms, the only partitions being touched are bootloader, boot, recovery, radio.

I have digged and found the cause and how the nv_default.bin is being restored. This is being done through the radio actually. The baseband performs checks on our hardware and whenever there are irregularities, it loads the what is called the sec_factory_mode.

( just extract the radio.img , you will see for urself or just open with a hex and search for imei string)

Here are some strings i found (just quoting a few)

The good news is that it is possible to disable the factory mode in the radio, but this is outside of my abilities now and i wouldn't advise anybody who is not competent to play with th radio files. Flashing a corrupt or bad baseband could and most probably would fry your phone.

I do not think that samsung took the care of placing a unique nv bin in each of our phones. i think that there should be a special file (present in the beginning on all our phones) placed in the efs folder which on first boot gets overwritten by the radio into the normal nv_data.bin.

BTW the efs folder has permisions as radio radio :

The efs folder is practically and basically used to lock phones on carriers. why is it present in the nexus s, i dont know but being part of the nexus line, i believe this partition shouldnt exist in the 1st place. I would advise all users with this problem to post a request in google forums requesting for the fix/original files of the efs to be distributed to us.
[Nexus S Android Development] murdoch1:
I did. CPW advised me the phone has been repaired. Hopefully get the phone back early next week. Will let you know......:o:o:o
[Nexus S Android Development] fabrizioo2007:
I'm sorry but I don't know what is this CPW?
[Nexus S Android Development] deeren:
Carphonewarehouse
[Nexus S Android Development] fabrizioo2007:
ok thx ;)...but the phone was purchased there? or provide a service for

repair the devices? would be great if we could contact their technical

to understand what is the process used to restore phone (as they say)!
[Nexus S Android Development] deeren:
The phone was bought there. Basically its like this: if you buy the phone at cpw, you go there for warranty n they will send the phone to Samsung themselves if they need to.

My case: I have no warranty cause mine is from us. I contacted them but Samsung Romania n at first they were reluctant cause they did not market the i9020 here but after insisting they said they will change the motherboard at my own cost. Which I refused obviously.
[Nexus S Android Development] Zehlek:
Hopefully there is someone who knows how to edit radio images very well
[Nexus S Android Development] Zehlek:
@apreichner do you still plan on releasing a 0.4 version?
[Nexus S Android Development] leejeans:
i did it again and mouted the efs folder as r/w,and it' s the same result,the imei is right ,relly weired
[Nexus S Android Development] mak213:
yes after he figures out how to fix our imei problem
[Nexus S Android Development] bloodhawk:
Can you please post this info, in the Android Development forums? Not the device specific one? Or forward it to the OP.

Because you sir are definitely on to something. If that switch can be turned off, that will be the end of our problems.
[Nexus S Android Development] marsrogers:
Each device is different from others, even the i9000 and i9020 are a bit different. So it's better to be here before we make sure there are other devices to be the same.
[Nexus S Android Development] bloodhawk:
Yea that is true. But The device info can be posted there.

The advantage would be the better exposure to Dev's.!

btw. Did anyone try flashing the Stock radio?
[Nexus S Android Development] NexusCrazy:
Thanks keep me posted will ya please mate,

When did you take it in and how long before it showed up as being repaired.???
[Nexus S Android Development] murdoch1:
Approx 28th May, showed as repaired on the 31st. Approximately 3-4 days is all it took to be repaired. If it comes back still not working properly I am entitled to a replacement phone ala CPW Mobile Repairs Promise. Should be back with me next week (early hopefully)......:D:D.

I will back up the EFS folder, Root and back up the stock rom/radio as this seems to be where the issues are it would appear..?
[Nexus S Android Development] NexusCrazy:
So what's happening then? are they going to fix it for free without a warranty or does the warranty from the US where you bought it from cover you or are they just being nice and fixing it as a gesture of good will ???

Or you just hanging out here for a fix :)
[Nexus S Android Development] NexusCrazy:
First thing I'll be doing when I get mine back.

What did it say on the online repair tracker? especially under diagnosis ??

Was the carphonewarehouse a Samsung service center or did they have to send it off? My local carphonewarehouse is not a service centre and its saying on the online tracker that it can take up to 4 days to get to one. It say "We need to send your device to our central repair centre in Wednesbury"
[Nexus S Android Development] deeren:
well they would not fix it for free unfortunately. the only option i've got is to send it back to the US.

It was not worth it. Changing the motherboard would obviously cost something like 100 euros everything included and you could easily obtain a second hand ns (with valid warranty here ) for like 250 euros.

Anyways, the only thing bothering me for the moment is that the imei is not the right one. other than that , the phone is still functional so... i guess it was not worth paying for repairs.

please let us know what happens... like how they repaired it and if they voided ur warranty or something.

do anybody know if the cpw warranty is exclusive to cpw or can it be used as international warranty through samsung too? things under HTC were kind of different. HTC UK even honoured a repair for me once under warranty( cause the n1 was less than 1 year old) even though the phone had no receipt and was bought on ebay.
[Nexus S Android Development] murdoch1:
It does not go into specific details on the tracker site. Basically bullett points each action, i.e rec'd phone, repaired, quality etc. It took only a couple of days for the phone to arrive at the service centre. CPW dealt with the repair and did not have to send it to samsung at all. Fingers crossed, all sorted.:D:D:D
[Nexus S Android Development] barca-x:
any new solution ?
[Nexus S Android Development] dario3040:
Don't be lazy and read the thread.

But the answer is sadly NO
[Nexus S Android Development] Zorachus:
I hope they still move forward a d make a .04 build and eventually a Sense 3.0 build. That would be amazing.

Sent from my EVO 4G "Myn's RS 5"
[Nexus S Android Development] Zehlek:
That would be great
[Nexus S Android Development] raymond4:
I cant wait for this to be on the nexus s 4g
[Nexus S Android Development] marsrogers:
I compared two NV files from my friends and found it almost impossible to edit this for there being too many differences...the only thing I got positive is I have the right info for the dgs partition ...

So there is only one direction to work on, which is trying to restore the NV file...
[Nexus S Android Development] bigmizz79:
for some reason i cant do a factory reset..i get the android with the yellow symbol on his head..confused
[Nexus S Android Development] Byte_76:
@Apreichner, I've seen it lots of times in the pages since the IMEI issues occured, the members in this thread still want you to continue to develop this rom. Please don't give up, the ROM is really great and it's so close to being fully functional.

I lost my IMEI too but like many others I will still glady flash updates of your ROM before I even look at other rom's.

Thanks so far for all the hard work up to 0.3 and don't worry about the IMEI issue too much, we can keep looking for a solution while the rest of the rom is developed.
[Nexus S Android Development] Zehlek:
I agree, this is one awesome rom
[Nexus S Android Development] NexusCrazy:
What no fix ;-)
[Nexus S Android Development] okkazo:
thanks dude,
[Nexus S Android Development] mak213:
ya hopefully 0.4 comes out soon!! i got to be the lucky ones who got there imei changed but when it comes to sense roms ill always flash this
[Nexus S Android Development] gilligan793:
I agree with everyone else. No one wants this little speed bump to shut this project down. My nexus 4g is dying for some sense goodness.

Keep the greatness coming and the best of luck on your ROM!
[Nexus S Android Development] Zehlek:
I got lucky. I put my Nexus S on kijiji to trade my T-Mobile/WIND version for a Rogers/AT&T version. I informed of what was wrong with and they still wanted to trade. I now have a correct IMEI again and I am able to use 3G now since I have Rogers instead of EDGE :-D
[Nexus S Android Development] Zehlek:
Since I just got my new NS, I figured I would checkout my efs folder and I noticed an imei folder with an nvmac.info file a bt.txt and a do_factory_reset file
[Nexus S Android Development] RisinT96:
From what I understood from another forum is that the imei is stored on the hardware and the efs tells the phone how to access it, so because we have damaged efs the phone reads the imei wrongly, and its nearly impossible to fix.
[Nexus S Android Development] SoleOfJohn:
If it's "just" how to access the hardware, that doesn't sound TOO tricky... This community can figure anything out! Including how to get FM on the Nexus One! I have faith that this issue will be resolved fairly soon. I'd love to see this project continue, I've been dying for Sense on this phone! My professor is a programmer, I'll pass this info along to see what a "professional programmer" might be able to make happen. I hope we can get this working as a community. :D!
[Nexus S Android Development] deeren:
Yes. Its going crazy. I am working on this day and night. I feel like i`ll get kicked by my gf soon. Check your NV.log. there are interesting info there. Things like md5 turned off at 0, turned off at 2....
[Nexus S Android Development] NexusCrazy:
Nice one, I'm sure we'll all get our IMEI numbers sorted one way or another.

Then Apreichner can get on with what he does best, build amazing ROMS.
[Nexus S Android Development] Zehlek:
So since I have a new NS with a correct imei and efs folder, I noticed a folder named imei is in the efs folder
[Nexus S Android Development] Byte_76:
Maybe if we copy the entire efs folder with all the folders inside except the IMEI folder onto a NS with the IMEI issue and then reflash a stock rom it might re-generate the correct IMEI files
[Nexus S Android Development] Zehlek:
I was thinking that. When I get home, I can share
[Nexus S Android Development] SoleOfJohn:
I have a copy of a clean efs folder, I can upload the whole thing... It appears to have the MAC adresses in the imei folder. Should I delete that so others dont have my Imei?

EDIT: Here it is without the IMEI folder http://www.mediafire.com/?cgbpu1n0gkypioy
[Nexus S Android Development] bringonblink:
So now that HTC have released sources for Sense, would it make it any easier to port?
[Nexus S Android Development] NexusCrazy:
Update from cpw on warranty repair:

1] Received in Store

2] Device delivered to our central repair center

3] Diagnosis

4] Repair

5] Testing

6] Preparing for delivery to store

7] Ready to collect

Will keep you informed folks
[Nexus S Android Development] dario3040:
Nice, I hope you get through
[Nexus S Android Development] Byte_76:
On behalf of everyone who downloads this, Thanks!
[Nexus S Android Development] OuncE718:
Excellent news. Your definitely making NS history. Yay!
[Nexus S Android Development] dario3040:
Huh, sounds like progress to me :)

Faster than the Incredible? Thats epic :O
[Nexus S Android Development] tadaha:
Woah, awesome news dude!
[Nexus S Android Development] gilgha:
Great news! Can't wait for the final release :D
[Nexus S Android Development] Zehlek:
Things are going well. I can't wait
[Nexus S Android Development] jroid:
Nice :) how'd you go about it? Fixed driver?

Sent from my Nexus S
[Nexus S Android Development] captain345:
glad to hear that HW3D has been fixed and cell signal is soon to follow can't wait and good luck :)
[Nexus S Android Development] Zehlek:
Same here. Hopefully soon
[Nexus S Android Development] apreichner:
Final release wont happen until im satisfied that all hw is working or it isnt capable of being fixed. So we will probably be on alpha for a while.

0.2 will be released when either wifi is fixed or 3g is fixed. I want a rom that could be used for more than 5 minutes.
[Nexus S Android Development] Zehlek:
Once you have 3G, E, and Wifi working I will alwaysbe using it. How is the FM radio coming?
[Nexus S Android Development] apreichner:
Fm radio isnt a priority until i fix the other things. So i havent been working on it.
[Nexus S Android Development] :
I don't think FM radio will ever work.

-I wrangled together some consonants and vowels and created this post-
[Nexus S Android Development] apreichner:
I wouldn't go that far. I think there is plenty of hope for FM radio given that our hardware supports it.
[Nexus S Android Development] Zehlek:
I wonder how you'd install the drivers?
[Nexus S Android Development] xanos01:
That's good take your time and do it right bro your the man thanks for your hard work.
[Nexus S Android Development] nitsuajd:
Take all the time you need you're making a great job and we

can wait
[Nexus S Android Development] :
You have my support, when this becomes functional I'll definitely flash. Fm radio or not haha

-I wrangled together some consonants and vowels and created this post-
[Nexus S Android Development] sickzz:
I don't need a FM Radio.

I need Sense! :)

Hopefully it works great in a short time.
[Nexus S Android Development] Waza_Be:
Please start wasting time of dev's and other readers while asking for FM.

I am sure that some people are already working on it and this dev has enough work to port Sense.

He will certainly help uf after the ports is complete and stable and after his personnal and family stuff
[Nexus S Android Development] Zehlek:
I agree. Sense is the main thing I am looking forward to. FM Radio will come eventually.
[Nexus S Android Development] Byte_76:
What files do you have in the IMEI folder? Maybe the files are used to read the IMEI from the hardware and don't actually contain your IMEI.

Devs, any advice?
[Nexus S Android Development] Zehlek:
In mine I have a nvmac.info file a bt.txt and a do_factory_reset file
[Nexus S Android Development] Byte_76:
If you open the nvmac file with a text editor does it contain your IMEI? If not can you upload the entire IMEI folder please?
[Nexus S Android Development] deeren:
no. the imei contains only the nvmac file which contains your mac number.

a file named ''do_factory_reset''. if you open the file, inside is written only 'false'

and a bt.txt containing your bluetooth mac add.
[Nexus S Android Development] SoleOfJohn:
Here is the whole efs folder with the imei folder as ripped.

http://www.mediafire.com/?mfesbbcek8yhik6

This is the entire efs folder with the imei folder. I deleted my bt mac addy and the regular mac addy from the files, otherwise, it's original.
[Nexus S Android Development] Byte_76:
Thank you, I will not upload this to my NS unless I find a way to change the IMEI first however I don't recommend leaving the files online for too long.

For everyone else that downloads the files while they are still available please follow the request and don't take the IMEI.
[Nexus S Android Development] Byte_76:
Do you have any idea as to where I can get my original BT mac and the mac that is saved in the IMEI folder?
[Nexus S Android Development] SoleOfJohn:
If you connect to a wifi network, from a computer you should be able to log in the the router and view the connected MAC addresses... As for Bluetooth, connect it to a laptop with Bluetooth and you should be able to view the MAC address the same way. Right?
[Nexus S Android Development] deeren:
I agree, these files should not be here. These are private data. However one thing is that we don't be able to do much with another NV data.bin file.

I tried to copy another good NV file from another nexus( I didn't steal any- no worries.I have 2ns) to my phone. Apparently there are several crosschecks going on here and the fail-safe imei is still being displayed

Update:

I tried to ask abt the efs folder to someone from Google. He told me that it forms part of the radio and that these are from Samsung directly...maybe some part of propriety drivers too.
[Nexus S Android Development] Zehlek:
I wonder if data has been fixed and possibly an update release
[Nexus S Android Development] bringonblink:
or just an ipconfig /all
[Nexus S Android Development] murdoch1:
Hi Nexus Crazy. I've just had my phone back from CPW. They havent repaired it...instread they exchanged it for a brand new Nexus S.!!! RESULT....... I will make a start on backing up the EFS folder..........has anyone heard anything about nandroid backing this up for nexus S with each backup? Would resolve the worry of any more rogue scripts messing the phone up? Cheers:D:D:D:D:D:D:D
[Nexus S Android Development] bloodhawk:
Nope nandroid doesn't backup EFS. You should do it manually.