Does anyone know how to access the switchrom.sh script on the new 1.7.0 recovery?
i believe it was removed from the recovery image itself. you can always use switchrom the old way and push the .sh file.
check out this thread for the actual file and instructions on how to use it.
http://forum.xda-developers.com/showthread.php?t=541183
No the OP still lists switchrom as a feature. Go to console in the recovery and type "switchrom".
I honestly didn't see an option to get into the console from recovery.. where is that located on the newest recovery?
FaJu said:
No the OP still lists switchrom as a feature. Go to console in the recovery and type "switchrom".
Click to expand...
Click to collapse
I honestly didn't see an option to get into the console from recovery.. where is that located on the newest recovery?
Click to expand...
Click to collapse
There is not a console option on the nexus one recovery image. This is one thing i sorely miss about the G1. One day I needed to flash to a switchrom backup i had done and with no option for console, I was left having to flash the ROM fresh.
In order to access switchrom on recovery 1.6.2 you will need a pc and a know how of ADB. with the phone connected to the computer and in recovery mode do the following -
Code:
adb remount
adb shell
# switchrom
this will bring up the switchrom options... the same process goes for BART. instead of switchrom though, type bart
Thanks everyone!
Related
Hello,
I am currently running Cyanogen Mod 4.2.14.1 on my G1. My additional specs are listed below. I am looking for a fast but stable ROM that I can flash on top of Cyan's Rom without the need to wipe or change my Radio/SPL, etc. I just really don't want to go through losing all my data. Any advise would be greatly appreciated. Thanks!
SD Card: 6 Class Fat32/ext3/Linux-Swap
SPL: HBOOT-0.95.0000
Radio: 2.22.19.26i
Rom: CyanogenMod 4.2.14.1
Recovery: Cyanogen's Recovery 1.4
You can't flash a completely different ROM on top of another. It might cause some un wanted issues.
Suggestion:
Make a backup of your stuff.
Full Wipe
Flash a Different ROM.
Restore your stuff.
Bummer. Welp, Cyan it is then. Don't need a bunch of issues messin' around. Thanks for the reply!
I believe that xRom by JAC is based off the same kernal which means no wipe going to it... you could use switchrom to backup and restore without wiping to go back to cyanogen if you dont like it...
Let me ask this then. I always use Nandroid for my backups. Can I just do a nandroid backup, flash xrom, and if I don't like it...do a nandroid restore to get back to Cyanogen?
your app data might not be compatible coming back.. do you know how to use switchrom? its not that hard once you learn it... and it backs up the app data before doing a nandroid...
google xda switchrom.sh
download the switchrom.txt file
rename to switchrom.sh
move to root of sdcard
go to terminal emulator type: (hit enter after each line)
su
cp sdcard/switchrom.sh /system/sd
reboot recovery
enter recovery console: (hit enter after each line)
mount /system/sd
sh /system/sd/switchrom.sh -s (todays date)<this will be the backup name
*this stores your rom* notice -s
to restore the backup--enter recovery console
mount /system/sd
sh /system/sd/switchrom.sh -r
it will give you a choice... choose the most recent (or stable) rom
I do one of these backups every weekend JIC I mess something up (which I did last night... last back was 01/28/10 so not too bad..
Well, your instructions are impecable! Never used it but I'm gonna give it a whirl. Thanks so much for the detailed assistance
junkdruggler said:
your app data might not be compatible coming back.. do you know how to use switchrom? its not that hard once you learn it... and it backs up the app data before doing a nandroid...
google xda switchrom.sh
download the switchrom.txt file
rename to switchrom.sh
move to root of sdcard
go to terminal emulator type: (hit enter after each line)
su
cp sdcard/switchrom.sh /system/sd
reboot recovery
enter recovery console: (hit enter after each line)
mount /system/sd
sh /system/sd/switchrom.sh -s (todays date)<this will be the backup name
*this stores your rom* notice -s
to restore the backup--enter recovery console
mount /system/sd
sh /system/sd/switchrom.sh -r
it will give you a choice... choose the most recent (or stable) rom
I do one of these backups every weekend JIC I mess something up (which I did last night... last back was 01/28/10 so not too bad..
Click to expand...
Click to collapse
Wow Just USe AmonRA LAst recovery It Lets you Use Switchrom Eazy You Can Save your Rom =D i Can Give you a youtube video that will Help U =D Youtube video
After getting into adb shell and following the commands it says:
"Cannot find recover partition"
What do I need to do?
thanks
Danokan said:
After getting into adb shell and following the commands it says:
"Cannot find recover partition"
What do I need to do?
thanks
Click to expand...
Click to collapse
boot your phone into recovery first, then type in the adb commands
Show me the command you typed.
Danokan said:
After getting into adb shell and following the commands it says:
"Cannot find recover partition"
What do I need to do?
thanks
Click to expand...
Click to collapse
Danokan said:
What do I need to do?
Click to expand...
Click to collapse
Download the fresh kitchen and use it...
I originally rooted with the command line but corrupted my recovery image upgrading to RA1.6.2 via adb.
The fresh kitchen was the only way out of 4 i tried that was able write a new recovery image.
I am using Fresh 2.0d
Booted into RA
Hit the MS/DOS usb command
then did the commands straight from the amon_RA recovery single post thread, i.e.:
Copy recovery-RA-heroc-v1.6.2.img to the root of your sdcard
Boot into your current custom recovery (boot while holding HOME)
Connect your Hero via usb to your pc/mac/...
adb shell
$su (not required if you have root already)
#mount -a
#flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img
make sure you dont have any spelling errors...
flash_image recovery /sdcard/whatever_your_image_name_is.img
sladehawke said:
Download the fresh kitchen and use it...
I originally rooted with the command line but corrupted my recovery image upgrading to RA1.6.2 via adb.
The fresh kitchen was the only way out of 4 i tried that was able write a new recovery image.
Click to expand...
Click to collapse
I thought kitchen (even newest version) wouldn't work with Fresh 2.0d because it is based on 2.1 sprint.
Bump for some help.
Danokan said:
Bump for some help.
Click to expand...
Click to collapse
Try and download the pre-kitchen here
It still works for non-sprint phones.
I have a Sprint Hero thus the reason for posting on this particular forum.
so back when i had 1.5 on my hero i had no problem at all installing roms. so when i updated to 2.1 stock awhile back i tried to root it and install a rom on it with the command prompt and unevoked method. it got it rooted and when i got to the recovery menu i nanidroid backedup and wiped and installed it. it then got stuck on the htc boot screen so i tried different rom and still would hang on it. so i said screw it and stayed on stock. i then later used the unlock univeral to root it but i can not stand the stock rom it is so slow and lags so i tried the offiical htc update from .6 to .7 to see if it would be faster but once it downloaded and i pressed install it would yet again hang on the htc screen. i cant even make calls with out lagging. so i tried once more to install 2.2 on it with a recovery img. i download rom manger and put froyo on the sd card but it would yet again hang when i click install rom from sd card. what do i do?!!!!!
update: i tried doing it through the teminal but it say flash_recovery not found
so i tried to do it through rom manger and it did the back up and installed it through the recovery menu but once it was done and rebooted it yet again is stuck on the htc boot screen.
help please!
It might b the recovery ur using if your able to boot into any rom access terminal you can get it from the market try to flash a different recovery I recommend. Darchstar RA 1.6 once u download it place it on the root of ur SD card not in any folders / then open up terminal and type su once the # appears type flash_image recovery /sdcard/ recovery- name of recovery. img wen that's done type reboot recovery and you should boot into recovery then try and flash ur rom from there hope this helps good luck
Root-Hack-Mod-Always™
laie1472 said:
It might b the recovery ur using if your able to boot into any rom access terminal you can get it from the market try to flash a different recovery I recommend. Darchstar RA 1.6 once u download it place it on the root of ur SD card not in any folders / then open up terminal and type su once the # appears type flash_image recovery /sdcard/ recovery- name of recovery. img wen that's done type reboot recovery and you should boot into recovery then try and flash ur rom from there hope this helps good luck
Root-Hack-Mod-Always™
Click to expand...
Click to collapse
ill try this when i get home tonite. thanks!
i tried doing it through the teminal but it say flash_recovery not found
so i tried to do it through rom manger and it did the back up and installed it through the recovery menu but once it was done and rebooted it yet again is stuck on the htc boot screen.
I recommend you boot into recovery - wipe your system / cache / dalvik cache and then flash the 2.2 rom of your choice -
if you were just flashing rom after rom without flashing then that could be a lot of your troubles -
also - you mentioned that the recovery file was not found on your sdcard - did you remember to unzip it first before attempting to flash it through terminal emulator? because it wont work otherwise ...
if you have extracted it to the root of your sdcard you shouldnt have any trouble
type
su
flash_image recovery /sdcard/nameofyourrecovery.img
reboot recovery
and you should be good to go - let me know how you do and we'll see if we can't help you further if needed
good luck!
cbwhat said:
i tried doing it through the teminal but it say flash_recovery not found
Click to expand...
Click to collapse
did you type:
su
flash_image recovery /sdcard/yourrecovery.img
or su
flash_recovery like your post shows - because you dont want to do it like that - just checking -
Vandelay007 said:
did you type:
su
flash_image recovery /sdcard/yourrecovery.img
or su
flash_recovery like your post shows - because you dont want to do it like that - just checking -
Click to expand...
Click to collapse
no it i type in
su
flash_image recovery /sdcard/recovery7.img
flash_image not found
cbwhat said:
no it i type in
su
flash_image recovery /sdcard/recovery7.img
flash_image not found
Click to expand...
Click to collapse
you said that you are doing this in a terminal window? (i am assuming that is on the phone) is your phone connected via usb to your computer? is the sdcard mounted by the computer? if it is unplug the usb and try again. if the computer has mounted the sdcard you can't access it from the phone.
i dont have it plugged in when i use the terminal on the phone
cbwhat said:
i dont have it plugged in when i use the terminal on the phone
Click to expand...
Click to collapse
ok just checking.... that was the only thing that i could think of that would stop you from reading the sdcard.
It may sound silly, bt when I do it I always make sure I account for case sensitivity...
Like flash_image recovery /sdcard/RA-Darchstar.img
Have you tried that?
Sent from my HERO200 using XDA App
yep make sure everything that has a capitals in it i capitalized in the terminal
this may sound silly as well.. sometimes when i use adb to push i mistype the location for example: adb push myfile.ext /adcard
everything goes fine until i go to find the file....
don't know though.
i still can't figure out how to install a custom rom.
Try backing up you sd and reformatting it on ur pc then just place the recovery img on your sd and nothing else then try to flash it good luck feel free to pm me I know how u feel man so if I can help I will good luck
Root-Hack-Mod-Always™
I'm running CM6 stable.
How would I go about upgrading to the new version of the recovery image? Is this pretty much it or is there something within the current recovery I can just click?
Amon_RA said:
via adb -> Requires a custom recovery (with test-keys)
Code:
Copy recovery-RA-heroc-v1.6.2.img to the root of your sdcard
Boot into your current custom recovery (boot while holding HOME)
Connect your Hero via usb to your pc/mac/...
adb shell
$su (not required if you have root already)
#mount -a
#flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img
Click to expand...
Click to collapse
clankfu said:
I'm running CM6 stable.
How would I go about upgrading to the new version of the recovery image? Is this pretty much it or is there something within the current recovery I can just click?
Click to expand...
Click to collapse
This is pretty much it It's the standard way to change recoveries, not another was as far as I know of.
Impaler to the rescue again
I've actually never accessed adb before. What do I have to do before typing "adb shell"? Is there something I have to do so that the cmd prompt recognizes or loads my phone?
You have the option to flash 1.6.2 via rom manager - im using clockwork mod - and decided, after trying darch's recovery that clockwork offers more - including being able to explore the entire sdcard -
is there anything special about 1.6.2 that would make it worth trying out as opposed to clockwork recovery ?
Vandelay007 said:
You have the option to flash 1.6.2 via rom manager - im using clockwork mod - and decided, after trying darch's recovery that clockwork offers more - including being able to explore the entire sdcard -
is there anything special about 1.6.2 that would make it worth trying out as opposed to clockwork recovery ?
Click to expand...
Click to collapse
I think some prefer clockword mod but not sure what the differences are. I just want to upgrade to 1.6.2 because it got rid of the some of the bugs.
Here's the thread for it:
http://forum.xda-developers.com/showthread.php?t=581521
clankfu said:
I think some prefer clockword mod but not sure what the differences are. I just want to upgrade to 1.6.2 because it got rid of the some of the bugs.
Here's the thread for it:
http://forum.xda-developers.com/showthread.php?t=581521
Click to expand...
Click to collapse
This is the easiest way in my opinion:
Download the RA image you want to flash
Put it on the base of your sd card
Open up terminal emulator on your phone
su
flash_image recovery /sdcard/name-of-recovery.img
reboot recovery
You should see your new RA image Let me know how it goes!
Thank you sir
hey guys right now im using darchstar's godspeed recovery.. but whats the most recommended recovery mode that everyone uses?
My personal favorite is Clockwork Mod Recovery. You can find the latest for our phone in the Andorid Development section, on the first page of the aospGBmod thread. Should be easy to find as it is right on top 99% of the time due to popularity.
DARCH All the way if your running GB then clockwork because I've read people have had problems with Darch's recovery with GB but if your running CM6 then stick with Darch
Root-Hack-Mod-Always™
laie1472 said:
DARCH All the way if your running GB then clockwork because I've read people have had problems with Darch's recovery with GB but if your running CM6 then stick with Darch
Root-Hack-Mod-Always™
Click to expand...
Click to collapse
Anyone Have The Apk. Or Zip File For Darch's Recovery?
Sent from my HERO200 using XDA App
PMGRANDS said:
Anyone Have The Apk. Or Zip File For Darch's Recovery?
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
I got it off of darch's website but it's been down as far as I know for a little while now.. Luckily I backed it up on my dropbox when I first downloaded it
I attached it so it'll be on XDA for everyone
Download the Darchstar_ra.zip and extract it onto the root of your sdcard.
Boot up into your rom
Open up terminal emulator and enter the following:
Code:
su
flash_image recovery /sdcard/darchdroid_ra.img
reboot
2 questions will this restore previous RA nandroids and also can this do the complete wipe like clockwork?
kyouko said:
I got it off of darch's website but it's been down as far as I know for a little while now.. Luckily I backed it up on my dropbox when I first downloaded it
I attached it so it'll be on XDA for everyone
Download the Darchstar_ra.zip and extract it onto the root of your sdcard.
Boot up into your rom
Open up terminal emulator and enter the following:
Code:
su
flash_image recovery /sdcard/RA-Darchstar.img
reboot
Click to expand...
Click to collapse
sent from my twopointtwo themed hero
thoughtlesskyle said:
2 questions will this restore previous RA nandroids and also can this do the complete wipe like clockwork?
sent from my twopointtwo themed hero
Click to expand...
Click to collapse
I don't see why it would have problems restoring older nandroids, I've never had problems after updating.
And yes, you can wipe data/cache, cache, davlik-cache, battery stats, and rotation settings in the wipe menu.
I currently use ClockworkMod Recovery 2.5.0.1 for recovery mode.
Specs of my Sprint HTC Hero/APA6277 are...
Android version: AOSP
Baseband version 2.42.02.10.29,
Kernel version 2.6.29.6-aospMD [email protected] #1
Mode version: aospMOD-0.9.9.2
Build number: FRG83
I plan on flashing the AOSP GB Mod to my device as soon as a stable version of it becomes available.
kyouko said:
I don't see why it would have problems restoring older nandroids, I've never had problems after updating.
And yes, you can wipe data/cache, cache, davlik-cache, battery stats, and rotation settings in the wipe menu.
Click to expand...
Click to collapse
have you had any issues with wiping and flashing gingerbread because i didnt at first but lately it seems like its not a full wipe, then again im using a really old version of RA
kyouko said:
I got it off of darch's website but it's been down as far as I know for a little while now.. Luckily I backed it up on my dropbox when I first downloaded it
I attached it so it'll be on XDA for everyone
Download the Darchstar_ra.zip and extract it onto the root of your sdcard.
Boot up into your rom
Open up terminal emulator and enter the following:
Code:
su
flash_image recovery /sdcard/RA-Darchstar.img
reboot
Click to expand...
Click to collapse
Thanx A lot Kyouko!!
I Downloaded It....
But I Wanted To Pick Your Brain A Bit, Before I Flashed It.... Lol!
As I'm Sure You Know,
*Rom Manager* Has The Option "Flash Alternate Recovery" Which Switches The Users Recovery From Clockwork, To Amon_Ra, Right?
So I Guess My Question To You Is, What's The Difference Between This Recovery & The Other Two?
Is There More Features??
Oh, One More Thing.... Sorry!!
I Have A **** Load Of Backups From *Rom Manager* Will The Still Be Compatible, Since I Made'em With Clockwork?
Sent from my HERO200 using XDA App
thoughtlesskyle said:
have you had any issues with wiping and flashing gingerbread because i didnt at first but lately it seems like its not a full wipe, then again im using a really old version of RA
Click to expand...
Click to collapse
That issue was fixed in the newer RA versions (which includes this one and godspeed)
There was a problem wiping with the older RA after the cache location got moved in newer rom versions or something along those lines
PMGRANDS said:
As I'm Sure You Know,
*Rom Manager* Has The Option "Flash Alternate Recovery" Which Switches The Users Recovery From Clockwork, To Amon_Ra, Right?
So I Guess My Question To You Is, What's The Difference Between This Recovery & The Other Two?
Is There More Features??
Oh, One More Thing.... Sorry!!
I Have A **** Load Of Backups From *Rom Manager* Will The Still Be Compatible, Since I Made'em With Clockwork?
Click to expand...
Click to collapse
I'm not sure what the "flash alternate recovery" does because I only tried clockwork once and flashed over the recovery using terminal
As for features I took screens of each menu on the recovery
And I don't know what kind of backups rom manager does. If they're structured like nandroids it might work You may have to create a folder named "nandroid" and inside that folder create another and throw the backups in there. It'd be structured something like this:
/sdcard/nandroid/oldbackups/*folders go here*
And worst case scenario if they don't work but you really want all of them back you can just flash clockwork back to restore them.
kyouko said:
That issue was fixed in the newer RA versions (which includes this one and godspeed)
There was a problem wiping with the older RA after the cache location got moved in newer rom versions or something along those lines
I'm not sure what the "flash alternate recovery" does because I only tried clockwork once and flashed over the recovery using terminal
As for features I took screens of each menu on the recovery
And I don't know what kind of backups rom manager does. If they're structured like nandroids it might work You may have to create a folder named "nandroid" and inside that folder create another and throw the backups in there. It'd be structured something like this:
/sdcard/nandroid/oldbackups/*folders go here*
And worst case scenario if they don't work but you really want all of them back you can just flash clockwork back to restore them.
Click to expand...
Click to collapse
Darch's Recovery is an overclocked version of AmonRa with EXT4 Support. See here for more info
kyouko said:
That issue was fixed in the newer RA versions (which includes this one and godspeed)
There was a problem wiping with the older RA after the cache location got moved in newer rom versions or something along those lines
I'm not sure what the "flash alternate recovery" does because I only tried clockwork once and flashed over the recovery using terminal
As for features I took screens of each menu on the recovery
And I don't know what kind of backups rom manager does. If they're structured like nandroids it might work You may have to create a folder named "nandroid" and inside that folder create another and throw the backups in there. It'd be structured something like this:
/sdcard/nandroid/oldbackups/*folders go here*
And worst case scenario if they don't work but you really want all of them back you can just flash clockwork back to restore them.
Click to expand...
Click to collapse
Thanx For The Screenshots,
Now I'm Curious! And I Already Like The Way It Looks Better Than Clockwork! But To Be Honest Im A Little Nervous About Using ADB. Or Terminal Emulator!
Is It Easy/Hard?
I Heard You Can Brick Your Phone If You Enter A Command Wrong, Is That True?
Sent from my HERO200 using XDA App
PMGRANDS said:
Thanx For The Screenshots,
Now I'm Curious! And I Already Like The Way It Looks Better Than Clockwork! But To Be Honest Im A Little Nervous About Using ADB. Or Terminal Emulator!
Is It Easy/Hard?
I Heard You Can Brick Your Phone If You Enter A Command Wrong, Is That True?
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
As long as you don't put "flash_image (BOOT or any other partition here)" you should be fine.
If you input it incorrectly it won't flash,
example: flashimage recovery /sdcard/darchdroid_ra.img
How to flash it via ADB:
Code:
adb shell
su
flash_image recovery /sdcard/darchdroid_ra.img
reboot
kyouko said:
As long as you don't put "flash_image (BOOT or any other partition here)" you should be fine.
If you input it incorrectly it won't flash,
example: flashimage recovery /sdcard/darchdroid_ra.img
How to flash it via ADB:
Code:
adb shell
su
flash_image recovery /sdcard/darchdroid_ra.img
reboot
Click to expand...
Click to collapse
followed the code lines for terminal emu and adb both times got Flash_img: not found even tried entering Darchstar_ra.img same error
thoughtlesskyle said:
followed the code lines for terminal emu and adb both times got Flash_img: not found even tried entering Darchstar_ra.img same error
Click to expand...
Click to collapse
Weird.. Do this for me, open up terminal emulator and type:
Code:
su
flash_image
you should get a return line saying:
Code:
usage: flash_image partition file.img
*see attached picture for example*
Make sure you're inputing it exactly the way I had it in the previous post - underscores and all. If the recovery.img name is different make sure whatever you type is exactly what the img is called.
If it's not in the /sdcard/ directory enter the correct one.
Example) /sdcard/downloads/oldrecovery.img
On my second attached picture you can see that the command worked, but since I already have that recovery flashed it aborts.
thoughtlesskyle said:
have you had any issues with wiping and flashing gingerbread because i didnt at first but lately it seems like its not a full wipe, then again im using a really old version of RA
Click to expand...
Click to collapse
I'd just use CW for Gingerbread, RA doesn't wipe boot or system I believe.
Does anyone know if you are able to Wipe Data/cache/dalvik from adb shell?
just making a script to automate the process.
anyone know the commands?
thanks