TWRP Installation Problem - OnePlus 3 Questions & Answers

Weird problem in all my years of flashing to various phones....
okay I go into fastboot and I install TWRP. I'm able to boot into it ONCE and ONCE only. Once I reboot into system if I try and go back into the recovery it just loads up the stock recovery. WTF gives...???
As long as I don't boot the system itself and just constantly restart the phone with that "unlocked bootloader screen" I can keep picking recovery and it'll load TWRP. However, the second I boot the OS, TWRP is gone and the factory recovery is back in place.
I'll upload a video later if necessary to show what's going on....
EDIT: Here's my 3 minute install and please tell me where this goes wrong?

OxygenOS have some files to reinstall the recovery, i have removed them in my rom.
If you want to remove them by yourself:
Go to TWRP recovery,
Connect your phone to your pc and connect it through adb or open Advenced > Terminal.
Type this commands :
Code:
rm /system/bin/install-recovery.sh
rm /system/recovery-from-boot.p
One one more thing, don't use "vol -" + power, just use vol +/- to navigate in the menu and power to select

At any point did you have to swipe to disable stock recovery?

nope I eventually figured it out looking around elsewhere but thanks guys. After install power down with just power button. Let it sit for a few then start with PWR+VOL DN

like u said u have been flashing for years, but sometimes we overlook the simplest things did u do, fastboot boot recovery twrp.img or did u do fastboot flash recovery twrp.img, what is odd b/c when installing stock OxygenOS it won't install stock everytime, but thank u NevaX1 for the info, i am going to remove it from all my stock roms

Related

How to Flash the Stock Firmware

because of sim slot 2 issue i want to give my phone under warranty
I want to Flash the original stock firmware of Zenfone 2
i have downloaded the stock Firmware file.
how should i flash it. should i flash it using Fastboot method or TWRP directly ?
current recovery : TWRP
If you have TWRP then you must have unlocked the bootloader, which means your warranty is void.
Ya i know... But it is hardware prob. So i don't think so they will check my phone bootloader.. So want to give a try
Do you have the white splash screen? If you do I'd flash the black one back in TWRP, then at least it isn't immediately obvious the the boot loader is unlocked. Next, I'd fastboot flash back to the stock recovery for the firmware you are going to restore (you don't want to leave TWRP on there). Then wipe data and cache, put the firmware on your SD card renamed as MOFD_SDUPDATE, and boot into recovery to flash it.
Thxxx. I had already flashed black splash screen...
Ok finally i need flash stock recovery and then flash the original firmware...
Sagarvaghela said:
Thxxx. I had already flashed black splash screen...
Ok finally i need flash stock recovery and then flash the original firmware...
Click to expand...
Click to collapse
Don't forget to unroot, uninstall xposed, l speed mod, etc. that writes to /system.
Ntrasme said:
Don't forget to unroot, uninstall xposed, l speed mod, etc. that writes to /system.
Click to expand...
Click to collapse
He doesn't need to do that - flashing the full firmware file via recovery will overwrite the whole of /system. Only need to unroot etc if flashing an ota.
Hi folks
Can anyone make a guide step-by-step to how back (from cm12.1 to stock)??
Clean install like factory stock!
I think it´s a good action to noobs, like me!
I found this steps, but i donót know if is so simply like description:
http://www.asus.com/zentalk/forum.php?mod=viewthread&tid=12528
"Open adb folder and Shift + right click > Open Command pomport Here (click on it)
On the adb cmd type adb reboot-bootloader
After you enter the fastboot/droid boot, on the adb cmd type fastboot flash recovery <Recovery Image File Name.img>
Example: fastboot flash recovery recovery.img
After the recovery flash complete go to "recovery menu" and select on it, after you enter recovery navigate and select "update from adb"
And type on adb cmd adb sideload <Firmware File.zip>
Wait the for the process to complete the phone (~25min), if you have an auto reboot, you need to enter in the "boot loader" and select again "Recovery Mode"
you can now select "wipe data/factory reset" (~5min)
when is finish select "wipe cache partition" (~1min)
and for the end select "reboot system now"
The Boot process Will be Little Longer After This Process PLease Be Patient (~5min)
Finish!
*Note This Tutorial Can Be Applied To This Cases : [U Want To Upgrade Your Zenfone 2 Or Downgrade It, Your Phone Has Soft Bricked (Boot Loop) And You Want To Fix It By Yourself]"
Work to rollback from CM???
Reflashing Stock Rom
Simple Way
If you come from CM 12.1 @crpalmer and TWRP from @TheSSJ and want to flashing stock rom.
1. you must download full stock rom from asus server
2. put your downloaded stock rom into adb folder
3. go to recovery mode (TWRP) and select Advanced > ADB Sideload > select Wipe Dalvik Cache and Wipe Cache and swipe to start sideload
4. access your adb and From the command line, type adb sideload yourstockrom.zip
5. wait until finished and select reboot
Done.!!
device not found
pocax said:
Simple Way
If you come from CM 12.1 @crpalmer and TWRP from @TheSSJ and want to flashing stock rom.
1. you must download full stock rom from asus server
2. put your downloaded stock rom into adb folder
3. go to recovery mode (TWRP) and select Advanced > ADB Sideload > select Wipe Dalvik Cache and Wipe Cache and swipe to start sideload
4. access your adb and From the command line, type adb sideload yourstockrom.zip
5. wait until finished and select reboot
Done.!!
Click to expand...
Click to collapse
I am trying this to flash stock rom ,during the stage at (twrp recovery > advanced > adb sideload> sipe cache/dalvik),but in adb ,after giving the command says "device not found" what to do. I am a noob. I rooted/ unlocked the bootloader/installed a custom recovery (twrp) /installed cm12.1 nightly. now I want to back to stock root . help me. how to work in adb and sideload when the device is not found
dr.arifeen7009 said:
I am trying this to flash stock rom ,during the stage at (twrp recovery > advanced > adb sideload> sipe cache/dalvik),but in adb ,after giving the command says "device not found" what to do. I am a noob. I rooted/ unlocked the bootloader/installed a custom recovery (twrp) /installed cm12.1 nightly. now I want to back to stock root . help me. how to work in adb and sideload when the device is not found
Click to expand...
Click to collapse
I was only able to adb sideload from stock recovery. Reflash stock recovery and do it from there.
stock rom/recovery
rlaw said:
I was only able to adb sideload from stock recovery. Reflash stock recovery and do it from there.
Click to expand...
Click to collapse
how to flash the stock recovery? what will happen with the twrp (custom recovery ) then?
after flashing stock recovery , will i will be able to get ota update from asus?
i mean, i completely wana go back to the initial stage like when i bought the phone, (pure stock/un rooted/locked bootloader) what's the process?
i was wondering if going back to stock will not give me ota update from asus again.
if there's a guide line showing complete process of rolling back to stock from cm12.1 nightly and having stock rom with ota enabled ( yah! i dun wana hang up on bootloader animation. it happens)
please suggest me.
thanks for responce and help
peace!! (Y):good:
dr.arifeen7009 said:
how to flash the stock recovery? what will happen with the twrp (custom recovery ) then?
after flashing stock recovery , will i will be able to get ota update from asus?
i mean, i completely wana go back to the initial stage like when i bought the phone, (pure stock/un rooted/locked bootloader) what's the process?
i was wondering if going back to stock will not give me ota update from asus again.
if there's a guide line showing complete process of rolling back to stock from cm12.1 nightly and having stock rom with ota enabled ( yah! i dun wana hang up on bootloader animation. it happens)
please suggest me.
thanks for responce and help
peace!! (Y):good:
Click to expand...
Click to collapse
Backup anything you want to keep and export it to PC to re-add it onto your phone later.
Download stock firmware here: http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE551ML/UL-Z00A-WW-2.20.40.59-user.zip
Rename it to update.zip to make it easier for you. Put it in the same folder where your adb is located on PC.
http://www.mediafire.com/?afulultx06r70a4
Download latest stock recovery here.
Reboot your phone into bootloader. Open a command window where these files are located (shift+right click in Windows should open a context menu with open command window here option).
Flash the recovery: "fastboot flash recovery recovery.img"
Type that without quotes and press enter.
After it's finished, press volume down on phone til recovery option comes up then press power button.
Let the phone reboot. Eventually an error screen will pop up. When it does, hold down power button and press volume up. Release both buttons at the same time. If you did it correctly, recovery menu will now show up.
Choose apply update from adb sideload then from PC command window type "adb sideload update.zip" without quotes.
Then wait 10-20mins for it to finish. You'll be completely stock. Your data and internal storage will be formatted. That's why I said make backups first.
rlaw said:
Backup anything you want to keep and export it to PC to re-add it onto your phone later.
Download stock firmware here: http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE551ML/UL-Z00A-WW-2.20.40.59-user.zip
Rename it to update.zip to make it easier for you. Put it in the same folder where your adb is located on PC.
http://www.mediafire.com/?afulultx06r70a4
Download latest stock recovery here.
Reboot your phone into bootloader. Open a command window where these files are located (shift+right click in Windows should open a context menu with open command window here option).
Flash the recovery: "fastboot flash recovery recovery.img"
Type that without quotes and press enter.
After it's finished, press volume down on phone til recovery option comes up then press power button.
Let the phone reboot. Eventually an error screen will pop up. When it does, hold down power button and press volume up. Release both buttons at the same time. If you did it correctly, recovery menu will now show up.
Choose apply update from adb sideload then from PC command window type "adb sideload update.zip" without quotes.
Then wait 10-20mins for it to finish. You'll be completely stock. Your data and internal storage will be formatted. That's why I said make backups first.
Click to expand...
Click to collapse
Anybody tried this?
rblaker said:
Anybody tried this?
Click to expand...
Click to collapse
If you looked around the forum and did research, you'd see this is common and MANY people have done it. It's one of 3 ways to flash firmware.
rlaw said:
If you looked around the forum and did research, you'd see this is common and MANY people have done it. It's one of 3 ways to flash firmware.
Click to expand...
Click to collapse
if i get back to stock, will i be able to receive ota?
Help Me DUDE !!
Hey There, I need to give my phone for replacement but I had unlocked the bootloader. how do I Re lock it ???
I bought a Z00A online just a few days ago, rooted it, unlocked the bootloader, installed TWRP, and then CM12. All was perfect until I realized some hardware problems with the speaker. Also lately it doesn't boot up easily on pressing the power button. In fact every time I have to go to the bootloader and 'Normal Boot' from there. And even that doesn't happen all the time. I have installed the stock recovery, flashed back the black splashscreen, and also the stock-firmware through adb sideload successfully.
Now can someone tell me does flashing the stock firmware through adb sideload re-locks the bootloader or not ??
If no, what are my chances of getting a replacement ???
I'm attempting to go back to stock also. So when I'm in bootloader fastboot and adb do not see the phone. Adb sees it when in recovery and in normal. But I need fastboot in order to flash stock recovery. Right now I have official TWRP and superzen installed. I've tried in both Windows and LinuxMint. With the same results in both. Any ideas would be appreciated.

Trying to install TWRP but the phone keeps overwriting it

Trying to install TWRP v3. Phone is unlocked (not rooted yet as not necessary atm). I'm able to sucesfully push the .img to the sdcard via adb and install via "fastboot flash recover twrp.img" but the moment I reboot the phone and try to access recovery to get into TWRP, all I get is a little icon of an android mascot lying down with his belly open. No TWRP.
I know the phone will auto-overwrite custom recovery's if the correct combination of hardware buttons are not pressed after the first TWRP install (as TWRP needs to patch the default recovery the first time to stop the phone from constantly trying to overwrite TWRP every time) but so far i've not been able to find out what it is (i.e. not the usual vol +- and power all at the same time. Its gotta be something else?).
Edit: Delete his post. I figured it out. Turns out it isn't a good idea to execute "fastboot reboot" immediately after TWRP installation
Don't restart the Phone!
Flash Recovery and the do the following:
Use the volume keys to scroll and power key to select the Reboot Bootloader option. Once the phone has booted back into the bootloader you can use the volume keys to scroll and the power key to boot into your newly flashed recovery. It's now safe to disconnect your usb cable.

Flashed the Wrong ROM

Hey guys,
I accidentally flashed the wrong ROM [5.1.1] instead of [6.0.1] on my SM-G925T and now it got stuck on the logo screen with a red message on the top left corner saying Kernel is not SEandroid enforcing.
Any known remedies for fix this issue? My phone still communicates with ODIN and i can get it to download mode but not in recovery. (I had TWRP prior to this issue)
Thanks
Hold Volume Down + Power + Home, this will reboot you to download mode. Press volume down and right after that, hold volume up + power + home. This should bring you back into recovery which I am assuming is TWRP since you are installing a rom. From here you can use ADB to upload a correct custom rom to your device and install it.
Mortifix said:
Hold Volume Down + Power + Home, this will reboot you to download mode. Press volume down and right after that, hold volume up + power + home. This should bring you back into recovery which I am assuming is TWRP since you are installing a rom. From here you can use ADB to upload a correct custom rom to your device and install it.
Click to expand...
Click to collapse
Thanks for your reply. I was able to briefly get it to recovery mode earlier but the phone turned off and never came back since. I am trying to charge it just in case, but it is only showing an empty battery on the screen... How screwed am I?
Minor update, the phone does work and it goes into recovery. Can I install any rom through adb or does it have to be something specific. I wanted to try the one by Mortifix
crematorio said:
Minor update, the phone does work and it goes into recovery. Can I install any rom through adb or does it have to be something specific. I wanted to try the one by Mortifix
Click to expand...
Click to collapse
Yeah it can be any rom. If you install an incorrect rom, your phone will simply not boot. Once you get into TWRP, just go to the Install option and select the zip file. If you are only able to get into recovery, you may be able to transfer the zip from your PC to your phone just by dragging and dropping. This never works for me so I always just use adb push -p "path to the zip on your pc" /sdcard
If you don't have adb setup yet, you can download it from this link: http://forum.xda-developers.com/showthread.php?p=48915118#post48915118
Mortifix said:
Yeah it can be any rom. If you install an incorrect rom, your phone will simply not boot. Once you get into TWRP, just go to the Install option and select the zip file. If you are only able to get into recovery, you may be able to transfer the zip from your PC to your phone just by dragging and dropping. This never works for me so I always just use adb push -p "path to the zip on your pc" /sdcard
If you don't have adb setup yet, you can download it from this link: http://forum.xda-developers.com/showthread.php?p=48915118#post48915118
Click to expand...
Click to collapse
I installed your ROM through ADB but now it got stuck in a loop through TWRP recovery trying to mount /data and then it restarts again. It looks like it goes directly to the ADB option in TWRP
crematorio said:
I installed your ROM through ADB but now it got stuck in a loop through TWRP recovery trying to mount /data and then it restarts again. It looks like it goes directly to the ADB option in TWRP
Click to expand...
Click to collapse
Hmm, you may need to go to Wipe and do a factory reset. This will wipe cache, system, and data while leaving data/media (/sdcard) intact. After doing this, reboot back into recovery and try to install the rom again.
crematorio said:
I installed your ROM through ADB but now it got stuck in a loop through TWRP recovery trying to mount /data and then it restarts again. It looks like it goes directly to the ADB option in TWRP
Click to expand...
Click to collapse
If you get stuck in a boot loop through TWRP and you can still use TWRP, go to "Advanced" then to "Terminal" and type "reboot"
Good luck!

Tried flashing CM13, now can't enter normal boot

So I already had a rooted (and I'm pretty sure unlocked bootlader) version of the stock Asus and wanted to put CM13 nightly on there. Everything was going smooth until I got to the stage where I have to load into TWRP and I got the error screen with the little dead alien and the red symbol.
Now I can't enter normal boot, but entering recovery mode seems to work. I tried the option to side load a package from ADB on that screen but nothing worked (.zip files extracted, but I got an error on the phone).
As you can tell, I'm really new to this so any help would be greatly appreciated. I tried looking around, but it seems the more common issue is people not being able to enter recovery mode or something similar.
Thanks
Looks like your doing it wrong. Being rooted does not necessarily mean that your bootloader is unlocked.
By the looks of it your in recovery mode with the dead robot with the "error" message. That is normal. To reboot back into system you either have to press (I don't remember) power button and volume up or down button. Then you should see some options with reboot to system. Or if that does not work you can hold the power button till it turns off.
Then you get back into Android, download the official bootloader unlock tool from ASUS and install it on your device. NOTE: If you updated to MM then this will not work and this will void your warranty.
Run the tool and press unlock and it should reboot into fastboot where it should begin the unlocking process. I believe it should automatically reboot and you should see that the Asus logo is now black instead of white. If not, repeat the process.
You can now proceed to flash twrp recovery. Boot into fastboot/bootloader mode either with "adb reboot bootloader" or hold a specific set of buttons while off to go directly into fastboot.
On the computer, connect your device and type in "fastboot flash recovery (path to twrp IMG without brackets)"
When done you should be able to reboot into twrp recovery where you can flash the cm13 zip.
Hope this helped.

can't get into recovery mode

hi
i just unlocked my mi5s now, but when im trying to get into recovery mode (volume up + power) it still shows me the phone picture.
there is something that i am missing?
Flash the recovery, when in fastboot reboot into recovery by "fastboot boot recovery.img" if that's the name of the file on your computer. It will boot into recovery. After that, turn of the phone and boot into recovery with the button combination. Do not boot into the OS as it will disrupt the process! After this you should be fine. If not, try again, as you probably failed to directly boot into recovery with the button action.
Also, do check that you push both the volume keys plus the on/off button. So three in total.
8166uy said:
Flash the recovery, when in fastboot reboot into recovery by "fastboot boot recovery.img" if that's the name of the file on your computer. It will boot into recovery. After that, turn of the phone and boot into recovery with the button combination. Do not boot into the OS as it will disrupt the process! After this you should be fine. If not, try again, as you probably failed to directly boot into recovery with the button action.
Also, do check that you push both the volume keys plus the on/off button. So three in total.
Click to expand...
Click to collapse
as far as i know, when im unlock the phone, it unlock the recovery mode so i can access it by volume up + power instead of the phone picture.
i want for now stay with the stock recovery and not flash a custom one
Mm, you could use the phrase "fastboot reboot recovery". If that doesn't work, flash the latest Global beta and try again both ways.
If that also doesn't work, recheck if the phone is really unlocked (sometimes Xiaomi phones relock after an update without any good reason).
You could also try to find the stock recovery and use it in the method in my first reply. But keep that for last, as I don't know for sure how that recovery reacts to such a thing. Although I can't think of a reason why it would go wrong, it's better to be save than sorry.

Categories

Resources