• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [GUIDE] How to Flash Recovery AND Setup AndroidSDK (Revised)

You missed the part where you're supposed to change directories. At the command prompt type CD C:\android-sdk-windows\platform-tools or whichever directory you installed the SDK to. Then type adb shell.
 
You missed the part where you're supposed to change directories. At the command prompt type CD C:\android-sdk-windows\platform-tools or whichever directory you installed the SDK to. Then type adb shell.


Or you can naviage to the platform tools folder,hold shift + right click and select,open command prompt here ;)
 
I'm Having alot of problems. Im using Terminal Emulator. cuz i cant seem to get that other thing working on my computer... so i need help lol.. i realy wanna use a different rom
 
I'm Having alot of problems. Im using Terminal Emulator. cuz i cant seem to get that other thing working on my computer... so i need help lol.. i realy wanna use a different rom

If you downloaded the platform tools add on,inside android sdk, all you have to do is navigate to the platform tools folder,open it up,hold shift + right click. Then select open command prompt here..then copy and paste the commands.
 
If you downloaded the platform tools add on,inside android sdk, all you have to do is navigate to the platform tools folder,open it up,hold shift + right click. Then select open command prompt here..then copy and paste the commands.
That is a handy bit of information. I will remember that one. Thank you
 
I'm Having alot of problems. Im using Terminal Emulator. cuz i cant seem to get that other thing working on my computer... so i need help lol.. i realy wanna use a different rom

go back to the guide and if you installed platform tools inside android sdk,just skip to step 1.5 and start from there.i just revised my guide to be alot easier to follow..let me know if this helped you..and most of all,if it did,HIT THE THANKS BUTTON :)
 
i just revised my GUIDE with the shift+right click method..did that work for you?? cuz i did for me,but i already have it setup..
I have had mine done for quite some time, I have never had a problem with the command prompt and finding directory I needed, but this little time saving tip saves both typing and time.:D
 
Apparently, I didn't see that there was a whole other page in this post. Therefore, the question I was answering had already been taken care of. Whoops. Lol
 
That error usually happens when you skip the first line:
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock5 /system

Thank you, i finally got past the error i was getting after putting (cat /sdcard/flash_image > /system/bin/flash_image) However when i move on to put (flash_image recovery /sdcard/recoveryimage.img); i get "flash_image: permission denied"
 
Thank you, i finally got past the error i was getting after putting (cat /sdcard/flash_image > /system/bin/flash_image) However when i move on to put (flash_image recovery /sdcard/recoveryimage.img); i get "flash_image: permission denied"

And also, am i supposed to be getting any feed back when correctly entering in (cat /sdcard/flash_image > /system/bin/flash_image)?
 
Anytime you enter a line correctly, it will repeat the line right back at you. If it isn't spitting it back, something isn't right.
 
I still cant get this to work. I cant tell you how many times ive attempted to do this. Any words of wisdom would be appreciated. Thank you in advance
 
I still cant get this to work. I cant tell you how many times ive attempted to do this. Any words of wisdom would be appreciated. Thank you in advance
Your output in CMD/ADB should look like this minus the error at the end:
vghicn.jpg


Unfortunately up to this point there has not much reason for it to fail other than user error as long as it is a fresh boot and ADB was given SuperUser permission.
 
Your output in CMD/ADB should look like this minus the error at the end:
vghicn.jpg


Unfortunately up to this point there has not much reason for it to fail other than user error as long as it is a fresh boot and ADB was given SuperUser permission.

Would it still look like this using the terminal?
 
OK...
cat /sdcard/flash_image > /system/bin/flash_image

hit enter,then type the below line

flash_image recovery /sdcard/recoveryimage.img

Once you enter that command,your all done...

...mount -o remount,rw -t yaffs2 /dev/block/mtdblock5 /system

cat /sdcard/flash_image > /system/bin/flash_image

chmod 755 /system/bin/flash_image

mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak

mount -o remount,ro -t yaffs2 /dev/block/mtdblock5 /system

flash_image recovery /sdcard/recovery.img...

Hey Mike, as noted in the below post (oops, I meant to post the other quote first, then this one), I ended up having to use the term on my wifes phone. However, following your lead in the 1st part, I couldn't get r/w privileges. What I ended up doing was typing all the commands from the 2nd part and it worked flawlessly. Her phone now has the custom recovery installed and I have booted into it and made a nand backup already. Thanks for the guide, I was able to make it work for my wife's phone.
 
Anytime you enter a line correctly, it will repeat the line right back at you. If it isn't spitting it back, something isn't right.

Hey Darnell, I just did this yesterday on my wife's phone (did mine a few months ago) and ended up having to use just the terminal on her phone. When I was trying to install the Android SDK on her Windows 7 computer, I also had to install the JavaDK. For some reason or other, I couldn't get it installed, so never was able to get the Android SDK installed either. I then tried it on mine (remember, I had set up recovery on my phone previously). I kept getting the following: error: more than one device and emulator. So, I decided to just do her phone from the term I had installed on it. All that to say, that when using the term, you don't get the repeat back to you like you would in the adb shell.
 
Hey Darnell, I just did this yesterday on my wife's phone (did mine a few months ago) and ended up having to use just the terminal on her phone. When I was trying to install the Android SDK on her Windows 7 computer, I also had to install the JavaDK. For some reason or other, I couldn't get it installed, so never was able to get the Android SDK installed either. I then tried it on mine (remember, I had set up recovery on my phone previously). I kept getting the following: error: more than one device and emulator. So, I decided to just do her phone from the term I had installed on it. All that to say, that when using the term, you don't get the repeat back to you like you would in the adb shell.
Interesting find. I plan to get a new comp in a few weeks that will be Win7 64bit. I may have to keep my XP box in a corner somewhere until Win7 complications get worked out.
 
Interesting find. I plan to get a new comp in a few weeks that will be Win7 64bit. I may have to keep my XP box in a corner somewhere until Win7 complications get worked out.

Our home computer is Windows 7 64bit. My work laptop is WinXP SP3, and that's where I have worked on my phone. I tried the 32 bit version of the JDK, and it wouldn't run (I know that some 32bit programs will run on 64 bit os). The JDK would just hang on the progress indicator during install. I plan to try it again sometime, so I'll keep you posted.

Update: So I re-downloaded the JDK today and this time I just let it run it's course. It took an extremely long time, but it finally installed. Then I went and ran the installer for the Android SDK. It said I needed the JDK. Now I was frustrated 'cause I had just spent an hour to install the JDK. After a couple of times of this, I finally googled the problem and found a solution. Apparently, for some reason on W7 64 bit, when you get the notice saying that Android SDK requires the JavaDK, if you hit the back button, and then hit the next button it'll work. So I followed that advice and low and behold it did work. I now have the Android SDK installed on my wife's computer.
 
Our home computer is Windows 7 64bit. My work laptop is WinXP SP3, and that's where I have worked on my phone. I tried the 32 bit version of the JDK, and it wouldn't run (I know that some 32bit programs will run on 64 bit os). The JDK would just hang on the progress indicator during install. I plan to try it again sometime, so I'll keep you posted.
For just using adb you do not need to install any of that. you need in one folder these files

adb%20folder.jpg
 
none of those are installed
they are just files in a folder, I can run them from my back up drive, in fact I do.


A while back, when I was first learning how to flash the getitnowmarketing recovery, I was directed to install just the Android SDK tools and the and the Platform tools. Then I could run ADB shell under to push commands to the phone, such as doing all the commands necessary to flash the recovery.
 
Back
Top Bottom