Constant Boot into TWRP - Xperia SP Q&A, Help & Troubleshooting

I was on stock ROM and had my bootloader unlocked
I flashed the latest TWRP on my XSP
Then on booting into recovery I wiped data/cache/dalvik cache and then installed AICP with the GApps
after installing when i chose reboot it asked me whether to install superuser I clicked no and rebooted
And now even on normal booting it goes into TWRP
even if I try to connect to my laptop in fastboot mode it is booting up into TWRP
basically no matter what button i press, It is booting up into TWRP
I have installed the latest TWRP available
I even tried the hard seret but again it goes into TWRP

AnishK said:
I was on stock ROM and had my bootloader unlocked
I flashed the latest TWRP on my XSP
Then on booting into recovery I wiped data/cache/dalvik cache and then installed AICP with the GApps
after installing when i chose reboot it asked me whether to install superuser I clicked no and rebooted
And now even on normal booting it goes into TWRP
even if I try to connect to my laptop in fastboot mode it is booting up into TWRP
basically no matter what button i press, It is booting up into TWRP
I have installed the latest TWRP available
I even tried the hard seret but again it goes into TWRP
Click to expand...
Click to collapse
Flash tangerine and see if the problem is solved.
If not,
Do a full wipe again, flash ROM, then tangerine, then GApps.

AnishK said:
I was on stock ROM and had my bootloader unlocked
I flashed the latest TWRP on my XSP
Then on booting into recovery I wiped data/cache/dalvik cache and then installed AICP with the GApps
after installing when i chose reboot it asked me whether to install superuser I clicked no and rebooted
And now even on normal booting it goes into TWRP
even if I try to connect to my laptop in fastboot mode it is booting up into TWRP
basically no matter what button i press, It is booting up into TWRP
I have installed the latest TWRP available
I even tried the hard seret but again it goes into TWRP
Click to expand...
Click to collapse
Hello. This problem is really weird. May I know where did you learned to flash the TWRP recovery?
Also what is the current state of your bootloader?
In the meantime, you can try out my Stock Components as Flashable ZIPs to flash. Read the OP carefully and only choose FOTAkernel component.
Flash it through your TWRP. Shut down the phone (Main Menu > Reboot > Power off) and try to fastboot.

Zenith said:
Flash tangerine and see if the problem is solved.
If not,
Do a full wipe again, flash ROM, then tangerine, then GApps.
Click to expand...
Click to collapse
Did a full wipe, flashed ROM, then tangerine, then GApps..
Rebooted the phone
And no response
It just vibrated as always when it turns on but the screen didn't even turned on.

TechnoSparks said:
Hello. This problem is really weird. May I know where did you learned to flash the TWRP recovery?
Also what is the current state of your bootloader?
In the meantime, you can try out my Stock Components as Flashable ZIPs to flash. Read the OP carefully and only choose FOTAkernel component.
Flash it through your TWRP. Shut down the phone (Main Menu > Reboot > Power off) and try to fastboot.
Click to expand...
Click to collapse
I flashed the TWRP using flashtool on my laptop
And currently my bootloader in unlocked

AnishK said:
Did a full wipe, flashed ROM, then tangerine, then GApps..
Rebooted the phone
And no response
It just vibrated as always when it turns on but the screen didn't even turned on.
Click to expand...
Click to collapse
Seems to be an unusual problem.
Try flashing stock again.

AnishK said:
I flashed the TWRP using flashtool on my laptop
And currently my bootloader in unlocked
Click to expand...
Click to collapse
Please try to flash stock ROM again.

Zenith said:
Seems to be an unusual problem.
Try flashing stock again.
Click to expand...
Click to collapse
Yeah.. Flashed stock Rom again..
But before it i tried installing some other Rom's.. other than AICP..
it was successful for resurrection remix and stryflex..
but again when i used to flash TWRP it again used to start booting into recovery..
Might be some problem with the recovery.. Didn't try any other recovery though..

AnishK said:
Yeah.. Flashed stock Rom again..
But before it i tried installing some other Rom's.. other than AICP..
it was successful for resurrection remix and stryflex..
but again when i used to flash TWRP it again used to start booting into recovery..
Might be some problem with the recovery.. Didn't try any other recovery though..
Click to expand...
Click to collapse
I'm not sure which TWRP you installed,
but this is an updated one and it works perfectly. It won't get deleted even if you change ROMs.
Flash the fotakernel of your device from the link provided by TechnoSparks in post#3.
Then flash TWRP.

Zenith said:
I'm not sure which TWRP you installed,
but this is an updated one and it works perfectly. It won't get deleted even if you change ROMs.
Flash the fotakernel of your device from the link provided by TechnoSparks in post#3.
Then flash TWRP.
Click to expand...
Click to collapse
I had installed the latest TWRP..
No idea why this happened..
I will try installing fotakernel and then TWRP..

Related

(SOLVED) Xperia Z internal storage FULLY WIPED (everything)

So this is what happened:
I wanted to flash a custom rom on my xperia Z.
I did what i have to do like unlocking the bootloader, rooting and installing a custom recovery.
I already downloaded my desired custom rom. When I entered into custom recovery I wiped everything as in everything under the Wipe menu of TWRP. After that I went to reboot to recovery. Unfortunately the phone did not reboot anymore. Just stucked at the sony logo. Now it cannot go to fastboot, flashmode or custom recovery. My computer cannot detect the phone as well.
Is there any way that I can still flash rom into my phone with the above situation?
Any help is much appreciated. Tia!
fitcho9 said:
So this is what happened:
I wanted to flash a custom rom on my xperia Z.
I did what i have to do like unlocking the bootloader, rooting and installing a custom recovery.
I already downloaded my desired custom rom. When I entered into custom recovery I wiped everything as in everything under the Wipe menu of TWRP. After that I went to reboot to recovery. Unfortunately the phone did not reboot anymore. Just stucked at the sony logo. Now it cannot go to fastboot, flashmode or custom recovery. My computer cannot detect the phone as well.
Is there any way that I can still flash rom into my phone with the above situation?
Any help is much appreciated. Tia!
Click to expand...
Click to collapse
Are u sure you've installed the correct drivers (fastboot, flashmode, adb)? If so, fastboot any custom kernel (with recovery) and you'll have recovery.
You wiped system, but I assume you had xzdualrecovery installed, and since it installs in system you lose recovery after wiping system and reboot.
Kernel with recovery is best option, you can safely wipe since kernel does not get wiped (only overwritten by rom or other kernel)
Hi langveld! Thank you for your reply..But i cannot go into fastboot.. Will it still do?
fitcho9 said:
Hi langveld! Thank you for your reply..But i cannot go into fastboot.. Will it still do?
Click to expand...
Click to collapse
i guess you can only use the flashtools now, first try selecting kernel only for flashing without wiping anything. And if that doesnt work, then you have to flash the whole firmware. try holding vol down when connecting, i got into fastboot mode like that last time. good luck
fitcho9 said:
So this is what happened:
I wanted to flash a custom rom on my xperia Z.
I did what i have to do like unlocking the bootloader, rooting and installing a custom recovery.
I already downloaded my desired custom rom. When I entered into custom recovery I wiped everything as in everything under the Wipe menu of TWRP. After that I went to reboot to recovery. Unfortunately the phone did not reboot anymore. Just stucked at the sony logo. Now it cannot go to fastboot, flashmode or custom recovery. My computer cannot detect the phone as well.
Is there any way that I can still flash rom into my phone with the above situation?
Any help is much appreciated. Tia!
Click to expand...
Click to collapse
try flashing stock firmware (it doesnt matter that your computer doesnt recognize your phone just do it)
i have the same problem...please help
i had unlocked bootloader , twrp recovery ....i tried to install a custom rom.....so before installing the custom rom , i wiped everything......now i dont have os or recovery or fastboot....just sony logo

Fresh root, recovery not booting

Finally decided to root my own device to find out that the recovery is not working when I try going into it on the bootloader mode. It is a rooted device and I've tried flashing the twrp recovery through the command prompt and also through the flashify app. It only works when I try booting in from the flashify app but doesn't work through the bootloader, when trying it through the bootloader i select the recovery and the phone turns off. Anyone have a clue of how I could try to make it work, I would appreciate any help. Thanks
Blue.F150 said:
Finally decided to root my own device to find out that the recovery is not working when I try going into it on the bootloader mode. It is a rooted device and I've tried flashing the twrp recovery through the command prompt and also through the flashify app. It only works when I try booting in from the flashify app but doesn't work through the bootloader, when trying it through the bootloader i select the recovery and the phone turns off. Anyone have a clue of how I could try to make it work, I would appreciate any help. Thanks
Click to expand...
Click to collapse
Looks like a system error which can be solved only if you flash the factory image again
which command did yu use "fastboot flash recovery (twrp File name ).img
If it didn't work, flash cwm and then twrp 8.6.0. Maybe it'll work Or flash twrp img while ur in twrp itself. Or download advanced reboot if ur using stock rom.
james11705 said:
Looks like a system error which can be solved only if you flash the factory image again
which command did yu use "fastboot flash recovery (twrp File name ).img
If it didn't work, flash cwm and then twrp 8.6.0. Maybe it'll work Or flash twrp img while ur in twrp itself. Or download advanced reboot if ur using stock rom.
Click to expand...
Click to collapse
Yea it was the fastboot flash recovery trwp.... then tried it and didnt work. Thanks I'll try out the other options you gave me. I tried reflashing stock everything and booting into recovery now it didnt work again with the stock recovery.
Blue.F150 said:
Yea it was the fastboot flash recovery trwp.... then tried it and didnt work. Thanks I'll try out the other options you gave me. I tried reflashing stock everything and booting into recovery now it didnt work again with the stock recovery.
Click to expand...
Click to collapse
Like flashing the full firmware? It should work, because something is wrong with ur recovery system.
james11705 said:
Like flashing the full firmware? It should work, because something is wrong with ur recovery system.
Click to expand...
Click to collapse
I have the same problem. Flashed the stock firmware. Then flashed TWRP in fastboot, but whenever i select recovery from the fastboot menu, the phone just shuts off. Only way to get into recovery is by Flashify app too...

Stuck in recovery after 4.0.1 OTA

Hi,
I was running Oxygen 4.0.0 and a beta build of TWRP 3.0.3 which works with new encryption. I used the android update mechanics to get the 4.0.1 OTA. System rebooted to recovery, recovery threw an error (zip file corrputed) and since then I am not able to boot the system. Whatever I do I land in TWRP recovery.
Things I did so far:
- Tried installing the full 4.0.1 zip. Install worked without errors, device still boots to recovery.
- Tried to get stock recovery, since another post (https://forum.xda-developers.com/oneplus-3t/help/stuck-recovery-mode-t3532524) indicates stock recovery might fix the problem
--> stock recovery is not obtainable anymore. Seems deleted from all the download links I could find. Example is here: https://forum.xda-developers.com/oneplus-3t/how-to/zip-flashable-firmware-modem-t3509015
- Wipe cache and dalvik cache in the hopes, the instruction to boot to recovery is there somewhere.
I did not do the unbrick tool, since I run linux and didnt want to fiddle with windows yet.
I did make a nandroid backup, so once my system boots again I should be fine.
Any Idea where to either get a mirror of stock recovery or how to fix this problem otherwise?
I had this same problem, and I solved downloading the unbrick tool and extracting the recovery from there. Here is the file
https://drive.google.com/file/d/0BwaafKaXbak3d1RFblFOWVd5eGs/view?usp=sharing
Also locking the bootloader worked for me. Booted into system then unlocked again.
Thanks a lot for the stock recovery. That worked!
Once it booted, installing TWRP and SuperSU again.
mad-murdock said:
Thanks a lot for the stock recovery. That worked!
Once it booted, installing TWRP and SuperSU again.
Click to expand...
Click to collapse
Does your TWRP boot correctly? I flashed it and when I restarted I still had the stock recovery, so I used fastboot boot and it booted, but it is stuck in the loading screen.
Edit: After rebooting and reflashing totally random, it worked.
mariospizza said:
Does your TWRP boot correctly? I flashed it and when I restarted I still had the stock recovery, so I used fastboot boot and it booted, but it is stuck in the loading screen.
Edit: After rebooting and reflashing totally random, it worked.
Click to expand...
Click to collapse
Yeah, worked totally normal as it should.
My educated guess about this whole dilemma is, the system sets a flag to boot to recovery which TWRP doesn't clear and only stock recovery clears. Usually those flags should be in cache partition, but in this case isn't.
Tldr: don't use build in update mechanisms if you modified Rom and recovery.

How to disable stock recovery

Hey guys,
I`m using x526. The other day I rooted the device with TWRP and flashed AOSP extended. But now I can`t seem to enter into TWRP. When I try to enter the recovery mode using the hard keys, it loads into the stock recovery. Even when using the option to boot into recovery in the AOSP extended restart option, it still boots into the stock recovery.So is there any way to remove/disable the stock recovery.Or even any other methods to enter TWRP?. I flashed the latest twrp (3.1.1) from the official site via ADB. Also AEX was pre-rooted with magisk
zeeka# said:
Hey guys,
I`m using x526. The other day I rooted the device with TWRP and flashed AOSP extended. But now I can`t seem to enter into TWRP. When I try to enter the recovery mode using the hard keys, it loads into the stock recovery. Even when using the option to boot into recovery in the AOSP extended restart option, it still boots into the stock recovery.So is there any way to remove/disable the stock recovery.Or even any other methods to enter TWRP?. I flashed the latest twrp (3.1.1) from the official site via ADB. Also AEX was pre-rooted with magisk
Click to expand...
Click to collapse
Flash twrp once again.. Use the code fastboot flash recovery whateverthenameis.img
zeeka# said:
Hey guys,
I`m using x526. The other day I rooted the device with TWRP and flashed AOSP extended. But now I can`t seem to enter into TWRP. When I try to enter the recovery mode using the hard keys, it loads into the stock recovery. Even when using the option to boot into recovery in the AOSP extended restart option, it still boots into the stock recovery.So is there any way to remove/disable the stock recovery.Or even any other methods to enter TWRP?. I flashed the latest twrp (3.1.1) from the official site via ADB. Also AEX was pre-rooted with magisk
Click to expand...
Click to collapse
If your phone is rooted you can flash TWRP from app TWRP found in playstore
sydtek said:
Flash twrp once again.. Use the code fastboot flash recovery whateverthenameis.img
Click to expand...
Click to collapse
Twrp is already there, I can't just access it due to stock recovery. I flashed twrp twice and can enter the twrp just after flashing. If I exit twrp I can't access it again unless I reflash it
zeeka# said:
Twrp is already there, I can't just access it due to stock recovery. I flashed twrp twice and can enter the twrp just after flashing. If I exit twrp I can't access it again unless I reflash it
Click to expand...
Click to collapse
When you flash a new recovery the old one will be replaced. If you used the code fastboot boot recovery recovery.img the phone just boots to the recovery and not flash it. So please use the code fastboot flash recovery recovery.img.
sydtek said:
When you flash a new recovery the old one will be replaced. If you used the code fastboot boot recovery recovery.img the phone just boots to the recovery and not flash it. So please use the code fastboot flash recovery recovery.img.
Click to expand...
Click to collapse
I'll try
Thank you guys, everything is fine now. I flashed twrp using the official app . Sorry for asking stupid question
zeeka# said:
Thank you guys, everything is fine now. I flashed twrp using the official app . Sorry for asking stupid question
Click to expand...
Click to collapse
:highfive:

Question How do i get Stock recovery to not replace TWRP when rebooting???

Tried a bunch of things to make the TWRP installation persistent, but it just goes back to MIUI recovery when i reboot from the system.
I'm using TWRP 3.5.2 by Nebrassy.
USB debugging turned on
Correct drivers installed
fastboot devices work Using minimal ADB and fastboot
I have the file renamed as TWRP.img.
Steps i followed:
fastboot boot "TWRP.img" - Correctly boots into TWRP
install the TWRP image to the recovery partition - Happens with no errors
Reboot to system - No errors there as well
Reboot to recovery - Goes back to MIUI recovery.
Can someone please tell me what i should do?
PS: Tried with TWRP 3.6.0 as well just now. Same issue.
Helhound0 said:
Tried a bunch of things to make the TWRP installation persistent, but it just goes back to MIUI recovery when i reboot from the system.
I'm using TWRP 3.5.2 by Nebrassy.
USB debugging turned on
Correct drivers installed
fastboot devices work Using minimal ADB and fastboot
I have the file renamed as TWRP.img.
Steps i followed:
fastboot boot "TWRP.img" - Correctly boots into TWRP
install the TWRP image to the recovery partition - Happens with no errors
Reboot to system - No errors there as well
Reboot to recovery - Goes back to MIUI recovery.
Can someone please tell me what i should do?
PS: Tried with TWRP 3.6.0 as well just now. Same issue.
Click to expand...
Click to collapse
Try again to flash TWRP dirty and if it's started don't boot with software. You have to boot TWRP again by pressing volume + and power button until you'll get vibration , afterwards you'll be in TWRP again, clear dalvik and cache and restart system via TWRP menu
Laptapper said:
Try again to flash TWRP dirty and if it's started don't boot with software. You have to boot TWRP again by pressing volume + and power button until you'll get vibration , afterwards you'll be in TWRP again, clear dalvik and cache and restart system via TWRP menu
Click to expand...
Click to collapse
Sorry mate that didn't work. Still going back to stock recovery...
Since i didn't find a solution to make the installation presistant, i went ahead and flashed Elixir with the temporarily booted TWRP. Then wiped cache and dalvik, flashed the TWRP image, formatted data and then rebooted. Now it works.
Edit: This method did something to my recovery. I can boot to system and recovery fine but TWRP isn't able to mount the data partition. So i'm not able to flash anything or root the device anymore.
I tried formatting data, no luck.
Then tried repairing the data partition. No luck.
Changed the file system to EX2 and then EX4... Nothing.
Anyone know a solution for this?
Helhound0 said:
Sorry mate that didn't work. Still going back to stock recovery...
Click to expand...
Click to collapse
Then you've got to do a flash with stock ROM and miflash via pc
Laptapper said:
Then you've got to do a flash with stock ROM and miflash via pc
Click to expand...
Click to collapse
Would that re-lock the bootloader? And if so do i have to wait 7 more days for it to be unlocked?
I used the Disable-Dm-Verity-Zip directly in TWRP after installation. Worked without a problem.
romuser87 said:
I used the Disable-Dm-Verity-Zip directly in TWRP after installation. Worked without a problem.
Click to expand...
Click to collapse
I read that somewhere too but that didn't help me at all... Maybe i have a bad zip file..
Can you share the zip you flashed?
Also, any idea how i could get this fixed:
Helhound0 said:
Since i didn't find a solution to make the installation presistant, i went ahead and flashed Elixir with the temporarily booted TWRP. Then wiped cache and dalvik, flashed the TWRP image, formatted data and then rebooted. Now it works.
Edit: This method did something to my recovery. I can boot to system and recovery fine but TWRP isn't able to mount the data partition. So i'm not able to flash anything or root the device anymore.
I tried formatting data, no luck.
Then tried repairing the data partition. No luck.
Changed the file system to EX2 and then EX4... Nothing.
Anyone know a solution for this?
Click to expand...
Click to collapse
Helhound0 said:
I read that somewhere too but that didn't help me at all... Maybe i have a bad zip file..
Can you share the zip you flashed?
Also, any idea how i could get this fixed:
Click to expand...
Click to collapse
The attached file worked for me
Helhound0 said:
Would that re-lock the bootloader? And if so do i have to wait 7 more days for it to be unlocked?
Click to expand...
Click to collapse
1. With MiFlash there is an option at the bottom of the screen to lock bootloader. Just make sure it is NOT checked, and you will be safe to use MiFlash without relocking bootloader.
2. When installing TWRP for first time, it is essential that your first reboot is straight back to TWRP - then it becomes persistent, and future reboots to recovery will be to TWRP. If you do not do the first reboot back to TWRP, the stock MIUI ROM recovery reinstalls itself.
HiQual said:
1. With MiFlash there is an option at the bottom of the screen to lock bootloader. Just make sure it is NOT checked, and you will be safe to use MiFlash without relocking bootloader.
2. When installing TWRP for first time, it is essential that your first reboot is straight back to TWRP - then it becomes persistent, and future reboots to recovery will be to TWRP. If you do not do the first reboot back to TWRP, the stock MIUI ROM recovery reinstalls itself.
Click to expand...
Click to collapse
The first ever twrp install i did, i rebooted to system by mistake but i reflashed twrp and made sure to reboot to recovery.... That was the second try. I think i may have tried at least two dozen times since that but it just kept booting back to stock recovery...
I think I'll run with this until the end of Jan and then redo everything from scratch...
Helhound0 said:
Since i didn't find a solution to make the installation presistant, i went ahead and flashed Elixir with the temporarily booted TWRP. Then wiped cache and dalvik, flashed the TWRP image, formatted data and then rebooted. Now it works.
Edit: This method did something to my recovery. I can boot to system and recovery fine but TWRP isn't able to mount the data partition. So i'm not able to flash anything or root the device anymore.
I tried formatting data, no luck.
Then tried repairing the data partition. No luck.
Changed the file system to EX2 and then EX4... Nothing.
Anyone know a solution for this?
Click to expand...
Click to collapse
I'm stuck at this stage. Have you found any solution yet?

Categories

Resources