[Q] Question about rebuilding /efs partition - Captivate General

Friends, I screwed up my /efs partition. I have managed to reconstruct it, but I the .nv_data.bak did not get rebuilt automatically, as some suggested that it might do.
Following Helroz's learned guidelines, I recreated that backup file, but there was a glitch along the way, and I am not sure the new file is good.
Could some of you please just tell me the size of your nv_data.bin and .nv_data.bak files?
That will help me decide whether my backup file creation went well or not.
Thanks
Ben

Code:
2,097,152 .nv_data.bak
32 .nv_data.bak.md5
1 .nv_state
2,097,152 nv_data.bin
32 nv_data.bin.md5

Opcow nice to see you hear and thanks. My .bak got truncated and is only 800 Kb so will have to try again.
Are you really at ISZ? Stay warm mate with winter arriving! Furthest south I've been is Comodoro Rivadavia.

BigBen said:
Are you really at ISZ?
Click to expand...
Click to collapse
Nah, just thought it was interesting that you could set your location as Antarctica so I did, and I stole the Ice Station Zebra part from the movie.

Ha, ha! I was wondering how your Captivate was working from down there.
Anyway, thanks again for your reply
Ben

Related

expand a nandroid img file

for those who do not know how to do this yet, follow directions given here.
Just took this info from the web. None of this except for the guide is written by me.
I am not responsible for anything please do not contact me if a green sludge starts attacking your neighborhood eating one person at a time.
************************************************************
************************************************************
************************************************************
http://code.google.com/p/unyaffs/downloads/list
made for linux, but if you know a bit of c, you can probably change it to work with windows, maybe I will do that if I have some time this week.
********OR********
http://jiggawatt.org/badc0de/android/unyaffs-x86-win.zip
or http://www.4shared.com/get/fgryPnPx/unyaffs-windows.html
for windows..... instructions below apply for both
if not included in the zips above, cygwin1.dll and unyaffs.exe are included as an attachment of this reply.
open up a command line, in windows vista/7 just press start and then type cmd press enter and change the directory to the folder with the unyaffs and the img in it. in xp press start>run>cmd... then the same
the usage is: unyaffs /path/to/img
example:
(if unyaffs.exe and system.img are both in c:\temp)
"c:\temp> unyaffs /temp/system.img"
note: the '/' is the way linux determines the pathname of a file and since it is built using cygwin(a file allowing for windows) it is preferrable that the path to the actual file is in unix POSIX format ie: / instead of \ between folders and files.
*********WARNING************
this will extract to directory that unyaffs binary is in.
That's so weird -- I was gonna post the same thing tonight. Thx for writing this up. It's odd that more people don't talk or ask about this tool!
I remember reading this stuff back when I got my G1, and tonight I was trolling the themes and apps section cause I couldnt sleep. (which I rarely look at)
I was baffled that this wasnt common knowledge. I figured if there was no threads about it that people just knew how and didnt have any problems with it. My mistake lol...
enjoy.
can you please explain what is it? what it does? thanks
ericizzy1 said:
can you please explain what is it? what it does? thanks
Click to expand...
Click to collapse
Umm, it expands nandroid img files not sure how else to explain it. Clockworkmod backups are in the img file format. This process allows you to extract those files to get stuff out of them
Sent from my SPH-D700 using XDA App
When you create a backup in Clockwork recovery, it leaves you with a folder like this:
2010-11-18.08.52.49
As you can prob figure out, I made that backup on 11/18 at 8:52am
Inside that folder are .img files, such as: data.img and system.img
Those files basically contain your data (like apps you've installed from market) and system (..system apps that might've come with the phone).
In the orig post, he's explaining how to extract the files from these large .img files.
To give an example, I had a couple of corrupted clockwork backups, and wanted to ONLY pull out some database files (like text messages and call logs) which were not corrupted. Even tho the backup was messed up, I could still extract the files I needed by using the method above, then copied them manually to my phone.
decalex said:
When you create a backup in Clockwork recovery, it leaves you with a folder like this:
2010-11-18.08.52.49
As you can prob figure out, I made that backup on 11/18 at 8:52am
Inside that folder are .img files, such as: data.img and system.img
Those files basically contain your data (like apps you've installed from market) and system (..system apps that might've come with the phone).
In the orig post, he's explaining how to extract the files from these large .img files.
To give an example, I had a couple of corrupted clockwork backups, and wanted to ONLY pull out some database files (like text messages and call logs) which were not corrupted. Even tho the backup was messed up, I could still extract the files I needed by using the method above, then copied them manually to my phone.
Click to expand...
Click to collapse
thx
Sent from my SPH-D700 using XDA App
smeyerhuky said:
Umm, it expands nandroid img files not sure how else to explain it. Clockworkmod backups are in the img file format. This process allows you to extract those files to get stuff out of them
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
Right, like if you wanted a file or a few files from clockworkmod img backup, then this process would give you an extended file system, other than what you would normally use to extract the img files. Just trying to understand this so, please correct me if im wrong.... I've been trying to get more knowledge of this, so im still learning.
I prolly sound like a complete idiot, lol...
Sweet! Thanks for this man. I'd been looking for how to do this for some time and kept ending up learning about emulation or some other tangential topic. This is the basic functionality I was looking for. Thanks for posting!
Np. I'm working on writing some stuff on top of the source code that should allow you to browse and pull just one our more file
Its been a but since I looked theory source code so it might take a while... Maybe in between semesters?
Sent from my SPH-D700 using XDA App
Dode you saved my as** thx big thx
Great, now how can I re-compress back to .img after I've made the changes that I want?
EDIT: Nevermind. I just made a zip of the new system folder and flashed it in CWM.
This worked great for me.
Thanks,
Bud
Man, I do not know how to thank you. I was able to recover some important stuff off of my cwm recovery backup. THANKS!!

[Q] galaxy i9003 without imei

hello
i have galaxy i9003l with ginger 2.3.4 kpe
i lost imei and i dont have base band too , i backup nv_data.bin , i can see product code inside .
i put this file in my sdcard folder , i have just only this files in my efs folder :
smc-storage
so i paste my file nv_data.bin inside efs folder , all its oki
for checking my file nv_data.bin i use tuba editor ,
here is the problem my file nvdata bin is not teh same i paste
Why ?
thank you to help me
http://www.xda-developers.com/andro...s-ii-and-other-samsung-devices-in-nine-steps/
here's a nice guide to recover your IMEI.
now i have this what is that ?
Code:
E:failed to mount /efs (invalid argument)
E:failed to mount /efs (invalid argument)
E:check_selective_file:can't mount /efs
-- Copying media files...
Succewwfully copied media files.
-- Appling Multi-CSC...
E:failed to mount /efs (invalid argument)
E:multi_csc:Can't mount /efs
Multi-csc applied failed.
can i repair this issue ?
thank you for help me
Man try this:http://forum.xda-developers.com/showthread.php?t=1264021
or http://forum.xda-developers.com/showthread.php?t=1261948
Very strange!
i cant replace nv_data.bin
yes i try all tutorial , but i cant replace nv_data.bin , this one is created all the time when i delete it ...
i have my good nv_data.bin
my folder efs is like that :
.nv_state
.nv_log
nv_data.bin
nv_data.bin.md5
folder smc-storage
thank you !!!
i cant delete this ***** nv_data.bin .....
i try sg22 tools , convert the partition like ext4 , and nothing ....
i m deseperate ....
Y_Y
CELICA we have the same problem. did you solve it??
no yet !!!
but i have one idea ....
may be if i flash the efs.rfs with odin may going to work , because to use rootexplorer is vain ...
can you give some folder efs to see if you have some similary code ...
i think this file nv_data.bin have all that need imei and baseband ...
may be some help going to be welcome ...
thank you ...
delete and wrong nv_data.bin and nv_data.bin.md5
rename the good
nv_data.bin => .nv_data.bak
nv_data.bin.md5 => .nv_data.bak.md5
(must have a "." in front the nv_data files)
copy using root explorer to efs folder
change permission as rwx------
change owner to 1001 - radio
change group to 1001 - radio
efs folder permision should be rwxrwx--xx
efs folder Owner should be => radio
efs folder Group should be => system
and factory reset
Good luck
edit: root explorer have to set "show hidden files".
Y_Y_Y_Y_Y stressed
guys i think my efs folder is empty is there any way to solve it?
i went to a technician and they said they can rewrite imei but first they will flash it back. what do you think??? service center sucks i go there and they said they can't solved it Y_Y_Y_Y_Y_Y_Y_Y_Y they only update my i9003 to gingerbread 2.3.5 DXKP9
zej21 said:
guys i think my efs folder is empty is there any way to solve it?
i went to a technician and they said they can rewrite imei but first they will flash it back. what do you think??? service center sucks i go there and they said they can't solved it Y_Y_Y_Y_Y_Y_Y_Y_Y they only update my i9003 to gingerbread 2.3.5 DXKP9
Click to expand...
Click to collapse
Firstly please stop spamming all the threads. Now just go to the service centre and tell them kies screwed you up and you want a replacement if they can't fix it. If they don't buy it just try to use Google and find out how to restore. If not go to the technician.
Cheers
Sent from my GT-i9003 powered by MIUI
zej21 said:
guys i think my efs folder is empty is there any way to solve it?
i went to a technician and they said they can rewrite imei but first they will flash it back. what do you think??? service center sucks i go there and they said they can't solved it Y_Y_Y_Y_Y_Y_Y_Y_Y they only update my i9003 to gingerbread 2.3.5 DXKP9
Click to expand...
Click to collapse
man, calm down man. you using DXKP9?, where do you locate.
what is the meaning of flash it back?, it mean flash back to froyo?
show us what is inside your efs folder and do you have the nv_data.bin backup?
do your still having the file as below in you backup(the original file)
.nv_core.bak
.nv_core.bak.md5
.nv_data.bak
.nv_data.bak.md5
.nv_state
nv_data.bin
nv_data.bin.md5
forget about the file nv_data.bin & nv_data.bin.md5 in the phone, there are not the original.
or, do you want my help, although im not an expert.
yes
the technician said that he will flash it back to the orignal firmware and that is froyo. im from philippines.
i downloaded root explorer though my phone is not rooted i checked the efs and in properties its size is 0 and i think it is already empty Y_Y
celica7 said:
hello
i have galaxy i9003l with ginger 2.3.4 kpe
i lost imei and i dont have base band too , i backup nv_data.bin , i can see product code inside .
i put this file in my sdcard folder , i have just only this files in my efs folder :
smc-storage
so i paste my file nv_data.bin inside efs folder , all its oki
for checking my file nv_data.bin i use tuba editor ,
here is the problem my file nvdata bin is not teh same i paste
Why ?
thank you to help me
Click to expand...
Click to collapse
I have the same problem .. how have you solved? :/ thanks
For all who have lost their imei, simply follow this post. http://forum.xda-developers.com/showpost.php?p=48073115&postcount=3

[Resolved] [Q] Samsung Galaxy Beam GT-I8530 Baseband Unknown

Hi there!
I was tinkering about on the system files of my Galaxy Beam, and (maybe) accidentally messed up with the partition of the device.
The device runs on Jelly Bean 4.1.2 and now its mobile data service is disabled, and when I checked the baseband it says "XXXX" (I believe this is the same case as baseband unknown).
I tried to repair it using Szaby59's method (http://forum.xda-developers.com/showthread.php?t=2145464), but to no avail.
I wonder if there is another way to restore the baseband of my phone? I understand I might have messed with the efs and modemfs files, will it help if there is anyone who is kind enough to share his/her stock efs/modemfs files, and I get to use those files to my phone?
Hope the information was clear enough, thanks in advance.
ardjet said:
Hi there!
I was tinkering about on the system files of my Galaxy Beam, and (maybe) accidentally messed up with the partition of the device.
The device runs on Jelly Bean 4.1.2 and now its mobile data service is disabled, and when I checked the baseband it says "XXXX" (I believe this is the same case as baseband unknown).
I tried to repair it using Szaby59's method (http://forum.xda-developers.com/showthread.php?t=2145464), but to no avail.
I wonder if there is another way to restore the baseband of my phone? I understand I might have messed with the efs and modemfs files, will it help if there is anyone who is kind enough to share his/her stock efs/modemfs files, and I get to use those files to my phone?
Hope the information was clear enough, thanks in advance.
Click to expand...
Click to collapse
hi ardjit the tow folders that u asked for they are zipped and attached above :good:
alameralshamry said:
hi ardjit the tow folders that u asked for they are zipped and attached above :good:
Click to expand...
Click to collapse
thanks a lot man! will try to replace the modemfs file in my phone with the ones you just gave, hopefully this'll work!
IT WORKEDD!!!
I replaced the modemfs folder in the root directory, with the ones given by alameralshamry, rebooted my phone, and voila! data plan is back!
thanks a million to alameralshamry...and hope this thread may help anyone with similar problem.
ardjet said:
IT WORKEDD!!!
I replaced the modemfs folder in the root directory, with the ones given by alameralshamry, rebooted my phone, and voila! data plan is back!
thanks a million to alameralshamry...and hope this thread may help anyone with similar problem.
Click to expand...
Click to collapse
im happy to know that its worked with you ... you are welcome
i8530
ardjet said:
IT WORKEDD!!!
I replaced the modemfs folder in the root directory, with the ones given by alameralshamry, rebooted my phone, and voila! data plan is back!
thanks a million to alameralshamry...and hope this thread may help anyone with similar problem.
Click to expand...
Click to collapse
how replaced modemfs folder
i m unable to download your files..
please help me... thanks in advance.
alameralshamry said:
hi ardjit the tow folders that u asked for they are zipped and attached above :good:
Click to expand...
Click to collapse
agan can ask EFS has a backup folder that agan ga bin or img shape.
alameralshamry said:
hi ardjit the tow folders that u asked for they are zipped and attached above :good:
Click to expand...
Click to collapse
I just registered and replied this post with many thanks! Because I also had headache with my i8530 phone which lost the baseband info.
Your file of "modemefs.zip" REALLY worked on my I8530 phone! I unzipped the files and copied into the root directory of "modemefs", then reboot, finally the baseband came back!!!:good:
I almost decided to throw away this cell phone before I found this post. You have greatly helped me to solve my problem.
Many thanks again!
alameralshamry said:
hi ardjit the tow folders that u asked for they are zipped and attached above :good:
Click to expand...
Click to collapse
how to replace the modem file in root directory plz tell
imran qasim said:
how to replace the modem file in root directory plz tell
Click to expand...
Click to collapse
First make sure your phone is rooted and Root Explorer is installed.
Open Root Explorer, copy the files to /modemfs directory.
If failed to copy, one reason may be that /modelfs directory has insufficient space. Because Android system allocates different space for some specific system directories.
When you turn to /modemfs, Root Explorer will show "XX MB used, XX MB free" on the top.
If the free space is very little, you will NOT be able to replace the model file, so you need to consider to delete some useless or irrelevant files inside this directory.

Extract IMEI from Nexus 5 TWRP Backup files

Hello together,
i hope you guys can help me out here. Today my Nexus 5 has been stolen. Now i want to prosecute but i need my IMEI. I am currently not at home but i got my laptop with a backup made by TWRP.
The folder looks like this:
http ://puu.sh/ nzexP/cfbff68baf.png (remove the spaces, i am new here thats why i cant post links yet)
As you can see there are some files and also two files efs1 efs2. But i dont know how to extract those or where to find my IMEI in that files.
Could someone please help me with that?
Thanks in advance
Edit: I found something in that recovery.log which might help to extract it? The log says:
Backing up EFS...
I:Backup command: 'dd if=/dev/block/mmcblk0p12 of='/data/media/0/TWRP/BACKUPS/05f111c90047784e/2015-08-18--14-50-33_cm_hammerheadcaf-userdebug_5.1.1_LMY48G_501//efs1.emmc.win' bs=1048576 count=3'
Click to expand...
Click to collapse
Maybe you guys now know which command the file was created with and you maybe know something for this in reverse to extract?
You don't have the box?
Call your carrier and they may have a record of the last IMEI for yoru nexus 5.
I have Bell Canada as my carrier and their system is able to read the imei from my phone.
Planterz said:
You don't have the box?
Click to expand...
Click to collapse
As i said, i do have the box but i am not at home where it is.
Isnt it possible to extract this backup files?
If you go to Google dashboard it will give you a list of all Android devices ever signed in to that account. Including IMEI.

[Completed] How do I protect some specific files in the root directory from being deleted?

I have some files in /data/data/com.something that are again and again deleted or rather overwritten by a program every time I run it. I'd really love a way to delete protect those files of mine.
Points:
I know that the files are overwritten because they are read only files so the only logical explanation is that they are first deleted and then replaced with a new file.
The files should be prevented from being deleted or edited but I also want that the data still be executable and viewable.
The files are in .XML format.
The name of the files and their current location should not change.
Last but not the least, this change should be reversible.
Can any human being help me achieve this or is this something that only the almighty can do?
Evan Jongske Sangma said:
I have some files in /data/data/com.something that are again and again deleted or rather overwritten by a program every time I run it. I'd really love a way to delete protect those files of mine.
Points:
I know that the files are overwritten because they are read only files so the only logical explanation is that they are first deleted and then replaced with a new file.
The files should be prevented from being deleted or edited but I also want that the data still be executable and viewable.
The files are in .XML format.
The name of the files and their current location should not change.
Last but not the least, this change should be reversible.
Can any human being help me achieve this or is this something that only the almighty can do?
Click to expand...
Click to collapse
Greetings and welcome to assist. If the files are in data then they can be overwritten if they are in system/root then they could only be ovewritten by a root application.
Hope this helps
Good Luck
Sawdoctor

Categories

Resources