command to reboot recovery + auto apply update.zip - Nexus One Q&A, Help & Troubleshooting

Hi everyone,
I'm looking for a command that could, when the phone is wake up, fully booted and active, reboot into recovery and flash an update.zip "unatended".
I'm using Amon_RA's recovery.
Is it possible?
thx

Related

Lost my Recovery

So I put ClockworkMod Recovery 2.0.1.3 on my G1 yesterday with the app ROM Manager v2.0.0.5
I flashed a ROM using the app... No errors, no bootloop, worked fine..
I now press [HOME] + [POWER] and I get stuck at the G1 screen
I type reboot recovery via terminal and I get stuck at the G! screen
I flash_image recovery /sdcard/cm-recovery-1.4.img and I get a plethora of errors and last line states I am out of memory ????
I erase_image recovery and I get no errors but nothing happens
I go to recovery flasher and get errors if I try to back up or flash my recovery
I go to ROM Manager to flash a recovery and it wont flash CwM recovery
I dont have adb at the moment bc my comp is tanked... any suggestions?
I had Clockwork and I Flashed KenMood 1.9.3 and last night when I tried to boot into Recovery it would just get stuck on the Splash. When I booted up normally, it would just reboot. Now when I try (after charging overnight) it works fine, but still no recovery image. I tried to flash it using ROM Manager Premium and it shows that the flash was successful but it still won't work. Any ideas on what I can do…? I don't have fastBoot setup correctly btw.
I tweeted koush and this was his reply
koush
@JunkDruggler Use erase_image to erase your recovery and flash another one. Or fastboot flash another one on there. about 1 hour ago via Tweetie for Mac in reply to JunkDruggler
So I opened terminal and kept trying over and over
erase_image recovery
flash_image recovery /sdcard/cm-recovery-1.4.img
I noticed less errors and eventually it worked..
I am now back to my obselete recovery with the console nobody uses anymore..

(Q) Recovery - Not booting into

Hi XDA, as title says, i cant get boot into recovery...
I have an HTC Dream (Spanish version of G1), and Im having problems with the recovery boot.
I have root done on the phone and i've tried to install a new recovery via Clockwork app, adb shell, also via Fastboot and via "RECOVERY FLASHER"...
All of them look to finish succesfully, but I still cant boot onto recovery.
Every time I try to boot on recovery, the phone gets hang on the company logo... until I get out the battery to turn it off.
I dont know what can I try more...
Any idea ?
Thanks
If you cannot boot into recovery by holding down Home and Power, then you're bricked, I believe. What were you trying to do?
Sent from my HTC Dream using XDA App
I can boot normally, and I run apps that need root correctly, but I want to boot into recovery to flash a custom ROM...
Clockwork mod needs to reboot into recovery to reflash a Custom ROM, so I cant get another rom that way neither.
Any idea (again)?
Do you have terminal on your phone? Download amon RA recovery 1.7.0 for HTC Dream and use that instead Clockwork because it is most recommended. Rename it to recovery.img and move it to the root of your SD card.
Go to terminal on your phone and type:
cd sdcard
flash_image recovery recovery.img
Now try to boot into recovery mode.
Sent from my HTC Dream using XDA App
If you have root access, then you can try to (re-)install your recovery image using adb.
Open a shell using the command
adb shell
and then from there you can try to flash the recovery image by entering
flash_image recovery recovery.img
where recovery.img is the name of the recovery image you want to install and it should be located in the current directory.
Edit: two people same ideas ... ;-)
Both things re-done...
Nuthin'
Anything else ?
Thanks for the answers anyway
Bump...
Any help ?
Fastboot is working for me, but I have the default SPL and I cant use "fastboot flash new_recovery.img" ---> Not allowed.
Theres a way to flash another SPL using phone terminal, or using fastboot ?
Thanks
I'm not sure, but if I was in the same boots as you, I would download the DREAIMG.nhb and flash that in fastboot. Once done, you'll be on Stock RC29. Yep, you're going to have to root again and re-install a custom recovery.
This is also safe to do since you're on HBOOT-0.95.000.
Sent from my T-Mobile myTouch 3G using XDA App
removed ...
Thanks for everything guys...
But now im looking for a "Howto unbrick G1"...
I dont have fastboot, recovery boot or normal boot...

Need help:Unlocked Bootloader and Fastboot now.....

hey guys i finally finished unlocking the bootloader on my 2.2.1 FRG83D build N1 but i couldnt get recovery.img to push to the N1 through adb.second option was to run "install-superboot-windows" for FRG83D build on bootloader screen from PC,soon as i did that N1 booted to the phone and i checked in the app menus and i have the latest "SUPERUSER" app.i really want to flash custom ROMS now.DO I HAVE RECOVERY or how do i get recovery now cuz i really wanna get started with flashing custom roms.any suggestions would help.thanx
1. Get a teminal emulator from the market and reboot recovery. or
2. Get quick Boot from the market and install/use that to boot into recovery or
3. Power down the phone and push the trackball+power to boot into recovery
If none of those 3 options work for you, your recovery did not flash and you will need to either reflash it. (making sure fastboot sees your phone with fastboot devices)
Or you could download ROM manager from the market. Using that, you can install clockwork recovery from the app itself.
Know-Fear said:
1. Get a teminal emulator from the market and reboot recovery. or
2. Get quick Boot from the market and install/use that to boot into recovery or
3. Power down the phone and push the trackball+power to boot into recovery
If none of those 3 options work for you, your recovery did not flash and you will need to either reflash it. (making sure fastboot sees your phone with fastboot devices)
Or you could download ROM manager from the market. Using that, you can install clockwork recovery from the app itself.
Click to expand...
Click to collapse
i dont think i have any recovery,i just tried installing clockwork recovery and try to get in the recovery,it froze my N1 and i had to hard reset the N1.
Flash the recovery via fastboot, not adb...
Sent from my Nexus One using XDA App

Trying to install TWRP on my Nexus 6 - keeps reverting back to stock recover

I have tried a number of times to install TWRP (unrooted) on my Nexus 6. I am following the instructions from here
https://twrp.me/devices/motorolanexus6.html
I am noting the warnings here
Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install.
Once I issue the fastboot reboot command before the Nexus 6 shows anything on the display I press power and vol down and get into TWRP. It seems to what it's supposed to do (presumably patch the stock ROM) and then I reboot to Android.
But the next time I boot to recovery I end up with stock recovery again. I have tried this a number of times and while I can get TWRP installed it always reverts to stock recovery after the next restart.
Is there something else I have missed here in the instructions? They seem fairly clear.
Not that I think it matters but I am running 7.1.1 (flashed with the OTA image since I was not getting OTA updates)
Thanks
Instead of using the fastboot command to reboot to recovery after you have flashed TWRP do it manually. Been a while but I believe that should work.
Dont use the fastboot reboot command, use the volume keys to enter twrp recovery after flashing twrp in fastboot mode
Once you are in twrp swipe to allow changes and if needed change twrp settings, after that reboot into rom.
TMG1961 said:
Dont use the fastboot reboot command, use the volume keys to enter twrp recovery after flashing twrp in fastboot mode
Once you are in twrp swipe to allow changes and if needed change twrp settings, after that reboot into rom.
Click to expand...
Click to collapse
I have done that several times. This is the screen I see when TWRP is loading for the first time.
Not sure if those red messages are fatal or not
When I am in TWRP I can reboot to recovery and it gets back to TWRP but if I reboot to system and then try to enter TWRP on a reboot (holding power and volume up/down it boots into the Fastboot and when I choose Recovery mode I send up with stock recovery again.
Am running 7.1.1 myself and flashed the latest TWRP 3.1.1-0
Were did you download the twrp img from? I download mine from https://dl.twrp.me/shamu/ Once i downloaaded it i rename it to recovery.img
I use cmd on laptop andhook up the phone, then run adb reboot bootloader followed by fastboot flash recovery recovery.img, then i use the volume keys to get into twrp, swipe to allow changes and make changes to settings. Then reboot into rom.
TMG1961 said:
Am running 7.1.1 myself and flashed the latest TWRP 3.1.1-0
Were did you download the twrp img from? I download mine from https://dl.twrp.me/shamu/ Once i downloaaded it i rename it to recovery.img
I use cmd on laptop andhook up the phone, then run adb reboot bootloader followed by fastboot flash recovery recovery.img, then i use the volume keys to get into twrp, swipe to allow changes and make changes to settings. Then reboot into rom.
Click to expand...
Click to collapse
That is pretty much what I have been doing. The only difference is, the first time I did this (before I realised it wasn't working), I rebooted from adb and I did see the swipe to allow changes. But since then if I boot from abd or boot from the bootloader, I don't see the TWRP option to swipe to allow changes anymore.
I wonder if it's because the data is encrypted (standard on a N6?)
I checked the box to not show the swipe to allow modification. I have never decrypted my phone and twrp sticks. So not sure why yours isnt sticking.
TMG1961 said:
I checked the box to not show the swipe to allow modification. I have never decrypted my phone and twrp sticks. So not sure why yours isnt sticking.
Click to expand...
Click to collapse
Well the first time I did it I saw that message about allow modification and I agreed. Never seen it again.
The point of installing TWRP was to install a custom ROM. I wonder if I load the ROM image into the phone first, install TWRP and get into the first time, which I can, then install the ROM would that work?
lchiu7 said:
Well the first time I did it I saw that message about allow modification and I agreed. Never seen it again.
The point of installing TWRP was to install a custom ROM. I wonder if I load the ROM image into the phone first, install TWRP and get into the first time, which I can, then install the ROM would that work?
Click to expand...
Click to collapse
After using fastboot to flash TWRP, use the volume and power buttons​ to boot into TWRP, and allow modifications, then make a backup and reboot system. Go back to recovery and if all is well, then flash your ROM. Make sure you've got your TWRP issue fixed first though.
The same thing keeps happening to me. I can't seem to make twrp stick. I'd really appreciate some help.
Depending on what your doing, typically you have to manually boot into recovery after flashing twrp (from fastboot), don't use fastboot reboot xxxx. Use the power/volume key combo to reboot. Then accept either system modification or flash a systemless root solution. This will enable custom recovery to "stick". Otherwise, stock android will overwrite recovery on boot.
The TWRP thread has discussions about this. Starting at post 1044 should help.
mrcreativity said:
The same thing keeps happening to me. I can't seem to make twrp stick. I'd really appreciate some help.
Click to expand...
Click to collapse
Is your device encrypted before you flash TWRP?
Yes it is encrypted.
Anyway, I tried all the various methods and combinations but ended up going back to stock recovery. What worked was flashing SU after TWRP.
I'm running pure nexus now and enjoying it.

TWRP is not staying after flashing recovery

Greetings,
I have been trying to install a custom rom on my Moto G5s Plus and I have noticed a problem. After I flash TWRP (using the fastboot flash recovery command), I can enter recovery mode but after I reboot, it seems to clear recovery and displays the error message No Command.
Is there a way to make the recovery stay?
Thank you in advance for your help.
copy the recovery image on phone and open the recovery using pc, then click on install - click install image locate the recovery file select recovery option (from 4 options) and swipe to flash . Done

Categories

Resources