Is it possible to flash a recovery with terminal emulator? - Sprint HTC EVO 4G LTE

I know goo manager uses root permission to flash a recovery while the phone is on. So I was wondering if terminal emulator could do the same. I know this question is probably very noob-ish, but I'm curious.
Sent from my EVO using xda premium

You should be able to with root permission

You think you could enlighten me on the "how to"?
Sent from my EVO using xda premium

Yea its the same as when u do it via command prompt just do su at the start
Sent from my EVO using xda premium

Place the recovery on the root of your sd card. Make sure its not in any folders. Rename the recovery img "recovery.img" without the quotes. Then open up terminal. Type "su" without the quotes. Then when you receive the # sign, then type this
flash_image recovery /sdcard/recovery.img
(and press enter)
you will now get this
#
now type
reboot recovery
and you should boot into your recovery you just flashed.
#Root-Hack_Mod*Always=LTE

Ok, so what I'm trying to do is flash a stock recovery so I can take the ota. Does that sound feasible or am I just dreaming?
Sent from my EVO using xda premium

Jason021680 said:
You think you could enlighten me on the "how to"?
Sent from my EVO using xda premium
Click to expand...
Click to collapse
Be more specific next time, you asked if it was possible not how it was possible or what the relevant commands were.

My mistake
Sent from my EVO using xda premium

Jason021680 said:
My mistake
Sent from my EVO using xda premium
Click to expand...
Click to collapse
Its cool man we all been there. But as om4 posted you should always give exact details on what it is your trying to do or wanting to do. That way you get the best feedback. Also you can use the method I posted above to flash the stock recovery. However if you type the "reboot recovery" command and boot into the stock recovery you will have to hard shut down via power button to exit/reboot I believe. Not a 100% sure as I haven't seen the stock recovery since I first got this phone.
#Root-Hack_Mod*Always=LTE

laie1472 said:
Its cool man we all been there. But as om4 posted you should always give exact details on what it is your trying to do or wanting to do. That way you get the best feedback. Also you can use the method I posted above to flash the stock recovery. However if you type the "reboot recovery" command and boot into the stock recovery you will have to hard shut down via power button to exit/reboot I believe. Not a 100% sure as I haven't seen the stock recovery since I first got this phone.
#Root-Hack_Mod*Always=LTE
Click to expand...
Click to collapse
And it has to be an .img not a .zip right?
Sent from my EVO using xda premium

Yes it has to be an image file

Any idea where I can find a stock recovery .img?
Sent from my EVO using xda premium

adb tools

I'm having trouble getting it to flash though. Keeps saying flash image not found.
Sent from my EVO using xda premium

Did you make sure it was named correctly?? "recovery.img" not "recovery.img.img" without the quotes?? Also did you make sure it's on the "root" of your sd card. As in "not in any folders" ???
#Root-Hack_Mod*Always=LTE

make sure that the file is in the right directory. Just to make sure there is no misunderstanding, you did extract the image file from the archive I linked?

laie1472 said:
Did you make sure it was named correctly?? "recovery.img" not "recovery.img.img" without the quotes?? Also did you make sure it's on the "root" of your sd card. As in "not in any folders" ???
#Root-Hack_Mod*Always=LTE
Click to expand...
Click to collapse
Yeah, I renamed it recovery.img with no quotes. Yup root of the sdcard is where its at.
Sent from my EVO using xda premium

om4 said:
make sure that the file is in the right directory. Just to make sure there is no misunderstanding, you did extract the image file from the archive I linked?
Click to expand...
Click to collapse
Yeah the one that says stock_EVO4GLTE_recovery.img. I renamed it recovery.img and moved it to the root of my sdcard. No dice... Am I typing the command right? flash_image recovery /sdcard/recovery.img
Sent from my EVO using xda premium

Sent from my EVO using xda premium

The first one I tried it with the original name and the second I renamed it recovery.img
Sent from my EVO using xda premium

Related

Is there a way to flash clockworkmod without fastboot?

My bro has not long got a Dell streak.. but has no computer to hook it up to.
Is there any way round flashing with fastboot?
The phone is already rooted.. so I just need to flash the recovery.
Can handle some command line stuff if anyone knows how to do it.
Thanks.
Sent from my Desire HD using XDA App
Bump!
The phone IS ROOTED already... So if I can mount /system I can delete the install-recovery.sh script so the stock recovery won't reflash.
But Rom manager flashes recovery to the wrong place apparently.
Can anyone tell me if 'flash_image' will work
My bro wants a custom Rom bad... But no pc to get him started
Sent from my Desire HD using XDA App
Maybe with terminal emulator, and clockwork on your sd card... Not sure tho, search the forums.
Just a brain storm.... But could I modify the install-recovery.sh script to flash cwm?
Sent from my Desire HD using XDA App
If someone could upload the script from their phone... Id really appreciate it.
Thanks
Sent from my Desire HD using XDA App
Yes it can be done with terminal on streak just make sure you su.
I will post the script for you if i get time
Cool... I knew it was possible.
He's definatley got Su privileges.. so just need to know the appropriate commands for him to type.
Thanks
Sent from my HTC Vision using XDA App
At a quick guess
Name the recovery something like recovery
copy the Recovery to the SD card
Make sure you have a terminal app on the phone
On the phone, Run the terminal application and type su press enter
Note that the terminal's text prompt will change from # to $
If it doesn't, then you haven't "rooted" the phone. Go back and try again!
In the Terminal, type
flash_image recovery /sdcard/recovery.img
when its done reboot the phone
Thats off top of my head but i think its right

[Q] Phone not showing up in list of models when Flashing Clockwork with ROM manager

I've tried searching for other threads about this issue but have found none. I have an Optimus V with ROM manager and anytime I try to Flash Clockwork Recovery Mod a window pops up that instructs me to confirm my phone model. The only problem is that none of the models listed are mine. I picked the first option (the "Huawei Pulse Mini") and it said that it installed correctly, but I still don't know if I'll be able to flash other ROMS correctly.
Summary: How do I get my phone model to show up in the pop up window of Rom Manager when I want to install Clockwork Recovery Mod
Have you tried selecting optimus one from the list?
Sent from my LG-P500 using XDA Premium App
4silvertooth said:
Have you tried selecting optimus one from the list?
Sent from my LG-P500 using XDA Premium App
Click to expand...
Click to collapse
The only choices that show up are:
Huawei Pulse Mini, Dell Streak, Hyawei Pulse, Commtiva Z71 (Boston, Blaze, and more), Geeksphone ONE, Spice MI70o Commtiva Link N700 and more
Same here....i tried flashing it but nothing happens
Sent from my LS670 using XDA Premium App
Well do you flash the cwm made by mik or is there any other cwm recovery for ur phone.
Sent from my LG-P500 using XDA Premium App
Also, under Current Recovery it says Clockwork Mod 2.5.0.7 (it also says this as the latest version). Not sure if that helps or not, but thought I would let everyone know.
You will have to ask your developer for support, the one who made port of recovery for ur phone. I think opcode did that port.....
Sent from my LG-P500 using XDA Premium App
4silvertooth said:
Well do you flash the cwm made by mik or is there any other cwm recovery for ur phone.
Sent from my LG-P500 using XDA Premium App
Click to expand...
Click to collapse
I found the recovery image for the Optimus One and put the .img file on the root of my SD card, but I'm not too sure where to go from there. What do I do with the .img file on my SD card?
ironpirat3 said:
I found the recovery image for the Optimus One and put the .img file on the root of my SD card, but I'm not too sure where to go from there. What do I do with the .img file on my SD card?
Click to expand...
Click to collapse
I don't think it will work try this instead.
http://forum.xda-developers.com/showthread.php?t=1060602
Sent from my LG-P500 using XDA Premium App
4silvertooth said:
I don't think it will work try this instead.
http://forum.xda-developers.com/showthread.php?t=1060602
Sent from my LG-P500 using XDA Premium App
Click to expand...
Click to collapse
Install the .zip from Rom Manager?
EDIT: Downloaded Android SDK and currently installing archives. Once that finishes do I just open an adb shell window and type in the commands that he gives in the opening post?
You can also do all that in terminal emulator app without any sdk. But the command are to be typed should be exact with no mistakes.
Also do search for cwm recovery for your phone there's also another cwm recovery for ur phone that's stable. In terminal emulator app type 'su' at $ prompt than promt changes to # than type all the commands.
$ su
#
Sent from my LG-P500 using XDA Premium App

Stock System Dump

I might get flamed, but it's okay. What are the command lines for doing a system dump on the Note. I've tried performing one, but not having much luck doing it. It could be wrong commands lines. IDK. Im trying to make a stock CWM flashable zip. I would like to start on my own rom. Please no laughing.Lol.
On A Side NOTE(Get it,NOTE)I am still looking(Google-ing)for the info. Thanks
I will send you the dd commands when I get home tonight
Sent from my SGH-I717D using xda premium
pterry30 said:
I will send you the dd commands when I get home tonight
Sent from my SGH-I717D using xda premium
Click to expand...
Click to collapse
Thank you very much.:thumbup:
bigfau said:
I might get flamed, but it's okay. What are the command lines for doing a system dump on the Note. I've tried performing one, but not having much luck doing it. It could be wrong commands lines. IDK. Im trying to make a stock CWM flashable zip. I would like to start on my own rom. Please no laughing.Lol.
On A Side NOTE(Get it,NOTE)I am still looking(Google-ing)for the info. Thanks
Click to expand...
Click to collapse
Code:
dd if=/dev/block/mmcblk0p24 of=/sdcard/system.img
there are other ways to get a dump, like simply getting the content:
Code:
tar czvf /sdcard/system.tgz /system
both commands need root, and they are quite possibly not on the device by default, so you probably need busybox
i don't really recommend the second command, because some other blocks are mounted into the system (like the modem),
so you would get unnecessary data
Thank you very much. :thumbup:
Sent from my SAMSUNG-SGH-I717 using Tapatalk 2
Im getting""dd" is not recognized as an internal or external command, operable program or batch file"
Anyone have any insight as to what I am doing wrong?
Sent from my SAMSUNG-SGH-I717 using Tapatalk 2
You have to type in adb first then the dd commands
Sent from my SGH-I717D using xda premium
In cmd
Sent from my SGH-I717D using xda premium
In Cmd did you switch from c.directory to Androidsdk/tools directory. Then your adb should work ?
Sent from my SGH-I717D using xda premium
pterry30 said:
In Cmd did you switch from c.directory to Androidsdk/tools directory. Then your adb should work ?
Sent from my SGH-I717D using xda premium
Click to expand...
Click to collapse
Thanks buddy. I knew I was missing something. Thank you.
Sent from my SAMSUNG-SGH-I717 using Tapatalk 2
If you can't get it working pm me. I will tell you exactly what to type in to switch directors, I have it written down at home, I always forget myself
Sent from my SGH-I717D using xda premium
cd (directory of choice) lol
cd= change directories
And remember windows uses backslashes for sub directories.
How would I go about extracting apps etc,etc..?
bigfau said:
How would I go about extracting apps etc,etc..?
Click to expand...
Click to collapse
-_-
there should be a few ext4 drivers or mount tools out there,
google, download one that looks good, and mount the image,
then you should have the drive mounted, and you should be able to access/modify the data
bigfau said:
I might get flamed, but it's okay. What are the command lines for doing a system dump on the Note. I've tried performing one, but not having much luck doing it. It could be wrong commands lines. IDK. Im trying to make a stock CWM flashable zip. I would like to start on my own rom. Please no laughing.Lol.
On A Side NOTE(Get it,NOTE)I am still looking(Google-ing)for the info. Thanks
Click to expand...
Click to collapse
That woulds be tits bro !!! A stock cwm flash rom
Sent from my SGH-I717R using xda premium
matt3allen said:
That woulds be tits bro !!! A stock cwm flash rom
Sent from my SGH-I717R using xda premium
Click to expand...
Click to collapse
I'm trying.Lol.I'm stuck at trying to deodex the apks. I try to stay away command prompts.I get confused doing those.Lmao. I use tools like apk manager, AutoApk Tool, AutoDeodex Tool. I'm still trying to get my computer setup back in order.
EDIT: Only half of the apps and jar files deodexed. Any suggestion or pointers?
Bump dump
Sent from my SAMSUNG-SGH-I717 using Tapatalk 2
Does anyone have an already deodexed stock rom that they would be willing to share?
Sent from my SAMSUNG-SGH-I717 using Tapatalk 2

Change LCD density?

Has anyone tried this yet via editing the build prop file? I want to give it a try but some phones don't play nice with changing the density.
Sent from my HTC6435LVW using xda premium
I tried. Wouldn't stick. So gave up lol. I assume that you could make a copy and upload via bootloader.
sent from my rooted DNA
That stinks. Oh well.
Sent from my HTC6435LVW using xda premium
chrisjm00 said:
That stinks. Oh well.
Sent from my HTC6435LVW using xda premium
Click to expand...
Click to collapse
I got it to work. Copy the build.prop file to your computer and make your changes there. Then reboot your phone into recovery (TWRP is what I used), mount System (in TWRP), ADB push the edited file back onto your phone, and then use the TWRP file manager to apply CHMOD 755 onto the file. Then reboot and enjoy.
That last step (CHMOD) may not be necessary. I never tried leaving that step out to confirm one way or the other.
S121Guy said:
I tried. Wouldn't stick. So gave up lol. I assume that you could make a copy and upload via bootloader.
sent from my rooted DNA
Click to expand...
Click to collapse
You can't edit it while booted in android, you need to flash it.
Sent from my HTC6435LVW using xda app-developers app

What am I doing wrong

K so I dled infection. Extracted the boot.img, and put it into a ph98img.zip. I then flashed the rom.. Said install complete and I went to hboot. It doesn't ask for an update or anything.... Then stays on the white HTC screen when I try to reboot..
Sent from my ADR6425LVW using xda app-developers app
Check to make sure your ph98img.zip isn't a zip within a zip. Often times windows hides the extention so it reads ph98img.zip but it's really ph98img.zip.zip
Also you'll need an updater script so the hboot knows what the file is. You can find this by pulling it from a working ph98img.zip like one from an RUU or kernel (joelz's bamf kernel has one)
Sent from my ADR6425LVW using xda app-developers app
Thanks I'll give that a go I have the bamf kernel dled. I just used a template for the ph98img.zip and threw the boot.img in it
Sent from my ADR6425LVW using xda app-developers app
jmez900 said:
Thanks I'll give that a go I have the bamf kernel dled. I just used a template for the ph98img.zip and threw the boot.img in it
Sent from my ADR6425LVW using xda app-developers app
Click to expand...
Click to collapse
Have it on the root of your sd card?
mjones73 said:
Have it on the root of your sd card?
Click to expand...
Click to collapse
Yeah... Idk what's wrong haha. I'm using a mac and things are a little different. Like when I dl a ROM it sends the zip to the trash leaving an unzipped folder on the the screen...
Sent from my ADR6425LVW using xda app-developers app
If you have an ADB folder set up (with fastboot) you should be able to just "fastboot flash boot.img" That would save you a lot of hassle if you remain s-on.
did you try the flux capacitor?
you can ask marty mcfly or doc brown about it...
jmez900 said:
Thanks I'll give that a go I have the bamf kernel dled. I just used a template for the ph98img.zip and threw the boot.img in it
Sent from my ADR6425LVW using xda app-developers app
Click to expand...
Click to collapse
make sure its all caps PH98IMG.zip
Finally got it using the command prompts.. Messing around I flashed it. My noobness to it made it a little difficult but finally got the hang of it
Sent from my ADR6425LVW using xda app-developers app

Categories

Resources