what do people mean when they say " dirty flash the original rom " kernel related Q - OnePlus 2 Q&A, Help & Troubleshooting

what do people mean when they say " dirty flash the original rom " kernel related Q
Hi.
i tried the kernels available and none of them i liked as none of them were very smooth. to be honest the only reason i even wanted to try to kernels because i wanted to use Kcal " and i still do "
but how do i flash the stock kernel to my oneplus two ? i need to install the original kernel.
thanks

Dirty flashing means without wiping the DATA partition.
The stock rom includes the stock Kernel, thats why you dirty flash the stock rom when you want to revert back to stock kernel.
You can flash the ROM the same way you flash the kernels

Related

[Q] Rooting, flashing custom rom but necessary to flash a kernel as well?

Hi,
Quick question I am still having trouble wrapping my head around the concept about kernels. I am planning to root my nexus 4 and flash a custom rom (purity rom) but am i required to also flash a custom kernel? Or am I suppose to leave the kernel as is?
Thanks!
Next123 said:
Hi,
Quick question I am still having trouble wrapping my head around the concept about kernels. I am planning to root my nexus 4 and flash a custom rom (purity rom) but am i required to also flash a custom kernel? Or am I suppose to leave the kernel as is?
Thanks!
Click to expand...
Click to collapse
Depends upon your requirement .
As an example i use Fast USB charge a lot and is not available in any custom rom .
I also use Headphone volume boost which is yet again a kernel level change.
I would suggest you to use a custom kernel since it also gives better battery than stock .
If you are happy without it then forget about kernels . And in case u plan on flashing one make a CWM backup just in case.,
You could if you want to since you're already flashing custom roms. However, most custom rom come with custom kernel, so when you flash a custom rom it will replace your kernel with it's own. You can manually flash back your stock kernel if you want, using fastboot, but there is a flashable package as well in the Dev section.
Just know that due to codes and drivers, different kernels work with different roms. If you flash a 4.3 kernel to a 4.4 rom, it might lack certain necessary driver, such as PRIMA, so your wifi will no longer work. (You can fix this by flashing dePRIMAtor). CyanogenMod use Code Aurora Forum drivers, so if you use a kernel that doesn't support CAF, the screen colors will be messed up (you can lash a colorfix package which replace it with the non-CAF liboverlay.so).
A lot of people get wrapped too far up into flashing kernel and thinking it determine everything (performance + battery life) in their phone. As much of a heavy flasher that I am, I am willing to bet that you generally get the best battery life and stability just running stock. I did my own trial for this, with stock rom and kernel, the phone staying cooler and screen on time was longer. This is just my personal experience, it varies for each person.
But I mainly use custom kernel for features. Such as kernels that incorporate Faux color and sound, this allows changing their settings for much a better screen color and making the speaker louder. I also use the sweep2wake/sleep feature to turn on and off the screen.
If you intend to use custom kernels, I recommend using TricksterMod, it's the best app for modifying kernel settings.
Also just to mention this ahead of time, it's against XDA rules to make threads about what is the best rom/kernels.

First time flashing a kernel, some quick questions

Hi everyone
I have a rooted stock Galaxy S4 I9505 (4.4.2) and TWRP installed. For the last few weeks, my phone had a lot of kernel wakelocks which I couldn't stop. This could be fixed by installing a new kernel, right? I wanted to try that anyway.
I think I read the relevant FAQs, but this is my first time flashing a kernel, so just to be sure I have a few questions:
Does anyone have experience with the KT-GSG4 kernel? Do all custom kernels have the basic functions of stock kernels (plus some features), or will I lose some functionality?
Can I just flash the kernel, without changing the stock rom and keeping my files/settings etc.? If I do something wrong, can I just restore via nandroid backup?
Do I just have to go into TWRP recovery, click install, choose the kernel zip file, install it, wipe caches and reboot?
Thanks a lot!
Ktoonsez is a great kernel dev. So the kernel should be fine.
A custom kernel generally offers more customizability. I don't know what features you might from stock kernel you might lose.
If the kernel is for touchwiz, then you can probably flash it on a touchwiz rom. Just make sure it is for the same android version.
I haven't flashed any kernels on a stock touchwiz rom so I can't tell you the flash procedure. It may be different from custom roms due to knox and other stuff.

My Galaxy Note 4 (N910C) is not turning on!

Hi xda friends, I need your help.
I was rooted and running a custom marshmallow rom (resurrection remix was called) but it was full of bugs so I decided to go back to stock. I flashed a 5.1.1 firmware and it never turned on again. It is stuck on "Samsung Galaxy Note 4" message. I tried again and again, I wiped everything, I also tried this with kies "firmware upgrade and initialization" but nothing changed. Please tell me what can I do? I'm desperate!
Never flash a stock ROM with flashing the bootloader first when coming from them AOSP based ROMs. So wipe everything first, then flash bootloader, then flash a stock based custom ROM, you should be okay. After that you can flash a stock ROM via Odin, but you need to flash a stock based bootloader first. ROMs like Simple or Nameless are stock based FYI.
And as a friendly advice, don't flash them AOSP based ROMs unless you are keen to have a buggy phone.
ithehappy said:
Never flash a stock ROM with flashing the bootloader first when coming from them AOSP based ROMs. So wipe everything first, then flash bootloader, then flash a stock based custom ROM, you should be okay. After that you can flash a stock ROM via Odin, but you need to flash a stock based bootloader first. ROMs like Simple or Nameless are stock based FYI.
And as a friendly advice, don't flash them AOSP based ROMs unless you are keen to have a buggy phone.
Click to expand...
Click to collapse
Thank you very much. I'm gonna try it and then I'll tell you if it worked.

Which kernels work on Lineageos?

Which kernels work on Lineageos? I'm interested in flashing vegito but I'm unclear if it works? It says to flash over only stock kernel, which lineageos doesn't have, but would it work if I flash stock kernel of lineageos first, then flash vegito?
lightningglasses said:
Which kernels work on Lineageos? I'm interested in flashing vegito but I'm unclear if it works? It says to flash over only stock kernel, which lineageos doesn't have, but would it work if I flash stock kernel of lineageos first, then flash vegito?
Click to expand...
Click to collapse
ElementalX, vegito and quark kernels should work on Lineage OS without issue (though still check their respective pages!)
By flashing only over the stock kernel, the instructions usually mean only flash over the kernel that originally came with the ROM. I imagine it's a bit confusing given the Motorola ROM kernel is also regarded as the stock kernel, but in this case, the 'stock kernel' refers to whatever kernel the ROM you flashed came with. (As an aside, don't try to flash the Motorola kernels on custom ROMs...)
Lineage OS, as with other custom and stock (Motorola) ROMs come with their own kernel included, which you replace when you flash the custom kernel. A reason for requiring that you flash over the stock (originally coming with the ROM you've flashed) kernel only appears to be because custom kernels modify the ram disk of the kernel, which other custom kernels will be incompatible with and may lead to random issues. The stock (in this case, the original ROM kernel) is clean and has no modified ram disk, so should be stable, and thus suitable for flashing a custom kernel.
If you have the original Lineage OS kernel already, then you can flash vegito in TWRP. I'd recommend taking a TWRP backup of your system and of your boot partition before flashing. The boot partition should contain your kernel as it was, so if it's clean, you can revert back from vegito by flashing the boot partition backup. And the system backup is just in case anything happens!
Alternatively, a dirty flash of your current Lineage OS build may flash an original kernel if you don't have one already.

How to go back to stock rom ?

Hello, i have been using pixel expirience room for a quite some time now I also installed stormbreaker kernel. However i would like to go back to stock rom. Im not sure what do to, do i delete everything and just flash miui or there is somthing else to do first ? keep in mind storbreaker kernel is installed on my phone.
Miflash tool
Well, you can flash stock rom in your custom recovery like any other rom (from what i remember your custom recovery will be replaced by the xiaomi stock one) but i recommend you to flash xiaomi.eu rom, its like stock but better... (and you will not lose your custom recovery), and lastly i don't really recommend a miui based roms, if you want a lightweight rom i can recommend POSP.
P.S. When you flash any rom it doesn't matter what kernel where you using since you replacing whole system that have it's own kernel...

Resources