I installed the beastmode kernel on my phone a while back. I did this after flashing cleanrom 4.2.2, as I was getting what I thought were dropout issues. However, if I would like to flash my phone to a different rom, do I need to reflash the kernel back to stock, or will the rom already have the kernel included? I made a backup of my phone in TWRP before updating the kernal. If I restore the backup, will the kernel revert back to the stock kernel (I'm S-OFF)?
Thanks!
Since you are s-off, if you flash a new ROM, the kernel will also be flashed. The kernel is typically flashed automatically whenever a ROM is flashed. The exception, for those that are still s-on the kernel will not flash automatically, but needs to be done separately in fastboot.
If you simply want to revert to stock kernel and stay on the current ROM, then you can restore your nandroid (which was made pre-Beastmode) or "dirty flash" the ROM (just wipe Dalvik and cache, then flash it again).
redpoint73 said:
Since you are s-off, if you flash a new ROM, the kernel will also be flashed. The kernel is typically flashed automatically whenever a ROM is flashed. The exception, for those that are still s-on the kernel will not flash automatically, but needs to be done separately in fastboot.
If you simply want to revert to stock kernel and stay on the current ROM, then you can restore your nandroid (which was made pre-Beastmode) or "dirty flash" the ROM (just wipe Dalvik and cache, then flash it again).
Click to expand...
Click to collapse
Thank you for your quick response!!!
Related
Do this at your own risk. Bootloader can stay unlocked for either obviously.
I could not go back and forth from CM10 to custom stock rom nandroids. But I found a way. One extra step:
If you have your custom stock rom nandroid (like Bean that usually has the messed up date of 1970s), CM10 and cwr 6.0.1 with an unlocked bootloader on your phone, go to recovery, nandroid your current rom (date gets corrected on cm10), wipe data, cache, system and dalvik, then flash a FRESH copy of custom rom with kexec (beanbuild8 for example), then flash your stock custom rom nandroid.
It's one extra flash but solved my problem.
To go back to CM10, all you need to do is go to recovery and flash the cm10 nandroid.
Hope this helps someone.
I'm confused about revert back from custom kernel. If I flash some custom kernel that changing the ramdisk or other binaries how do I reset kernel partition before moving back to stock or another kernel without issues?
micens said:
I'm confused about revert back from custom kernel. If I flash some custom kernel that changing the ramdisk or other binaries how do I reset kernel partition before moving back to stock or another kernel without issues?
Click to expand...
Click to collapse
for stock, just flash the stock kernel(zipped or boot.img) or reflash the rom without wiping. for going to another custom kernel, just flash the other kernel over without wiping anything. or you can reflash your rom, then the new kernel, without wiping anything.
Hi,
Just in case for a stock kernel flashable zip: http://forum.xda-developers.com/showthread.php?t=2518816.
Thank you
So, if I flash the stock kernel from recovery it returns everything was changed by custom kernel?
That`s good, and so easy
micens said:
Thank you
So, if I flash the stock kernel from recovery it returns everything was changed by custom kernel?
That`s good, and so easy
Click to expand...
Click to collapse
everything within the kernels range, yes. but a few kernels include system files, it wont change those files. reflashing your rom(without wiping) will get those files back. most kernels dont touch system files, but a very few kernels do.
Ok. Thank`s again :good:
One question more
When I did Full Wipe, everything about custom kernel will gone? Because I don`t understand about changed ramdisk and this staff
micens said:
One question more
When I did Full Wipe, everything about custom kernel will gone? Because I don`t understand about changed ramdisk and this staff
Click to expand...
Click to collapse
no. only your user data will go. kernel/rom stays.
Thank`s,
But, with Full Wipe thing I mean Factory reset + Wipe Cache + Wipe Dalvik Cache + Manual Format /system. Do I need doing "fastboot erase boot" or something like this to full Wipe custom kernel?
micens said:
Thank`s,
But, with Full Wipe thing I mean Factory reset + Wipe Cache + Wipe Dalvik Cache + Manual Format /system. Do I need doing "fastboot erase boot" or something like this to full Wipe custom kernel?
Click to expand...
Click to collapse
all that does is wipe data.
you cant just wipe a kernel away. you need to replace it. you phone can not boot or operate in any way without a kernel. a kernel connects the os to the processor to the battery to the rest of the hardware. if you erase your kernel, you will have a non functional electronic device. you will either have to flash a different kernel, or reflash your rom.
if you erase your kernel, you will have a non functional electronic device. you will either have to flash a different kernel, or reflash your rom.
Click to expand...
Click to collapse
Yes I know this... When erase kernel with "fastboot erase boot" and then flash another kernel that`s it? No data from other kernel like changed ramdisk leave somewhere? That part of this I do not understand about changed ramdisk and other binaries from some kind of custom kernel.
micens said:
Yes I know this... When erase kernel with "fastboot erase boot" and then flash another kernel that`s it? No data from other kernel like changed ramdisk leave somewhere? That part of this I do not understand about changed ramdisk and other binaries from some kind of custom kernel.
Click to expand...
Click to collapse
Just flash another kernel. You can flash kernels over each other with no problem.
Sent from my Nexus 5
micens said:
Yes I know this... When erase kernel with "fastboot erase boot" and then flash another kernel that`s it? No data from other kernel like changed ramdisk leave somewhere? That part of this I do not understand about changed ramdisk and other binaries from some kind of custom kernel.
Click to expand...
Click to collapse
you can do that if you like.
anyways, if a kernel has its own ramdisk, and not an anykernel, then the ramdisk will get replaced every time you flash a kernel. if you are flashing an anykernel, then its best to either reflash your rom first or the roms kernel(stock kernel if stock rom). you can do it your way too, erase than flash
That` s what interested me
Thank you very much
Is there any way to restore stock rom without wiping? I currently have stock rom with mods and franco kernel.
Someone told me to flash a .zip of the stock rom on one of the threads on here to achieve that.
I wanted to go back to stock after trying Franco. Then I tried elementalx and my battery life went up so much I don't want to go back.
Sent from my Nexus 5 using xda app-developers app
overkillZ said:
Is there any way to restore stock rom without wiping? I currently have stock rom with mods and franco kernel.
Click to expand...
Click to collapse
Flash the system.img and boot.img files (found in the factory image) using fastboot.
If you backed up your phone or made a nandroid before messing around with your phone, that's usually your best option.
I'd personally advise against just flashing without wiping, because the part of the point would be to remove the garbage files, which wouldn't really happen.
overkillZ said:
Is there any way to restore stock rom without wiping? I currently have stock rom with mods and franco kernel.
Click to expand...
Click to collapse
You can flash stock ROM and kernel (system.img and boot.img) from the factory image without wiping. While it's okay to go from a custom kernel back to stock kernel, I wouldn't go from a custom ROM back to stock ROM without completely reflashing.
BirchBarlow said:
You can flash stock ROM and kernel (system.img and boot.img) from the factory image without wiping. While it's okay to go from a custom kernel back to stock kernel, I wouldn't go from a custom ROM back to stock ROM without completely reflashing.
Click to expand...
Click to collapse
I have stock rom but but with small mods like dalvik optimizing and xposed etc
I've rooted my phone using the despair kernel on Android M. I flashed via recovery but experiencing WiFi and cell drop outs every ten minutes simultaneously. Not had much experience flashing kernels - is there anything else I should have done?
You shoulda just used blackbird5308's stock root enabled kernel
Sent from my Nexus 5 using Tapatalk
Why should I? Are there known issues on despair? Can you just flash kernels without wiping?
Jinson7 said:
Why should I? Are there known issues on despair? Can you just flash kernels without wiping?
Click to expand...
Click to collapse
GIVE IT A SHOT:
you could try StephanMc's kernel. it's stock m preview 3 with root.
if your problems don't occur with this kernel they were either related to a bad dirty flash or related to the kernel.
here's the link:
http://forum.xda-developers.com/goo...om-android-m-preview-2-flashable-zip-t3157299
FROM MY EXPERIENCE:
i'm also running m preview 3 and if i want to try a new custom kernel i always flash StephanMc's kernel first (because it's purely stock + root).
then i wipe dalvik + cache and flash the desired kernel.
if you just want a rooted phone, you can simply stick to StephanMc's kernel.
PLEASE NOTICE:
some custom kernels recommend to wipe system and data and install the stock image (or custom rom) too.
IMPORTANT:
always backup your data! (see titanium backup)
SUMMARY:
as long as flashing stock kernel and wiping dalvik+cache before flashing my chosen custom kernel i will stick to this.
if you experiencing any problems completely wipe your phone, flash stock image, flash custom rom/kernel and restore your data backup.
Guys i want to try new kernels but no one mentioned how to revert back if iam not satisfied with the kernels or just i have to try different kernels as i see a note saying kernels should be flashed on stock kernel so if i want to flash another kernel over existing custom kernel i have to get back to stock how can i do that will twrp restore works and what partions should i have to restore
Manivannan9444 said:
Guys i want to try new kernels but no one mentioned how to revert back if iam not satisfied with the kernels or just i have to try different kernels as i see a note saying kernels should be flashed on stock kernel so if i want to flash another kernel over existing custom kernel i have to get back to stock how can i do that will twrp restore works and what partions should i have to restore
Click to expand...
Click to collapse
should just flash stock boot img if you want to over ride the kernel wipe the cache as of now none of the kernels use ram disc changes so dirty flashing custom kernel over another works fine for the time being
strikerdj2011 said:
should just flash stock boot img if you want to over ride the kernel wipe the cache as of now none of the kernels use ram disc changes so dirty flashing custom kernel over another works fine for the time being
Click to expand...
Click to collapse
Is this link
Not sure if flashify works with dual partitions or not but it allows u to back up boot.img
You can always just revert back to stock by downloading the full rom from oneplus, and installing it through official twrp. Usually recommend doing a wipe of everything system included, and then adb side loading the full rom. It will state there is no os installed at the end when attempting to reboot, just continue on and your phone will boot.