I'm having a problem flashing a custom recovery on my Nexus 7. I'm trying to install the TWRP recovery for the "flo" version and it doesn't seem to install. I mean, it says it does in fastboot mode but when I reboot to recovery it goes to the stock recovery instead (the green android with the red triangle) and just stays on that screen for minutes. What gives?
Brushstroke said:
I'm having a problem flashing a custom recovery on my Nexus 7. I'm trying to install the TWRP recovery for the "flo" version and it doesn't seem to install. I mean, it says it does in fastboot mode but when I reboot to recovery it goes to the stock recovery instead (the green android with the red triangle) and just stays on that screen for minutes. What gives?
Click to expand...
Click to collapse
You used
fastboot flash recovery twrp.img?
meekrawb said:
You used
fastboot flash recovery twrp.img?
Click to expand...
Click to collapse
Yep. Solved it though. Apparently in 4.4 they've made it so that the device will replace TWRP with the stock recovery immediately after rebooting if you don't boot into TWRP immediately after installing it using:
fastboot boot name-of-recovery.img
Then you have to change the name of a file while in TWRP. In TWRP go to Mount and select System. Then go back to the main screen and press Advanced > File Manager. Browse to /system and select a file named recovery-from-boot.p and rename it to recovery-from-boot.bak. And you should be able to go into TWRP like normal.
Brushstroke said:
Yep. Solved it though. Apparently in 4.4 they've made it so that the device will replace TWRP with the stock recovery immediately after rebooting if you don't boot into TWRP immediately after installing it using:
fastboot boot name-of-recovery.img
Then you have to change the name of a file while in TWRP. In TWRP go to Mount and select System. Then go back to the main screen and press Advanced > File Manager. Browse to /system and select a file named recovery-from-boot.p and rename it to recovery-from-boot.bak. And you should be able to go into TWRP like normal.
Click to expand...
Click to collapse
Could you please describe this procedure detailed?
Where can I find the "Mount" option?
Must my device being rooted?
Some tricks for you guys if you are stuck like I was :
-if you can't boot to custom recovery, try naming your custom recovery img "recovery.img" instead of "twrp.img" when you flash it.
so --> "fastboot flash recovery recovery.img" will be the command you execute.
-if you can't flash recovery at all, try executing the command without the phone plugged, then plug the device when you see the prompt "<waiting for any device>"
Hope this helps !
Related
My nexus is LTE version, and had stock 4.0.2. I unlocked the boot loader, and rooted successfully, using "Galaxy Nexus Root Toolkit v1.3". I can see that the boot loader is unlocked in FASTBOOT screen.
My computer recognizes both ADB mode and FASTBOOT mode.
Then I did "Temporary Flashing" of ClockworkMod 5.5.0.4 to "Boot" partition, and installed 4.0.4 successfully. And applied the new "su.zip" as well.
After doing this, I could see that the phone boots okay, and everything was perfect, including the root permission.
The problem starts from here.
Since it was temporary flashing of CWM, I wanted CWM to be permanent. So I first erased "/system/recovery-from-boot.p". And then used the toolkit again, but this time I selected "Permanent Flashing" of Clockwork Mod 5.5.0.4 to "Boot" partition.
Now, when I turn on the phone, it boots into CWM recovery(!). Furthermore, if I select "reboot system now", it reboots, but it boots into CWM recovery again(!). I can't get into Android anymore.
I don't know if it is a good thing or not, but when I'm in CWM recovery mode (when booted), my computer recognizes the phone as "ADB mode - recovery".
Oh, and when turning on the phone with VOLUP+VOLDOWN+POWER, it still shows FASTBOOT screen (and yes, the computer still recognizes it as FASTBOOT mode), but when I select "recovery", there's an Android with a red warning sign on it, and system halts. I should do a battery pull.
What should I do??? Help
PS1. I downloaded "mysid-icl53f-factory-blahblah.tgz" from google's depository and extracted "recovery.img". And used the toolkit to "Temp Flashing" to "Boot" partition, but it ends up in the android with the red warning.
If you're using Galaxy Nexus Toolkit v5.4 from mskip, you don't need to extract anything, just copy .tgz file into the appropriate folder and the toolkit will do the rest for you.
Try reflashing the stock image from google again (make sure you choose the one for CDMA version).
After that, use toolkit to flash CWM, and the touch version is fun.
highmoon said:
My nexus is LTE version, and had stock 4.0.2. I unlocked the boot loader, and rooted successfully, using "Galaxy Nexus Root Toolkit v1.3". I can see that the boot loader is unlocked in FASTBOOT screen.
My computer recognizes both ADB mode and FASTBOOT mode.
Then I did "Temporary Flashing" of ClockworkMod 5.5.0.4 to "Boot" partition, and installed 4.0.4 successfully. And applied the new "su.zip" as well.
After doing this, I could see that the phone boots okay, and everything was perfect, including the root permission.
The problem starts from here.
Since it was temporary flashing of CWM, I wanted CWM to be permanent. So I first erased "/system/recovery-from-boot.p". And then used the toolkit again, but this time I selected "Permanent Flashing" of Clockwork Mod 5.5.0.4 to "Boot" partition.
Now, when I turn on the phone, it boots into CWM recovery(!). Furthermore, if I select "reboot system now", it reboots, but it boots into CWM recovery again(!). I can't get into Android anymore.
I don't know if it is a good thing or not, but when I'm in CWM recovery mode (when booted), my computer recognizes the phone as "ADB mode - recovery".
Oh, and when turning on the phone with VOLUP+VOLDOWN+POWER, it still shows FASTBOOT screen (and yes, the computer still recognizes it as FASTBOOT mode), but when I select "recovery", there's an Android with a red warning sign on it, and system halts. I should do a battery pull.
What should I do??? Help
PS1. I downloaded "mysid-icl53f-factory-blahblah.tgz" from google's depository and extracted "recovery.img". And used the toolkit to "Temp Flashing" to "Boot" partition, but it ends up in the android with the red warning.
Click to expand...
Click to collapse
If you're using Windows. You can be saved at this point. The good thing is that your device is being recognized by ADB in recovery.
The toolkit installed the SDK onto your computer
Here is what you do to go save yourself
Download a Galaxy Nexus LTE ROM as well as the Gapps package for it. (AOKP as an example)
go to C:\Android-sdk-windows\platform-tools and put the ROM and Gapps in there
Now, with your phone plugged into computer and in recovery, open up a command prompt
In recovery, navigate to "Mounts and Storage" and be sure to select MOUNT DATA
type
cd c:\android-sdk-windows\platform-tools
adb push EXACTNAMEOFROM.ZIP /data/media
(depending on the file size, it will take about a minute or two)
adb push EXACTNAMEOFGAPPS.ZIP /data/media
adb reboot recovery
------
Okay, now that you have rebooted recovery , go to "install zip from sd card" and MAKE SURE you see the ROM and Gapps package, but DON'T flash them yet.
Go back,
Wipe data
Wipe Cache
Go to advanced and select Wipe Dalvik Cache (ignore the SD-EXT error that's normal)
Go to Mounts and Storage - and select Format System
Go back
Go to install zip from sd card, flash ROM, then slect install zip from sd card again and flash Gapps
REBOOT
Enjoy
Again...
Samsuck said:
Download a Galaxy Nexus LTE ROM as well as the Gapps package for it. (AOKP as an example)
Click to expand...
Click to collapse
I'm wondering, as heo_con184 said above, if I can flash the stock ROM? (instead of other ROMs)
Must it be other ROM to make it work?
Thanks in advance.
Up to you, you can also just flash stock images and start over.
My method should work too, and leave you with root
Your choice
highmoon said:
I'm wondering, as heo_con184 said above, if I can flash the stock ROM? (instead of other ROMs)
Must it be other ROM to make it work?
Thanks in advance.
Click to expand...
Click to collapse
You could do it either way.
Okay, I found a solution without wiping everything.
(Flashing a stock ROM image, or other ROMs would wipe your everything...)
But thanks people!
For those of you, who would encounter something like this (including me again), I'm leaving a note.
0) This problem happens because your Boot partition, overwritten by ClockworkMod recovery image, is no longer compatible with the rest 4.0.4 image. So you need not only "recovery.img", but also "boot.img". Unfortunately, boot.img is not there in the 4.0.4 ROM. But luckily, someone else extracted it.
1) Get the 4.0.4 stock image from here
(android.clients.google.com/packages/ota/verizon_prime/659e0a8f24b4.signed-mysid-IMM30B-from-ICL53F.659e0a8f.zip)
2) Extract "recovery.img" from the file above.
3) Get "boot.img" in here (aospdev.com/rhcp/dev/404boot_root.img)
4) Get into FASTBOOT mode
5) fastboot flash boot boot.img (if not renamed, "404boot_root.img" above)
6) fastboot flash recovery recovery.img
6) Enjoy
Hi
I have a H815 Singapore version. Not rooted. No matter what method I tried that I found online it will just boot regularly and not able to go into recovery mode.
Anyone has any idea?
Although i have an international i had the same problem.
What i did was boot into fastboot. Then run the command "fastboot boot *whatever your recovery is called*
then copy your recovery into your internal storage. Once you have boot into twrp install the twrp image by clicking on the image button on the bottom right.
SAMVREMIX said:
Although i have an international i had the same problem.
What i did was boot into fastboot. Then run the command "fastboot boot *whatever your recovery is called*
then copy your recovery into your internal storage. Once you have boot into twrp install the twrp image by clicking on the image button on the bottom right.
Click to expand...
Click to collapse
so basically install a custom recovery?
sorry i misinterpreted the post.
I used this https://dl.twrp.me/oneplus3/twrp-3.0.2-0-oneplus3.img.html recovery to flash but after reboot to system and then to recovery it shows the stock recovery. Any help ?
That's quite normal. If you flash a stock rom without reinstalling twrp before rebooting system, you will lose twrp because stock rom will install stock recovery too . So, you have to install TWRP from adb by Fastboot again.
Enviado desde mi ONEPLUS A3003 mediante Tapatalk
samnaction said:
I used this https://dl.twrp.me/oneplus3/twrp-3.0.2-0-oneplus3.img.html recovery to flash but after reboot to system and then to recovery it shows the stock recovery. Any help ?
Click to expand...
Click to collapse
Honestly its not that urgent to be honest before you flashed the stock rom you should of read up on what was going to happen. Being knowledgeable about what you are doing is your biggest asset. Also its not that big of a deal reflash TWRP as mentioned and going forward do some reading before making moves
Also make sure the right stuff is checked off in your settings so that the stock recovery does not come back
if u can still boot into ur OS just download flashify and flash twrp via flashify, u can download twrp via flashify too
this is normal it happens from time to time
playya said:
Honestly its not that urgent to be honest before you flashed the stock rom you should of read up on what was going to happen. Being knowledgeable about what you are doing is your biggest asset. Also its not that big of a deal reflash TWRP as mentioned and going forward do some reading before making moves
Also make sure the right stuff is checked off in your settings so that the stock recovery does not come back
Click to expand...
Click to collapse
No it's not the issue I haven't flashed stock rom. I m flashing twrp for first time. Don't know what's the issue but it got fixed after I did factory reset and flashed twrp again
samnaction said:
No it's not the issue I haven't flashed stock rom. I m flashing twrp for first time. Don't know what's the issue but it got fixed after I did factory reset and flashed twrp again
Click to expand...
Click to collapse
did you follow these steps or did you just reboot directly into the OS
2. Flashing TWRP
Turn the phone off. Then boot it into fastboot mode by holding volume up + power.
Rename the recovery file that you downloaded above to recovery.img. *Make sure that you rename it to recovery.img NOT recovery.img.img* ,Make sure that this file is placed on the desktop.
Open a new command prompt on desktop and run the following commands:
Code:
fastboot flash recovery recovery.img
Once the flash has completed, Don't use the "Fastboot Reboot" Command Instead Unplug Your phone then Manually boot it into recovery by keeping Power + Volume Down button pressed.
In TWRP, select Reboot and then select System. Now your phone will boot into System and you have cleared Steps 2/3 . Grats.
playya said:
did you follow these steps or did you just reboot directly into the OS
2. Flashing TWRP
Turn the phone off. Then boot it into fastboot mode by holding volume up + power.
Rename the recovery file that you downloaded above to recovery.img. *Make sure that you rename it to recovery.img NOT recovery.img.img* ,Make sure that this file is placed on the desktop.
Open a new command prompt on desktop and run the following commands:
Code:
fastboot flash recovery recovery.img
Once the flash has completed, Don't use the "Fastboot Reboot" Command Instead Unplug Your phone then Manually boot it into recovery by keeping Power + Volume Down button pressed.
In TWRP, select Reboot and then select System. Now your phone will boot into System and you have cleared Steps 2/3 . Grats.
Click to expand...
Click to collapse
Yes I did. Don't know why it didn't work first time. Everything fine after factory resetting again
Hi guys,
I've just updated to newest OOS firmware wich is 5.1.2 and I'm facing a weird problem.
Every time I flash codeworks TWRP and reboot to system, the next time i try to boot to recovery it boots to the original recovery.
It's like when I flash TWRP it doesn't remain persistent. When i flash it through fastboot and straightly boot from fastboot to recoverry I succeed to get in TWRP but as soon as I reboot to system and try to boot to recovery I reach the original OnePlus recovery.
Is anyone facing the same problem ?
And also do you have any idea about what i could do to solve this problem ?
Thanks in advance for your answers !
If you don't have root or custom kernel its normal, plus you should use blu spark's twrp, its newer and more reliable.
Adnan008 said:
If you don't have root or custom kernel its normal, plus you should use blu spark's twrp, its newer and more reliable.
Click to expand...
Click to collapse
Indeed, I just needed to flash magisk to get it persistent. I'll try blu spark's one as you suggested.
Thank you very much for your answer !
Cheers !
Nothing to do with recoveries or kernel. After you do the fastboot flash recovery TWRP in fastboot, do this: "fastboot boot TWRP". I believe that's the right command. Basically after you flash it, manually boot to recovery through fastboot one time. After that it'll work from inside the phone or with the button combination with the phone off.
Jesus people are lazy these days.
First off there are official twrp versions for a reason!
Download the latest version: https://dl.twrp.me/dumpling/
Reboot into flash boot with the following command from your rom: adb reboot bootloader
With phone in fastboot mode: fastboot flash recovery 'twrp.img'
(You don't need to type out the entire file path you can just drag the file into the terminal and it'll insert the file location)
The reason you're not getting back into that recovery is because you're not booting into the recovery before you reboot into your ROM.
There is an option to boot straight into the recovery from the fastboot mode
pinnekeshaar said:
Jesus people are lazy these days.
First off there are official twrp versions for a reason!
Download the latest version: https://dl.twrp.me/dumpling/
Reboot into flash boot with the following command from your rom: adb reboot bootloader
With phone in fastboot mode: fastboot flash recovery 'twrp.img'
(You don't need to type out the entire file path you can just drag the file into the terminal and it'll insert the file location)
The reason you're not getting back into that recovery is because you're not booting into the recovery before you reboot into your ROM.
There is an option to boot straight into the recovery from the fastboot mode
Click to expand...
Click to collapse
Actually not that lazy because I used to do what you mentionned.
The thing is that a flash of Magik is needed to patch twrp. That's the step I forgot in the procedure and explained here.
So before being unpleasant, please know what you're talking about...
Cheers !
So I installed a A13 AOSP rom (Evolution x) via orangefox and when I rebooted to recovery orangfox was gone and now I'm on AOSP recovery. I tried to "fastboot boot" TWRP but the phone restarts on black screen for several seconds then restarts again to system. and when I enter fastboot thro AOSP recovery and try to boot TWRP it just fails (says unrecognized command boot). how can I flash custom recovery? i was thinking of trying sideload but with fastboot not working properly, I dont want guessing and rather ask someone with more knowledge with AOSP recovery and what could be causing fastboot not working properly
PS/ AOSP recovery is not detecting otg, and when choosing apply updates from internal storage it says it cant mount /data
Aserar said:
So I installed a A13 AOSP rom (Evolution x) via orangefox and when I rebooted to recovery orangfox was gone and now I'm on AOSP recovery. I tried to "fastboot boot" TWRP but the phone restarts on black screen for several seconds then restarts again to system. and when I enter fastboot thro AOSP recovery and try to boot TWRP it just fails (says unrecognized command boot). how can I flash custom recovery? i was thinking of trying sideload but with fastboot not working properly, I dont want guessing and rather ask someone with more knowledge with AOSP recovery and what could be causing fastboot not working properly
PS/ AOSP recovery is not detecting otg, and when choosing apply updates from internal storage it says it cant mount /data
Click to expand...
Click to collapse
What is the code name of your device?
NOSS8 said:
What is the code name of your device?
Click to expand...
Click to collapse
Its alioth poco f3
Aserar said:
Its alioth poco f3
Click to expand...
Click to collapse
Seems that in official no TWRP A13
https://androidfilehost.com/?w=files&flid=322193
Here boot version A12(more recent).
1. fastboot boot twrp.img
2. go to Advanced > Flash Current TWRP
https://dl.akr-developers.com/?dir=skkk/TWRP/A12/v5.6_A12
https://forum.xda-developers.com/t/recovery-12-official-teamwin-recovery-project.4272625/
Aserar said:
So I installed a A13 AOSP rom (Evolution x) via orangefox and when I rebooted to recovery orangfox was gone and now I'm on AOSP recovery. I tried to "fastboot boot" TWRP but the phone restarts on black screen for several seconds then restarts again to system. and when I enter fastboot thro AOSP recovery and try to boot TWRP it just fails (says unrecognized command boot). how can I flash custom recovery? i was thinking of trying sideload but with fastboot not working properly, I dont want guessing and rather ask someone with more knowledge with AOSP recovery and what could be causing fastboot not working properly
PS/ AOSP recovery is not detecting otg, and when choosing apply updates from internal storage it says it cant mount /data
Click to expand...
Click to collapse
It is because flashing rom also flash the recovery packed along with the rom, and it will replace your old recovery. To prevent it you need to also tick on the reflash ofox option when you flash a rom, which is too late in your case.
So, if you want to reflash ofox recovery, download and extract the zip file, locate the recovery.img in the extracted folder, reboot to bootloader and issue this command:
Code:
fastboot boot /path/to/recovery.img
then reboot to recovery with the command:
Code:
fastboot reboot recovery
and your device will temporarily boot into ofox recovery
The last step is to flash the recovery to ramdisk to make it permanently, you can find this option in ofox settings.
NOSS8 said:
Seems that in official no TWRP A13
https://androidfilehost.com/?w=files&flid=322193
Here boot version A12(more recent).
1. fastboot boot twrp.img
2. go to Advanced > Flash Current TWRP
https://dl.akr-developers.com/?dir=skkk/TWRP/A12/v5.6_A12
https://forum.xda-developers.com/t/recovery-12-official-teamwin-recovery-project.4272625/
Click to expand...
Click to collapse
This is what I did befor posting but but TWRP wouldnt boot through fastboot. it just gives me blackscreen for a few seconds then it boots to system. but the problem was solved with ofx. thank you for your help
disconmair said:
It is because flashing rom also flash the recovery packed along with the rom, and it will replace your old recovery. To prevent it you need to also tick on the reflash ofox option when you flash a rom, which is too late in your case.
So, if you want to reflash ofox recovery, download and extract the zip file, locate the recovery.img in the extracted folder, reboot to bootloader and issue this command:
Code:
fastboot boot /path/to/recovery.img
then reboot to recovery with the command:
Code:
fastboot reboot recovery
and your device will temporarily boot into ofox recovery
The last step is to flash the recovery to ramdisk to make it permanently, you can find this option in ofox settings.
Click to expand...
Click to collapse
Thank you mf this worked! Booting twrp through fastbood just gave me black screen so I didnt think that booting Ofox would be any different but it actually booted Ofox recovery and I flashed it no problem. If anyone's going to attempt this make sure to backup your data before cause you'll need to format data