FlashRecovery via terminal? - Fascinate General

Ok, so going from G1s and MyTouch phones to the fascinate, I've already rooted to use a tether app. Now I rooted using my moms pc cuz I sold mine after I found I never used it over 2 years ago. I've been able in the past to just flash a recovery image using terminal directly from my phones in the past, but I've not seen anyone in the development section flash the recovery this way, its all about adb push.
So my question is has anyone tried to flash the recovery image this way? If it can't be done, why not?
Specifically something along these lines:
Copy recovery.img to the root of your sdcard
start the terminal app
$su
#flash_image recovery /sdcard/recovery.img
#reboot recovery
Has this been changed in the Galaxy S phones?

Related

Root Nexus One on a Mac/Linux/Windows

Hi guys. I published a step by step guide for all the newbies (I had a tough time the first time. Slightly different combination but it works! Also flashed the custom recovery image!
http://ilikemygooglephone.com/2010/...-and-root-google-nexus-one-mac-windows-linux/
This tutorial on rooting and flashing the RA recovery rom is THE BOMB!
Followed all the steps and now I too have gone to the dark side, and eaten some cookies....
Nice work.
Great! Love it!
This how I REroot Android in my N1.
Needs:
1) RA recovery image v2.0
2) fastboot
3) adb
1) Set to bootloader
Code:
adb reboot-bootloader
2) Boot RA-recovery 2.0
Code:
fastboot boot /path/to/recovery-RA-nexus-v2.0.0.img
Yes, it only boot the recovery image in memory.
2a) If you have RA already, then just boot the recovery
3) RA: Mount -> mount /system
4) Change permission /system/bin/su to 4755
Code:
adb shell 'chmod 4755 /system/bin/su'
5) Reboot, and enjoy your rooted Android.
Tested, on FRG83D, FRG83G and GRI40 stocks
Good luck.
Thank you.
Does it have to be 2.0.0? or can it be any of the RA recoveries above 2.0.0?
bahathir said:
This how I REroot Android in my N1.
Needs:
1) RA recovery image v2.0
2) fastboot
3) adb
1) Set to bootloader
Code:
adb reboot-bootloader
2) Boot RA-recovery 2.0
Code:
fastboot boot /path/to/recovery-RA-nexus-v2.0.0.img
Yes, it only boot the recovery image in memory.
2a) If you have RA already, then just boot the recovery
3) RA: Mount -> mount /system
4) Change permission /system/bin/su to 4755
Code:
adb shell 'chmod 4755 /system/bin/su'
5) Reboot, and enjoy your rooted Android.
Tested, on FRG83D, FRG83G and GRI40 stocks
Good luck.
Thank you.
Click to expand...
Click to collapse
A question for you, if it's possible to simply just change the permission of the su file on the phone, why do most auto root zip's come with an su file of their own?
Could they not just run the script above?
this whole procedure thing ... do stock users like myself lose anything? Like, does it wipe data or does it simply root and nothing at all changes?
You can never tell with these procedures... half wipe the phone...
I haven't tested it, but from the steps listed above (by bahathir) you won't lose any data.
All he's doing is getting you to boot into fastboot mode (power on the phone while pressing the trackball), and then loading the custom recover into temporary memory.
Then, the system folder is mounted and the required permissions are applied to the su file. Once that's done, you reboot your phone and nothing else changes.
The question that I had above though, is that I've not seen this method used before. Most one-click root methond replace the su file (requiring you to flash a zip file from custom recovery).
ahh too bad it doesn't work. maybe a 2.3.3 thing, but I just tried unlocking my bootloader and it says I'm missing AdbWinApi.dll from my PC ... but it's clearly there.
I have the most up-to-date Android SDK packages. I've used them before to root my nexus without a hitch...
SU should be present on the system, and the method above takes it for granted. Thus it's for RErooting. Rooting methods bring the SU - they don't care if there's one on the system, assuming that there isn't.
On the other hand, I'm completely unsure that "fastboot boot recovery.img" will work on custom image and locked bootloader. If it's the case - this is the most overlooked and bulletproof rooting method for Nexus. But I doubt it's the case.
Here's a n00b question. I have an unlocked boot loader and had previously rooted my phone using superoneclick. I wiped all the data before moving to stock gingerbread since I was on CM7 nightlies before. So there is no "su" in my phone. I get the obvious error:
c:\android-sdk-windows\platform-tools>adb shell 'chmod 4755 /system/bin/su'
/sbin/sh: chmod 4755 /system/bin/su: not found
when I try to run the steps listed here. Any ideas how to get the 'su' on my phone?
I guess you're executing "rerooting guide". Well, you can stop now, since there is no SU.
Flash it on your phone. That would be the obvious solution. Running unlocked bootloader and custom recovery, not really hard to do.
When you're doing things you don't fully understand, sometimes you go in extremely awkward ways to accomplish simple tasks. Having unlocked bootloader, why are you bothering with those guides? Reboot to fastboot, flash custom recovery, flash SU package in recovery, reboot. That would be all. Hard? not really.
Jack_R1 said:
I guess you're executing "rerooting guide". Well, you can stop now, since there is no SU.
Flash it on your phone. That would be the obvious solution. Running unlocked bootloader and custom recovery, not really hard to do.
When you're doing things you don't fully understand, sometimes you go in extremely awkward ways to accomplish simple tasks. Having unlocked bootloader, why are you bothering with those guides? Reboot to fastboot, flash custom recovery, flash SU package in recovery, reboot. That would be all. Hard? not really.
Click to expand...
Click to collapse
Thanks Jack! Can you point me to an su package that I can safely flash with gingerbread?
Sent from my Nexus One using XDA App
I found the package nexus-addon-0.1-signed.zip while searching for 'su' packages to root an unlocked nexus one on this guide http://forum.xda-developers.com/showthread.php?t=636795 . Will it be safe to flash this on a stock gingerbread?
aliezad said:
I found the package nexus-addon-0.1-signed.zip while searching for 'su' packages to root an unlocked nexus one on this guide http://forum.xda-developers.com/showthread.php?t=636795 . Will it be safe to flash this on a stock gingerbread?
Click to expand...
Click to collapse
I don't think that zip would work.
I rooted by applying the su.zip provide by dsixda here: http://forum.xda-developers.com/showthread.php?t=968396 (attachment, bottom of first post)
You would need to flash this from custom recovery (I used Amon RA 2+).
Thanks Brownbay! Worked like a charm!
Jack_R1 said:
...I'm completely unsure that "fastboot boot recovery.img" will work on custom image and locked bootloader.
Click to expand...
Click to collapse
Unfortunately this won't work on a locked bootloader (at least, not on mine!), so if you've used 'super one click' to root your N1 without unlocking it (like me), this method won't work for you.
I already have had my bootloader unlocked. I'm wondering if this rooting method alone will wipe my phone?
No, it won't wipe your phone.

Uninstall clockworkmod and return to stock recovery

sending my phone back into google, have frf91 back. need to remove clockworkmod now and install the stock recovery. googled it but no help with the current frf91, unless you can use the original shipping recovery image with it? also do you think clockworkmod might cause any concerns when they receive it if i cant figure it out? bootloader is not unlocked.
So, for some reason, I couldn't find a guide on xda...I know I saw one here...
Anyways, here you go:
http://androidspin.com/2010/05/06/guide-unrooting-your-nexus-one-its-like-it-never-happened-almost/
is there an easier way to do this if you used Rom Manager?
Nope, I don't think it's possible to flash a recovery with a recovery...(edit: there is no option in Rom Manager to select a specific recovery.img)
You might be able to do use the flash_image binary.
If you have adb setup, use: (you must have the recovery.img in the root of your sd card)
Code:
adb shell
su
flash_image recovery /sdcard/recovery.img
Is that true for the paid Rom Manager version as well?
wdfowty said:
Nope, I don't think it's possible to flash a recovery with a recovery...(edit: there is no option in Rom Manager to select a specific recovery.img)
You might be able to do use the flash_image binary.
If you have adb setup, use: (you must have the recovery.img in the root of your sd card)
Code:
adb shell
su
flash_image recovery /sdcard/recovery.img
Click to expand...
Click to collapse
I second this. This is how i got the stock recovery back onto my device.
im not familiar with adb setup, is it hard to install/use? im getting frustrated trying to get it back to stock. do you think htc will care i have clockwork mod as my recovery? bootloader isnt unlocked.
futango said:
I second this. This is how i got the stock recovery back onto my device.
Click to expand...
Click to collapse
everytime i hit adb shell a # comes up with the line next and su command isnt working
bobbbyjuice said:
everytime i hit adb shell a # comes up with the line next and su command isnt working
Click to expand...
Click to collapse
That mean your machine not yet rooted, go to the wiki page, or search 1-click rooted, that is a post link on wiki page, title is something like root without unlocking, details instructions on and shell
thanks i just 1 click rooted real quick. i have the recovery file on my sd card but now it says not found. its recovery.img like it asks for.
bobbbyjuice said:
thanks i just 1 click rooted real quick. i have the recovery file on my sd card but now it says not found. its recovery.img like it asks for.
Click to expand...
Click to collapse
Why are you trying to get rid of clockwork when you weren't rooted and couldt have installed it in the first place.
booted into recovery and found out one of my previous attempts must have worked because i have the stock recovery back now. thanks for all the help guys!

[Q] i have tried everything!!!!

I perm rooted my shift and would like to install cm7 rom
But I can't get into recovery to do nandroid etc...because I get stuck on the htc screen.
I don't have my laptop anymore so I am using terminal emulator.
I have PC36IMG.zip & recovery.img in root of sdcard.
su
flash_image recovery /sdcard/recovery.img
I get image not found if flash_image is in sdcard root
But I get scannning error if the flash_image is in system/bin..
I have search google etc...
Can I get some help please???
If you're perm rooted already, just download rom manager from the market and use it to flash recovery.
Thx for replying..I have tried that..I still get stuck on the htc screen...
I actually got terminal emulator to pick up the recovery.img
When I type
su
flash_image recovery /sdcard/recovery.img
I now get the blank line
But its telling me reboot is not permitted.
Try quickboot from market
Sent from my PG06100 using XDA App
Thx For replying and I have tried quickboot as well...
su
flash_image recovery /sdcard/recovery.img
Then I opened quickboot in tap recovery and I still got stuck on the htc screen...
I guess the question is why is this happenning?
I am perm rooted with visionary that's the only thing I have done.
Never give up!!!
I have fixed the problem..I went Into rom manager re install clockwork
Than boot recovery with quickboot and I got into recovery mode.
What I have realize is that every situation is different and just have to read and try to figure it out safely on your on!!!
But I have read quickboot works and it did for me...thx!!!!

[Q] Braincapped

Hey guys i have this old HTC Tattoo i would like to use for a while i need to test things on.
HTC Tattoo (Orange)
S-on
1.6.61.43 custom firmware
rooted
But i have a problem, i need to get a custom ROM on it.
so far:
1. Would not accept sim unlock code
1. Rooted it once
2. used RUU_Click_Orange_UK_1.67.61.43_release_signed_NoDriver becouse it was needed to accept the simunlock code
3. Lost root, rooted it again with Universal root becouse old method didn't work anymore.
4. Everytime i tried to open recovery menu, it shows a picture with a orange triangle and the phone next to it
5. Installed ROM manager and put Clockwork, nothing.
6. Tried to back up, install rom from ROM Manager, still nothing =(
HELP D:!
Question: How do i fix it so i don't get this trinagle thing and i can go into the recovery menu
EDIT: I forgot to add, i THINK i made the SDCard a Goldcard, but i'm not sure... how do i cheak?
still no reply? kay:
I am going to help you
I am going to help you when I come home from school I know what you have to do and how.
Shaumaaa said:
I am going to help you when I come home from school I know what you have to do and how.
Click to expand...
Click to collapse
=0 i'm back from school
Shaumaaa said:
I am going to help you when I come home from school I know what you have to do and how.
Click to expand...
Click to collapse
Are you back D: ? i still need help
answer
1. That triangle is stock recovery which isn't useful for installing custom roms.
2. You need custom recovery.
3. You need adb.
4 You can install recovery like this one click http://forum.xda-developers.com/showthread.php?t=950759 or manualy using cmd(adb needed).
If installing manualy: You need flash_image and recovery.img .
For cmd, commands are:
adb push recovery.img /sdcard/recovery.img
adb shell
su
flash_image recovery /sdcard/recovery.img
exit
exit
Hope this was helpful for you
Sorry if you waited too much, I didn't have time to answer you.
Shaumaaa said:
1. That triangle is stock recovery which isn't useful for installing custom roms.
2. You need custom recovery.
3. You need adb.
4 You can install recovery like this one click http://forum.xda-developers.com/showthread.php?t=950759 or manualy using cmd(adb needed).
If installing manualy: You need flash_image and recovery.img .
For cmd, commands are:
adb push recovery.img /sdcard/recovery.img
adb shell
su
flash_image recovery /sdcard/recovery.img
exit
exit
Hope this was helpful for you
Sorry if you waited too much, I didn't have time to answer you.
Click to expand...
Click to collapse
I followed the instructions it didn't help, still same problem
no errors with the .exe, but no dice either
flashpermission denied with manual cmd
not enough memory on the device
in rom manager it says i have clockworkmod 5.0.2.0, might be the the problem that my phone is on orange or that it is S-on ? becouse i'm pretty sure it has custom recovery and it is rooted
i was able to root with this method before i used "RUU_Click_Orange_UK_1.67.61.43_release_signed_NoDriver" update
Now i am not able to use that root method, maybe it would have worked before i used it...
How do i downgrade or whatever from this RUU ?
Adb
Do you have adb drivers installed?
Shaumaaa said:
Do you have adb drivers installed?
Click to expand...
Click to collapse
Yes
Don't know then, I had site with better commands which helped me but it's dead now so I can't access them..

[Q] CWM installation after towelroot

Hey!
I have tried installing cwm after doing towelroot. I am using terminal and used the command:
Code:
flash_image recovery /sdcard/recovery.img
but it ends up doing nothing. I have the proper binaries and I did chmod 777 so the command should work. But when I do:
Code:
reboot recovery
I boot into Android recovery 3e. Also after executing the command should I get any output or should it go straight to next line? Any help would be appreciated.
We have a locked bootloader which really prevents the us from replacing the stock kernel and recovery. The only working recovery we have is safestrap. Read more on the all things AT&T thread.
Sent from my SGH-I337 running GPE using Tapatalk
Oh wow can't believe i forgot that.

Categories

Resources