[Script]Reboot - myTouch 3G Slide Android Development

Unrar.
reboot in recovery..
Get into clockwork..
Mount system..
adb push reboot /system/bin
adb chmod 755 /system/bin/reboot
adb reboot
Done
The point: from adb shell or connectbot you can now type reboot recovery... This will take you straight to recovery skipping the HBOOT. I understand you can adb reboot but now you can do it from connectbot on the go.

Is it regular reboot or reboot recovery?
-BMFC
Sent from my T-Mobile myTouch 3G Slide using XDA App

"theres an app for tht"
quickboot - reboot , bootloader , recovery within seconds

Perhaps the usefulness of this will make more sense when we see command prompt from within recovery mode?

Yeah I agree rubbachicken. I see what you mean with these scripts now. We need amon ra recovery back instead of clockwork. It had console access while in recovery... ah... the old days!

Related

How to flash_image Amon RA's recovery

i have had problems with Rom manager not flashing recovery correct leaving me with no recovery. so i had to manually flash recovery following these steps exact. I have personally bricked 2 ERIS phones lucky me.The first i thoought it was just something i did, lucky i had another to replace it...(the second BRICK eris).
So here is a solution to keep from having a BRICK
USE Amon RA's Recovery PERIOD.
credit to northmendo @droidforums
1. download flash_image Here Updated Link 3/17/10
2. Open the terminal and copy and paste the following commands.
adb shell [hit enter]
su [hit enter]
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system [hit enter]
3. In a new terminal window (don't close the original one).
adb push flash_image /system/bin [hit enter]
exit [hit enter]
4. Now in the original terminal window
chmod 755 /system/bin/flash_image [hit enter]
5. Now exit all termainl windows and reboot your phone.
6. Download
Amon_RA's recovery Here.
7. Mount your phones sd card and drop recovery-RA-eris-v1.6.2.img on to it and eject
your phone.
8. Open the Terminal and copy and paste the following commands with the phone connected
to your computer.
8. adb shell [hit enter]
9. su [hit enter]
10. flash_image recovery /sdcard/recovery-RA-eris-v1.6.2.img
11. To get into recovery turn off you phone and hold the Volume Up + Power until it boots into recovery.
That's it.
ROM Manager and Clockwork recovery does not work for the Eris.
ROM Manager and Clockwork recovery does not work for the Eris (as far as I know).
Edit: Oops, sorry for the double post.
I currently have the clockwork recovery installed on my eris, can I just download amon's recovery image and install it to switch to it? Or do I have to uninstall clockwork recovery and then install amon's?
trishuhh said:
I currently have the clockwork recovery installed on my eris, can I just download amon's recovery image and install it to switch to it? Or do I have to uninstall clockwork recovery and then install amon's?
Click to expand...
Click to collapse
try to flash it from rom manager,(under other recoveries) if Rom manager has worked for you with no problems. if it doesnt work follow instructions as listed in 1st post
I wouldn't use clockwork recovery, it messed up my installation to the point i couldn't flash any rom or restore any nand. When i would try to flash anything it would fail, It failed when i tried to use the root rom....After I tried flashing root rom i had a nice looking brick on my desk....(I even changed back to RA but Clockwork had messed up my phone so bad that RA didn't even work either....
YOU HAVE BEEN WARNED!!!!!
Yeah, use Amon's. It does every job you need, and is 100% stable and reliable.
t2noob said:
I wouldn't use clockwork recovery, it messed up my installation to the point i couldn't flash any rom or restore any nand. When i would try to flash anything it would fail, It failed when i tried to use the root rom....After I tried flashing root rom i had a nice looking brick on my desk....(I even changed back to RA but Clockwork had messed up my phone so bad that RA didn't even work either....
YOU HAVE BEEN WARNED!!!!!
Click to expand...
Click to collapse
yea you beat me too it, , i only used it because i had it for my DROID and thought maybe devs would try to add it to the list on rom manager.
ok, obviously a bit of an amateur here, how do you know which recovery image you have, i installed amon's, but i'm not sure if clockwork made it to my phone somehow, thinking about unrooting soon, that's why i ask, thanks.
jrhoades858 said:
ok, obviously a bit of an amateur here, how do you know which recovery image you have, i installed amon's, but i'm not sure if clockwork made it to my phone somehow, thinking about unrooting soon, that's why i ask, thanks.
Click to expand...
Click to collapse
reboot into recovery and read the bottom
Ok Please help a newbie out here im losing my mind. I downloaded flash, plugged phone into mac and set phone to debugging and mounted. Opened terminal from utilities on Mac. When I enter adb shell it says "command not found" if I try using ./ before adb as suggested on another forum for macs when i enter su it asks for password? Any how please help a brother out. Thanks
I flashed amons ras recovery from my phone it was easier for me I didn't use rom manger or terminal emulater
Sent from my FroyoEris using XDA App
Can someone help me get rid of clockwork recovery it showed up after I flashed a rom. How do you flash Amons recovery?
tkryan said:
Can someone help me get rid of clockwork recovery it showed up after I flashed a rom. How do you flash Amons recovery?
Click to expand...
Click to collapse
You do exactly what the first post says
Sent from my Eris
ufccowboyfan said:
Ok Please help a newbie out here im losing my mind. I downloaded flash, plugged phone into mac and set phone to debugging and mounted. Opened terminal from utilities on Mac. When I enter adb shell it says "command not found" if I try using ./ before adb as suggested on another forum for macs when i enter su it asks for password? Any how please help a brother out. Thanks
Click to expand...
Click to collapse
When you are doing this, are you in the correct directory? For example, my SDK is installed in /android , so first I would:
cd /android/tools
then
./adb shell
could someone help me with this. i really need to get the stock recovery image on my eris and im alittle noobie at this stuff. if any one could help id be sooooo happy
I'm not sure how to flash amons on a mac. I know for windows you put the recovery.img in the sdk tools folder, boot into fastboot and type
Fastboot flash recovery recovery.img
To get stock recovery (I assume you want your phone back to stock) then flash the official ruu. Will return your phone to 100% stock. You can find it on a sticky in the Eris general forums I believe.
Sent from my Eris using XDA App
I'm not sure on a mac, but on Windows you put the img in the tools folder of your sdk, boot into fastboot and type in adb:
Fastboot flash recovery recovery.img
To get stock recovery back, simply flash the official ruu found on a sticky in the Eris general forums I believe. Flashing the ruu will unroot your phone.
Sent from my Eris using XDA App
I installed Amon Ra as part of the root for leakers instructions some time ago. -- Is there a new version out? (Search was surprisingly not helpful) And what is the best way to update recovery?
Slugdoc said:
I installed Amon Ra as part of the root for leakers instructions some time ago. -- Is there a new version out? (Search was surprisingly not helpful) And what is the best way to update recovery?
Click to expand...
Click to collapse
There is no new version out; the first version (v1.6.2) is the only one that Amon_RA published.
IF there was a new version, you could flash it by using adb with the existing Amon_RA. You don't even need to push a version of "flash_image" to the phone, because it is already in /sbin in Amon_RA recovery. Just get the recovery image to your SD card, start an interactive shell (adb shell), and then
flash_image recovery /sdcard/<wherever-you-put-it>/recovery-RA-eris-v1.6.2.img
Yes, you can "flash a recovery partition by using the recovery" - because when you are interacting with it (the recovery boot), it lives entirely in a ramdisk.
The second easiest way is to have the engineering bootloader (1.49.2000 S-OFF) installed on your phone, and flash it with fastboot from the PC, as in
fastboot flash recovery recovery-RA-eris-v1.6.2.img
Note that neither of these two methods perform any integrity checks on the recovery image file that the normal "Flash .zip from sdcard" ROM installation method does. Therefore, it is imperative that someone using these methods is extremely diligent in cross-checking image MD5 signatures after it has been transferred to the SD card. Amon_RA also has the "md5sum" utility built into it's shell, BTW.
I mention this last point as a warning to newbs - they seem to routinely corrupt files when they transfer them to the SD card. (I suppose they are not using the "safely remove hardware" controls correctly, or they are getting truncated downloads).
bftb0

Thunderbolt Rooted with S on HELP!!!

I rooted my thunderbolt. After flashing clockwork mod, I downloaded the rom of my choosing. Then when booting to recovery to flash the rom, I get kicked to the bootloader. Help!??!?
Ps: It seems its that clockwork mod wont take even though rom manager says flashed sucessfuly
EDIT: I did some more investigation and after redoing this
"Step 5
Next, enter the following commands:
adb shell
/data/local/psneuter
To unlock eMMC:
adb shell
/data/local/wpthis
exit
Step 6
Please pay attention – this is very important. This step involves a small chance of bricking if you mess up.
To push the eng bootloader:
adb push hbooteng.nb0 /data/local/
adb shell
/data/local/busybox md5sum /data/local/hbooteng.nb0
If the output does not match "6991368ee2deaf182048a3ed9d3c0fcb" exactly, stop, delete it, and re-download it. Otherwise, continue.
Now we will write the new bootloader.
dd if=/data/local/hbooteng.nb0 of=/dev/block/mmcblk0p18
Confirm proper write:
/data/local/busybox md5sum /dev/block/mmcblk0p18
If the output does not match "6991368ee2deaf182048a3ed9d3c0fcb," try again; if it still doesn’t work, seek help from chat.andirc.net in channel #thunderbolt. DO NOT REBOOT.
Now, reboot your phone and put the custom RUU (PG05IMG.zip) on your SD card. Then flash it. This will upgrade you to release firmware with an S-OFF bootloader.
Next, run this command:
adb reboot bootloader
After it flashes, you will be running release firmware with S-OFF."
I have working recovery with S-Off. Just thought I would update incase this happens to anyone else
I'm having the same issue after rooting but I used the one click process. Guess at this point I should just try to go.throughit again? Or should I go.through adb and follow your steps?
Thanks you!
Nevermind
Sent from my ADR6400L using XDA App

[Q][SK17i][Locked BL] How to go in recovery with terminal?

What is the terminal/adb command to go in the recovery directly ?
Code:
reboot recovery
doesnt seem to work ...
I am using pvypart's recovery ...
http://forum.xda-developers.com/showthread.php?t=1437840
pvyparts app and serjar's system UI allow you to go to recovery directly so I believe there must be a terminal command too .
karandpr said:
What is the terminal/adb command to go in the recovery directly ?
Code:
reboot recovery
doesnt seem to work ...
I am using pvypart's recovery ...
http://forum.xda-developers.com/showthread.php?t=1437840
pvyparts app and serjar's system UI allow you to go to recovery directly so I believe there must be a terminal command too .
Click to expand...
Click to collapse
From the pc you can type
Code:
adb reboot recovery
This won't work on phone, because it would start an adb server on phone, so I don't know about the command on phone
Hmm
Doesnt seem to work
adb reboot recovery just reboots the phone ..
Hi
Did you previously install a recovery??
If not, try X-parts.
Hi
I can boot into recovery if I repeatedly press volume down at boot
Or I can access the recovery using x-parts or server's framework...
I need the terminal or adb command.
Sent from my SK17i using Tapatalk 2
karandpr said:
Hi
I can boot into recovery if I repeatedly press volume down at boot
Or I can access the recovery using x-parts or server's framework...
I need the terminal or adb command.
Sent from my SK17i using Tapatalk 2
Click to expand...
Click to collapse
You mean you can't boot in it or you can? By pressing volume down again and again? Reinstall the recovery, it must work. On which software version are you?
mihahn said:
You mean you can't boot in it or you can? By pressing volume down again and again? Reinstall the recovery, it must work. On which software version are you?
Click to expand...
Click to collapse
The recovery works...
I am on ics 587
I want to write a batch script so I can directly boot in recovery when my phone is connected to to windows ...
That's why I need the terminal command.
Sent from my SK17i using Tapatalk 2
karandpr said:
The recovery works...
I am on ics 587
I want to write a batch script so I can directly boot in recovery when my phone is connected to to windows ...
That's why I need the terminal command.
Sent from my SK17i using Tapatalk 2
Click to expand...
Click to collapse
15 Useful Android Terminal (ADB Shell) Commands
Wechy77 said:
15 Useful Android Terminal (ADB Shell) Commands
Click to expand...
Click to collapse
...
Didnt I mention it in the OP that
Code:
reboot recovery
normal reboots the phone
on top of that
Code:
adb shell reboot recovery
is useless without insecure shell
karandpr said:
...
Didnt I mention it in the OP that
Code:
reboot recovery
normal reboots the phone
on top of that
Code:
adb shell reboot recovery
is useless without insecure shell
Click to expand...
Click to collapse
Can you reboot into recovery from your hardware with out hitting the vol rocker? So on my hardware (ST18i) I can long press power select reboot and then I have the option for reboot or recovery. When this is set up correctly, selecting recovery will automatically reboot the device into recovery with out having to hit vol dwn...when it is not set up correctly it will reboot normally...so if you want recovery you have to hit vol dwn. Mine is currently not set up correctly...and when I try adb reboot recovery it behaves exactly like yours....just reboots with out going to recovery.
AFAIK the problem for the reboot to recovery from the hardware is in the ramdisk (not sure about from adb) so maybe try another kernel.....
My phone is locked ...
I tried both recoveries available with x-parts ...
The phone boots the recovery woth the modified framework(Hold the power button)
But I wanted the adb commands for a batch script ..
Anyway Thanks for your replies

CMD to reboot into Clockwork sideload mode or start sideload mode when in Clockwork?

So I'm trying to create a batch file for an automated process to install a zip, without any physical user interaction.
1.) Is it possible to reboot a phone into ClockworkMod Recovery and go straight to sideload mode using adb/fastboot?
...if that's not possible:
2.) Is it possible to to start sideload mode when in ClockworkMod Recovery, using only the command prompt and adb?
I've tried adb reboot sideload, adb reboot recovery sideload, adb reboot recovery-sideload, etc. Perhaps there's an adb shell command that can start sideload mode when in ClockworkMod Recovery?
Thanks.
beggin said:
So I'm trying to create a batch file for an automated process to install a zip, without any physical user interaction.
1.) Is it possible to reboot a phone into ClockworkMod Recovery and go straight to sideload mode using adb/fastboot?
...if that's not possible:
2.) Is it possible to to start sideload mode when in ClockworkMod Recovery, using only the command prompt and adb?
I've tried adb reboot sideload, adb reboot recovery sideload, adb reboot recovery-sideload, etc. Perhaps there's an adb shell command that can start sideload mode when in ClockworkMod Recovery?
Thanks.
Click to expand...
Click to collapse
Any ideas?
beggin said:
Any ideas?
Click to expand...
Click to collapse
Well, I have an idea!
The key you search is named OpenRecoveryScript.
Maybe its not the thing you search, but an alternative way.
Try this:
Code:
REM Reboot into Recovery
adb reboot recovery
REM Create OpenRecoveryScript
echo install /sdcard/*yourromnamehere*.zip > openrecoveryscript
REM Push Rom to /sdcard
adb push *yourromnamehere*.zip
REM Push both files to their correct Paths
adb push *yourromnamehere*.zip /sdcard/*yourromnamehere*.zip
adb push openrecoveryscript /cache/recovery
REM Reboot Recovery
adb reboot recovery
echo Done
pause
Try this Code and give feedback. I haven't included some wipe-commands!

HTC ONE X+ stuck in bootloop

my device is stuck in bootloop with no backup and is not showing up in adb for me to push rom to phone? suggestions????
What Version of adb do you have and which recovery are you using
Sent from my HTC One X+ using xda premium
Reboot into recovery, find the adb sideload option, activate it. Run adb sideload romname.zip on your computer where romname.zip is the ROM you want to flash. Sometimes it will take a number of minutes for your computer to recognize your device once it is in sideload mode. Just keep trying. I've had more luck doing this with TWRP than with CWM. We really should sticky some sort of sideload instructions...
NasaGeek said:
Reboot into recovery, find the adb sideload option, activate it. Run adb sideload romname.zip on your computer where romname.zip is the ROM you want to flash. Sometimes it will take a number of minutes for your computer to recognize your device once it is in sideload mode. Just keep trying. I've had more luck doing this with TWRP than with CWM. We really should sticky some sort of sideload instructions...
Click to expand...
Click to collapse
got error device not found using twrp recovery and * failed to write data 'protocol fault (no status)' * with cwm don't know what's wrong, Not rooted phone since my nexus one when i used to always root but with that could just whip the sd card out...
jizang said:
What Version of adb do you have and which recovery are you using
Sent from my HTC One X+ using xda premium
Click to expand...
Click to collapse
1.0.31 and tried both twrp and cwm
have you waited a few minutes and tried executing the adb sideload command on your computer multiple times when trying to sideload with TWRP?
NasaGeek said:
have you waited a few minutes and tried executing the adb sideload command on your computer multiple times when trying to sideload with TWRP?
Click to expand...
Click to collapse
yea ridiculous amount times
I had the same problem i could not adb sideload a Rom,in the end i had to flash stock ruu to save my phone
Sent from my HTC One X+ using xda premium
indie12 said:
got error device not found using twrp recovery and * failed to write data 'protocol fault (no status)' * with cwm don't know what's wrong, Not rooted phone since my nexus one when i used to always root but with that could just whip the sd card out...
Click to expand...
Click to collapse
Install TWRP instead of CWM! AFAIK adb sideload does not work on CWM recovery, had the same problem when i needed to use this command for the first time.
reaper90 said:
Install TWRP instead of CWM! AFAIK adb sideload does not work on CWM recovery, had the same problem when i needed to use this command for the first time.
Click to expand...
Click to collapse
doesn't work with twrp either,
also forgot to mention is odd that adb doesn't find device since i can flash new recovery / kernal via fastboot?
adb discovering my device in sideload now but not allowing the sideload? how can i push the rom to sdcard via adb?
indie12 said:
doesn't work with twrp either
Click to expand...
Click to collapse
It has to work, believe me. Are you on latest TWRP 2.5.0.0? If not, you should probably update. Erasing cache in fastboot ("fastboot erase cache") may help sometimes. Did you wait long enough for adb to recognize your phone in sideload mode (may take some minutes)?
If not:
1. Boot your phone in recovery, connect it to your computer and start sideload mode in recovery.
2. Open command line, navigate to the folder where your adb/fastboot files are (you must also copy the desired rom.zip file into this folder)
3. Type "adb start-server" and now wait some minutes.
4. Type "adb devices", your device should now be listed there in sideload mode. If not, wait some more time and try again
(10 min should be enough, if not, there's probably something wrong with the driver or adb files on your computer)
5. Now you can type "adb sideload name_of_your_rom.zip"
It should work now. when it's finished, the rom.zip file is saved on your phones internal memory as "sideload.zip"
If not, there must be something wrong with your driver and/or adb/fastboot files. Try reinstalling them then.
reaper90 said:
It has to work, believe me. Are you on latest TWRP 2.5.0.0? If not, you should probably update. Erasing cache in fastboot ("fastboot erase cache") may help sometimes. Did you wait long enough for adb to recognize your phone in sideload mode (may take some minutes)?
If not:
1. Boot your phone in recovery, connect it to your computer and start sideload mode in recovery.
2. Open command line, navigate to the folder where your adb/fastboot files are (you must also copy the desired rom.zip file into this folder)
3. Type "adb start-server" and now wait some minutes.
4. Type "adb devices", your device should now be listed there in sideload mode. If not, wait some more time and try again
(10 min should be enough, if not, there's probably something wrong with the driver or adb files on your computer)
5. Now you can type "adb sideload name_of_your_rom.zip"
It should work now. when it's finished, the rom.zip file is saved on your phones internal memory as "sideload.zip"
If not, there must be something wrong with your driver and/or adb/fastboot files. Try reinstalling them then.
Click to expand...
Click to collapse
its just worked, transfering the rom now, no idea what caused it to work this time but it is so thanks

Categories

Resources