Recovery Refuses to Stick - X 2014 Q&A, Help & Troubleshooting

Hoping I can get some help with the same issue.
I sent my 6P back in for a warranty repaid so I'm using this phone (XT1095) for now. I'd like to put LineageOS on it and root with Magisk BUT I'm having a ridiculous time getting TWRP to flash.
I certainly know how to flash images via fastboot and have done it for years but this is seriously pissing me off lol.
I got the code from Moto and unlocked the bootloader. I tried a simple "fastboot flash recovery _____.img", I've tried "fastboot boot _____.img".
At first, I was booting back into the system first but now I've tried it both ways. Regardless of what I do, after flashing the recovery, it boots into the system. The ONLY I can get this thing into recovery is if I boot into the system and just use "adb reboot recovery" but it's obviously the stock recovery because the phone keeps overwriting TWRP upon boot.
Just so we're clear:
1. Reboot into bootloader
2. Confirm bootloader unlocked
3. Fastboot flash recovery _____.img
4. Volume button to boot into recovery
Result = Boots into system
1. Reboot into bootloader
2. Confirm bootloader unlocked
3. Fastboot flash recovery _____.img
4. Fastboot reboot bootloader
5. Bootloader reboots
6. Volume button to boot into recovery
Result = Boots into system
1. Fastboot boot _____.img
Result = Boots into system
If it helps at all, upon flashing recovery I get this message 100% of the time "mismatched partition size", similar to the case on this thread: https://goo.gl/6Nm9cu

By dumb luck I found where someone used the "fastboot boot ____.img" with a pretty old version and it worked just fine. I'll root and such with that and upgrade the recovery later.

jonzey231 said:
Just so we're clear:
1. Reboot into bootloader
2. Confirm bootloader unlocked
3. Fastboot flash recovery _____.img
4. Volume button to boot into recovery
Result = Boots into system
Click to expand...
Click to collapse
For clarification of step 4. I think recovery is the second or third option in bootloader. You are hitting volume down twice and then volume up correct
Volume up selects.
The mismatched partition size doesn't matter everyone gets that error.

Visi0nofExcellence2 said:
For clarification of step 4. I think recovery is the second or third option in bootloader. You are hitting volume down twice and then volume up correct
Volume up selects.
The mismatched partition size doesn't matter everyone gets that error.
Click to expand...
Click to collapse
You know what, I am so used to newer devices like N6 and 6P that I completely overlooked that the Volume Up button was the selector instead of the power button. It was rebooting into the system EVERY TIME because I was hitting the power button. Recovery installed successfully and running LineageOS with Magisk with Android Pay and Direct TV Now working just fine.
Thanks for your help and I'll be sure to actually READ from now on :laugh::laugh:

Related

[Q] Can't boot into recovery or erase recovery (TRIED ERASING CACHE)

Hi I am trying to work through the process of rooting my HTC One.
I have some experience with android as I've rooted three different phones now, the One is the only one giving me trouble :/
So I got the bootloader unlocked via the HTC Dev method, and now I'm trying to get recovery to work. I've flashed CWM, CWMT, and TWRP, and no matter which I try I can't boot into recovery via "adb reboot recovery" or via the HBOOT menu. When I try the phone just goes through a regular reboot. I can't use ROM Manager to do it either naturally since I don't have root yet (need recovery to install SuperSU).
However ROM Manager does show I have CWM and TWRP installed (both? weird) so I tried to start over by doing "fastboot erase recovery" but it says
FAILED: (remote: not allowed)
I tried "fastboot erase cache" before and after flashing a recovery and nothing at all changes.
Any ideas? Could I have missed something really simple and stupid? I'm pulling all my hair out trying to figure this out.
I heard some people got it to work by flashing the recovery to the boot partition, but until I get assurance that isn't a terrible horrible idea (like it seems) I don't want to try that.
EDIT: yes, the "fast boot" option in the power menu is already disabled.
I had the same issue. Solved it by disabling the fast boot option within the OS. Under power options.
Worth a shot.
Sent from my HTC One using xda app-developers app
ar3na said:
I had the same issue. Solved it by disabling the fast boot option within the OS. Under power options.
Worth a shot.
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
Thanks for the reply but that option is already disabled
I was facing the same problem, however, what I did was turn on fast boot under settings right after I flashed the recovery.
Then, I rebooted back into the bootloader and I now had ***TAMPERED*** at the top of my screen. I afterwards selected reboot into recovery and bam, I now had TWRP on my phone.
WeegeeNumbuh1 said:
I was facing the same problem, however, what I did was turn on fast boot under settings right after I flashed the recovery.
Then, I rebooted back into the bootloader and I now had ***TAMPERED*** at the top of my screen. I afterwards selected reboot into recovery and bam, I now had TWRP on my phone.
Click to expand...
Click to collapse
Just tried that, didn't work
Also why would you have TAMPERED at the top? Did you change anything else to get that like flash a different HBOOT or fastboot or something?
I'm about to throw this thing out the window -___-
SOLVED
Hallelujah, I got it!
I did nothing differently, but eventually it worked...very weird, but at least I got it! The final iteration to get it working was this:
1. Turn off fast boot option in power menu
2. Boot into bootloader via power menu, then power + vol down
3. go into fastboot
4. from a cmd window, fastboot flash recovery recovery.img
5. fastboot erase cache
6. from the menu, boot into recovery
7. phone boots to the OS instead of recovery
8. boot back into the bootloader via power menu, power + vol down
9. TAMPERED shows up, boot into recovery and it works!
note that i never used adb reboot recovery or adb reboot bootloader, idk if that matters, but I did everything from the phone.
thanks for all your help!
For what it's worth, I use ROM Toolbox's Reboot to recovery option and it works. Though I can see where you'd need to boot to recovery from startup.
TheShadowZero said:
Hallelujah, I got it!
I did nothing differently, but eventually it worked...very weird, but at least I got it! The final iteration to get it working was this:
1. Turn off fast boot option in power menu
2. Boot into bootloader via power menu, then power + vol down
3. go into fastboot
4. from a cmd window, fastboot flash recovery recovery.img
5. fastboot erase cache
6. from the menu, boot into recovery
7. phone boots to the OS instead of recovery
8. boot back into the bootloader via power menu, power + vol down
9. TAMPERED shows up, boot into recovery and it works!
note that i never used adb reboot recovery or adb reboot bootloader, idk if that matters, but I did everything from the phone.
thanks for all your help!
Click to expand...
Click to collapse
this worked very well for me, thanks
TheShadowZero said:
Hallelujah, I got it!
I did nothing differently, but eventually it worked...very weird, but at least I got it! The final iteration to get it working was this:
1. Turn off fast boot option in power menu
2. Boot into bootloader via power menu, then power + vol down
3. go into fastboot
4. from a cmd window, fastboot flash recovery recovery.img
5. fastboot erase cache
6. from the menu, boot into recovery
7. phone boots to the OS instead of recovery
8. boot back into the bootloader via power menu, power + vol down
9. TAMPERED shows up, boot into recovery and it works!
note that i never used adb reboot recovery or adb reboot bootloader, idk if that matters, but I did everything from the phone.
thanks for all your help!
Click to expand...
Click to collapse
Thank you very much dear sir/ma'am.
This worked like a charm where nothing else had worked before!

[Help] Mismatch Partition Size Upon Trying to Flash a custom recovery

ive tried flashing both twrp 2.8 and twrp 2.7 and both i get a mismatch partition size and wont flash either recovery.it just boots the phone back up normally. am i doing something wrong?
marcviado said:
ive tried flashing both twrp 2.8 and twrp 2.7 and both i get a mismatch partition size and wont flash either recovery.it just boots the phone back up normally. am i doing something wrong?
Click to expand...
Click to collapse
Did you unlock the bootloader first?
sharkymyn said:
Did you unlock the bootloader first?
Click to expand...
Click to collapse
Yes I did. On my boot loader it says "device is unlocked status code 3"
From my experience with Moto G (1st Gen) - this error can be ignored. The flash has been successful despite that message.
I have same problem on 2nd gen recovery did not flash phone just reboot normally when reboot to recovery. I also have 1st gen this mismatch Waring also have in 1st gen but recovery flash normally and phone boot in recovery mode but not in 2nd I don't no why?
vikasb32 said:
I have same problem on 2nd gen recovery did not flash phone just reboot normally when reboot to recovery. I also have 1st gen this mismatch Waring also have in 1st gen but recovery flash normally and phone boot in recovery mode but not in 2nd I don't no why?
Click to expand...
Click to collapse
connect your phone, open CMD in your adb folder and type adb reboot recovery, then press enter
it works like that for some reason
I had the same problem. The important thing to do here is to select recovery immediately by pressing the volume up button (I was confused here, since I came from a galaxy s3 and in that the select button was the power button whereas here the select button is the volume up button. If you press the power button, the phone would reboot and the recovery wouldn't get installed. Just press the volume up button when you reach the recovery option)
Mismatched partition size does not create any issues

Recovery doesn't come up -- Mismatched Partition

Moto X 1095 with 24.11.18 6.0 update doesn't boot into recovery. Everytime I try to fastboot flash a recovery, it prompts a mismatched partition.
If I try to reboot into recovery, it will give me a blank, black screen.
Any advice would be appreciated.. I am not sure what to do. No one has a solution to this. I've tried to look for a factory recovery.img but no where to be found.
Can I downgrade to 5.1 using the Motorola Factory Image ? If so, how?
I have a similar problem
Does the black screen have the Android robot with an exclamation mark in it? If so, that's the stock Recovery. Press Power + Vol Up, and you should be able to access it.
When flashing a custom Recovery, make sure that after issuing "fastboot reboot" you don't let the phone boot into system, otherwise you'll end up with the stock Recovery again. After the reboot, you should access the bootloader again and enter Recovery for the custom Recovery to take place.

HELP I deleted OS via twrp

I need help. I deleted/wiped in advanced mode in twrp the system and now I have No OS installed. I don't kow what to do now the phone does not bood except into twrp.
Use NOST
Sent from my NB1 using XDA Labs
After hours of "work" I have my phone running again. I was able to get the phone run stock recovery again and then was easy to just flash the oreo zip.
well good to know you solved the problem.
but just in case keep your phone bootloader critical unlocked so you can use NOST if you face such problems again.
Just happened again. I wanted to put twrp img back on the phone and as it reboots... its stuck on "Powered by Android". I cannot flash or do anything since its stuck and does not turn off. I tried all combinations of volume/power button and hold them for minutes... just does not turn off. So its not recognized by NOST or anything. Now I am really screwed as it seems...
theviking33 said:
Just happened again. I wanted to put twrp img back on the phone and as it reboots... its stuck on "Powered by Android". I cannot flash or do anything since its stuck and does not turn off. I tried all combinations of volume/power button and hold them for minutes... just does not turn off. So its not recognized by NOST or anything. Now I am really screwed as it seems...
Click to expand...
Click to collapse
I am at such condition too... how long battery lasts? I think it's possible to wait for the phone to fully discharge and then we may have access to recovery. right?
theviking33 said:
Just happened again. I wanted to put twrp img back on the phone and as it reboots... its stuck on "Powered by Android". I cannot flash or do anything since its stuck and does not turn off. I tried all combinations of volume/power button and hold them for minutes... just does not turn off. So its not recognized by NOST or anything. Now I am really screwed as it seems...
Click to expand...
Click to collapse
If you tried to "fastboot boot" the TWRP image: thats "normal", fastboot boot is broken on every firmware since august. You have to flash TWRP to your active boot partition to boot it. However, at least for me, when being stuck in that screen I can still use "fastboot reboot" or "fastboot reboot-bootloader" to get the phone back in a working state.
Also, if you try to flash TWRP to your active boot: Please don't flash the image from the official site, since that is unable to boot into the system normally. Use my recompiled generic TWRP boot image that you can flash, regardless of security patch version: https://forum.xda-developers.com/nokia-8/development/twrp-data-decryption-android-9-t3911411
If you did not fastboot boot an image: Hold down volume up, volume down and power for multiple minutes until the phone turns off. Then hold volume down while connecting the phone to a computer through USB, and it will start into fastboot mode. Then just revert whatever you changed and reflash the stock image.
THMSP said:
If you tried to "fastboot boot" the TWRP image: thats "normal", fastboot boot is broken on every firmware since august. You have to flash TWRP to your active boot partition to boot it. However, at least for me, when being stuck in that screen I can still use "fastboot reboot" or "fastboot reboot-bootloader" to get the phone back in a working state.
Also, if you try to flash TWRP to your active boot: Please don't flash the image from the official site, since that is unable to boot into the system normally. Use my recompiled generic TWRP boot image that you can flash, regardless of security patch version: https://forum.xda-developers.com/nokia-8/development/twrp-data-decryption-android-9-t3911411
If you did not fastboot boot an image: Hold down volume up, volume down and power for multiple minutes until the phone turns off. Then hold volume down while connecting the phone to a computer through USB, and it will start into fastboot mode. Then just revert whatever you changed and reflash the stock image.
Click to expand...
Click to collapse
It turns out that there was Pie on my partition B and I was not aware of that. Booting into TWRP wasn't working, so I flashed it and then factory reset system. And it broke the phone.
Now I tried to boot the TWRP from slot B and rebooted partition A. Now the phone is up... Thanks
Where can I find the appropriate stock boot image for my partition B? and should I fastboot it with boot_b command or what?

Cannot flash/enter twrp.

Hi.
Im having alot of trouble doing custom stuff with my mi 9. At this point i have succesfully flashed aospextended on my mi 9 but i cannot enter twrp. It just "recovery loops" with the mi logo. I have tried flashing it again, just booting to twrp from fastboot but it still won't boot to twrp. I am consistently having issues booting to twrp at a point where i had to flash global stable from fastboot because it never stopped booting to stock recovery, where after i formattet cache and userdata. Thanks in advance.
Deleted
Hi!
Try telling us what you have done so far (in terms of modifications as well). Which recovery did you (try) flashing?
I personally tried skiantibag & maufirinio (I know it's not the proper spelling but you'll find it) + flashing RevolutionOS.
You've probably heard it already: Fastboot -> flash recovery -> does it boot into (after shutting down -> volume up + standby pressed)
If not try (first flashing the recovery) then booting from the .img file via fastboot.
After that wipe everything and flash Revolution OS/xiaomi.eu. Do you still experience the problems then? Short hint at the end: setup a password (code - during the android setup process) since your storage gets encrypted (no matter what - at least for me).
Good night, good luck!
ollioddi said:
Hi.
Im having alot of trouble doing custom stuff with my mi 9. At this point i have succesfully flashed aospextended on my mi 9 but i cannot enter twrp. It just "recovery loops" with the mi logo. I have tried flashing it again, just booting to twrp from fastboot but it still won't boot to twrp. I am consistently having issues booting to twrp at a point where i had to flash global stable from fastboot because it never stopped booting to stock recovery, where after i formattet cache and userdata. Thanks in advance.
Click to expand...
Click to collapse
after flashing twrp, (assuming ur using fastboot cmds to boot to twrp) use buttons to reboot to twrp. Long press power button and volume up together until device reboots, once it vibrates, let go of power but keep holding vol up until twrp boots. Then disconnect phone from pc. Twrp should now stick. Which twrp you using?
reg66 said:
after flashing twrp, (assuming ur using fastboot cmds to boot to twrp) use buttons to reboot to twrp. Long press power button and volume up together until device reboots, once it vibrates, let go of power but keep holding vol up until twrp boots. Then disconnect phone from pc. Twrp should now stick. Which twrp you using?
Click to expand...
Click to collapse
This. Rebooting from command line did not work for me either. Just press power + vol up until screen closes and keep pressing 3 more seconds after mi logo appears.

Categories

Resources