FORUMS

[GUIDE] Fix TWRP Recovery Script Loop & Unable to boot

201 posts
Thanks Meter: 62
 
By Im_Mattgame, Senior Member on 31st July 2017, 09:04 PM
Post Reply Email Thread
Hello!

This is actually a common "thing" across many devices so just because this thread is on the Oneplus 5 forum doesn't mean it won't work for your device!

So I know exactly what you're going through....

THE PROBLEM
You've flashed a Zip file, everything seemed to work fine, you pressed the reboot button.... But then... Black screen, blue LED (or something like that)....
You then try to reboot to recovery and then you see "Running Open Recovery Script" and you manage to decipher "Wiping Data", either you clean flashed your ZIP file and this is not a problem or you dirty flashed it and so you're screaming at your phone because it just wiped everything without you asking (I mean, this never happened to me or anything I'm just trying to imagine what it would look like )

You then try a few things but you're phone won't even get close to the Bootanimation and keeps trying to boot up into recovery and keeps on Wiping your data which is now non-existent.

THE FIX

Method 1/
This is the most convenient and easiest method but it might not work for you, I'm not even entirely sure how I made it work for me... Anyway:

Once the phone has booted up into recovery and is flashing the ZIP, try the following:

Quote:

WILL UPDATE AS SOON AS I FIND THE EXACT METHOD
-Taking a screenshot (Power+volume)
-Pressing the back, home and r├ęcents button as many times as you can
-Pressing the power button
Basically, for now until I'm certain on what gets you out of this script thing, press every button on the phone a few times (that's what I did)


Method 2 [FAILSAFE]/
This method will work no matter what (if your problem is the one this thread covers that is), but it's quite teedious!

Step1/ Boot into the Bootloader (Power+Volume up)

Step2/ Install ADB & Fastboot on your PC (Google)

Step3/Download Stock recovery & TWRP

Step 4/Move both files to the ADB folder for ease of access

Step5/Type in
Code:
fastboot flash recovery STOCK_RECOVERY.img
(change file name)

Step 6/Boot into this new recovery

Step 7/ Ponder for a minute at how useless it is

Step 8/Boot into Bootloader again

Step 9/Type into terminal
Code:
fastboot flash recovery TWRP_RECOVERY.img
(change file name)

Step 10/Boot into recovery and wipe everything except Internal storage

Step 11/Flash ROM again!

VOILA!


Hope it helped, if you have any questions, feel free to ask me!
Cheers, Matt
1st August 2017, 08:37 AM |#2  
Senior Member
Thanks Meter: 54
 
More
I had this issue when I was flashing various roms, in my case it ended up being that some of the roms were incompatible with data being formatted as ext4 (mainly oos based ones, but a few others as well) since I went full f2fs, haven't seen this issue. That might be something to consider adding, it's pretty destructive, though, as going with f2fs on /data formats /sdcard, too
1st August 2017, 09:08 AM |#3  
R0iZ's Avatar
Senior Member
Flag Россия!
Thanks Meter: 56
 
More
I had this issue when I was flashing various roms (xXx NoLimits, ExperienceOS) on the encrypted data partition. Only FreedomOS flashing and booting ok
2nd August 2017, 01:03 PM |#4  
OP Senior Member
Thanks Meter: 62
 
Donate to Me
More
Quote:
Originally Posted by dragynbane222

I had this issue when I was flashing various roms, in my case it ended up being that some of the roms were incompatible with data being formatted as ext4 (mainly oos based ones, but a few others as well) since I went full f2fs, haven't seen this issue. That might be something to consider adding, it's pretty destructive, though, as going with f2fs on /data formats /sdcard, too

Ahh, that's interesting
2nd August 2017, 01:04 PM |#5  
OP Senior Member
Thanks Meter: 62
 
Donate to Me
More
Quote:
Originally Posted by R0iZ

I had this issue when I was flashing various roms (xXx NoLimits, ExperienceOS) on the encrypted data partition. Only FreedomOS flashing and booting ok

I had it on my old phone once (Oneplus X) so it's not rom/device specific... And I don't think it's a bug, more a compatibility issue...
5th December 2017, 05:24 PM |#6  
Junior Member
Thanks Meter: 0
 
More
first method doesnt work for me (and i have not expecting it to work)
second method should work but i have a little problem, i cant boot into bootloader
can someone help me with this

phone: Doogee X5
5th December 2017, 06:39 PM |#7  
OP Senior Member
Thanks Meter: 62
 
Donate to Me
More
Quote:
Originally Posted by Fyzik753

first method doesnt work for me (and i have not expecting it to work)
second method should work but i have a little problem, i cant boot into bootloader
can someone help me with this

phone: Doogee X5

You can't boot into bootloader? Are you sure? Long less power + Volume up
5th December 2017, 07:17 PM |#8  
DorianX's Avatar
Senior Member
Flag Zapopan, Jalisco
Thanks Meter: 785
 
Donate to Me
More
Quote:
Originally Posted by Fyzik753

first method doesnt work for me (and i have not expecting it to work)
second method should work but i have a little problem, i cant boot into bootloader
can someone help me with this

phone: Doogee X5

Are you trying to install/fix TWRP designed for OnePlus 5 into a different phone? Good luck!
6th December 2017, 09:07 PM |#9  
Senior Member
Flag Iasi
Thanks Meter: 231
 
Donate to Me
More
i have a problem with instaling twrp ...
example:
phone have bootloader unlocked

flashing original 4.5.14 firmware .... all good ... boot phone ... settings ... done
reboot to bootloader ... flash twrp (or blu_spark twrp) ... done ... reboot to twrp .. all good
reboot to system ... done. poweroff (or restart)...
boot to recovery ... surprise ... original recovery ... not twrp

flash again twrp ... done ... boot to system ... reboot to recovery ... original recovery ....


saw .. what is going on ?

thanks
7th December 2017, 04:49 AM |#10  
iamelton's Avatar
Senior Member
Flag Hong Kong
Thanks Meter: 1,383
 
More
Quote:
Originally Posted by aoprea

i have a problem with instaling twrp ...
example:
phone have bootloader unlocked

flashing original 4.5.14 firmware .... all good ... boot phone ... settings ... done
reboot to bootloader ... flash twrp (or blu_spark twrp) ... done ... reboot to twrp .. all good
reboot to system ... done. poweroff (or restart)...
boot to recovery ... surprise ... original recovery ... not twrp

flash again twrp ... done ... boot to system ... reboot to recovery ... original recovery ....


saw .. what is going on ?

thanks

OxygenOS overwrites the recovery with stock one when you boot into the OS..
to avoid this, after flashing twrp, (without rebooting to system) flash SuperSU or Magisk immediately..
7th December 2017, 12:36 PM |#11  
Senior Member
Flag Iasi
Thanks Meter: 231
 
Donate to Me
More
Quote:
Originally Posted by iamelton

OxygenOS overwrites the recovery with stock one when you boot into the OS..
to avoid this, after flashing twrp, (without rebooting to system) flash SuperSU or Magisk immediately..

thanks ... solved with install magisk

ps. I was accustomed with samsung phones where this does not happen...
Post Reply Subscribe to Thread

Tags
bootlool, open recovery script, phone keeps booting to twrp

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes