This is my first thread, I apologize for any mistakes or core aspects left out.
Intro/Formatting KeyBefore I start, I want to give a quick thanks to those contributing to these forums/threads, as it got me through my first custom ROM install ever! Knowing too much information is better than too little, and my want to not waste anyone's time, I'm going to share most of my experience installing the custom recovery and ROM. I will explain what I mean by custom recovery dying at The Dead Recovery. Italics will be used as commands entered in SDK tools. Bold will be used as outputs from cmd.
Phone SpecsPhone: Oneplus 7T HD1905 running Android 11 OOS
Custom Recovery: Chinese TWRP from this youtube video
Custom ROM: Derpfest R for hotdogb found here
My Install ProcessBesides needing to turning off driver signature reinforcement, the bootloader unlock was a normal process. Issues started occurring when I wanted to flash the custom recovery. fastboot reboot fastboot would not give me any feedback on the cmd prompt as it would say <waiting for devices> even though my phone was in fastbootd mode. After reading another thread, I hail married the flash using fastboot flash recovery twrp_best.img. All was great! My phone booted into TWRP, wiped the old stuff, flashed Derpfest, and rebooted. Derpfest works pretty well! (a little buggy but what do you expect from a beta build?).
The Dead RecoveryI notice the safety net with this ROM was broken, so I wanted to install Magisk to fix that issue (I wanted to use Gpay). I download the apk, do my renames for .zip and unintall.zip, and attempt to boot to recovery, but I just get a black screen! Using PWR+VOLUP allows me to reboot into the ROM just fine at least, so I didn't brick my phone. From here, I don't know what I should do to mitigate this issue. Here are my main concerns/questions.
Questions/Concerns1. Will flashing a new recovery allow me to still boot into my phone?
2. Should I use a different image?
3. Should I maybe use flashboot flash recovery_a twrp_best.img flashboot flash recovery_b twrp_best.img to flash the recovery?
Thank you in advance!
Related
Hello everyone,
This morning, I wanted to recover OxygenOS on my Oneplus3. I'm currently running Cyanogenmod 13.
I used the following guide: "[GUIDE] How to Unroot your OnePlus 3 / 3T and go back completely to stock" (Since I'm a newb, I can't post the link. But Google will get you there)
I booted into fastboot, issued the fastboot flash recovery recovery_op3.img and fastboot oem lock commands from my Linux termina, and rebooted in recovery mode.
In recovery mode, I then erased the cache and all that, selected the "Upgrade android from USB" and issued the adb sideload ota.zip command. This is where my problems began.
After running the command, I got the error "error: protocol fault (no status)". I tried to look this error up, but couldn't find useful information.
I started to panic a bit, fearing that my phone would be bricked. However, after booting back into fastboot mode, unlocking OEM, and rebooting, my phone would boot back into Cyanogenmod 13 (A clean install).
So now I don't have a bricked phone. However, I really would like to go back to OxygenOS, so my question is whether anyone knows how to solve my problem.
Summary:
Running Linux (Debian 8) on my PC;
Running Cyanogenmod13 on my Phone;
Want to recover OxygenOS, but adb sideload gave me "error: protocol fault (no status)";
Tried running the adb sideload command as root, however that did not work;
Can still use the Cyanogenmod13.
I've seen that error once before. I had to disconnect the phone, kill the ADB process, reconnect the phone and restart ADB to get it to work.
That worked for me. Hope that helps.
Sent from my OnePlus 3 using XDA Labs
Tybalt said:
I've seen that error once before. I had to disconnect the phone, kill the ADB process, reconnect the phone and restart ADB to get it to work.
That worked for me. Hope that helps.
Sent from my OnePlus 3 using XDA Labs
Click to expand...
Click to collapse
Hey, thanks for responding.
I forgot to mention that I also tried killing the adb process several times, using the adb kill-server command and by killing the process sending SIGKILL.
Another thing I tried was using another Debian machine, which is my laptop. Still, those things did not solve my issue.
Never relock your boot loader, most bricks are due to relocking.
Flash twrp, flash oxygen os ,boot, enable everything,if you want complete stock, flash stock recovery ,flash oxygen os boot to complete stock os.
Backup youre working rom..
First, you need unlocked bootloader.
1.Flash twrp 3.0.4.1 or twrp-3.1.0 x v.26 blu_spark. Reboot to recovery.
2.Clean flash (wipe data-dalvik-system-cache) Oxygen OS, since you come from a custom rom. Flash SuperSu or Magisk, if you want root. Reflash recovery. Reboot to recovery.
If youre phone does not boot in recovery, press Power till phone vibrates. Press vol. down & choose:
1. Select Bootloader. Flash recovery from PC. Safest way to flash recovery.
or
2.Select recovery. Reflash recovery. Reboot recovery.
After you are sure that you got a working recovery reboot to system.
null0seven said:
Backup youre working rom..
First, you need unlocked bootloader.
1.Flash twrp 3.0.4.1 or twrp-3.1.0 x v.26 blu_spark. Reboot to recovery.
2.Clean flash (wipe data-dalvik-system-cache) Oxygen OS, since you come from a custom rom. Flash SuperSu or Magisk, if you want root. Reflash recovery. Reboot to recovery.
If youre phone does not boot in recovery, press Power till phone vibrates. Press vol. down & choose:
1. Select Bootloader. Flash recovery from PC. Safest way to flash recovery.
or
2.Select recovery. Reflash recovery. Reboot recovery.
After you are sure that you got a working recovery reboot to system.
Click to expand...
Click to collapse
Thanks for responding.
Since I don't understand everything yet, I will spend this evening looking up everything in detail, before I start giving it another try. Do you perhaps know of a tutorial about this specific situation? I don't want to bother you by questioning everything you stated in your instructions. They seem clear enough to be able to be looked up on Google :laugh:
drmuruga said:
Never relock your boot loader, most bricks are due to relocking.
Flash twrp, flash oxygen os ,boot, enable everything,if you want complete stock, flash stock recovery ,flash oxygen os boot to complete stock os.
Click to expand...
Click to collapse
Thanks for responding.
By the steps after "if you want complete stock", do you mean that I should keep the bootloader unlocked, and then perform the same steps as in the tutorial that I used?
EDIT:
@ null0seven: I found these steps online as I was looking up some things you said (I don't have much time since I will celebrate eastern with my family today)
Rooted Users or users with ROMs other than OxygenOS having new bootloader (Official CM 13,CM 13 Based ROMs dated later than 04 June 2016,H2OS Marshmallow)
Step 1 :- Download the OxygenOS 3.0.2 full zip from the top of the post.
Step 2 :- Boot into TWRP.Wipe Dalvik,System,Data and Cache.After that,flash OxygenOS 3.0.2.
Step 3 :- [OPTIONAL] Flash SuperSU from here :- https://www.androidfilehost.com/?fid=24459283995297946
Step 4 -> Reboot System.
Of course, this is about an old version of OxygenOS. But it looks the same as you said.
I think this, combined with your instructions, will make it a bit clearer. Still one question: What do you mean exactly by flashing?
dvbeck
https://forum.xda-developers.com/oneplus-3/how-to/oneplus-3-how-to-unlock-bootloader-t3398733
Hey guys and gals,
Silly question.
For a few months now, I've had TWRP 3.1.0 RC2 installed and no matter what I do, I absolutely cannot reboot into recovery. If I choose reboot to recovery while the phone is running, it results in a ramdump and eventually boots to system. If I reboot into the bootloader and choose to boot into recovery mode from there, it just boots to system. It's incredibly annoying. Literally the only time I can get into recovery is when I connect my phone to a computer and fastboot boot into a temporary TWRP Img and install TWRP again. Once I boot into system, I can never boot into recovery again. This is extremely inconvenient on the go, like right now, because I want to flash V4A before I start playing music from my Bluetooth speaker. Guess I'll just listen to low quality music :'(
What am I doing wrong? This is stupid.
Alcolawl said:
Hey guys and gals,
Silly question.
For a few months now, I've had TWRP 3.1.0 RC2 installed and no matter what I do, I absolutely cannot reboot into recovery. If I choose reboot to recovery while the phone is running, it results in a ramdump and eventually boots to system. If I reboot into the bootloader and choose to boot into recovery mode from there, it just boots to system. It's incredibly annoying. Literally the only time I can get into recovery is when I connect my phone to a computer and fastboot boot into a temporary TWRP Img and install TWRP again. Once I boot into system, I can never boot into recovery again. This is extremely inconvenient on the go, like right now, because I want to flash V4A before I start playing music from my Bluetooth speaker. Guess I'll just listen to low quality music :'(
What am I doing wrong? This is stupid.
Click to expand...
Click to collapse
I had the same problem, then I got a twrp boot loop, ended up having to boot into slot b and reflash stock img through adb, beware...
I was JUST about to post this! Exact same problem to the tee (except using RC1)! Hopefully someone smarter can chime in lol
NYYFan325 said:
I was JUST about to post this! Exact same problem to the tee (except using RC1)! Hopefully someone smarter can chime in lol
Click to expand...
Click to collapse
I was on RC1 also
Anyone got some insight to this? Can't be that uncommon of a problem...
Try starting the process again.
Boot to bootloader
Fastboot boot 3.0.2 rc1
In twrp flash 3.1.0 r 2
Reboot recovery and check if it works
noidea24 said:
Try starting the process again.
Boot to bootloader
Fastboot boot 3.0.2 rc1
In twrp flash 3.1.0 r 2
Reboot recovery and check if it works
Click to expand...
Click to collapse
I never had TWRP stick unless I added another step to your instructions --boot completely into the rom once, go back into the bootloader, open temp TWRP and flash the TWRP zip again. If I didn't do this my recovery would always revert to stock but, strangely, even though I was running a custom rom the combination of the custom rom and stock recovery never bootlooped my phone and I was able to boot from the stock recovery to the custom rom with no problems. The only reason not being able to boot into TWRP was even an issue was that you can't flash any zips in recovery without it. Otherwise the phone ran so perfectly I didn't even realize at first that TWRP wasn't still the installed recovery.
Get the stock boot.img (this will remove root/kernel/twrp)
Boot into the bootloader
Fastboot flash boot boot.img
Fastboot --set-active=a or b (switch to the inactive slot)
Fastboot reboot bootloader
Fastboot flash boot boot.img
Fastboot --set-active=a or b (reload previous slot)
Fastboot reboot bootloader
Fastboot BOOT twrp.img
Flash TWRP in twrp..
If you can do that I would be interested in your results.
Also pointing out flashing rooms and certain zips here in the forums WILL revert you back to a stock recovery. Just my last bit of helpful information, hope someone gets it figured out, flashing is already a chore for those of us who like to experiment.
pcriz said:
Get the stock boot.img (this will remove root/kernel/twrp)
Boot into the bootloader
Fastboot flash boot boot.img
Fastboot --set-active=a or b (switch to the inactive slot)
Fastboot reboot bootloader
Fastboot flash boot boot.img
Fastboot --set-active=a or b (reload previous slot)
Fastboot reboot bootloader
Fastboot BOOT twrp.img
Flash TWRP in twrp..
If you can do that I would be interested in your results.
Click to expand...
Click to collapse
I was able to boot into recovery after doing this. Got a bootloop booting into system though, but flashing the ROM (and TWRP) fixed it.
Hello,
Try booting to TWRP 3.0.2 RC1 then flash TWRP 3.0.2 RC1 + SR1-SU v2.82SR1 + SU Pixel Fix (from Chains beta thread) one right after the other in the same TWRP session then reboot. Should fix your issue, give you recovery+root without ram dump.
Cheers
Everytime you flash a rom you need to flash twrp before rebooting or you'll lose twrp recovery.
Unfortunately I've had to get my Pixel XL replaced due to a defect and received a Verizon edition XL running 7.1.1. This is what I get for buying it from Best Buy Therefore I cannot unlock the bootloader and this problem no longer applies to me.
I'll keep this thread open for a bit in case it's useful for anyone else. I'll just sit here in all of my Stock-ness.
I couldn't get this to work. Tried flashing stock boot.img, then booting off of the TWRP images but I keep getting TWRP boot loop. Any suggestions? Tried flashing the entire stock image as well and no dice...
I absolutely hate the navigation buttons and the lack of a app drawer so I jumped when I heard I could put a custom Rom on it. So I unlocked the boot loader but couldn't for the life of me get twrp on it so feeling defeated I decided not to mess with it but now the darn thing won't boot it goes to the recovery screen and not any further. So I guess I need help reversing this or completing the twrp install... I don't really care which cuz I just need a working phone. (Preferably with twrp installed so I can put a different Rom on..)
Need a working phone with stock? Extremely easy. Flashing stock has been made very easy.
Just download factory image and follow the instructions here
https://insider.razerzone.com/index.php?threads/robin-factory-images-and-usb-driver.21487/
And since you cannot boot just reach the recovery page, check if you are able to run fastboot command (fastboot devices) and then run the bat file as instructed in the guide above.
This will wipe everything and help you flash stock to your device.
Getting recovery on Robin is easy too. Not sure what went wrong for you. Make sure you have everything in place first.
Download and install Minimal adb/fastboot https://insider.razerzone.com/index...der-flash-custom-recovery-decrypt-root.23775/
Download and install Robin USB Drivers (just in case) https://insider.razerzone.com/index.php?threads/robin-factory-images-and-usb-driver.21487/
Download latest TWRP https://dl.twrp.me/ether/
Download latest factory image https://insider.razerzone.com/index.php?threads/robin-factory-images-and-usb-driver.21487/
If you want to root then get the latest version of Magisk https://forum.xda-developers.com/apps/magisk (v14 worked fine for me)
Download the custom ROM of your choice
After unlocking the bootloader, just flash the recovery file with the fastboot command and select recovery on your device, you should see TWRP in 1-2 minutes.
Watch this video till 7:34 https://www.youtube.com/watch?v=DKyEhn9clNw
Once you have flashed TWRP properly, now you can push magsik, ROM and gapps and flash them one by one to root and install custom ROM of your choice.
Hope it helps.
Hi,
I have 9.5.19.0 miui and want to install custom rom like Resurrection Remix. How do i do it?
Also, does the camera works good like stock in this ROM?
Thanks!!
I wanto to know the same. Is this guide safe and up to date?
https://forum.xda-developers.com/re...ne-xiaomi-redmi-note-5-whyred-unlock-t3778049
I'm trying to learn too, but at least here in note 5 pro forum, haven't received any answers. Will try miui forum or 4xpa. Anyway, here is what I poste in other thread and what I believe is the correct way if you are in ARB4.
Hope someone can confirm:
Ok... I breaking my head into Miui world! First I'm ****ed with anti roll back 4 . I read a lot, but there are a lot of new stuff that I never heard about on Samsung world :{
Pleaseeeee, just tell me if I'm correct.
Unloocking bootloader is easy after waiting time. Ok here. Than, I want custom recovery just to flash magisk!
Since Im on anti 4, fastboot commands are bloked, right? So, 1: "fastboot flash antirbpass dummy.img"; 2: flash TWRP or Redwolf with "fastboot flash recovery XXXX.img"; 3: Boot Twrp or Redwolf using “fastboot boot XYZ.img”. 4: In recovery, I normally flash magisk and be happy
Now... I will have custom recovery, I believe. Will my phone still receive OTA, will I be able to update manualle ota files from updater?
At last... I feel kind of naked without recovery... Does redwolf really stick after a rom update?
Thanks.. Really hope someone could helpe cause I'm really lost.
SOME MORE INFO: If you are on ARB 3, skip step 1 (Dont flash dummy). And after you got recovery, flash rom, followed by Gapps (if the rom doenst include it - prefered pico Gapps to avoid camera issue like reported on RRO thread) and for last, flash magisk 16.4 (skip magisk 16.7 since is giving a lot of people and devices random reboot or bootloop).
If you give the "fastboot flash recovery.img" command then you will have twrp or redwolf permanently, if you give only "fastboot boot recovery.img" command then it won't be on your device after boot. You will get updates but I'm not sure, never used stock miui, always flashed custom one.
Hi all,
I have recently shifted from Samsung A52S to Onpelus 9 PRO.
I'm now a bit confused about flashing method....
I mean :
on Samsung devices, you have to use ODIN ( that is a Fastboot replacement tool ) in order to flash the TWRP and then, on TWRP, you can freely flash any new custom ROM or any other img files, by simply press "INSTALL" button instad of ADB sideload commands.
If I well understood, in order to flash this custom ROM, I have to do that through Fastboot commands before and through TWRP ADB sideload commands after......
My question is : may I flash boot.img / vendor_boot.img / dtbo.img and ROM zip directly through TWRP "INSTALL" button instead ???
If not, can someone kindly explain which is the reason why ?
Sorry for this noob question but I'm doing my first step into Oneplus and I don't want to do a mess.....
Many thanks for the help !
I personally been wanting to know why we no longer can simply flash custom roms via TWRP like we use to. I do believe its got to do with the way the A/B partition works however that does not really answers why we can't just flash via TWRP. Unfortunately, I have not been able to find the answer so I am interested too on why we can't simply flash custom roms in TWRP and have to resort in sideloading or via fastboot. I would think flashing via a zip in TWRP will have less user errors compare to using a command line to do your flashing.
Saying that, I have been flashing via fastboot since I got this phone and even though its a longer process, it only takes a few more minutes.
twrp is not even fully adapted for android 12 or 13 (but who needs twrp anymore?)
I prefer to flash via fastbootd
(is less work for me)
best way is the magisk install
ChrisFeiveel84 said:
twrp is not even fully adapted for android 12 or 13 (but who needs twrp anymore?)
Click to expand...
Click to collapse
twrp is still the only way to backup the whole rom
it exist a non official version for 12/13
TWRP is the best tool to recover files when the OS does not boot. Since there is no ROM or kernel out there that recommend or uses TWRP for flashing. There is little reason to use TWRP unless is for file recovery. This is in respective to OP 9.