1. Check out our companion app, Forums for Android! Download from Google Play

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

Discussion in 'Android Devices' started by mikekelso421, Jun 5, 2011.

  1. OK Guys,here is a easy guide on how to flash a recovery image to your ALREADY ROOTED android phone using an app called TERMINAL EMULATOR.this is very easy if you follow my directions without mistake. (terminal emulator is case sensitive,so ONLY use capital letters if there is a capital letter in the name of your recovery image.if you follow my directions,this wont matter)

    you will need to be rooted already or this wont work.
    download terminal emulator off the market.
    Download the Recovery Image and Flash Image.

    step 1:name your recovery image, "recoveryimage" for simplicity sake,and place it on the root of your sd card. (root of sd means,dont put it into a folder) ALSO,place the FLASH IMAGE on the root of SD also.

    step 2: open terminal emulator and type "su".(do not include quotation marks)
    you will get the superuser request pop-up.hit allow.then you should see a # appear.

    step 3:type this exactly how i type it.if there seems to be a space,there is one.

    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..to get into recovery,power off the phone.hold home,vol down and power until recovery shows up..hope this helps and remember,hit the THANKS button!:D

    Now if the terminal emulator method isnt working for you,try it this way...

    You will need to still download the recovery and flash.img and place it in the root of the SD card (meaning not in any folders)

    1. Install android SDK..after UNZIPPING IT TO YOUR C DRIVE,open the exe. once it opens,it will ask to install optional packages,DENY ALL EXCEPT PLATFORM TOOLS...after the PLATFORM TOOLS is done installing,close out everything.

    1.5. Navigate to the android-sdk-windows/platform tools/ folder..hold shift then right click inside the platform-tools folder..select "open command window here".when it opens,type "adb shell" then hit enter..if you get a $ symbol,skip to step 5. otherwise resume to the next step.

    2.now that you have the platform tools installed,go to the start menu,right click on my computer,then select properties. on the left side of the screen,select "advanced system settings". A window will pop up and at the bottom of it you will see "environmental variables"..select it.. now under system variables,scroll down to "path"..select "path" and hit the "edit" button...

    3.Now,(WITHOUT ALTERING THE EXISTING CHARACTERS THAT ARE ALREADY THERE) COPY+PASTE the below string into the END of the "path" section.

    ;C:\android-sdk-windows/platform-tools;

    4.now hit save and exit out of every thing..hit the start button and in the search bar at the bottom,type,"cmd" and hit enter.the command prompt will open.now when it opens do the following..

    type- adb (hit enter and a bunch of text should appear and scroll down the screen)

    type-adb shell (it should now say *daemon not running,starting it now on port 5017*,then under it, it should say *daemon started successfully*).if your phone is not plugged it,after daemon started it will say,error device not found..thats normal..if your phone IS plugged in,after daemon started,it should display a $ symbol. if you got the $,then go to the next step.....if you still have devices not found,plug in your phone with usb debugging ENABLED (its in settings/applications/development/).once its plugged in,enter "adb shell",hit enter,now you should have $.

    5.type "su" .then your phone should ask for superuser permission (make sure the screen is on) hit allow.now instead of a $,you should now have a #...now go to the last step.

    6.copy and paste the following commands into the terminal,(assuming the flash.img and the recovery.img is on the root of the sd card)


    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

    once you hit enter after the LAST command,close everything out,unplug your phone,power it off..now while off,hold home+vol down+power,until recovery pops up (about 10 seconds-ish)

    here is the link to the RECOVERY IMAGE AND FLASH IMAGE for the Optimus M.

    Make sure you download the correct version for your phone. :)
     

    Advertisement

    gmnowels, tetsu, brugboii and 6 others like this.
  2. new optimus

    new optimus Well-Known Member
    313

    Mar 10, 2011
    4,199
    1,454
    313
    Jax Fl
    The only thing I dont like about this? typing it all out:D
    when you do it using adb on the computer just copy paste everything :eek:
     
  3. t3084

    t3084 Well-Known Member
    43

    Feb 6, 2011
    327
    28
    43
    Tustin, CA
    you guys who post here most often should look into gscripts,S4L and other scripting apps. you can make some nice little packages to help others :)
     
  4. blaxican25

    blaxican25 Well-Known Member
    213

    Mar 23, 2011
    1,520
    730
    213
    Another planet Far Away
    Question if you made nandroid backups with joneidy's recovery can you restore them with this one?
    and do you just flash the new recovery over the old one?
     
  5. Yea flash right over. And I am pretty sure the nandroids will work. Make a new one just in case :)
     
  6. blaxican25

    blaxican25 Well-Known Member
    213

    Mar 23, 2011
    1,520
    730
    213
    Another planet Far Away
    is it better then the other recovery some how?
     
  7. Cbelflower321

    Cbelflower321 Well-Known Member
    16

    Feb 14, 2011
    75
    5
    16
    College Student
    Cocoa, FL
    It looks cleaner and you can scroll through all of the directories on your sd card, as compared to before when you only had certain ones.
     
  8. blaxican25

    blaxican25 Well-Known Member
    213

    Mar 23, 2011
    1,520
    730
    213
    Another planet Far Away
    i did it flashed it like this in cmd

    1. cd C:\OptimusRoot\android-sdk_r10-windows\android-sdk-windows\platform-tools
    2. adb shell
    3. su
    4. flash_image recovery /sdcard/recovery-RA-optm-2.2.1-GNM.img
    done reset phone and boot into recovery
     
  9. t3084

    t3084 Well-Known Member
    43

    Feb 6, 2011
    327
    28
    43
    Tustin, CA
    does it fix mounting the sd-ext partition?
     
  10. Aplus

    Aplus Well-Known Member
    113

    Dec 12, 2010
    653
    255
    113
    Bay Area

    It did for me.
     
  11. afjcxxx

    afjcxxx Member
    5

    May 25, 2011
    7
    0
    5
    it didnt work gave me an error msg saying

    flash_image not found??

    HELP!!
     
  12. joneidy

    joneidy Well-Known Member
    88

    Jan 15, 2011
    307
    376
    88
    Computer Technician; Currently Developing for Andr
    Methuen, MA
  13. What rom are you running right now?also,did u type it exactly how it is supposed to be?
     
  14. blaxican25

    blaxican25 Well-Known Member
    213

    Mar 23, 2011
    1,520
    730
    213
    Another planet Far Away
    type it in like this

    flash_image recovery /sdcard/recovery-RA-optm-2.2.1-GNM.img
     
  15. hand_roid

    hand_roid New Member
    5

    Jun 18, 2011
    2
    0
    5
    I'm having the same issue..i get "flash_image not found"..can anyone help? typed it exactly how it is with spaces n all.
     
  16. Flowsick180

    Flowsick180 Member
    5

    Jun 18, 2011
    5
    0
    5
    I get the same error. I flashed with Gingerbreak and tried flashing via adb and terminal emulator. I know that I am doing this right because I have been flashing ROMS on my Backflip for over a year including CM7. I'm not sure whats going on and any help would be appreciated, thanks.

    BTW, tried every recovery.img on this Optimus M Forum.
     
  17. hand_roid

    hand_roid New Member
    5

    Jun 18, 2011
    2
    0
    5
    Anybody have a clue how to fix this? Please..many thanks
     
  18. joneidy

    joneidy Well-Known Member
    88

    Jan 15, 2011
    307
    376
    88
    Computer Technician; Currently Developing for Andr
    Methuen, MA
    Guys please read this thread it shows you exactly what to do. The error is because the flash_image is not on the phone. You need it in order to flash recovery. Just follow the steps on the above guide. You can type the commands on cmd or terminal emulator.

    Hope this helps

    PS. I will have to tell mikekelso to update his guide with the right steps.
     
    mikekelso421 likes this.
  19. Sorry about that Joneidy..lol i made this thread quickly after another member asked me to walk them through how to do it..that way i could reduce the amount of PM's and Gchat convo's i was getting..lol thanks for the advice!! and BTW i appreciate all your help/hard work youve done around the forums! we need more members like yourself! :D
     
    joneidy likes this.
  20. HAZEGOTJUTWIST

    15

    Jun 23, 2011
    12
    0
    15
    i think i have a problem im getting a flash_image: not found
     
  21. blaxican25

    blaxican25 Well-Known Member
    213

    Mar 23, 2011
    1,520
    730
    213
    Another planet Far Away
    did you put the recovery on your sd card ?

    when you enter the command it should look like this

    flash_image recovery /sdcard/recovery-RA-optm-2.2.1-GNM.img
     
  22. Darnell0216

    Darnell0216 Well-Known Member
    93

    Did you extract the file? A lot of people are just putting flash_image.zip on their SD card. You have to extract the actual "flash_image" file from the zip and place that file on your SD card.
     
  23. new optimus

    new optimus Well-Known Member
    313

    Mar 10, 2011
    4,199
    1,454
    313
    Jax Fl
    Dont forget you also need to type in the ---.img at the end, it will not see it if you forget that.
     
  24. HAZEGOTJUTWIST

    15

    Jun 23, 2011
    12
    0
    15
    I extracted it but the command I put was the one at the beginning of this guide maybe that's whats wrong, I'll try that command and see if It works thanks for that assist
     
  25. thats probably because you may NOT have changed the RECOVERY IMAGE NAME. if you didnt rename it it recoveryimage.img,its not going to work..just a thought..lol :)
     
Tags:

Share This Page

Loading...