ARCHIVED: [Custom Recovery] Optimus S/ Thunderc-sprint

Status
Not open for further replies.
The "ls" step is not part of the process to getting the custom recovery to go through. It's to check to see if your flash_image is present. Since you were getting the "invalid length" message, you should use the "ls" step to see what that says to see if you need to place the flash_image file onto your SD card...

It says...

# ls /sdcard/flash_image
ls /sdcard/flash_image
flash_image


is that supposed to say that? im sorry for all these questions, im new to this and i appreciate you guys trying to help me.
 
Ok....I got the "cat" step down, i had to extract using es file explorer for some reason. But now my problem is "mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak" it says no such file or directory, and when I first did this step i didnt have a problem. Why do i have bad luck!? :(
 
I skipped that step, and... ta-da!!! i finally got it!!! thank you guys for all your help!!!
 
from my sd card.

I'm pretty sure those are needed to maintain your custom recovery, so I'd keep those files on the card. If you plan on downloading lots of apps or putting lots of music or pictures on your SD card, you should probably upgrade your card so space won't be an issue.
 
  • Like
Reactions: jayej8
from my sd card.

If you are talking about flash_image and the revocery.img file on the root of your sd card, you can remove these as they are only used to flash the recovery from. I hang on to these files on both the sd card and my computer. But that is personal preference. They are not needed for the recovery to operate after you flash.
 
Problems like alot of others... nothing working

Hey everyone, I need some help. Heres what I've done:
I used z4root to root the device.
Used ES File explorer to go in.
Copied the flash_image and recovery over properly.

1st try was with the files still zipped and after
"su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
cat /sdcard/flash_image > /system/bin/flash_image"
I got the file not found error. tried this several times

So after reading everything thru here I went into ES File explorer and extracted the zip and copied the file on the root of the SD card.

2nd Option I did the process again
"su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
cat /sdcard/flash_image > /system/bin/flash_image"
and got the invalid length error

I went thru the process of using z4root again to re-root the phone and try it over again. Same problems

Ive done this with debugging turned on and off.
Im using terminal emulator on the phone for the commands

after doing
su
/sd/card/flash_image

I get /sdcard/flash_image: permission denied

It says my phone is rooted properly and Ive gone thru all the steps. What other options or apps do I need to get this working?
 
Hey everyone, I need some help. Heres what I've done:
I used z4root to root the device.
Used ES File explorer to go in.
Copied the flash_image and recovery over properly.

1st try was with the files still zipped and after
"su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
cat /sdcard/flash_image > /system/bin/flash_image"
I got the file not found error. tried this several times

So after reading everything thru here I went into ES File explorer and extracted the zip and copied the file on the root of the SD card.
Ui
2nd Option I did the process again
"su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
cat /sdcard/flash_image > /system/bin/flash_image"
and got the invalid length error

I went thru the process of using z4root again to re-root the phone and try it over again. Same problems

Ive done this with debugging turned on and off.
Im using terminal emulator on the phone for the commands

after doing
su
/sd/card/flash_image

I get /sdcard/flash_image: permission denied

It says my phone is rooted properly and Ive gone thru all the steps. What other options or apps do I need to get this working?

First I want to ask if you're on an optimus S if so shouldn't you be mounting /device/block/mtdblock5 /system?
if not,

Second your flash_image should have no file extension if it does its not been extracted example if its called flash_image.zip you need to unzip it before this will work. EDIT- sorry i posted this on my cell and didn't realize that you already did extract it

the last part

su
/sd/card/flash_image (you meant /sdcard/flash_image right?)

thats not the correct way to use this file which is why you got that response

download the attached file, and just delete the .zip, it's only there to get through the upload manager here,

then use instructions as posted on the front page
 
Last edited:
is there any way to flash this without having to do all the commands?

Yep. Assuming you are already rooted, download the OSCC 2.0 alpha and install it. In OSCC, go to Software Management and click Install Automation Tools. There will be a bunch of Superuser prompts. Then you may install any recovery kernel in Recovery Management.
 
Yep. Assuming you are already rooted, download the OSCC 2.0 alpha and install it. In OSCC, go to Software Management and click Install Automation Tools. There will be a bunch of Superuser prompts. Then you may install any recovery kernel in Recovery Management.

That's kind of cool, lazy but cool.
 
Being lazy gets nothing done at all. Efficient is getting more done faster. Therefore OSCC is efficient not lazy :p

If efficiency is not learning how to do it the right way... I'm glad there's an easy way to do this, i think knowledge of adb commands is much more important. Using your the oscc method may be easier and faster, it causes issues like the other day when someone posted "where do you learn adb commands?". Some things can only be done with adb so where possible try to promote the use of it first. Its okay to strike a few keys now and then too, don't try and lean on GUIs too much.
 
Status
Not open for further replies.

Latest posts

Trending Posts

Forum statistics

Threads
956,397
Messages
6,968,079
Members
3,163,539
Latest member
kimlien