Related
Can someone point me to a procedure to install a custom recovery. I'm currently on the stock recovery, have downloaded a CWM .img file, but don't know how to "flash" it using the stock recovery. Or is that not the way it's done at all? Thanks for the assistance.
Hi,
[GUIDE] Nexus 5 - How to Unlock Bootloader, Install Custom Recovery and Root
You need to flash it in fastboot. Boot into the boot loader and, fastboot flash recovery recovery.img. where recovery.img is the cwm image file
As the title states...can we flash just the bootloader from 25R onto 30O using fastboot? And if so, therefore allow for the temporary boot of a custom recovery. Until now, I've only owned/flashed Samsung devices so still learning the fastboot idioms. Any ideas or nah?
You can boot a recovery without flash it .. fastboot boot recovery.img
Why are you wanting to downgrade a bootloader to 25R? There aren't any restrictions.
If you want to temporarily boot a recovery, then just type what nneves said.
Theres no need to downgrade your bootloader.
Since the firmware has been updated to 30O, this cannot be done. I used the 'boot recovery' method while on 25R, but for some reason (security?) they have blocked that exploit, hence the question at hand.
I had even tried this method I found in a Nexus forum:
Here's some instructions I compiled for doing useful things with your Nexus. Also includes instruction to root nexus 4 without installing a custom recovery. Basically, you save the customrecovery.zip file then fastboot boot into it (NOT install, and notice you have to type the full command specified below, not just "fastboot boot customrecovery.img") and then install using the custom recovery, install SuperSU.zip for unrooting:
1) Install all STOCK files:
./fastboot flash bootloader bootloader-XXX.img ./fastboot reboot-bootloader ./fastboot flash radio radio-XXX-XXX.img ./fastboot reboot-bootloader ./fastboot -w update image-XXX-XXX.zip ./fastboot oem unlock (to unlock bootloader)
2) If you want to keep stock recovery, fast boot BOOT into custom recovery and install SuperSu.zip: 3) Install SuperSu.zip file (to root)
./fastboot -c "lge.kcal=0|0|0|x" boot customrecovery.img
there used to be a 'fastboot boot recovery recovery.img' command, but Google removed it in 4.3, so now to simply boot into your custom recovery you can type 'fastboot -c "lge.kcal=0|0|0|x" boot customrecovery.img' instead and it'll do the same thing as the 'fastboot boot' command. Meaning it will revert to your stock recovery once you reboot. So boot into custom recovery, flash superuser (Koush or Chainfire's) and reboot. done.
It didn't work but maybe another code for our device is needed?
Just going to give this a little bump...
there is a stock 25R ROM zip floating around here somewhere. you should just be able to flash it via recovery using twrp, if you're just wanting to go back to flat stock. let me know if you can't find it, i think i may have it somewhere.
Wouldn't you need to unlock the bootloader to downgrade to 25R? I think that there would be some sort of check in the signed 25R OTA update that would prevent you from flashing it.
Hello! I've tried to root my phone (Moto G XT1541 Europe 1GB) but failed. I got an error when trying to flash the custom recovery. Unfortunately, it has overwritten the stock recovery and it didn't install. So, now I have a phone without recovery and I can't do a factory reset because of that (I think).
So, this is my question: how can I re install the default Android 6.0 recovery mode for my phone?
Also, my phone boots automatically on bootloader mode and I can't re-lock the bootloader because I can't flash anymore either; I got an error because the pre flash validation failed when trying to flash with adb fastboot, but this is minimal issues that doesn't really bother me, but they could be helpful and if someone knows how to get rid of them, I want to know!
I hope someone will help me!
Azyreal said:
Hello! I've tried to root my phone (Moto G XT1541 Europe 1GB) but failed. I got an error when trying to flash the custom recovery. Unfortunately, it has overwritten the stock recovery and it didn't install. So, now I have a phone without recovery and I can't do a factory reset because of that (I think).
So, this is my question: how can I re install the default Android 6.0 recovery mode for my phone?
Also, my phone boots automatically on bootloader mode and I can't re-lock the bootloader because I can't flash anymore either; I got an error because the pre flash validation failed when trying to flash with adb fastboot, but this is minimal issues that doesn't really bother me, but they could be helpful and if someone knows how to get rid of them, I want to know!
I hope someone will help me!
Click to expand...
Click to collapse
The bootloader cannot be relocked in the Moto G 2015, the best you can do is hide the warning screen. Find the stock image and fastboot flash the recovery from there, or better yet, flash the entire image so you are in a known working state
If you are in Pre-Flash validation, you do not have the correct image for your device... I suggest you post in the "How to flash factory images" thread about returning to stock, if it is possible. You MUST factory default before flashing factory images, if you can't, try 'fastboot erase userdata' and try again.
Flash latest twrp via fastboot and reboot into recovery ,
don't reboot into system,
reboot into recovery manually, then you can enter twrp recovery and can flash supersu 2.62.3.
when you just reboot after flash twrp and reboot system erase custom recovery and save stock recovery, so don't enter fastboot reboot, enter fastboot reboot recovery after flash recovery via pc.
Rename twrp recovery as only twrp in fastboot folder in your pc , not as twrp.img,
But cmd as fastboot flash recovery twrp.img , then no errors ( are you unlocked bootloader ?)
acejavelin said:
The bootloader cannot be relocked in the Moto G 2015, the best you can do is hide the warning screen. Find the stock image and fastboot flash the recovery from there, or better yet, flash the entire image so you are in a known working state
If you are in Pre-Flash validation, you do not have the correct image for your device... I suggest you post in the "How to flash factory images" thread about returning to stock, if it is possible. You MUST factory default before flashing factory images, if you can't, try 'fastboot erase userdata' and try again.
Click to expand...
Click to collapse
drmuruga said:
Flash latest twrp via fastboot and reboot into recovery ,
don't reboot into system,
reboot into recovery manually, then you can enter twrp recovery and can flash supersu 2.62.3.
when you just reboot after flash twrp and reboot system erase custom recovery and save stock recovery, so don't enter fastboot reboot, enter fastboot reboot recovery after flash recovery via pc.
Rename twrp recovery as only twrp in fastboot folder in your pc , not as twrp.img,
But cmd as fastboot flash recovery twrp.img , then no errors ( are you unlocked bootloader ?)
Click to expand...
Click to collapse
Hey! Thank you! I've been able to flash the TWRP recovery and now I can do a factory reset (and also send sms, which I couldn't do anymore for some reason).
I still have the issue where the bootloader screen appears everytime I turn my phone on, and I still can't re lock my device because I can't flash anything either. I've recovered all of my data, so I think I'm going to stick with that for a moment but maybe I'll try what you said some day.
Again, really thank you for helping me!
drmuruga said:
Flash latest twrp via fastboot and reboot into recovery ,
don't reboot into system, reboot into recovery manually, then you can enter twrp recovery and can flash supersu 2.62.3.
when you just reboot after flash twrp and reboot system erase custom recovery and save stock recovery, so don't enter fastboot reboot, enter fastboot reboot recovery after flash recovery via pc.
Click to expand...
Click to collapse
Now I understand why my flashing TWRP did not take. I simply rebooted to system and still have stock recovery installed. I was successful booting twrp via fastboot and successfully flashed supersu 2.62.3. Is this step in listed in any faq? I must have missed it.
So after flashing TWRP, do you then power down device prior to manually booting to recovery?
MrTooPhone said:
Now I understand why my flashing TWRP did not take. I simply rebooted to system and still have stock recovery installed. I was successful booting twrp via fastboot and successfully flashed supersu 2.62.3. Is this step in listed in any faq? I must have missed it.
So after flashing TWRP, do you then power down device prior to manually booting to recovery?
Click to expand...
Click to collapse
Don't power down, already you are in fastboot mode, you can just enter recovery from that. I forget the reference, but i will search and post.
---------- Post added at 04:41 PM ---------- Previous post was at 04:18 PM ----------
I get this from twrp official page
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.
In our phone press simultaneously volume down + power button to enter recovery.
What's up all. So I have a Verizon pixel rooted on 7.1. I want to sideload 7.1.1 but don't want lose the ability to re root etc. Just wanna make sure I have he steps down.
-flash back to stock boot image
-sideload 7.1.1 ota
-flash twrp
-flash root
Am I missing anything??
You could also flash back to stock boot image, boot up and take the OTA actually over the air.
Also, don't flash TWRP initially, just boot TWRP, flash twrp from inside twrp, reboot into recovery, then finally flash root (make sure to read the twrp rc1 thread, post #2) reboot to let root finish, and done. (unless you want a custom Kernel, then do this very last.
After doing a twrp backup and backing up the entire device, I used this method to update with twrp and root installed. I did not lose data.
Afterwards you will need to install TWRP and root.
mruno said:
After doing a twrp backup and backing up the entire device, I used this method to update with twrp and root installed. I did not lose data.
Afterwards you will need to install TWRP and root.
Click to expand...
Click to collapse
Ok that looks easy enough. What is the command you typed to flash the file after its modified?
computercarl said:
You could also flash back to stock boot image, boot up and take the OTA actually over the air.
Also, don't flash TWRP initially, just boot TWRP, flash twrp from inside twrp, reboot into recovery, then finally flash root (make sure to read the twrp rc1 thread, post #2) reboot to let root finish, and done. (unless you want a custom Kernel, then do this very last.
Click to expand...
Click to collapse
This sounds like the easiest way. Where do i get the stock boot image from? Do i extract it from the factory image zip file? And then once I get it what is the command I'd use to flash it?
https://www.androidfilehost.com/?fid=529152257862669140 is nde63p's boot.img. If you are on something else, you can extract it's boot.img from the factory image, there's a boot file in there. Fastboot boot <img file name> will boot it, then you can take the ota, reboot because the ota needs to finish. copy twrp.zip on to sd card, (were going to need it in a minute!) then fastboot boot twrp3020rc1.img the same way. From twrp, flash the zip. tell twrp to reboot into recovery. it will reboot into twrp, from the recovery (Or dont flash the zip, you dont have to, some prefer to remain on stock recovery) and then flash SU SR5 (How to install SuperSU SR5 on TWRP RC1: Before flashing the zip, in TWRP tap on Advanced -> File Manager and scroll to and select the fstab.marlin or fstab.sailfish file and then delete it. ) then finally flash a kernel. If you are going to flash root, might as well flash ElementalX 1.01 kernel from twrp. Hope that is a bit more breakdown.
computercarl said:
https://www.androidfilehost.com/?fid=529152257862669140 is nde63p's boot.img. If you are on something else, you can extract it's boot.img from the factory image, there's a boot file in there. Fastboot boot <img file name> will boot it, then you can take the ota, reboot because the ota needs to finish. copy twrp.zip on to sd card, (were going to need it in a minute!) then fastboot boot twrp3020rc1.img the same way. From twrp, flash the zip. tell twrp to reboot into recovery. it will reboot into twrp, from the recovery (Or dont flash the zip, you dont have to, some prefer to remain on stock recovery) and then flash SU SR5 (How to install SuperSU SR5 on TWRP RC1: Before flashing the zip, in TWRP tap on Advanced -> File Manager and scroll to and select the fstab.marlin or fstab.sailfish file and then delete it. ) then finally flash a kernel. If you are going to flash root, might as well flash ElementalX 1.01 kernel from twrp. Hope that is a bit more breakdown.
Click to expand...
Click to collapse
I extracted the boot.img and put in in my fastboot folder, but when I go to flash it it's saying file not found?? I named it boot.img and am typing fastboot flash boot boot.img. I've also tried fastboot boot boot.img and get the same message.
What am i doing wrong? Could I have the wrong boot image??
mpetruzz said:
Ok that looks easy enough. What is the command you typed to flash the file after its modified?
Click to expand...
Click to collapse
just double click the .bat file and it will perform all of the commands. the first boot afterwards will take a few mins.
kk
kraken-gz said:
i managed to flash twrp via fastboot, with command:
fastboot flash recovery recovery.img
and then i applied:
fastboot boot recovery
and it booted into twrp (yay), but when i try to reboot it into system (or poweroff, and on), it boots into twrp. succesfully managed to replace stock recovery, but now i cant go into system. i got backup of system, but i don't know how to boot into system now.
phone is Allview Viva H801
I don't know how i can get into fastboot now via twrp. Is there way to communicate with twrp via PC. because twrp terminal , closes keyboard when i press key 'b', which makes it impossible to type any command (to get into fastboot )
can i fix this via twrp as i cant go into bootloader
Click to expand...
Click to collapse
TWRP don't have reboot bootloader option!?
Re-flash Stock ROM.
Thread closed as OP removed the content from the opening post.