Restore Stock kernel and stock recovery - OnePlus 6 Guides, News, & Discussion

I installed Franco Kernel and i didnt understand how to use it so i wanted to restore the stock kernel. i found thid guide it was very informative and easy to do. https://www.androidexplained.com/oneplus-6-stock-kernel/. full disclosure by flashing the stock kernel you will be back on stock recovery. the stock recovery is really boot.img the latest can be found here https://forum.xda-developers.com/oneplus-6/how-to/oneplus-6-mirrors-official-oxygen-os-t3792244. hope this was informative cheers!

Related

Flashing question

I am new to the Charge but not rooting and Android. I came from the DX so the way things are done in this thing are different. Here's my question:
I am currently rooted and running a rom with a custom kernel. If I use Odin to flash the official software, will I also need to replace the kernel separately or will flashing the official software also restore the original kernel?
You will not need to replace anything, the Odin package is all in one. It will put you back to bare stock which means ROM, kernel, recovery, modem, you name it.
If you wouldn't mind helping could you link me to a rooting guide on a DX? Some general tips on rooting it would be very appreciated. My dad has one and I'd like to root/ROM it for him but i don't feel like studying up >_< Thanks!
Wrightperspective said:
I am new to the Charge but not rooting and Android. I came from the DX so the way things are done in this thing are different. Here's my question:
I am currently rooted and running a rom with a custom kernel. If I use Odin to flash the official software, will I also need to replace the kernel separately or will flashing the official software also restore the original kernel?
Click to expand...
Click to collapse
Odin will replace everything, including your kernel.
Thanks for the response. I got confused because I saw posts saying that some kernels were interchangeable but I didn't know if they meant that you would have to flash the kernel after you flash the rom or if you just flash a new rom and the kernel remains. Appreciate the response.
You have to flash kernal only on cmw versions and not all of them read the pre requisites it will tell you if the cwm version either do not or do.have a kernal included for example humble 5 cwm version I.believe u.have to flash a kernal prior to rebooting or stock recovery will over write cwm happened to me and learned my.lesson the hard way !!!
Sent from my Gummy Charged GBE 2.0 using xda premium
Okay...so flashing the stock file will also get rid of CWM, right?

possible to have voodoo recovery on stock firmware?

I would really like to know if this is possible. having issues and thinking of going back to stock. can anyone tell me how to specifically install voodoo on stock kj2 firmware?
I found a post in the dev section that has a flashable kernel with voodoo. possible to flash that kernel to stock rooted firmware?
I went back to stock, rooted, installed clockworkmod, flashed the bali kernel, and now i have voodoo and it is awesome! had i known all about voodoo and known i could have it just by flashing a kernel, I never would have flashed a custom rom.

Rooted stock rom ICS 4.0.4 but...

Let's say I want to flash a rom and made a backup thru CWM of my stock rom will I be able to keep root if I flash it back to the stock rom ?
II'm doing this cause I care most about no auto brightness issue than the actual advantage to go with a custom rom.
Thanks
Why don't you just root your stock ROM then? You need to be rooted to flash CWM recovery anyways..
rener78 said:
Let's say I want to flash a rom and made a backup thru CWM of my stock rom will I be able to keep root if I flash it back to the stock rom ?
Click to expand...
Click to collapse
If your ROM is already rooted, and you're restoring it from CWM, yes. If you're using fastboot to re-flash the stock ROM, no, you'll have to re-root it.
I'm kind of confused about what you're asking, though. Can you give more specific details? Are you going to flash a different ROM and try to flash the stock ROM, or parts of it, on top of the new ROM? I wouldn't do that unless you're very sure of what you're doing.

[Q] twrp recovery

Good day XDA forums,
If I restore a TWRP recovery, do I need the original kernal? I tried restoring Nocturnals Jelly Bean that I backed up in recovery. It did not work without me restoring the kernal through ADB from the ROM first.The reason i'm asking is because I do not have the original kernal, although I do have a backup through TWRP of the original ROM.
you still need to fastboot the kernel for whatever rom your a restoring. i would definitely install flashimagegui to allow on the fly kernel flashing. just make sure to flash kernel beforehand or you will have to find a pc.

Need a few qiuck tips. Regarding rooting and flashing

I am about to flash my nexus 5 device.
I was wondering.. if i unlock the bootloader and install a custom recovery plus create a backup.. that means ill have basicly a backup on my phone of a factory ROM and kernel right ?
So If i play around with custom roms and Kernels does that mean if I want to go back to stock kernel or/and ROM I can just recover my backup files from ,for example, CWM ?
And also if anyone here knows... how big difference can a kernel for battery life extension make ?
Then..
If I want to flash both.. Custom ROM and Kernel.. Rom comes first ? And if after that .. lets say I have flashed Cyanogenmod , and I have decided to change ROMs , Do I have to flash factory ROM ? Or I can just factory reset and Flash ir over the Cyanogenmod ?
For example.. for elementalX kernel I read this line... "You should only flash ElementalX over the kernel that came with your ROM!!!" I assume that means I do flash the ROM first... and what if I want to change Kernels later on? I re-flash the factory kernel ? And how do I do that?
For now that would be it
Thanks
Yes, installing a custom recovery (I recommend TWRP) allows you to create a backup of the existing ROM for restoration at a later point in time if you don't like the phone's existing ROM. Restoring TWRP backups have always worked except for me except in a couple of situations where I could not boot the restored ROM without first doing a factory wipe of the data and cache partitions.
I can't comment on custom kernels except to say that everyone uses their phone in different ways and getting the best battery life and performance may require a lot of tweaking. You could just try different kernels to see which one suits your needs.
You can restore the ROM's original kernel by extracting the kernel from the original ROM and flashing it. Alternatively, you could dirty flash the over the existing ROM. For example, if you are running CM12.1 2015-12-30 with a custom kernel and you want to go back to CM12.1 2015-12-30 without the custom kernel, you could just re-flash the entire CM12.1 2015-12-30 ROM again.
audit13 said:
Yes, installing a custom recovery (I recommend TWRP) allows you to create a backup of the existing ROM for restoration at a later point in time if you don't like the phone's existing ROM. Restoring TWRP backups have always worked except for me except in a couple of situations where I could not boot the restored ROM without first doing a factory wipe of the data and cache partitions.
I can't comment on custom kernels except to say that everyone uses their phone in different ways and getting the best battery life and performance may require a lot of tweaking. You could just try different kernels to see which one suits your needs.
You can restore the ROM's original kernel by extracting the kernel from the original ROM and flashing it. Alternatively, you could dirty flash the over the existing ROM. For example, if you are running CM12.1 2015-12-30 with a custom kernel and you want to go back to CM12.1 2015-12-30 without the custom kernel, you could just re-flash the entire CM12.1 2015-12-30 ROM again.
Click to expand...
Click to collapse
Thanks!
What advantages does TWRP has over CWM ? And also does it recover other files as well or just the system ones ?
And I guess its safer to just extract the original ROMs kernel.. Just how do i do that ?
TWRP is well supported and features a simple touch interface. TWRP will recover the system and data files.
Not necessarily safer to flash just the kernel rather than the entire ROM. It also saves time and effort because, if the kernel is not extracted and compiled for flashing in recovery, it could cause the phone to bootloop.
I've never extracted the kernel myself but this may help: https://www.youtube.com/watch?v=rLhprnOF6-U
audit13 said:
TWRP is well supported and features a simple touch interface. TWRP will recover the system and data files.
Not necessarily safer to flash just the kernel rather than the entire ROM. It also saves time and effort because, if the kernel is not extracted and compiled for flashing in recovery, it could cause the phone to bootloop.
I've never extracted the kernel myself but this may help:
Click to expand...
Click to collapse
Thanks!
So.. If, lets say, I flash cyanogenmod. Then Flash custom kernel. In order to change other kernel which is also custom , I should first flash the factory ROM which will have kernel on it ? And then reflash the ROM and then flash the new kernel ?
Im sorry , I also read a lot about this and somewhere on the way got really confused , haha.
Let's assume you flash CM version 1 and then you flash custom kernel "Kernel A". If you want to try another custom kernel named "Kernel B", you could just flash "Kernel B" over "Kernel A". If the developer of "Kernel B" cays it must be flashed over CM's original kernal, you could still flash "Kernel B" over "Kernel A" and hope it works. If it doesn't work, you could dirty flash CM version 1 over the existing ROM, then flash "Kernel B".
audit13 said:
Let's assume you flash CM version 1 and then you flash custom kernel "Kernel A". If you want to try another custom kernel named "Kernel B", you could just flash "Kernel B" over "Kernel A". If the developer of "Kernel B" cays it must be flashed over CM's original kernal, you could still flash "Kernel B" over "Kernel A" and hope it works. If it doesn't work, you could dirty flash CM version 1 over the existing ROM, then flash "Kernel B".
Click to expand...
Click to collapse
Thank you. Made things much clearer. Dirty flash means just flashing over the existing custom ROM and Kernel right?
And also.. What about if i have CM and Kernel B ... But i want to go change to ParanoidAndroid and still keep the Kernel B? This ROM would remove the Kernel and I would have to re flash ir right?
And also if I am just switching around ROMs only.. I can just flash them one over another? Perhaps a factory reset is healthy in between though.
Dirty flash means flashing over the existing ROM without wiping the system in recovery.
Flashing any ROM over an existing ROM will replace the system and kernel. If you want to change ROMs altogether, you'd flash PA and then flash Kernel B.
When changing ROMs, I always recommend a full wipe (i.e. system, data, cache).
audit13 said:
Dirty flash means flashing over the existing ROM without wiping the system in recovery.
Flashing any ROM over an existing ROM will replace the system and kernel. If you want to change ROMs altogether, you'd flash PA and then flash Kernel B.
When changing ROMs, I always recommend a full wipe (i.e. system, data, cache).
Click to expand...
Click to collapse
Alright. And just one last thing that I got a bit confused of..
When I root and install a custom ROM, I am not going to receive OTAs. If I just flash the newest custom ROM does that work as an update? Or the newest ROM can ble flashed over the newest android? If so... How do I exactly get the newest updates manually? I have to flash to factory ROM and then somehow flash the update? By far thats how I understood it.
rihz said:
Alright. And just one last thing that I got a bit confused of..
When I root and install a custom ROM, I am not going to receive OTAs. If I just flash the newest custom ROM does that work as an update? Or the newest ROM can ble flashed over the newest android? If so... How do I exactly get the newest updates manually? I have to flash to factory ROM and then somehow flash the update? By far thats how I understood it.
Click to expand...
Click to collapse
Depends on which rom, but updates to custom roms generally can just be flashed over. Not sure of the MM jump, but from KK to LP, it worked fine so far. Whatever you do read the instructions of the rom and kernel builders. You get lucky sometimes and can dirty flash things that should not be dirty flashed, but if there are issues, there are instructions on the rom or kernel page how to start again.
If you are factory modified and want a factory image you need to flash in fastboot. If on a custom rom, well, like I said follow their advice. Make sure to backup with recovery and save on computer before doing anything.
wangdaning said:
Depends on which rom, but updates to custom roms generally can just be flashed over. Not sure of the MM jump, but from KK to LP, it worked fine so far. Whatever you do read the instructions of the rom and kernel builders. You get lucky sometimes and can dirty flash things that should not be dirty flashed, but if there are issues, there are instructions on the rom or kernel page how to start again.
If you are factory modified and want a factory image you need to flash in fastboot. If on a custom rom, well, like I said follow their advice. Make sure to backup with recovery and save on computer before doing anything.
Click to expand...
Click to collapse
Okay, thanks!
And Happy New year to you all!

Categories

Resources