yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] Borky_16:
read the thread, please! I'm very busy atm!

there are some peoplecwitg iusses! try their workarounds! may it help! ;)
[Nexus S Android Development] Enhanced:
If you are using ADB, trying doing:

"adb remount"

before using "adb pull /efs".

I know that always solves any permission issues when I'm pushing and pulling files using ADB. Could help here.
[Nexus S Android Development] Borky_16:
but this tool only pull the files ! i will work on a script for rooted users! that should work better for them! :/
[Nexus S Android Development] TheBurgh:
Does this work for the NS4G
[Nexus S Android Development] Borky_16:
of course! :)
[Nexus S Android Development] TheBurgh:
Using windows 7 and I tried using the information in the OP but nothing happened. Looked like it would start then just hung there. Should I put phone in fastboot first then run the script
[Nexus S Android Development] mike216:
It works great,your probably on 64 bit,copy the file out your sdk folder that's missing,the program will tell you which one its something like adpill that's not close but something like that ill look it up for you when I get home
[Nexus S Android Development] TheBurgh:
Thanks. Looking forward to hearing back from you about the name of missing folder
[Nexus S Android Development] rijads:
When i start this f bat file, it says to press some button, i press it, and then it doesnt do anything, my mobile is on usb debugging mode, and it is connected via usb to pc.
[Nexus S Android Development] mike216:
Are you sure you have your drivers working,are you using the same pc you used to root

Ill check for the name of that missing file but the program tells you in an error message also are you on 64 bit windows
[Nexus S Android Development] mike216:
The missing file I put into the folder and worked for me after doing that is

AdbWinApi.dll

Let me know if it works,good luck
[Nexus S Android Development] mike216:
Grab it from your sdk,I moved everything into my tools folder so it could be in your platform tools or your tools folder
[Nexus S Android Development] TheBurgh:
Thanks for the help. That file already exists in my sdk folder. Do you remember what script you ran? Is it the same as the script in the OP
[Nexus S Android Development] mike216:
Windows,the newest version

Copy and paste that file in the efs folder then run the script,it will work for you I was in your shows a month ago

When it works it will create a folder with six new files in it being all the files that make up your efs folder,let me know how many files it backs up for you when you get it
[Nexus S Android Development] TheBurgh:
still couldn't get it to work. did you rename the file to just efs or did you keep it the same name in the OP. I keep getting that the eps_backup.bat / eps_backup.sh is not a recognized command
[Nexus S Android Development] mike216:
I just copied and pasted that file into the unzipped efs folder then tan the backup.bat file

Your not in fastboot mode are you and you do have USB debugging checked?
[Nexus S Android Development] mike216:
Didn't rename anything

Are you sure your sdk and NS drivers are installed properly
[Nexus S Android Development] TheBurgh:
All is installed properly. I went back in and flashed some img files to make sure that everything working properly. Unzipped and placed both efs files in platform-tools folder which also contains the missing file you mentioned. When you run the script it starts to run but then nothing happens. Thanks for all of your help. I will try again another time. I have the file backed up to my computer
[Nexus S Android Development] mike216:
You can manually pull your efs folder with adb,a couple pages back there are directions on how to.I'm going to also back it up manually today.I didn't unzip the efs backup tool to the sdk folder I simply unzipped it to the desktop,sorry bud I know you will eventually get it
[Nexus S Android Development] TheBurgh:
Once you unzipped to the desktop did you just run the adb that came with the tool from your desktop
[Nexus S Android Development] mike216:
Yes exactly but when I tried to run the tool an error or warning came up telling me I was missing that file I told you to copy and paste into your unzipped efs backup tool folder after doing that it worked but sometimes you have to do weird stuff to make sure the drivers are being recognized so I pluged the phone in with usb debugging checked and to make sure the drivers were working I typed adb devices and made sure adb drivers were seeing my phone by doing that you should see some sort of serial number or imei number after making sure it was working and with that file copied and pasted over I then tan the program and it worked,I'm just a noob but my guess is that the program is ready for 32 bit machines because borky uses linux so he put that together for us which I appreciate so much,I left my # in a pm I sent if I can help feel free to call,hope you get it
[Nexus S Android Development] TheBurgh:
Borky....sorry to filling the thread with a few idiot posts about not being able to use the tool. Once I followed the simple rule to only have the debugging on and not in bootloader the tool worked perfectly.

Special thanks to Mike216 for all of his help
[Nexus S Android Development] mike216:
I'm glad you got it and your welcome,that was one of my first suggestions was to make sure you were not in fastboot mode because that was exactly what I did my first time.lol...

The good thing about filling the op a little is others will learn from us but if it bothers borky I'm sorry also because I'm sure no one has filled them up more then I, lol.

sent from my Nexus NScollab
[Nexus S Android Development] TheBurgh:
Thanks. Did you get my pm about adb and recovery
[Nexus S Android Development] mike216:
Yes I did my friend,check yours

sent from my Nexus NScollab
[Nexus S Android Development] alf69mi:
Some times ago i messed up my /efs, luckily i had a backup...

Could someone please check if my /efs folder is ok?

/efs

drwxrwxr-x 1 radio radio 4096 Sep 9 13:22 .
drwxr-xr-x 15 root root 0 Sep 9 09:51 ..
---xrwxr-x 1 system sdcard_r 1 Aug 2 12:54 .nv_state
---xrwxr-x 1 system sdcard_r 18 Jul 13 08:27 .nvmac.info
drwxrwx--- 1 bluetoot bluetoot 4096 Sep 8 22:42 bluetooth
---xrwxr-x 1 system sdcard_r 23 Jul 13 08:27 bt.txt
---xrwxr-x 1 system sdcard_r 18 Jul 13 08:27 bt_addr
drwxrwx--- 1 system sdcard_r 4096 Sep 8 22:42 imei
drwx------ 1 root root 4096 Sep 9 09:51 lost+found
---xrwxr-x 1 system sdcard_r 2988 Jul 13 08:27 nv.log
---xrwxr-x 1 system sdcard_r 2097152 Sep 9 09:52 nv_data.bin
---xrwxr-x 1 system sdcard_r 32 Sep 9 09:52 nv_data.bin.md5

/efs/bluetooth

drwxrwx--- 1 bluetoot bluetoot 4096 Sep 8 22:42 .
drwxrwxr-x 1 radio radio 4096 Sep 9 13:22 ..
---xrwxr-x 1 system sdcard_r 18 Aug 2 12:54 bt_addr

/efs/imei

drwxrwx--- 1 system sdcard_r 4096 Sep 8 22:42 .
drwxrwxr-x 1 radio radio 4096 Sep 9 13:22 ..

My main concerns are :

- /efs/imei is empty

- file bt_addr is either in /efs and /efs/bluetooth

Anyone? Thanks
[Nexus S Android Development] thecoogster:
my folder has .nvmac.info and bt.txt in, what is your imei number in phone settings?
[Nexus S Android Development] alf69mi:
Hi, you mean

/efs/imei has .nvmac.info and bt.txt inside ?

My IMEI is actually ok, the same as reported on the Nexus S original box

Is this the only difference?

what about bt_addr either in /efs and /efs/bluetooth ?

If your phone is original would you mind to give me your /efs structure and contents also of subfolders?

thanks
[Nexus S Android Development] themapleboy:
Script doesn't work (cannot find .\adb) line 11 or something.

So i just did " adb pull /efs /efs ", is that really all the script did? or am i misunderstanding something

and the copy of adb i downloaded was not executable even after changing permissions so that may be why. If this is all this script does please edit the op to mention it so that users like myself who know how to use adb do not need to waste time downloading the script. Although i do appreciate you making it easier for those who do not know.
[Nexus S Android Development] mike216:
It does work are you on a 64 bit machine if so read a couple pages back and everything is in there to get you going

Make sure your not in fastboot mode just plug it in with usb debugging only

sent from my Nexus NScollab
[Nexus S Android Development] themapleboy:
Thanks was i correct in assuming that all this script does is adb pull /efs? did it manually and just want to make sure i didn't miss anything.
[Nexus S Android Development] Borky_16:
so sorry guys i was very busy ! so i couldn't answer the [Q] ! I'm back and again active in my threads!

@themapleboy

yeah you will be fine the tool only checks somethings before it run ! and it is a easy and fast way for tge saving and restoring !
[Nexus S Android Development] Uni7:
This script would only work if adbd runs as root, which isn't always the case, especially if you have a stock rooted ROM. An alternative if you couldn't get this script to work (like me) is to use ES File Explorer and just zip it/copy to SD card.
[Nexus S Android Development] glasslung:
I'm trying to use this on Mac OS X 10.7 Lion. When I return efs_backup.sh from the terminal I get these error messages:

efs_backup: line 11: ./adb: cannot execute binary file

efs_backup: line 12: ./adb: cannot execute binary file

efs_backup: line 13: ./adb: cannot execute binary file

How can I fix this?
[Nexus S Android Development] SA-07:
Shouldn't it be in the sdk? Cuz mac uses its own adb binary
[Nexus S Android Development] glasslung:
That must be the problem. It looks like adb is included in the zip file but it must be for linux. I installed the platform tools from google and it worked.

Thanks for the tip.
[Nexus S Android Development] SA-07:
Np!
[Nexus S Android Development] Borky_16:
sorry :O i see i included the false adb last time ! tomorow is your day ! ;)
[Nexus S Android Development] iboj007:
I'm on windows 7 64 bit and am having the same issue with copying the EFS folder.

I can get it to run but now it's giving me some kind of permission issue.
[Nexus S Android Development] jay_993:
Okay guys new to Nexus S coming from a galaxy S... In galaxy S, there was a zip file which was flashable from CWM to get a back up of EFS. I am new to all this ADB and so on... I "believe" I got the ADB drivers since I managed to root and install custom roms on it.

On a Vista atm. I double clicked on ADB and the back up.bat file but all I get is adbwinapi.dll error saying it doesn't exist. Please help me!

P.S I made a back up using root explorer through long pressing the EFS folder and creating a tarball (not compressed) backup. Is that good enough?

Thanks!
[Nexus S Android Development] Ibn Saeed:
Can anyone help a beginner.

How to run this backup tool in Windows XP for my rooted Nexus S, i have bugless beast installed as ROM

How to run this tool ?
[Nexus S Android Development] Corra:
I get a 'permission denied' error when trying to pull /efs on ubuntu (nexus S i9023 stock 2.3.6). Any suggestions?
[Nexus S Android Development] quaa:
Try this -

Open terminal (if it isnt already)

cd into the efsbackup_linux2.1 or whatever it is folder ( cd ~/Downloads/efsbackup_linux2.1 on my machine )

sudo ./adb kill-server

sudo ./adb devices

./efs_backup
[Nexus S Android Development] Corra:
This doesn't work. Thanks however
[Nexus S Android Development] tellone:
Hi, I have a problem: i had a samsung galaxy s 9000. I had it for a year: i tried many roms on it ( cyanogenmod, miui, ecc ). I used ,also, a tool to backup my EFS's galaxy; this tool is here: http://xdaforums.com/show....php?t=1138873

Now, I have a nexus s i9023 slcd. And here it is the problem: now, the linked tool to backup my EFS doesn't work. I root my nexus and the bootloader is unlocked. I used 5.0.2.0 CWM. The rom is 2.3.6 STOCK - GRK39F. I used windows 7 32 bit and I start the prompt command as Administrator. When I write "efs_backup.bat" I can read this:

http://imageshack.us/photo/my-images/267/immaginegsj.jpg/

Is it possible resolve these PERMISSION DENIED'S?

I ,also, type ( in the APP terminal emulator ) :

su

chmod 777 /efs

exit exit

but I don't solve the PERMESSION DENIED problem.

I hope you will help me.
[Nexus S Android Development] Corra:
Same here, but on ubuntu
[Nexus S Android Development] tellone:
I tried efs backup tool in ubuntu, also: PERMISSION DENIED ! :(

p.s.

I read all the previus page of this thread, but nothing is good to solve my problem.....

I also tried to type " adb remount" before execute efs_backup.bat, but I obtain :

"remount failed: Operation not permitted"
[Nexus S Android Development] iboj007:
I get the same problem on windows 7 X64
[Nexus S Android Development] belair56:
THANKS

Well............

Had to use it. And it worked. Could not be happier.

Thank you very much.

Do have one question. My backup was from August. do I need to update my backup at any point?
[Nexus S Android Development] tellone:
No, you don't ! It's ok ! You must not do newer efs folder backup.

A question : what rom had you in the nexus in august when you make efs backup ?

---------- Post added at 09:46 PM ---------- Previous post was at 09:40 PM ----------

What rom have in your nexus? I pray the thread author to replay to my private message. Thanks....... I think that we must write some Unix command to unlock the direct copy of the

Efs folder in our computers.
[Nexus S Android Development] belair56:
God if I know what I had running in Aug.

Looked it my SD card backup from that time.

SuperOSR-ST@-Nexus-S-2.0.6-AW

pete_crespo_

Or I had a CM7 running..........
[Nexus S Android Development] tellone:
So, you haven't the stock rom on your nexus when you used efs backup tool, right?
[Nexus S Android Development] belair56:
Correct, I haven't run a stock rom forever.
[Nexus S Android Development] tellone:
I have solved the problem !! The cause was my stock rom !! Today, I flash

Brainmaster MIUI 1.11.4:

http://xdaforums.com/showthread.php?t=1181050#

and the efs backup /restore tool has woked immediately !!! :D:D;)
[Nexus S Android Development] mike216:
How do I restore my efs folder if I loose mine. I have it backed up with brainmasters mod that I'm running on nscollab, I also used this tool to back it up. For safety knowledge I would sure appreciate some help

Sent from my I9020T NEXUS S/NSCOLLAB, IS THE BEST PHONE BECAUSE WE HAVE THE BEST DEVELOPERS!
[Nexus S Android Development] mixtapes08:
can you link me to brainmaster efs back up mod.. tnx in advance...
[Nexus S Android Development] mike216:
It comes with a couple roms, sorry if you misunderstood me but I'm on nscollab and it has the mod included in it,so does matrix, nexus mv and brainmasters miui rom all have it

Sent from my I9020T NEXUS S/NSCOLLAB, IS THE BEST PHONE BECAUSE WE HAVE THE BEST DEVELOPERS!
[Nexus S Android Development] mixtapes08:
ow its ok sir ^_^ tnx btw.. ^^
[Nexus S Android Development] Bruce lee roy:
Confused

If i run from .zip, cmd window opens and says press any button. I press and a process runs (too fast to see what's going on) and window closes. Does this mean efs is backed up? Is there a way I can check that it was done correctly?

If i extract file on desktop and try to open any of the files, i get an error message that says i'm missing some file...

basically, how do i run this process? can anyone please give me a little help.
[Nexus S Android Development] caleb1783:
i dont think you can run the files from the zip...

anyways, i have detailed steps and possible troubleshooters on the following link

http://caleb1783.tistory.com/276

check it out.

if it ran probably, you will know by extra files present in the folder...

---------- Post added at 12:38 AM ---------- Previous post was at 12:37 AM ----------

Thanks for the great script.

I've translated to Korean for my fellow countrymen.

http://caleb1783.tistory.com/276

i've also added a bit more detailed steps for noobs like me.
[Nexus S Android Development] Bruce lee roy:
Update

So I still have yet to perform a successful update but i think i have made some progress:

I extracted the contents from the original .zip file and placed the adbwinapi.dll in the folder. When I ran the efs_backup a message returned saying that the adb was out of date.

I then ran the adb and re-ran the efs_backup and got a blinking cursor and nothing happens after that.
[Nexus S Android Development] iboj007:
I'm still having this problem. Is there any alternate solution that I could use?

-Omar
[Nexus S Android Development] caleb1783:
hi, i posted an additional file...

http://caleb1783.tistory.com/276

try replacing the adb.exe file with the one on the post.

hope it works...
[Nexus S Android Development] rquinn19:
Same problems for me as above. I replaced the adb and still same issues. I threw a pause in there so I could see what went wrong. Any insight please?
[Nexus S Android Development] Borky_16:
A bit more details please ! :/

ROM: ?

SU: YES/NO

PC: 32/64 BIT

Permission: with Admin/ wo Admin

sorry but I'm on vacation ! :/
[Nexus S Android Development] rquinn19:
It was stock rooted 64 bit. It worked after I changed roms though. Thanks
[Nexus S Android Development] Borky_16:
i found out that you will need an unsecure boot.img ! :DD i never tried my tool with a stock rom ! :O
[Nexus S Android Development] tellone:
your tool doesn't work with stock rom....... With ICS 4.0.3 stock does NOT work.... only with custom rom is ok!
[Nexus S Android Development] phone_user:
deleted, removed
[Nexus S Android Development] phone_user:
This restoring caused problem on ICS.

http://xdaforums.com/showthread.php?p=20506160#post20506160
[Nexus S Android Development] Hockert:
How do I know if the backup succeeded? The backup created some files and folders but I wasn't able to see if the bat file encountered any problems since the window closes so fast.
[Nexus S Android Development] Borky_16:
When some folder are created then its ok ! ;)
[Nexus S Android Development] Borky_16:
Thanks for the Link ! :)

I'll will push out another changeover version soon, wich will include a script for restoring ICS EFS !

Some Info for you guys, I'm working on a Java based Layout with some special function and other good stuff ! :)
[Nexus S Android Development] tritran18518:
How many file do i suppose to have after running script file ? I only saw : .nv_data.bak.md5 & .nv_state . :confused:
[Nexus S Android Development] MaXmeOliver:
Permission denied. How do I fix?
[Nexus S Android Development] Borky_16:
insecure kernel installed ?
[Nexus S Android Development] Merritt:
I was trying this in Linux and getting Permission Denied errors - CM9 Alpha 18 for Nexus S.

As a workaround I just used an Android file manager to browse as root, copied the /efs folder into the SD card, then to my computer as a backup. I don't see any reason this shouldn't work to at least create a backup for safety purposes - for all of you who are also having Permission Denied errors. :)
[Nexus S Android Development] Dadi68:
Any help?

device

pull: building file list...

pull: /efs/nv.log -> ./nv.log

failed to copy '/efs/nv.log' to './nv.log': Permission denied

pull: /efs/.nv_data.bak.md5 -> ./.nv_data.bak.md5

failed to copy '/efs/.nv_data.bak.md5' to './.nv_data.bak.md5': Permission denie

d

pull: /efs/.nv_data.bak -> ./.nv_data.bak

failed to copy '/efs/.nv_data.bak' to './.nv_data.bak': Permission denied

pull: /efs/.nv_state -> ./.nv_state

failed to copy '/efs/.nv_state' to './.nv_state': Permission denied

pull: /efs/nv_data.bin -> ./nv_data.bin

failed to copy '/efs/nv_data.bin' to './nv_data.bin': Permission denied

pull: /efs/nv_data.bin.md5 -> ./nv_data.bin.md5

failed to copy '/efs/nv_data.bin.md5' to './nv_data.bin.md5': Permission denied

6 files pulled. 0 files skipped.
[Nexus S Android Development] mahanddeem:
Please I want to do this ... My device is unrooted (and I don't want to root it) it's I9020T on ICS stock 4.0.3 ....

I have the correct driver for windows installed when I plug it to my computer ..

What steps to do to backup my EFS folder ?
[Nexus S Android Development] mahanddeem:
any one ?

.......................................
[Nexus S Android Development] ene.xis:
i get a permission denied error on all 6 files...?
[Nexus S Android Development] shahravi94:
mac/linux download doesnt work!
[Nexus S Android Development] kvaju:
Hi, I'm using Nexus S, Peter Alphonso ROM (ICS )

Trying to backup EFS but I'm not sure if I'm doing it right.

I downladed efsbackup_windows2.0.zip extrackt it, put nexus s in fastboot mode, run efs_backup and get error that AdbWinApi.dll is not founded, but I have Android SDK Manager (althoug I never use it). Do I have to put downloaded file in special folder to run it?

I also try with my phone ON, got the same error, can you tell me what am I doing wrong?

Thanks
[Nexus S Android Development] Pi3rluigi:
I'm with Cm9 2.1, Mac user, tried using adb and the tool, but no results!

Have I to install an insecure boot img?
[Nexus S Android Development] tamaratee:
Trouble Using this Method

Having trouble backing up my EFS folder with this method. I'm trying to flash my radio and I read that I needed to backup my EFS, thus my post to this thread.

Is this still a relevant/current concern? I notice there hasn't been any activity on this thread Since December 2011. Am I wasting my time?

Heres a pic of the error message I get:
[Nexus S Android Development] Pi3rluigi:
Yes it is,but with ICS the script doesn't work properly,so you have to do it manually!

Assuming you have androidsdk on your Mac (:D) and debug usb enabled:

put androisdk folder on desktop,this will make all easier

create on desktop a new folder named efs

open terminal

desktop/androidsdk/platform-tools/adb root

desktop/androidsdk/platform-tools/ adb pull /efs desktop/efs

now in the folder you have created will have the ame file with right permission as in the phone
[Nexus S Android Development] kvaju:
I tryed to run backup_efs, and this is the error I got.
[Nexus S Android Development] Lordofminor:
I always get stuck here... :/
[Nexus S Android Development] mattia.b89:
hi, i use CM9 from time ago and never had problem with IMEI.

seeing in the EFS folder, i noticed the nv.log file contain many MD5 errors and consequent file restore

anyone have had this problem ?
[Nexus S Android Development] Maxxd01:
I have Nexus 9023, CyberGR V11 ROM (Simple Kernel) and last version of CWR. It is safe to apply this method to backup the EFS?
[Nexus S Android Development] DeuXGod:
Just used it on my Nexus S running AOKP and worked just fine.

For those who have the ADBWinAPI.dll problem, download and put the attached file in the same folder as the efs_backup.bat and run it again.
[Nexus S Android Development] mattia.b89:
these are the errors: http://pastebin.com/NQV3ExJj

is it serious ?
[Nexus S Android Development] clem_ita:
Thank you for this tip about adb root. I guess it would be nice to add this in the first post.. (or update the backup script and include this command in it)
[General Questions and Answers] Ganon202:
Hello people.

I have restored my SGS2 to stock using Check Fus. I followed the instructions carefully and my phone is now restored to its orriginal version. (before root)

There is a minor complication however, when i open Kies 2.0 and go to the firmware tab it is showing:

This device can not be updated.

Firmware: PDA: KE3 Phone: KD1 CSC: KE3 (kor)

This is totally different from the firmware version listed in my telephone.

Did i do something wrong somewhere down the line? I have reinstalled kies and also removed the old registery. (before reinstall)

p.s. I forgot to mention this: Thanks in advance for any help / time you are willing to give me :D
[XPERIA X1 Q&A, Help & Troubleshooting] danistuta:
Wich one? Any suggestion?

Thanks.
[XPERIA X1 Q&A, Help & Troubleshooting] ilgreco112:
download, flash, give a try, make a choice!
[XPERIA X1 Q&A, Help & Troubleshooting] ncw2k69:
rom?

stock R3a is the best UK version

if you want super fast sense rom try Touch x nuts or legend

i use the legend version for aprox 1 year . for me is the best sense rom ever for x1
[XPERIA X1 Q&A, Help & Troubleshooting] manishabanzadeh:
dynamics 2.2.0