Stock recovery restoring itself on reboot FRF91 - Nexus One Q&A, Help & Troubleshooting

I'm aware that this issue is caused by the install-recovery.sh script in /system/etc/ but has anyone else noticed this happen and that it's only become an issue after FRF91?
I load up amon_ra's custom recovery thru fastboot, perform a reboot, and stock recovery reappears.
Its a pain in my ass, can i just rm the script or is there another way to prevent this from happening?
P.S. I'm running stock Froyo with unlocked bootloader and no root currently as i feel i don't need it and no custom project is really upping the game from FRF91.
Can i remove the script without root access through adb or otherwise?
Would a custom kernel stop the script from running?

I had this same problem. I put on the Modaco superboot and that cured it.
If you want to stay as close to stock as possible I would:
Install amon_ra via fastboot.
Reboot directly to recovery.
DO A BACKUP!
Shell in using adb and blow away the offending script.
Reboot and enjoy
Sent from my Nexus One using XDA App

LaRoach said:
I had this same problem. I put on the Modaco superboot and that cured it.
If you want to stay as close to stock as possible I would:
Install amon_ra via fastboot.
Reboot directly to recovery.
DO A BACKUP!
Shell in using adb and blow away the offending script.
Reboot and enjoy
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
Cheers Dude, that's exactly what i ended up doing. Just changed the script to install-recovery.sh.bak in case one day i feel compelled to re-enable it.

Related

Lost root, can't use nandroid, please help!

Okay, I'm not sure anymore what I did but I was using rom manager to wipe data/cache then flash a new rom, purehero for today, like normal but I got some weird error and all I could do really was reboot. I'm not sure why but when it did reboot I was all the way back to official 2.1 with no root. Now I'm stuck without root and with clockwork recovery that I can't flash my nandroid from? Any ideas on how I can either just revert back to the stock recovery so I can flash my nandroid or other ideas? Any input would be greatly appreciated.
Sent from my HERO200 using Tapatalk
joehunni said:
Okay, I'm not sure anymore what I did but I was using rom manager to wipe data/cache then flash a new rom, purehero for today, like normal but I got some weird error and all I could do really was reboot. I'm not sure why but when it did reboot I was all the way back to official 2.1 with no root. Now I'm stuck without root and with clockwork recovery that I can't flash my nandroid from? Any ideas on how I can either just revert back to the stock recovery so I can flash my nandroid or other ideas? Any input would be greatly appreciated.
Sent from my HERO200 using Tapatalk
Click to expand...
Click to collapse
Are you sure you "lost root"? You can't boot into the recovery menu at all? If you lost root, I would suggest going through the root process for 2.1. Without root, you're pretty much screwed.
joehunni said:
Okay, I'm not sure anymore what I did but I was using rom manager to wipe data/cache then flash a new rom, purehero for today, like normal but I got some weird error and all I could do really was reboot. I'm not sure why but when it did reboot I was all the way back to official 2.1 with no root. Now I'm stuck without root and with clockwork recovery that I can't flash my nandroid from? Any ideas on how I can either just revert back to the stock recovery so I can flash my nandroid or other ideas? Any input would be greatly appreciated.
Sent from my HERO200 using Tapatalk
Click to expand...
Click to collapse
If you are back to official stock 2.1, why not just go through the rooting process again from the beginning?
http://forum.xda-developers.com/showthread.php?t=694572
But instead of pushing that included recovery.img to your phone (#4 in Step 9), perhaps you could push your Clockwork recovery image instead? I see no reason why that wouldn't work, but I haven't actually tried it myself so good luck.
Here's the thing, no Su app in drawer, terminal emulator says access denied if I type Su. Also my computer us down so whatever I do must be done directly from my phone. Now my phone is laggy as hell so I either need a way to swap recoveries as is so I can nandroid, it basically a way to run the stock ruu using only the phone. Any ideas?
Sent from my HERO200 using Tapatalk
RUU to the .5 version. Then root. Then do whatever you want.

(SOLVED)Backup recovery image fails

Hey everyone, I'm sorry if this has already been answered but I've been searching for hours and cant find a solution... Also, please move to this thread to the correct forum if needed, although this seemed appropriate.
I have and HTC Hero CDMA and it is already rooted via z4root(did not install busybox for some reason).
I've downloaded ROM Manager (both free and premium), Titanium Backup, and RecoveryFlasher 1.1.2 and 1.1.3
I'm trying to back up my current ROM but am unable to do so. I've tried using Rom Manager which gives me "An error occurred while flashing your recovery" when trying to download ClockworkMod Recovery
I've also tried using FlashRec(both versions listed above) and get "Backup Failed: Could not run command"
Anytime I try to boot to a recovery, I just get the screen with the exclamation point.
I'm totally lost. I'm sure I'm missing something somewhere and I just can't seem to figure it out. I even tried downloading a recovery and pushing it to my sdcard. Nothing works...
Any help would be much appreciated as I'm trying to do a nandroid backup/current ROM backup so I can install CM6 in the near future. Thanks in advance!!!
Current Specs:
Firmware: 2.1-update1
Baseband: 2.42.02.10.29
Kernel: 2.6.29-ba77cf03
Build: 2.32.651.2 CL282911 release-keys
Software: 2.32.651.2
Browser: WebKit 3.1
PRI: 2.65_003
PRL: 60671
titanium back up will install busy box if you click on the problems button.Im not an expert by any means but I believe you're not able to get into recovery becuase you have no recovery image. Did your root method give you super user in your app drawer?
Can you ADB? If so, are you able to get to "#" - SU?
1. Try and check if you have SU permissions, at all. If the answer to either of the above questions is NO, then you don't have root
2. If you have root, did you try flashing recovery from within ROM manager? If it failed, the easiest way to get around would to RUU back to .5 and follow regaw's root, recovery, flash ROM method. You can find all the information on the wiki: http://forum.xda-developers.com/wiki/index.php?title=File:Hero_CDMA.png.
I do have su rights and yes I tried flashing recovery from within Rom manager but it doesn't work. As far as busybox ill try installing it via titanium backup. I'm not really sure how to ruu back to 1.5 but I will search for how to do it.
Thanks for the replies, I'll give u an update asap.
Sent from my HERO200 using XDA App
I downloaded busybox via Titanium Backup and it was successful but its not in my list of apps. I noticed that it downloaded to /system/bin and when I click on it I get "file not found"
EDIT: Would it be easier if I just reset to factory default, root from there, then do the Rom manager to install the Clockworkmod recovery? (not sure if its 1.2 or 1.5...Jan 2009 is when I got it)
Sent from my HERO200 using XDA App
If you have adb y not just flash Darch Star's RA recovery and do a nandroid from there u can flash it threw terminal or threw adb hope this helps if you need help installing adb check android Dev section for my thread on how to install adb good luck
Root-Hack-Mod-Always™
I have adb but I haven't been able to flash any recovery. I'll try it though...
Sent from my HERO200 using XDA App
Sounds like something is not right. I would recommend you to RUU (http://forum.xda-developers.com/wiki/index.php?title=File:Hero_CDMA.png#Official_RUU) - HTC Hero CDMA 2.1 RUU - Rootable via regaw_leinad Root Guide.
It is very easy, the RUU takes about 15/20 mins and then the root and such. Once you run the RUU, read the post properly and follow the steps, you should be good to go.
After long hours of working on this I was finally able to get the ClockworkMod Recovery v2.5.0.1 to work. I'm not sure what exactly i did differently as I was going through every possible way to boot into any recovery.
Thanks for your help everyone as I am doing Nandroid backup as i speak (or type )
Glad to see you got it
Root-Hack-Mod-Always™

Ginger-Root Resource Thread: How-To + Issues + Fixes

Ok so I have successfully rooted my phone after updating to Gingerbread. However, I had a few issues and had to read through a bunch of different posts to get there. So I'm bored and decided to consolidate everything into one.
If anyone has any other issues or fixes post them here and I will update the OP.
Credit goes to mtmichaelson and all those who helped get this working
http://androidinvasion.us/forum/index.php/topic,77.0.html
Here it is:
1. ROOT PROCESS
A. Get back to Stock:
-download the stock Zv4 ROM zip from here and put it on your external SD card- http://forum.xda-developers.com/showthread.php?t=1326893
-Back up all your apps in titanium (important: USER apps only, no data or system apps)
NOTE: It has been reported that restoring apps and data in titanium may cause some issues coming from Froyo to Gingerbread. I backed up my user apps only for easy re-install and NO data or system apps. It worked without a problem.
-MAKE SURE YOU HAVE 4G ENABLED
-boot into recovery (CWM)
-backup?
-factory reset
-select "install ZIP from SD card" in CWM, and install the stock ZIP from the link
-re-bootyour phone (you will have to re-activate it as well)
-install revo toolkit from here if it was wiped with the system reset - http://forum.xda-developers.com/showthread.php?t=1144951
-press "install recovery" and then !!!Revo Stock!!! to go back to stock recovery and wait for it to complete
B. Update to Zv6 then Zv7 (Gingerbread)
-manually search for the update and install it (this will install the v6 update)
-once that installs, manually search again to install the gingerbread update
NOTE: Some people still can't get gingerbread. Verizon has not finished rolling the update out to everyone yet.
Now here is where it gets a little dicey...
C. Rooting Your Gingerbread Phone
-pick up the rooting package from mtmichaelson here - http://forum.xda-developers.com/showthread.php?t=1326509
-follow the instructions he has on that page to obtain root
-Two issues arose for me from this point on.
2. ISSUES
A. Drivers Issue
-The first issue was that some people, including myself, couldn't download the esteem drivers.
-Some people were able to get the drivers from this page to work - http://androidnerds.net/2011/10/08/lg-esteem-oneclickroot-now-ready/.
-I was not able to get my computer to recognize my phone using the above drivers either. I would run the root command from the downloaded package and it would get stuck at "running daemon something something".
-What I did was manually uninstall the LG drivers from my computer and deleted everything "LG related"
-Then I got the drivers from the LG website at this link - http://www.lgforum.com/resources
-Scroll down to the Verizon section and download the "LG_VZW_UNITED..." drivers.
-Your phone should be recognized using the drivers from one of these links.
B. Superuser/Root access Issue - NOTE: this should be fixed now with mtmichaelson's newest root method found here - http://forum.xda-developers.com/showthread.php?t=1326509
-The second issue that came up was that the previous superuser app I had installed stayed on my phone after the updates, even though I lost root.
-The root command from the LG Esteem page would think I had root, but I actually didn't get root access.
-Apparently this issue came up on the Esteem previously and someone wrote a fix for it here - http://androidforums.com/esteem-all...-w-superuser-3-0-6-binary-3-0-3-download.html. It will uninstall the old superuser and install the new version.
3. INSTALL CWM RECOVERY
-mtmichaelson's new rooting package should automatically install CWM recovery on your phone now.
Old method:
-To get CWM back on your phone it's the same process as before the update. Get the Revo Toolkit from thecubed here and follow the instructions - http://forum.xda-developers.com/showthread.php?t=1144951
-There is sometimes an issue where the recovery does not install correctly and gives a fatal error. If this happened, make sure you have version 1.17.1 of busybox installed at system/bin. This worked for me and I got it installed correctly.
...And you should have root after trying a combination of the above. Hope this helped.
-If you have READ through this and still have any issues you can get more personalized help on the IRC channel here.
-Again I did not help with any of this, I'm just consolidating info. If you want to thank someone, thank mtmichaelson and everyone else who helped figure all this out.
-I will keep updating this as new issues arise.
Thank you for compiling this information, it is a useful reference for people to have. I know that the drivers issue took me quite a while to work out even though it is pretty simple. Hopefully this helps others to get rooted with much less trouble.
Quick question using that stock ROM will it completely unroot me?
Also a bit confused with me running revolt does that mess up me just flashing that and it has the stock boot image.
I've Revolted have you?? Sent via tapatalk plugin.
i'm having issues with CWM... i flashed back to my stock+root backup and every time the OTA update tries to install it boots to clockwork. ran the exitrecovery.zip in clockwork and it still boots to clockwork. i cleared the cache/dalvik again, the OTA is downloading gonna try it again...
xjli said:
i'm having issues with CWM... i flashed back to my stock+root backup and every time the OTA update tries to install it boots to clockwork. ran the exitrecovery.zip in clockwork and it still boots to clockwork. i cleared the cache/dalvik again, the OTA is downloading gonna try it again...
Click to expand...
Click to collapse
Hey guys, I have a new package for root for those having problems. I need testers though. If you can come on irc in about 20 minutes. It has the drivers in it also.
Sent from my VS910 4G using xda premium
xjli said:
i'm having issues with CWM... i flashed back to my stock+root backup and every time the OTA update tries to install it boots to clockwork. ran the exitrecovery.zip in clockwork and it still boots to clockwork. i cleared the cache/dalvik again, the OTA is downloading gonna try it again...
Click to expand...
Click to collapse
You need to use Revo toolkit to get cwm off and the stock recovery back on. from there it will run fine. Then you just have to reroot using MT's modified rooting .bat file
Haro912 said:
You need to use Revo toolkit to get cwm off and the stock recovery back on. from there it will run fine. Then you just have to reroot using MT's modified rooting .bat file
Click to expand...
Click to collapse
How? I'm pretty good at this stuff but i feel like a moron bc i can't figure this out.
xjli said:
How? I'm pretty good at this stuff but i feel like a moron bc i can't figure this out.
Click to expand...
Click to collapse
Got it. I guess the first release of revo toolkit didn't have the flash stock recovery option. Can't wait to finally have gb on this thing..
Still reboots to cwm... it won't flash stock recovery. Any ideas?
xjli said:
Still reboots to cwm... it won't flash stock recovery. Any ideas?
Click to expand...
Click to collapse
Go into revotoolkit, Click install clockwork recovery, it should pop up to choose !!revo_stock!! or 4.0.0.2. Choose the revo stock. After it runs, click to check which recovery is installed and make sure it says revo stock, then reboot.
Sent from my VS910 4G using xda premium
mtmichaelson said:
Go into revotoolkit, Click install clockwork recovery, it should pop up to choose !!revo_stock!! or 4.0.0.2. Choose the revo stock. After it runs, click to check which recovery is installed and make sure it says revo stock, then reboot.
Sent from my VS910 4G using xda premium
Click to expand...
Click to collapse
It doesn't..still says 4.0.0.2... how long should it take to 'install?'
OP updated for the new packages from mtmichaelson
xjli said:
It doesn't..still says 4.0.0.2... how long should it take to 'install?'
Click to expand...
Click to collapse
It depends on you connection speed. If it's 3g a while. I recommend doing it on 4g or wireless. You also need busybox installed in the right location. Install the version 1.17.1 in system/bin. The newer versions of busybox may work now but they previously did not.
jrf28 said:
It depends on you connection speed. If it's 3g a while. I recommend doing it on 4g or wireless. You also need busybox installed in the right location. Install the version 1.17.1 in system/bin. The newer versions of busybox may work now but they previously did not.
Click to expand...
Click to collapse
Righto. Only slow 3g in my silo of an office :-/ ill let it go for a while.
Just reinstalled busybox... got it!
The only issue I'm having is getting CMW to stick. I install it, reboot into recovery, and it's there. Reboot, open RevoToolKit, check version, and it says none installed. Hmmm. Trying to install again and see...
borborpa said:
The only issue I'm having is getting CMW to stick. I install it, reboot into recovery, and it's there. Reboot, open RevoToolKit, check version, and it says none installed. Hmmm. Trying to install again and see...
Click to expand...
Click to collapse
It looks like it's a common problem. I haven't installed the ROM yet but mt's new gingervolt rom is supposed to make CWM stick - http://forum.xda-developers.com/showthread.php?t=1326542
Ok so I'm a complete and utter noob when it comes to CWM etc. Never had an android device before this one, never flashed a ROM.
I've got a pretty good grasp of whats going to be happening here, but I'm a little skiddish.
I'm on stock GB with root, at the point where i'm supposed to install CWM with the RevoToolkit. In the RevoToolkit instructions, thecubed says "If no version is listed, STOP and post here.". Well, no version is listed, presumable because i'm on a GB stock recovery. Do I stop here, or do I proceed with installing clockwork recovery?
Specifically, RevoToolkit reports "Version Not Found".
Advice?
i_t_n said:
Ok so I'm a complete and utter noob when it comes to CWM etc. Never had an android device before this one, never flashed a ROM.
I've got a pretty good grasp of whats going to be happening here, but I'm a little skiddish.
I'm on stock GB with root, at the point where i'm supposed to install CWM with the RevoToolkit. In the RevoToolkit instructions, thecubed says "If no version is listed, STOP and post here.". Well, no version is listed, presumable because i'm on a GB stock recovery. Do I stop here, or do I proceed with installing clockwork recovery?
Specifically, RevoToolkit reports "Version Not Found".
Advice?
Click to expand...
Click to collapse
I had the same thing I got all pissed and thought I was screwed then someone mentioned the GB thing. You'll be fine if you flash cwm. Just flash cwm, boot into it, make a backup in cwm, flash gingervolt, and reboot. everything will work fine
Haro912 said:
I had the same thing I got all pissed and thought I was screwed then someone mentioned the GB thing. You'll be fine if you flash cwm. Just flash cwm, boot into it, make a backup in cwm, flash gingervolt, and reboot. everything will work fine
Click to expand...
Click to collapse
Awesome, thank you for the quick reply. Another stupid question that i'm sure is answered somewhere on here, but what exactly will I lose when flashing a ROM, and what will I be able to restore back with a backup?

[Q] Flashing a custom rom - first time

Hi, i've decided to jump off the official rom and go to custom, i've decided to go with MIUI
I just wanted to ask a few questions.
After looking on the website, i found out that it comes with its own recovery, do I have to install this to get OTA updates? or could I just install updates with my own recovery image? (I have 4EXT)
Also, is there any other good roms you recommend?
I also don't want to jump into changing partitions (yet)
EDIT: I have made a nandroid backup and i'm ready to go, I just wanted to ask, I currently have the rom GRJ22, I had a look on the internet for it and on this forum and I have downloaded the image incase I want to revert it
the file I have is called: "PASSIMG_Passion_Google_WWE_3.10.1700.1_GRJ22_release_signed.zip" Is this right? it was from shipped-roms.com
After looking on my phone the 3.10... part is the build number, mine is 3.11... does this make a difference?
Make a nandroid backup before you flash.
That's it.
OOPS double post
I have, I just want to make sure that I can get the rom my phone is running now
but I think I might just flash now as its only the build number thats different. specified in my first post. I have also seen that the recovery doesn't matter
Ok then, I am going to flash this rom now but I have a small problem
I have 4EXT as my recovery, when I select recovery when I turn my phone on (Power + trackball) I get a picture of an android and an exclamation mark
I know I have recovery, as I can load it through the 4EXT app, how EXACTLY do I access it through the other menu, as I would need this incase somthing goes wrong
Ok then. I tried going into my bootloader again so i reflashed it.
After this it worked. So i waited for my phone to load up then i tried again and it diddnt work!
Sent from my Nexus One using XDA App
If you get the android with the question mark, it means your recovery got reverted back to stock. You no longer have 4EXT on there. You will need to reflash it before you can do anything else.
Why does it keep reverting. How can i stop it?
Sent from my Nexus One using XDA App
Just tried it again and the same thing happened on the second load. Whats happening?
Sent from my Nexus One using XDA App
Because you didn't listen, and didn't make nandroid backup, but tried flashing a stock ROM instead. It overwrites the recovery. Not a smart move - you don't have custom recovery anymore, and need to reflash it.
You might want to spend some more time reading and understanding, what nandroid backup does, what flashing a ROM does, and why you shouldn't be flashing stock ROMs unless you want your phone completely back to stock.
Warmo161 said:
Just tried it again and the same thing happened on the second load. Whats happening?
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
Have you tried installing ROM Manager and flashing Clockwork recovery?
Sent from my Sexynos SGH-i777 using XDA Premium.
I havent changed the rom at all and i did make a backup. All i need to do is sort out the recovery
Sent from my Nexus One using XDA App
wrenchmonkey26 said:
Have you tried installing ROM Manager and flashing Clockwork recovery?
Sent from my Sexynos SGH-i777 using XDA Premium.
Click to expand...
Click to collapse
Yep. It diddnt work so i movrd to 4ext
Sent from my Nexus One using XDA App
Warmo161 said:
I havent changed the rom at all and i did make a backup. All i need to do is sort out the recovery
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
The ROM comes with it's own recovery, which would explain why this is happening. Make sure you read the entire thread for that ROM. The best way to get into recovery on a MIUI ROM is through the MIUI power button.
Sent from my Sexynos SGH-i777 using XDA Premium.
Ok, I don't know if my messages I posted were understood so i'll do it again
I am on the STOCK rom atm and am trying to go onto MIUI
After flashing 4EXT, I reboot my phone and load up the recovery, which works for the first time, after my phone boots up, I turn it off and try it again and it loads to the stock recovery
All I want is to find out why it does this and fix it so I can install custom roms, as I dont really trust it as if somthing goes wrong then i'm stuck
I was thinking it could be because my bootloader is still locked or the OS reflashes it on bootup but that was just a guess
When you are running stock, anytime you reboot, the stock OS checks the recovery, and if it is not the stock recovery, it reflashes it. There are files you have to remove to prevent this from happening, but I can't remember which ones they are.
bassmadrigal said:
When you are running stock, anytime you reboot, the stock OS checks the recovery, and if it is not the stock recovery, it reflashes it. There are files you have to remove to prevent this from happening, but I can't remember which ones they are.
Click to expand...
Click to collapse
Now we are getting somewhere!
right, im gonna look now
Theres an image you can flash that I found on the wiki, but is there any other way to do it? Like deleting the files yourself or downloading an app to do the job??
Warmo161 said:
Theres an image you can flash that I found on the wiki, but is there any other way to do it? Like deleting the files yourself or downloading an app to do the job??
Click to expand...
Click to collapse
I did some digging and I think this is all you need to do from your computer.
Code:
adb shell
su
mount -o remount,rw -t yaffs2 /system
rm /system/etc/install-recovery.sh
bassmadrigal said:
I did some digging and I think this is all you need to do from your computer.
Code:
adb shell
su
mount -o remount,rw -t yaffs2 /system
rm /system/etc/install-recovery.sh
Click to expand...
Click to collapse
What does the command do?
And what would happen if I just move/delete the "install-recovery" file
That reminds me, I have to set up adb...

Clockwork Mod recovery

Hi, I recently rooted my Nexus One. Its all running great. Installed Rom Manager and used it to install Clockworkmod recovery. This is where my problem lies. The installation goes fine and I can boot into it he first time. But after that it doesn't work. I just an image of the android figure and an exclamation mark in a triangle. I have to remove my battery to reboot. If I reinstall clockworkmod recovery it works. But only once. Hen I get the same problem. Any body know what's wrong here. Its got me stumped. I'm afraid to install any Rom wig this acting so weird. Thanks for any and all help anyone can give.
Sent from my Nexus One using XDA App
Stock Recovery is persistent, i.e will overwrite CWM on every reboot.
How do i get around this then to make it stop overwriting clockwork?
Thwiipp said:
How do i get around this then to make it stop overwriting clockwork?
Click to expand...
Click to collapse
There's a script or something like that is preventing the CWM recovery from sticking IIRC.
You can get a script made by rugmankc
http://api.viglink.com/api/click?fo...b.tt/ooDaCnU&jsonp=vglnk_jsonp_13257843136922
Download the file and put on your sd card
After you install and boot into the CWM recovery the first time, flash that
Fix-Recovery.zip file
Thanks, I took a look at it, instead of running the script i used ES File Explorer and just renamed install-recovery.sh and recovery-form-boot.p and that seemed to do the trick. I was able to boot into CWM recovery 3 times in a row.
you should install super user or Custom rom
Im already rooted so I have super user. And I will be installing a custom Rom soon. Anyway, the issue is cleared up now, since I renamed those files.
Sent from my Nexus One using XDA App
Thwiipp said:
Im already rooted so I have super user. And I will be installing a custom Rom soon. Anyway, the issue is cleared up now, since I renamed those files.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
first install latest ClockworkMod recovery and after that as you inter the RECOVERY mod (first time) install the custom rom ...
fix it
http://forum.xda-developers.com/showthread.php?t=1112388

Categories

Resources