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.
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:
flash_image recovery /sdcard/a.img
3. If you want to boot straight into recovery, type:
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:
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:
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
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.