Finally got my phone back .. EFS issue - Nexus S Q&A, Help & Troubleshooting

So i finally got my phone back from repair from regenesis , man what an effort and expense!
anyway , iv rooted , and i just wanna backup my efs this time lol. whats the best way ?
atm iv copied and pasted it from root explorer , i tried ADB pull , but it said something about cant use adb root due to production builds..
is the copy and paste of the files ok
, i have all the .baks and nv_data

Glad to hear it's working well. Back it up, in multiple places, via ES File explorer or similar. Just a typical copy-paste job. After this is done, open up terminal on the phone or adb shell and type:
su [enter]
[Allow superuser access via prompt]
cat /dev/block/mtdblock6 > /mnt/sdcard/efs_backup.img [enter]
and voila. /sdcard/efs_backup.img is your exact, rock solid /efs partition. This too should be stored in multiple places.

brilliant thanks alot!

Related

Question about adding stock apps back

I have read and still don't understand how to add back apps like Sprint TV. I have them all saved on my computer I just do not know the commands to get them back into the phone. Do the apps I want to ad back need to be in a certain dir on my computer first. If someone could explain or either point me to a thread that explains this I would really appriciate it.
Seems I found an easy way to add sprints, htc's apps back into the phone once removed. I saved all of them on my computer and used HTC Sync to install the app back. I removed Nscar as a test using root manager, rebooted and it was gone, then opened up HTC synch and added it back. Not sure how to get the odex files back in but it works with apk files.
AFter testing it om HTCfootprints it would not install this. Installed Nscar with no problems.
I am also trying to figure out how to add sprint tv back onto my Hero. I see that people are saying to use adb push, but I can't seem to get it to work. I just rooted with the new fresh rom and everything is great, I just want to add back sprint tv. Any help would be appreciated, thanks
Im a total noob, but I got it the apps back on this way:
Go to the directory where the ADK Tools directory is. Then the following commands:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
chmod 777 /system
chmod 777 /system/app
exit
exit
Then I copied the .apk files that I wanted to push to the tools directory
I am in.
Then did this:
adb push Sprint_TV.apk /system/app
I found it is case sensitive, so make sure you type the filename exactly.
I rebooted my phone and the apps (such as Sprint TV) were back.
I hope this helps, like I said, I spent an hour trying to figure it out, but this worked for me.
I would not recommend doing a chmod 777 on your system or app directory. Not that anything bad will necessarily happen, but it's generally not a good idea to mess with system file permissions when you don't have to.
Your procedure would work fine without those commands at all, in fact. You don't even need to enter the shell; just adb remount and then adb push.
those instructions worked perfectly. Thanks a ton.
I tried this with HtcFootprints. I removed the widget as well. When I added all 4 back in I can see the widget for footprints, but the footprint icon does not show up in the apps section.
Another thing of intrest. When I added Nscar back using HTC Sync, it now shows up as a third party app. It is no longer a system app and I can uninstall it like a market app.
Ok scratch that I did the Footprints again and the Icon is now there Thanks a Ton
I was able to push HtcTwitter.apk and .odex. i cannot get the widget to show up in the add HTC widgets menu. Any ideas?
Well, after trying my hand at update/rom modding with some success... I'm willing to take a shot at making update.zip files to easily flash individual stock apps back onto your phone. That's if there's any interest.
obelisk79 said:
Well, after trying my hand at update/rom modding with some success... I'm willing to take a shot at making update.zip files to easily flash individual stock apps back onto your phone. That's if there's any interest.
Click to expand...
Click to collapse
That would be great and very helpful to many
Easy Peasy App Install
I just copied the files to my SD card. I then browsed to the SD card folder using Linda File Manager and "clicked" the file. It asked me if I wanted to use Linda File Manager or Package Installer. I selected Package Installer and it proceeded to installed the package for me. Not need to get into the console or use any commands.
VOILA!

Changing the bootanimation!

Ok here's one to all the ppl that didnt manage to get it to work like me (HTC desire). My phone is only rooted with revoked, no custom roms etc.
Ive read a lot of forums and i've seen a lot of people that didnt manage to get it to work. After spending nights trying to get it to work is was getting frustrated. All i read was about pushing the file to /system/media or /system/data, but after spending some time looking through all the folders with root explorer i found the actual default bootanimation.zip file.
IT WAS LISTED UNDER /system/customize/resource
so i rebooted my phone in recovery mode:
- mounts and storage
- mount /system
- in cmd: adb shell rm /system/customize/recource/bootanimation.zip
- in cmd: adb push bootanimation.zip /system/customize/resource/bootanimation.zip
note: for this exact command to work u need to have the bootanimation.zip in your androidsdk/tools folder. If not u need to change the push command to adb push <the location here(i.e. d:\downloads\bootanimations\bootanimation.zip)> /system/customize/resource/bootanimation.zip
(this didnt work if i had the file on the c drive of my pc and i would get an error, unless it was in the c:\androidsdk\tools folder, it would work on a 2nd partition, ext storage or whatever)
Only 1 thing... in that same file there prolly still is an audio file, cous when i boot i get my customized bootanimation, but still the standard boot sound. I will be looking in to this now.
If ppl could confirm this works for them aswell i would be happy
EDIT: the bootmusic is listed in the same folder as the bootanimation. It's named android_audio, so you probably wanna remove this aswell (using the command adb shell rm /system/customize/resource/android_music.mp3). Im not sure if you can change this, and since i didnt backup the default bootanimation.zip im dont know if there was someting diffirent about is that would make the music play. I would appreciate if someone could adb pull the original files for me and post em
another note, if you'r making your own bootanimation.zip's make sure compression is set to 0 (store or save)
on my dutch version of winrar its listed under 'ìnpakmethode' -> 'opslaan'
I'd really like to help you out and pull the plain bootanimation (there's no sound actually) from the (custom) rom I'm using but I just can't (see screenshot). If you give me some guidance I can do that, but I do wanna wipe my current one! Please note I recently got S-Off and I'm in Recovery with /system mounted (it says "click to unmount" so it should be good, shouldn't it? Anyway I tried the other way and it's the same... )
well yours might be in the /system/media or /data/local folder. You can always use a file explorer on the phone to find out where yours is located or use adb shell ls /system and check folders if it actually is there.
i r still a noob with all this so i got no clue what s-off is
Ok I got to find and replace the bootanimation.zip file (the only one I could fine on the phone, anyyway) with different ones I got in the forums (Desire bios-like and Star Wars Droid) but I get no animation at all... I mean, I reboot and get the initial still image and the old nexus animation after that is gone, black screen instead, and then Android loads. Any thought maybe? And I'd really like to know how to completely wipe Google Maps/Brut from my phone (don't know the actual files, I got Gmail.apk and I succeeded but the jar's I found for maps weren't enough, I suppose, as I can't install the updated version from the Market, just like I had with Gmail before removing the apk and I solved doing that).
So your still getting the standard animation? Did you use the adb command with the phone in recovery mode to delete and push the new one in?
hy5eyhe5yh
hteherhyeyhey
not bad,i hood you
ToWi1989 said:
So your still getting the standard animation? Did you use the adb command with the phone in recovery mode to delete and push the new one in?
Click to expand...
Click to collapse
Actually I'm getting black screen, no animation... only the first still image (green HTC on white background, you know). And yes, I pulled the original, rm the old one and pushed the new one, in Recovery, with /system mounted.
did u try to make ur own and failed at compressing the .zip ? Or did u just download a standard one off the internet?
Also did u make sure the file u pushed actually is there, in the right folder?

Having some permissions issues with my ADB and Terminal

Hello everyone. I have been working with android for a 6 months now and still cannot figure out what im doing wrong to get my permissions to work correctly. I have installed ADB and successfully rooted my MT3G Slide. I have been trying lately to figure out why i cannot manually configure A2SD. I have gone through both ADB Shell and Terminal under Su to try to mkdir /system/apps but it will give me a problem like my system is not allowing me to rewrite or its copy protected. I have tried to remount and it claims its successful. Another symptom i experience is not being able functionally use the rom manager or restart in clockwork recovery after i have flashed a rom. I always have to wipe the devices before i can loop hack back into clockwork mode. I have tried to fix permissions and restart in recovery through rom manager and it just brings up a question mark ontop of an image of a phone. I have been trying most recently to move a file through terminal to another name and replace the old with a new of the same name. It says the directory is not empty when i try to modify this file. So Anyone think they might know a solutions to these issues or hopefully all of them in one simple problem i cant seem to figure out.
download & install 'root explorer' for your phone from the android market (or your Pc, and put it on your phone) , grant it superuser permissions from superuser on your phone, open it up, and there's an option to make the phones memory R/W. (Its R/O as default which may be why your having permission issues)
Saying that Im yet to figure out adb's permissions fully..
Be careful with root explorer though, its a very intrusive programme which can screw up everything
Root explorer cost money... is there another program that allows me the same option. I have been using astro file manager, any way to do it on that one?

N8013 restore efs - no backup, not even nv_data.bin

Dear all,
it is time for me to pay back. I have found a lot of information and tips from this forum. However, when I bricked my device by erasing the efs folder (trying to install Linux on my N8013 Tablet) I only found partial fixes, like creating the directory FactoryApp and the file factorymode with ON inside it.
I have searched forums and forums and I could not find a comprehensive answer. I tinker and tinker with my device and at last I recovered the efs folder and it does not get wiped out on boot.
Before today, I had to boot my Tablet and create the FactoryApp and file factorymode with ON inside it to make my Tablet not showing the Factory Test have stopped and to show the lock screen. Now all is back to normal.
When in recovery mode CWM the efs would not mount!!
Thanks to too many people, I have been visiting so many sites I do not remember the names of all!!! Thank you all!!
Ok, this is the procedure it worked for me.
1.- Install CWM recovery in your rooted tablet.
2.- Install ADB in your pc to be able to communicate with the tablet via com window. Install busybox as well.
3.- google a nv_data.bin file if you find one. I found one. I could find the download link if someone ask for it.
4.- BOOT your Tablet in Recovery mode push both the power and the volume up button (the farthest to the power button). When the First letters appear, release the power button, not the volume up until entering in recovery mode.
5.- Go to your PC, connect the USB cable to your tablet and go to C:\Program Files\Android\android-sdk\platform-tools>
6.- Type adb shell and hit return
7.- if you see # good, you have access to your tablet. Do not type su because does not work. You are root (I assume).
8.- type busybox df -h and check you do not have the efs mounted. In fact it does not even appear.
9.- Try to mount mmcblk0p3 (mount -w -t ext4 /dev/block/mmcblk0p3 /efs ) YES 0p3. I have found a lot of forums saying it is 0p1 but not in the Galaxy Note N8013. I tried with the 0p1 and did not work.
10.- Of course did not mount!!! That is the error. So we have to....
11.- Now try to make that partition, by typing mke2fs /dev/block/mmcblk0p3
12.- Now try to mount it again by typing mount -w -t ext4 /dev/block/mmcblk0p3 /efs It worked!!
13.- Now you have to keep the downloaded nv_data.bin file in the root of your sdcard, and a text file named factorymode with the letters ON inside.
14.- do busybox ls -ltr and you will see there is a folder called sdcard -> /data/media
15.- create a folder inside the /efs/ folder named FactoryApp
16.- Copy the factorymode from the root of your sdcard to the /efs/FactoryApp folder by typing: busybox cp /data/media/factorymode /efs/FactoryApp
17.- Copy the nv_data.bin from your sdcard to your efs folder by typing: busybox cp /data/media/nv_data.bin /efs
18.- Now change permissions to all those files inside efs with 0744 by typing: busybox chmod 0744 /efs/FactoryApp/factorymode
Do it with all!!
19.- Now change owner of the directory efs down with: busybox chown 1001.1001 /efs (I think there is a switch to change all at once, but I forgot so I changed all directories and folders inside efs.
11.- in CWM go to advanced and fix permissions.
12.- Boot in recovery mode.
13.- Try to mount efs partition and it works!!! Check with ADB that all your files are there and a lot more.
14.- Reboot the Tablet and the efs is there for good.
15.- Install in your computer EFS Pro and do a backup ofthe efs folder.
16.- I am sure the IMEI is not the good one, but the N8013 is not used as a phone anyway.
Please be careful and backup all the partitions of your tablet before doing this. It worked for my N8013 but I do not know if it will brick yours or if you have another model.
Thanks to:
XDA forum
arizzle.com even I did not use his efs image, but I used the instructions he provided. http://www.arizzle.com/android/gt-n8013/
SPT Team: http://forum.gsmhosting.com/vbb/archive/t-1296409.html
Da-G XDA forum: http://forum.xda-developers.com/showthread.php?t=882039
alvhergon at: http://www.htcmania.com/showthread.php?t=177297
People at community hosting: http://www.communityhosting.net/sgsunlock/i9000.html
Of course EFS Pro, ADB, busybox, ODIN, CWM Recovery developers!!
I hope this serve for somebody with my same problem. I gather all that information, put it together in this post and fixed my two months old tablet!!! Now I can go back to install Ubuntu again
Thanks for reading up to here!!
hey man,
thanks for your tut, my device is n8000 and it doesn't boot due to me installing tablet rom by mistake anyway, i did everything you did except i used .jar root explorer from here in the forums and transfered the files after i mounted it and choose 0p1 , im not sure what went wrong but anyway after that i used the commands to give permission and owner like you but they get wiped after restart, any ideas ?
dieselz said:
hey man,
thanks for your tut, my device is n8000 and it doesn't boot due to me installing tablet rom by mistake anyway, i did everything you did except i used .jar root explorer from here in the forums and transfered the files after i mounted it and choose 0p1 , im not sure what went wrong but anyway after that i used the commands to give permission and owner like you but they get wiped after restart, any ideas ?
Click to expand...
Click to collapse
Geez, I am far from an expert here. What folder/partition gets wiped out? efs? Because searching the web I realized the 0p1 is /system (maybe I am wrong) and 0p3 is /efs.
Did you try " mke2fs /dev/block/mmcblk0p3" or with 0p1? What happened?
Did you try "-w -t ext4 /dev/block/mmcblk0p3 /efs It worked!!" What happened?
I think, those are the most important steps, because it allows you to mount in recovery mode the /efs partition.
Later on, an important step is " cp /data/media/nv_data.bin /efs" but I do not know why?
Of course changing owership...
I am very sorry is not working for you. Please, try it again. I know what frustrating it is!!! I have had my tablet broken for more than two months and by trial and error finally got it working. I could send you the nv_data.bin file if you wanted. However, it will set your serial number to 000000 and I assume a wrong IMEI. But I do not use my tablet as a phone anyway.
I hope it helps!! Thanks for reading!!
nv_data.bin please help!
hey man! i have the same problem!!! i flashed a galaxy tab rom on my note 10.1, can you please post the nv_data.bin link.? i also tried to flash stock rom with odin but it still doesn't boot up
darko454 said:
hey man! i have the same problem!!! i flashed a galaxy tab rom on my note 10.1, can you please post the nv_data.bin link.? i also tried to flash stock rom with odin but it still doesn't boot up
Click to expand...
Click to collapse
Let me search for it and I will send it to you.
tripijb said:
Let me search for it and I will send it to you.
Click to expand...
Click to collapse
There you go!!
Thanks !! But should I reset the binary counter and return it or I'm better just playing with it???
Sent from my SPH-L710 using Tapatalk 2
darko454 said:
Thanks !! But should I reset the binary counter and return it or I'm better just playing with it???
Sent from my SPH-L710 using Tapatalk 2
Click to expand...
Click to collapse
Reset the counter and return it at the last option. Just follow my instructions above and see if you could fix it!!! So far is bricked, isn't it?
Good luck!!!
Well I got it to boot but in factory mode... so I'll follow your instructions ! I'll get back to you. Thanks
Sent from my SPH-L710 using Tapatalk 2
darko454 said:
Well I got it to boot but in factory mode... so I'll follow your instructions ! I'll get back to you. Thanks
Sent from my SPH-L710 using Tapatalk 2
Click to expand...
Click to collapse
Do it step by step!!!! let me know if it worked!!! It took me two months of search to find out the solution I posted!!!
tripijb said:
Do it step by step!!!! let me know if it worked!!! It took me two months of search to find out the solution I posted!!!
Click to expand...
Click to collapse
hey man sorry to bother i cant find text file named factorymode with the letters ON inside??
darko454 said:
hey man sorry to bother i cant find text file named factorymode with the letters ON inside??
Click to expand...
Click to collapse
No bothering at all!!!
Please help
tripijb said:
No bothering at all!!!
Click to expand...
Click to collapse
15.- create a folder inside the /efs/ folder named FactoryApp how do i do that>>???
Im stuck on this step!!
Is this right???
is this right?? please help i don't know what im doing!:crying:
i accidentally put in this command how do i go back??
C:\Android\platform-tools> im a mess please help???
darko454 said:
is this right?? please help i don't know what im doing!:crying:
i accidentally put in this command how do i go back??
C:\Android\platform-tools> im a mess please help???
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2111485
Do I have to do everything again?
Sent from my SPH-L710 using Tapatalk 2
Now what is wrong? Sorry to be a noob
darko454 said:
Do I have to do everything again?
Sent from my SPH-L710 using Tapatalk 2
Click to expand...
Click to collapse
What did i do???
Please help!!!! What should I do next?
Sent from my SPH-L710 using Tapatalk 2
Help Me!!
Hey i seem to do everything correct, untill i get to step 5, witch seems to be missing a step??
In platform-tools folder, what do i open up to get access to the tablet??
I get compleatly lost in step 6, i get a message saying......(in attachments).
I got N8013
darko454 said:
15.- create a folder inside the /efs/ folder named FactoryApp how do i do that>>???
Im stuck on this step!!
Click to expand...
Click to collapse
Geez I forgot, if you are in a PC using ADB use the command window and do mkdir to create a directory.
However, let me take a look at my step by step procedure to put myself in context.
I have been disconnected due an emergency trip, but I will be back in couple of days. Sorry for the late reply!!!

[Q] deleted buil.prop ...... phone still working(i have not rebooted)

hey.... i have deleted build.prop file. when ive gone to rename backup file...........its says that opration failed................it has lost it root access.
ive tried adb push wont work..RO not RW....WHAT TO DO
Adb push to /local/tmp/
Then use root file manager to move and rename
Or Adb shell in then su from there
Thanks
I've restored a backup and your answer is nice.

Categories

Resources