[Q] Help~guys,about RA recovery [Nexus one] - Nexus One Q&A, Help & Troubleshooting

MIne is Nexus one. It's just rooted.
http://forum.xda-developers.com/showthread.php?t=611829 the newest Ra recovery for n1 is here.
There was a note:
Install
Pre-Requirements :
Root
Make sure that init.rc isn't calling any install-recovery.sh script, otherwise you'll boot back to stock recovery (exclamation mark with a little Android).
I tried on my n1 and I booted back to stock recovery......
How could I fix it?

philanini said:
MIne is Nexus one. It's just rooted.
http://forum.xda-developers.com/showthread.php?t=611829 the newest Ra recovery for n1 is here.
There was a note:
Install
Pre-Requirements :
Root
Make sure that init.rc isn't calling any install-recovery.sh script, otherwise you'll boot back to stock recovery (exclamation mark with a little Android).
I tried on my n1 and I booted back to stock recovery......
How could I fix it?
Click to expand...
Click to collapse
after you flash the recovery, without rebooting, just run these two commands:
rm /system/etc/install-recovery.sh
rm /system/recovery-from-boot.p

gravufo said:
after you flash the recovery, without rebooting, just run these two commands:
rm /system/etc/install-recovery.sh
rm /system/recovery-from-boot.p
Click to expand...
Click to collapse
Thank you friend.
I used the fastboot-windows.exe in cmd to flashed the recovery ,and I don't know where to run your cammands.

philanini said:
Thank you friend.
I used the fastboot-windows.exe in cmd to flashed the recovery ,and I don't know where to run your cammands.
Click to expand...
Click to collapse
Alright, open a command prompt into adb shell (or use terminal emulator from your phone) and run the following. Note that you don't need to run the first command if you're doing it from the terminal emulator on the phone.
adb shell
su
mount -o rw,remount /dev/block/mtdblock3 /system
rm /system/etc/install-recovery.sh
rm /system/recovery-from-boot.p
reboot recovery
After you run these commands, you should flash the recovery again and you should have no problem!
Good luck!

Eeeeeek - sorry!

gravufo said:
Alright, open a command prompt into adb shell (or use terminal emulator from your phone) and run the following. Note that you don't need to run the first command if you're doing it from the terminal emulator on the phone.
adb shell
su
mount -o rw,remount /dev/block/mtdblock3 /system
rm /system/etc/install-recovery.sh
rm /system/recovery-from-boot.p
reboot recovery
After you run these commands, you should flash the recovery again and you should have no problem!
Good luck!
Click to expand...
Click to collapse
Thank you man! I will post the result.

gravufo said:
Alright, open a command prompt into adb shell (or use terminal emulator from your phone) and run the following. Note that you don't need to run the first command if you're doing it from the terminal emulator on the phone.
adb shell
su
mount -o rw,remount /dev/block/mtdblock3 /system
rm /system/etc/install-recovery.sh
rm /system/recovery-from-boot.p
reboot recovery
After you run these commands, you should flash the recovery again and you should have no problem!
Good luck!
Click to expand...
Click to collapse
Thank you my friend. I tried what you've told me, unfortunately,and it said not found there.
However, I tried MiuiRomInstaller.apk ,it flashed a clorkworkmod recovery. Then I flashed RA recovery back, luckily I succeeded!
I could use that change my rom now.
Thank you Gravufo.

philanini said:
Thank you my friend. I tried what you've told me, unfortunately,and it said not found there.
However, I tried MiuiRomInstaller.apk ,it flashed a clorkworkmod recovery. Then I flashed RA recovery back, luckily I succeeded!
I could use that change my rom now.
Thank you Gravufo.
Click to expand...
Click to collapse
Your welcome, glad it worked one way or the other

gravufo said:
Your welcome, glad it worked one way or the other
Click to expand...
Click to collapse
Man~I restored and tried your way again, This ok now.Thank you!

Related

jf v1.42 recovery to Jf v1.43 recovery help please!!

i currently have Jf 1.42 recovery. i am trying to install 1.43 on my phone but cant find instructions that work for me. i dont use adb so that wont help. someone please help me!!
either fastboot or terminal
fastboot recovery recovery.img
or in terminal
flash_image recovery /sdcard/recovery.img
cat recovery > /system/recovery.img
if those don't work then oh well there's nothing wrong with 1.42
tubaking182 said:
either fastboot or terminal
fastboot recovery recovery.img
or in terminal
flash_image recovery /sdcard/recovery.img
cat recovery > /system/recovery.img
if those don't work then oh well there's nothing wrong with 1.42
Click to expand...
Click to collapse
when i did that in terminal emulator it says "cannot create /system/recovery.img: read-only file system
i need to be able to get 1.43 to work so i can get hero up and running
g1doobie said:
when i did that in terminal emulator it says "cannot create /system/recovery.img: read-only file system
i need to be able to get 1.43 to work so i can get hero up and running
Click to expand...
Click to collapse
sorry, enter these first
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
then the ones from before
g1doobie said:
when i did that in terminal emulator it says "cannot create /system/recovery.img: read-only file system
i need to be able to get 1.43 to work so i can get hero up and running
Click to expand...
Click to collapse
i use the 1.42 recovery image and haven't had any trouble using the hero rom w/ apps2sd
I'm pretty sure you can just download this, rename it to update.zip and go from there. No need to use the terminal. It worked for me.
The link is from JesusFreke's official blog.

What to do now? Trying to edit framework-res.apk

Ok, trying to edit framework-res.apk. I have a metamorph them running, and I also have a battery that got changed via update.zip. The problem is, I wanted the battery to be all white, rather than colored in order to fit with my black and white theme.
So I pulled my framework-res.apk, took out the battery .png's, and edited them. Then I put them back in. Problem is, I can't get it on my phone.
I tried putting the new framework-res.apk in the old update.zip and flashing it, but that just made my battery meter disappear. I tried adb push, but I got a permission denied error. Any help? First .apk edit.
adb pushing shoulda worked... what did the error say?
failed to copy 'framework-res.apk' to '/system/framework/framework-res.apk': Per
mission denied
Click to expand...
Click to collapse
That's the error I get. Not sure what I have to do to get permission to edit?
E_man5112 said:
That's the error I get. Not sure what I have to do to get permission to edit?
Click to expand...
Click to collapse
Do
Code:
Adb remount
first. Then push
adb remount only gives me another error
Code:
remount failed: No such file or directory
K go in recovery, cuz thts the safest place to push framework-res.apk
Once in recovery and ur phone connected to ur pc
After a few seconds (20'ish)
Type
Code:
adb shell
mount /system
exit
adb push <drag framework-res.apk here> /system/framework/framework-res.apk
adb shell reboot
This is harder than I though.
Code:
adb shell
$ mount /system
mount /system
mount: not found
Now what?
E_man5112 said:
This is harder than I though.
Code:
adb shell
$ mount /system
mount /system
mount: not found
Now what?
Click to expand...
Click to collapse
lol. k wht recovery u using ?
stock recovery
Code:
adb reboot recovery
E_man5112 said:
stock recovery
Code:
adb reboot recovery
Click to expand...
Click to collapse
lol time to upgrade to amon-ra recovery bro. also...make sure u signed ur files or else nothing works...assuming you're not a complete noob.
E_man5112 said:
stock recovery
Code:
adb reboot recovery
Click to expand...
Click to collapse
yea wht opasha said. u need root/custom recovery to modify system apps. sorry.
Will clockwork recovery do the trick?
Sent from my SAMSUNG-SGH-I897 using XDA App
E_man5112 said:
Will clockwork recovery do the trick?
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
Yup it'll do.
Ok, making progress, /system mounts, so I type
Code:
adb shell
su
mount /system
exit
adb push framework-res.apk /system/framework/framework-res.apk
and I get
Code:
/sbin/sh: adb: not found
in your above post, you didn't mention su, but /system won't mount unless I'm root user, so I don't know any other way to do it? exit keeps me in the shell it seems (I still have ~$) but exiting again kicks me out of adb all together, then if I restart, I'm back at the permission denied error.
opasha said:
lol time to upgrade to amon-ra recovery bro. also...make sure u signed ur files or else nothing works...assuming you're not a complete noob.
Click to expand...
Click to collapse
Bad assumption I really am
How do I sign my files?

[Q] Removing Android System Recovery <3e>

I have a verizon Samsung Galaxy tab. I would like to use clockwork recovery. The tab is rooted and I used ROM manager from the marketplace to flash the recovery for a Samsung Tab (Verizon). When I flash the ROM everything is successful. However, when I boot into recovery the Android System Recovery <3e> shell loads which doesn't allow nandroid backups etc... all the neat recovery tools that come with clockwork recovery.
I searched around the forum and saw a thread titled how to replace Android System Recovery with a Custom ROM. These were the commands
adb shell
su
mount -o remount,rw -t yaffs2 /dev/mtdblock3 /system
rm /system/etc/install-recovery.sh
cd sdcard
mount -o remount,exec /dev/block//vold/179:1 /sdcard
./flash_image recovery /sdcard/recovery.img
exit
exit
I went into abd shell I tried the commands but by the time I got to the third line I keep getting permission errors before I can even finish typing the command. I cut and paste the command string from "mount-->" thinking I just wasn't typing fast enough and it still doesn't work.
Is there another way to remove the Android system recovery so that ROM manager will work properly?
Have a look at installing boushh's kernel, it probably going to be the best option around for you.
Sent from my X10i using XDA App
I don't know what that is?
I have also same problem ı tryed many flashes ı coudnt fix it yet.if you allready fixed could you please share thanks.....

can't mount sdcard under root

My recovery got blown-up and when I try to install another recovery, from # mount /sdcard , I get mount: can't read
/etc/fstab: No such file or directory
or from adb mount shell /sdcard , I get the same thing.. How do I format the sdcard or whatever it needs to be able to mount it from the # prompt , or adb ?
Thanks for any help..
I'm trying to get sdk manager working, can I get in to flash a recovery thru fastboot ?
have you tried using terminal emulator? also, are you s-off?
Did you change your directory??? As in cd\???
And which method did you choose to install adb??? And are you just trying to install a recovery from adb??? If so then change the directory then try mount -a then try the flash recovery commands. Good luck
Yea its me Again With the
Modified Hero-
Yes terminal, CMD rooted but not x-off
I'm in the platform-tools dir of sdk , when I >adb shell mount -a I get /etc/fstab: No such file or directory.
Houndog101 said:
Yes terminal, CMD rooted but not x-off
I'm in the platform-tools dir of sdk , when I >adb shell mount -a I get /etc/fstab: No such file or directory.
Click to expand...
Click to collapse
what happened when you tried the terminal method? it should work. Make sure the recovery image is on your sd, in no folder at all, rename it to recovery.img. Then in TE type: su , then press enter. then type: flash_image recovery /sdcard/recovery.img , then press enter - what happens?
il Duce said:
what happened when you tried the terminal method? it should work. Make sure the recovery image is on your sd, in no folder at all, rename it to recovery.img. Then in TE type: su , then press enter. then type: flash_image recovery /sdcard/recovery.img , then press enter - what happens?
Click to expand...
Click to collapse
Problem is I can't get the program on my SD . I think my sd has gotten corrupted some how . I need a linux command to format the sd card so it can be mounted. I can get to SU . if this help,, I really appericate any help I can get, Thank you..
Houndog101 said:
Yes terminal, CMD rooted but not x-off
I'm in the platform-tools dir of sdk , when I >adb shell mount -a I get /etc/fstab: No such file or directory.
Click to expand...
Click to collapse
From the command line type
Cd\ "hit enter"
Then
cd\AndroidSDk\tools\ " hit enter"
Then mount -a if you want to mount your sd card "hit enter"
Or adb shell "hit enter"
To use adb
Or adb remount to mount your file directory/system " I think "
Or just use the commands to flash your recovery.
Yea its me Again With the
Modified Hero-
OK, I'll do that and get back.. Thanks.
Houndog101 said:
Problem is I can't get the program on my SD . I think my sd has gotten corrupted some how . I need a linux command to format the sd card so it can be mounted. I can get to SU . if this help,, I really appericate any help I can get, Thank you..
Click to expand...
Click to collapse
Are you running windows or linux on your computer??? And y not just take your card out and format threw your pc or via card reader???
Edit : don't forget to name your recovery correctly as in
recovery-RA-heroc-v.1.7.img
If your trying to flash RA
And make sure it reads on your sd/card correctly as in .img and not
img.img
So to flash RA for example would be
flash_image recovery /sdcard/recovery-RA-heroc-v.1.7.img
Yea its me Again With the
Modified Hero-
I'm gonna reinstall sdk, takes a while , then I'll post results..
thanks again.
Houndog101 said:
I'm gonna reinstall sdk, takes a while , then I'll post results..
thanks again.
Click to expand...
Click to collapse
If your by chance looking for an easy way to setup adb you can check out my thread in hero development section on how to install adb on windows. It takes like 15/20 min tops to have it all setup. That's if your using windows. Good luck
Yea its me Again With the
Modified Hero-
Houndog101 said:
I'm gonna reinstall sdk, takes a while , then I'll post results..
thanks again.
Click to expand...
Click to collapse
ok, but I still don't get why you can't boot into the ROM you're on, open the terminal emulator app, and follow the instructions, it should work.
il Duce said:
ok, but I still don't get why you can't boot into the ROM you're on, open the terminal emulator app, and follow the instructions, it should work.
Click to expand...
Click to collapse
I agree that should work. Would be way easier as well.
Yea its me Again With the
Modified Hero-
laie1472 said:
Are you running windows or linux on your computer??? And y not just take your card out and format threw your pc or via card reader???
Edit : don't forget to name your recovery correctly as in
recovery-RA-heroc-v.1.7.img
If your trying to flash RA
And make sure it reads on your sd/card correctly as in .img and not
img.img
So to flash RA for example would be
flash_image recovery /sdcard/recovery-RA-heroc-v.1.7.img
Yea its me Again With the
Modified Hero-
Click to expand...
Click to collapse
I don't have a card reader that small . wierd because from su
prompt # ls , its says the sdcard is there, but when I try to mount it I get, " mount: can't read
/etc/fstab: No such file or directory"
il Duce said:
ok, but I still don't get why you can't boot into the ROM you're on, open the terminal emulator app, and follow the instructions, it should work.
Click to expand...
Click to collapse
I can only boot to the 3 skateboard screen.
Houndog101 said:
I can only boot to the 3 skateboard screen.
Click to expand...
Click to collapse
oh, ok then. adb for you.
il Duce said:
oh, ok then. adb for you.
Click to expand...
Click to collapse
When I " adb push recovery-RA-heroc-v1.6.2.img /sdcard/recovery-RA-heroc-v1.6.2.img"
I get failed to copy 'push recovery-RA-heroc-v1.6.2.img /sdcard/recovery-RA-heroc-v1.6.2.img' : Read-only filesystem
Geez, been at this for 2 days now.. I'm at a lost..
Ok well lets start from the beginning then. When your at your command line are you typing su??? If so you don't have to. And y are you trying to push the recovery instead of flashing it????
Yea its me Again With the
Modified Hero-
laie1472 said:
Ok well lets start from the beginning then. When your at your command line are you typing su??? If so you don't have to. And y are you trying to push the recovery instead of flashing it????
Yea its me Again With the
Modified Hero-
Click to expand...
Click to collapse
ok, I type adb shell and I get the # prompt
then at the # prompt I type #flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img
hit enter and I get Failed with error: -1

[Q] Problems flashing from Clockworkmod to Amon_RA

Hi.
I am having problems flashing Amon_RA on my Nexus One.
I am currently running CWM 3.0.0.5 installed via ROM Manager, and i have switched back and forth between Amon_RA and CWM many many times before, using Rom Manager, but now it does not seem to work.
My phone is S-ON and running Newest MIUI Rom from MIUI.us.
I flashed from RA to CWM yesterday, and since that I have been sitting 6 hours trying to get RA back...
I did not find any working solutions searching the forums either, allthough more people seem to have the issue occationally.
Anyone have any idea how to fix this, or at least what's causing it??
I would be Very grateful!
Edit: In Rom Manager, after attemting to flash Ra, it sais the flash was successfull, and displays that Ra is installed, even after reboot, it tells me Ra is currently installed, but booting into recovery still brings up CWM...
Flash it from fastboot.
It works!
albundy2010 said:
Flash it from fastboot.
Click to expand...
Click to collapse
Tried, but did not work.
But, I EVENTUALLY FOUND A SOLUTION!
From here: http://forum.xda-developers.com/wiki/index.php?title=Nexus_One/Recovery_Images
For locked bootloader - flash_image using ADB only
Using "blind" flash_image method works for locked bootloaders, requires root and is sSLCD uitable for Nexus users that lost the ability to see their screen. Adapted from here.
Download Amon_RA's Recovery from one of the versions above - NOT INCLUDING 1.7.0.1 - to C:\.
Rename Amon_Ra's Recovery Image to simply recovery.img.
Download flash_image.zip and extract flash_image file to C:\.
Turn off the phone (possible by pulling the battery).
Press Volume Down + Power or Trackball + Power, the phone will boot into bootloader.
Select "BOOTLOADER", press Power.
Select "RECOVERY", press Power. The phone is working, but the screen shows nothing.
On the computer... Open a command prompt/terminal & navigate to the Android SDK Tools folder.
Type in the following commands:
Code:
adb shell
mount -o rw /system
mount -o rw /sdcard
exit
adb push C:\flash_image /system/bin/flash_image
adb push C:\recovery.img /sdcard/recovery.img
adb shell
chmod 755 /system/bin/flash_image
flash_image recovery /sdcard/recovery.img
rm /system/etc/install-recovery.sh
rm /system/recovery-from-boot.p
reboot recovery
Click to expand...
Click to collapse
Now I wonder, Why did I suddenly have to use this method to flash, when i have flashed both RA and CWM using Rom Manager hundreds of times before???
Edit: The guide above is for SLCD N1, mine is a AmOLED N1, yet, it was the only method i found that actually worked... Strage :/
CWM 3.xxx has been known to fubar things up here and there.
Sent from my Transformer TF101 using Tapatalk

Categories

Resources