Welcome to the Android Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Page 1 of 4 1234 LastLast
Results 1 to 25 of 83
Like Tree11Likes
  1. Thread Author  Thread Author    #1  
    LeslieAnn's Avatar
    AC Forums Android Developer

    Posts
    2,893 Posts
    ROM
    Harmonia 3

    Default [Guide]Flashing recoveries through terminal emulator (very easy)

    This is a very fast and easy method to flash a recovery from inside your phone. Probably one of the fastest easiest methods out there.

    Note that you need to be rooted first.


    Preparation:
    You need to put the recovery onto the root of your Sdcard.
    Optional but highly recommended, rename the recovery "a.img", minus the quotes of course. This is easier to do on your computer and means a less typing on the phone. If you don't rename it, you will have to type out the entire name in step 2. The same applies if you have it in a sub-directory.

    1. Open your emulator

    2. type in, pressing enter after each line:
    su
    flash_image recovery /sdcard/a.img

    3
    . If you want to boot straight into recovery, type:
    reboot recovery
    Last edited by LeslieAnn; 06-18-2011 at 04:26 PM.

    Harmonia Developer for Optimus V, Optimus Elite, One V, Evo V, Evo Shift, Evo V
    Donate here if you feel inclined to brighten my day.
    Thanked by 24:
    + Show/Hide list of the thanked
    jru, RT78, drezliok and 6 others like this.
  2. #2  
    00_wrath_00's Avatar

    Posts
    657 Posts
    ROM
    Running Quattrimus ICS

    Default

    Should be a STICKY!

    Sent from my VM670 using Tapatalk
  3. #3  
    Takenover83's Avatar

    Posts
    506 Posts
    Global Posts
    507 Global Posts
    ROM
    Changes to Often

    Default

    It needs added to the reference guide that mmarz put together. These commands can also be run in a adb shell of-course.
    SugarSync (5GB Cloud) Referral Link. - We each get 500MB extra.
    Guide to Play MP4's from the Cloud. Guide to Free VOIP using Google Voice and Groove IP.
  4. #4  
    00_wrath_00's Avatar

    Posts
    657 Posts
    ROM
    Running Quattrimus ICS

    Default

    Quote Originally Posted by Takenover83 View Post
    It needs added to the reference guide that mmarz put together. These commands can also be run in a adb shell of-course.
    I believe it is I thought I seen it there last nignt

    Edit it is on mmarz guide.
    Sent from my VM670 using Tapatalk
  5. Thread Author  Thread Author    #5  
    LeslieAnn's Avatar
    AC Forums Android Developer

    Posts
    2,893 Posts
    ROM
    Harmonia 3

    Default

    Quote Originally Posted by 00_wrath_00 View Post
    I believe it is I thought I seen it there last nignt

    Edit it is on mmarz guide.
    Sent from my VM670 using Tapatalk
    He referenced a thread where it was told, not this tutorial.

    Harmonia Developer for Optimus V, Optimus Elite, One V, Evo V, Evo Shift, Evo V
    Donate here if you feel inclined to brighten my day.
  6. #6  
    DroidXcon's Avatar

    Posts
    11,645 Posts
    Global Posts
    11,775 Global Posts
    ROM
    Stock for now

    Default

    is this a optimus specific command or is it universal?
    If i've made life easier buy me a Macchiato
  7. #7  
    00_wrath_00's Avatar

    Posts
    657 Posts
    ROM
    Running Quattrimus ICS

    Default

    Quote Originally Posted by LeslieAnn View Post
    He referenced a thread where it was told, not this tutorial.
    My mistake LeslieAnn.

    Sent from my VM670 using Tapatalk
  8. Thread Author  Thread Author    #8  
    LeslieAnn's Avatar
    AC Forums Android Developer

    Posts
    2,893 Posts
    ROM
    Harmonia 3

    Default

    Quote Originally Posted by DroidXcon View Post
    is this a optimus specific command or is it universal?
    This works on any Android to my knowledge, and it's certainly nothing new.

    Harmonia Developer for Optimus V, Optimus Elite, One V, Evo V, Evo Shift, Evo V
    Donate here if you feel inclined to brighten my day.
  9. #9  
    picasticks's Avatar

    Posts
    136 Posts
    ROM
    picarom+picasticks kernel

    Default

    Quote Originally Posted by DroidXcon View Post
    is this a optimus specific command or is it universal?
    The only thing it requires is that the binary program flash_image has been added to your phone. You probably added it when you rooted the phone (or it's part of your ROM).

    However, if you get an error message that this command is not found, you can do this:

    Code:
    find / -name flash_image
    And it will print the full pathname of flash_image. i.e. if it prints "/bin/flash_image" then you can just substitute that in the original command.

    But if you don't have flash_image installed anywhere, you can download it from one of the threads here and put in on your phone. i.e. if you've copied it onto /sdcard and want to put it in /system/bin, do this:

    Code:
    mount -o rw,remount /dev/block/mtdblock5 /system  # remount /system rw
    cp /sdcard/flash_image /system/bin/flash_image    # copy flash_image to /system/bin
    chmod 755 /system/bin/flash_image                 # chmod flash_image executable
    mount -o ro,remount /dev/block/mtdblock5 /system  # remount /system ro
    Thanked by:
  10. #10  

    Default Re: [Guide]Flashing recoveries through terminal emulator (very ea

    Is it possible to put flash_image in system/bin with a file explorer app once you have root or is there something I'm missing? That seems like a pretty simple way of doing it.
  11. #11  

    Default Re: [Guide]Flashing recoveries through terminal emulator (very ea

    That's funny, I was just thinking I need to copy the terminal emulator process to flash recovery, so I can just paste it when I need to explain it. I'm no genius like some of you, but that's one thing I can explain to people, and I like to do what I can to help
  12. #12  
    JerryScript's Avatar
    Daydream Believer

    Posts
    2,058 Posts
    ROM
    Victorious

    Default Re: [Guide]Flashing recoveries through terminal emulator (very ea

    Quote Originally Posted by bigcat73 View Post
    Is it possible to put flash_image in system/bin with a file explorer app once you have root or is there something I'm missing? That seems like a pretty simple way of doing it.
    You can move it that way, but you still need to use Terminal or adb to give the file the proper permissions:

    adb:
    adb shell chmod 755 /system/bin/flash_image

    Terminal:
    su
    chmod 755 /system/bin/flash_image
    Thanked by:
  13. #13  

    Default Re: [Guide]Flashing recoveries through terminal emulator (very ea

    Quote Originally Posted by JerryScript View Post
    You can move it that way, but you still need to use Terminal or adb to give the file the proper permissions:

    adb:
    adb shell chmod 755 /system/bin/flash_image

    Terminal:
    su
    chmod 755 /system/bin/flash_image

    Awesome, thanks!
  14. #14  
    dlaxtn2's Avatar

    Posts
    24 Posts
    ROM
    IHO

    Default Re: [Guide]Flashing recoveries through terminal emulator (very ea

    i tried the steps as listed and got this message???
    usage: flash_image partition file.img
    i tried that syntax and got error -1
    what did i do wrong
  15. Thread Author  Thread Author    #15  
    LeslieAnn's Avatar
    AC Forums Android Developer

    Posts
    2,893 Posts
    ROM
    Harmonia 3

    Default Re: [Guide]Flashing recoveries through terminal emulator (very ea

    Rename the rile to remove the space in the name.

    Harmonia Developer for Optimus V, Optimus Elite, One V, Evo V, Evo Shift, Evo V
    Donate here if you feel inclined to brighten my day.
    Thanked by:
    dlaxtn2 likes this.
  16. #16  
    dlaxtn2's Avatar

    Posts
    24 Posts
    ROM
    IHO

    Default Re: [Guide]Flashing recoveries through terminal emulator (very ea

    now it says failed with error -1 and cant find partition after i renamed the file
  17. #17  
    dlaxtn2's Avatar

    Posts
    24 Posts
    ROM
    IHO

    Default Re: [Guide]Flashing recoveries through terminal emulator (very ea

    what partition is it refeering too
  18. #18  
    fenrix's Avatar

    Posts
    210 Posts
    ROM
    In Progress

    Default

    hmm, I do cat /proc/mtd
    you should see "recovery"
    I change file permissions in esexplorer too. I can long press in terminal to paste in windows.
    if you need to reenter a command use control (vol-up[for me]) + w which is like pressing up to go through previous commands.
  19. #19  
    fenrix's Avatar

    Posts
    210 Posts
    ROM
    In Progress

    Default Re: [Guide]Flashing recoveries through terminal emulator (very ea

    error -1 you are not typing partition type correctly prolly. do not use quotes:
    flash_image recovery /sdcard/yourfile.img
  20. #20  
    fenrix's Avatar

    Posts
    210 Posts
    ROM
    In Progress

    Default Re: [Guide]Flashing recoveries through terminal emulator (very ea

    backup via cat /dev/mtd/mtd2 > /sdcard/file.img
  21. Thread Author  Thread Author    #21  
    LeslieAnn's Avatar
    AC Forums Android Developer

    Posts
    2,893 Posts
    ROM
    Harmonia 3

    Default Re: [Guide]Flashing recoveries through terminal emulator (very ea

    Quote Originally Posted by fenrix View Post
    error -1 you are not typing partition type correctly prolly. do not use quotes:
    flash_image recovery /sdcard/yourfile.img
    oops, yeah I missed that.

    Harmonia Developer for Optimus V, Optimus Elite, One V, Evo V, Evo Shift, Evo V
    Donate here if you feel inclined to brighten my day.
  22. #22  
    dlaxtn2's Avatar

    Posts
    24 Posts
    ROM
    IHO

    Default

    I haven't used quotations and I still get that error

    Sent from my LG-VM670 using Tapatalk
  23. #23  
    fenrix's Avatar

    Posts
    210 Posts
    ROM
    In Progress

    Default

    what do you see when you type cat /proc/mtd
  24. #24  
    fenrix's Avatar

    Posts
    210 Posts
    ROM
    In Progress

    Default Re: [Guide]Flashing recoveries through terminal emulator (very ea

    are you su?
    you see #?

    i.e.
    sh-3.2$ export PATH=/data/local/bin:$PATH
    sh-3.2$ flash_image recovery /sdcard/a.img
    flashing recovery from /sdcard/a.img
    failed with error: -1
    sh-3.2$
  25. #25  
    fenrix's Avatar

    Posts
    210 Posts
    ROM
    In Progress

    Default Re: [Guide]Flashing recoveries through terminal emulator (very ea

    type su and repeat as sub-user
Page 1 of 4 1234 LastLast

Posting Permissions