[Q] Xperia P - How to choose a Kernel - Sony Xperia P, U, Sola, Go

While on my old Sensation, i often flashed diffrend roms, but never a Kernel that was not includet in the rom.
From what i have read in this forum, youd could increase the batterie time, if a custom kernel is flashed.
The tutorials for flashing a kernel are well writen, so i don't see a problem here. And yes, i am aware, that i nee to unlook the bootloader to flash a custom kernel.
My question is, how to chose a kernel? For what information do i have to look?
And for understanding. Do i have to flash another rom to get a custom kernel running, or could i stay on the stock rom and try the kernel itself?
Does a custom Kernel mean, i loose some of the functions that are in the stock kernel /rom or do have all kernel the"basic" functions of the stock kernel and just have addional functions and optimization?
Thanks for your time and help.

eismaus said:
While on my old Sensation, i often flashed diffrend roms, but never a Kernel that was not includet in the rom.
From what i have read in this forum, youd could increase the batterie time, if a custom kernel is flashed.
The tutorials for flashing a kernel are well writen, so i don't see a problem here. And yes, i am aware, that i nee to unlook the bootloader to flash a custom kernel.
My question is, how to chose a kernel? For what information do i have to look?
And for understanding. Do i have to flash another rom to get a custom kernel running, or could i stay on the stock rom and try the kernel itself?
Does a custom Kernel mean, i loose some of the functions that are in the stock kernel /rom or do have all kernel the"basic" functions of the stock kernel and just have addional functions and optimization?
Thanks for your time and help.
Click to expand...
Click to collapse
You don't need to flash custom kernel to increase battery life.
All you need to flash a custom kernel is unlocked bootloadr. Be sure to save DRM keys if bravia engine is important to you.
Then look for a custom kernel for stock roms, and custom stock tom too if you wish, or you can choose a non-stock based rom abd kernel.

Related

[Q] Flashing Kernels and Roms

I'm trying to flash a stock Rom onto my GS2 but i have a question. Does each ROM include a kernel with it or do i have flash a kernel first and then a rom? And does each kernel have certain roms that go with it or can i flash mix-and-match different kernels and roms?
Are you talking about stock roms or the modded ones in the dev section? Each rom does have a kernel that goes with it, however i wouldn't flash a 2.3.3 kernel on a 2.3.5 firmware.
In any case, the kernel has to be flashed at last, after the ROM
I'm talking about stock roms. My phone is on 2.3.4. If i flash a ROM, do i have to flash a kernel?
blazebomb said:
I'm talking about stock roms. My phone is on 2.3.4. If i flash a ROM, do i have to flash a kernel?
Click to expand...
Click to collapse
No, they already come with one.

[Q] rooting/bootloader

Hi I would like to ask whether rooting the phone is the same as unlocking bootloader. Thanks!
No, it's not.
Rooting allows you to view and edit system files.
Unlocking the bootloader allows you to install custom (non-official) kernels.
So rooting my phone and unlocking the bootloader is 2 different issue?
Or does rooting my phone actually unlocks my bootloader as well?
Rooting does not unlock bootloader.
Unlocking bootloader can help root your phone (installing a pre-rooted kernel, for example).
Is it then possible to install a custom firmware without unlocking the bootloader or will there be problems if I install a custom firmware without unlocking the bootloader.
These two custom ROMs are the only ones that can be installed without unlocking the bootloader.
http://forum.xda-developers.com/showthread.php?t=1705255
http://forum.xda-developers.com/showthread.php?t=1578109
OK THANKS! SHALL GO CHECK IT OUT And can I ask, does the phone by itself already have a kernel? If it has, what is the use of installing another one?
Stock ROMs have their stock kernels.
Custom kernels can add some features, such as (for example) the chance to overclock the CPU. Almost every custom ROM needs a custom kernel to work properly.
Feanor88 said:
Stock ROMs have their stock kernels.
Custom kernels can add some features, such as (for example) the chance to overclock the CPU. Almost every custom ROM needs a custom kernel to work properly.
Click to expand...
Click to collapse
Wrong. Custom ROMs do not need custom kernel to *function or work properly*.
The custom ROMs are installed at the Read Only Memory of your phone.
For that, you need to use an installer which has to be somewhere outside the Read Only Memory. Only such location on your phone is the kernel. So a custom kernel does nothing but adds an installer outside the Read Only Memory (that is the CWM Recovery).
Now to intall a kernel, you need an installer outside of your Read Only Memory as well as the kernel. That's the PC, and the installer is Flashtool. So, flashtool is used to install custom kernels on your phone.
Note: The two ROMs which can be installed on locked bootloaders are exceptions to this rule.
Thanks,
Rick
Sent from my SK17i using XDA
If it were like you said, any custom kernel could work with any custom ROM, as long as it has a Recovery to flash the ROM. There are different custom kernels because there are different ROMs, and each custom ROM works only with one or more custom kernels, but not with everyone. If you were right, one single kernel with recovery would be usable for every custom ROM.
Feanor88 said:
If it were like you said, any custom kernel could work with any custom ROM, as long as it has a Recovery to flash the ROM. There are different custom kernels because there are different ROMs, and each custom ROM works only with one or more custom kernels, but not with everyone. If you were right, one single kernel with recovery would be usable for every custom ROM.
Click to expand...
Click to collapse
Yea. It would be. Infact it is.
However, ROMs like CM9, which are NOT based on the stock ROM will not be able to work on the stock kernel. It will require a kernel which has been designed specifically for CM9. On the other hand, we had seen MiniCMSandwich, which looks like CM, but is based on stock ROM. This will work on any kernel that has a custom recovery. MESA, Rage, X, Stock Exteneded and so on...
So, to put it in other words, suppose you plan to flash an HTC Phone ROM as it came in the HTC device on your Xperia Device. You plan to just change the drivers. You will need a kernel which is designed for the HTC ROM.
But, if you, on the other hand, start with the Xperia ROM and change the aspects of this ROM into the HTC ROM's, you can make the ROM work on any of MESA, X, Rage or extended.
Thanks,
Rick
Sent from my SK17i using XDA
DragonClawsAreSharp said:
Yea. It would be. Infact it is.
However, ROMs like CM9, which are NOT based on the stock ROM will not be able to work on the stock kernel. It will require a kernel which has been designed specifically for CM9. On the other hand, we had seen MiniCMSandwich, which looks like CM, but is based on stock ROM. This will work on any kernel that has a custom recovery. MESA, Rage, X, Stock Exteneded and so on...
Click to expand...
Click to collapse
Stock extended, yeah. Try to run MiniCMSandwich on Gingerbread stock extended kernel. Will it work? Of course not. All the kernels you named are based on stock ICS kernel, so it's simple to run ICS based ROMs on them. This doesn't mean that every kernel with recovery can make them work
Feanor88 said:
Stock extended, yeah. Try to run MiniCMSandwich on Gingerbread stock extended kernel. Will it work? Of course not. All the kernels you named are based on stock ICS kernel, so it's simple to run ICS based ROMs on them. This doesn't mean that every kernel with recovery can make them work
Click to expand...
Click to collapse
Stock GB is to Stock ICS is same as Stock Xperia ICS is to Stock HTC ICS. They are different ROMs. Completely.
The ROMs have instructions according to which it behaves with the kernel. These instructions are all same for kernels that are based on stock ICS. So if you want to try any ROM that is based on stock ICS and such kernel will do.
But CM, GB, HTC ROMs and so on, are completely different.
Say you want to port an HTC ROM to Xperia ICS. You can do the following (I am taking example of the bootanimation file)
1. Simply change the bootanimation.zip file at /system/media of the stock ICS ROM.
So your ROM is based on the stock ROM itself. You just change the files, not the way the files are accessed. You do not even change the way the kernel is accessed. So any kernel based on stock ICS *with recovery* will do.
2. Change the whole Read Only Memory Partition.
This makes all the files replaced, the way HTC has made the ROM. This time you will need a kernel *again with recovery*, built to be accessed by the very specific ROM.
Thanks,
Rick
Sent from my SK17i using XDA

Noob questions for the HOX+

I have a noob question regarding flashing a custom ROM with the HOX+
1) Do I always have to flash a kernel when flashing a rom? If not or if so what are the benefits of doing this.
Thanks all. I look forward to being able to help other users as I lean more.
ifixrjs said:
I have a noob question regarding flashing a custom ROM with the HOX+
1) Do I always have to flash a kernel when flashing a rom? If not or if so what are the benefits of doing this.
Thanks all. I look forward to being able to help other users as I lean more.
Click to expand...
Click to collapse
from my experience with flashing a few ROMs, the kernel, usually but not always, included in the ROM.
some ROM like AOSP/AOKP for our device don't include the kernel.
I'm a noob myself so dont take my words for it :laugh:
ifixrjs said:
I have a noob question regarding flashing a custom ROM with the HOX+
1) Do I always have to flash a kernel when flashing a rom? If not or if so what are the benefits of doing this.
Thanks all. I look forward to being able to help other users as I lean more.
Click to expand...
Click to collapse
You don't need to flash kernel every time you flash custom ROM as long as your kernel is compatible with the ROM. For example: if you already flash nik3r's elite kernel, you can switch to every sense ROM without flash kernel again. But if you want to flash AOKP/AOSP/CM ROMs, you need to flash spesific kernel, which is maxwen's blade kernel.
Thanks perfect explination

[Q] Changing ROM changes recovery as well?

Hi!
I am new to this phone an I am confused about one thing. With my previous phone, I installed any ROM that I wanted, and the cwm recovery would be the same, and will not be affected at all. But, I changed my ROM to PACman ROM and I noticed that the cwm recovery version changed as well.
So, I have three questions:
- Firstly, How does this work? I opened up a ROM zip package, but I only found the regular android files, but I didn't find any recovery.img. So, how does replacing the ROM replace the recovery work when a ROM is flashed?
- Secondly, does changing only the kernel also change the cwm recovery? For example, if I flash Dorimanx kernel, will it also change the cwm recovery? If yes, then how does this work?
- Lastly, if I build a ROM, is it necessary to add a recovery with the ROM as well? Or, if I build a ROM without recovery, will it affect the recovery when it is flashed?
I know that these questions might have long answers, but I am keen to know the answers, no matter how long they are.
Please try to answer all three of the questions. Or, answer as many as you can, because those questions regarding the changing of cwm recovery is very confusing.
Thank You.
Hello, congrats on your new phone Unfortunately, i can't give you lenghty information about this because i don't think i know that much, but here are some facts for you:
-When you flash a new ROM, it will overwrite kernel too, so you will have a new kernel,
-When you flash a new kernel, it will overwrite the recovery, so you will have a new recovery,for example if A kernel has cwm as recovery, if you flash A kernel you will have cwm, and if B kernel has TWRP as recovery, when you flash B kernel you will have TWRP recovery,
-Since you have to have a kernel for your ROM, if you build a ROM, you must have a kernel=recovery, you can build the kernel yourself or use someone's kernel, but recovery must be embedded in the kernel (As far as i know)
When you start building your own ROM, i think you will find out the "how"s yourself though
Dakura said:
Hello, congrats on your new phone Unfortunately, i can't give you lenghty information about this because i don't think i know that much, but here are some facts for you:
-When you flash a new ROM, it will overwrite kernel too, so you will have a new kernel,
-When you flash a new kernel, it will overwrite the recovery, so you will have a new recovery,for example if A kernel has cwm as recovery, if you flash A kernel you will have cwm, and if B kernel has TWRP as recovery, when you flash B kernel you will have TWRP recovery,
-Since you have to have a kernel for your ROM, if you build a ROM, you must have a kernel=recovery, you can build the kernel yourself or use someone's kernel, but recovery must be embedded in the kernel (As far as i know)
When you start building your own ROM, i think you will find out the "how"s yourself though
Click to expand...
Click to collapse
That was short, but it does kind of make sense. Since I am using CM kernel right now, I guess the recovery will already be in there. But, If I want to create my own kernel from scratch, then are there any guides or information pages that give me an idea on how to do it?
Thanks.
All that stuff is in the development sections (where the devs live), Q&A is the wrong place for stuff like this (Q&A is for n00bs with busted phones). Google/XDA search for specifics or maybe ask a few devs in the threads devoted to their kernels/roms.
Yep, the recovery will be embedded to kernel. Here is the index of guides: http://forum.xda-developers.com/showthread.php?t=1826497 (thanks to pelpa87)
Index of kernels: http://forum.xda-developers.com/showthread.php?t=1702166 (thanks to GaboWinter)
I use G variant and there is a nice tutorial for us, you can read and see if there is anything you want to learn from there : http://forum.xda-developers.com/showthread.php?t=2495727 (thanks to Black_Prince)
MistahBungle said:
All that stuff is in the development sections (where the devs live), Q&A is the wrong place for stuff like this (Q&A is for n00bs with busted phones). Google/XDA search for specifics or maybe ask a few devs in the threads devoted to their kernels/roms.
Click to expand...
Click to collapse
I don't believe you.
Dakura said:
Yep, the recovery will be embedded to kernel. Here is the index of guides: http://forum.xda-developers.com/showthread.php?t=1826497 (thanks to pelpa87)
Index of kernels: http://forum.xda-developers.com/showthread.php?t=1702166 (thanks to GaboWinter)
I use G variant and there is a nice tutorial for us, you can read and see if there is anything you want to learn from there : http://forum.xda-developers.com/showthread.php?t=2495727 (thanks to Black_Prince)
Click to expand...
Click to collapse
Thanks for your time.
Dakura said:
Yep, the recovery will be embedded to kernel.
Click to expand...
Click to collapse
But, if, for example, I install dorimanx kernel, then the recovery embedded in dorimanx kernel will be installed. So, if I dualboot a second ROM from dorimanx recovery, then the recovery from the second ROM would be installed. That would mean that I won't be able to dualboot again?
Hmm, i think dualbooting has some different mechanisms, since you dual boot you have to have ONE kernel that supports dual boot, recovery will be the same since kernel is the same. So basically, you have A rom which has A kernel, then you flash B rom which has B kernel to dualboot, but there can't be two kernels at the same time so you must choose between A kernel or B kernel (both has to support dualboot ofc), and since recovery is embedded in kernel, you will have A recovery or B recovery, not both.

[Q] Ignorant Kernel Questions

So I've tried a bunch of different ROMs (CleanROM, Alliance, Beans, CM, OMNI, "Stock", probably more), but I've never really understood kernels. It seems some custom ROMs have a kernel built in (or several to choose from via Aroma), while others do not. Right now I'm running AOKP (4.4.2) with the kernel from OMNI (3.0.64-OMNI-g5f47648), presumably because that was the previous ROM I flashed with a kernel. I'm not too concerned with customization, more with stability.
I've been having a few minor bugs and crashes and I'd like to try perhaps the stock kernel to see if that might help, but I have some questions:
1) Does it matter when flashing a kernel whether the ROM is TW or AOSP?
2) Are there multiple versions of kernels that correspond with the Android version of the ROM?
3) What's the best/easiest way to flash a kernel, presumably through the custom recovery like a ROM?
4) Where can I find the stock kernel? I found this thread (http://forum.xda-developers.com/showthread.php?t=2610870) with the stock MJ9 kernel, but going back to my first two questions I'm not sure if it would work with my current ROM.
Thanks ahead of time for any insight anyone can provide.
michaellasalle said:
So I've tried a bunch of different ROMs (CleanROM, Alliance, Beans, CM, OMNI, "Stock", probably more), but I've never really understood kernels. It seems some custom ROMs have a kernel built in (or several to choose from via Aroma), while others do not. Right now I'm running AOKP (4.4.2) with the kernel from OMNI (3.0.64-OMNI-g5f47648), presumably because that was the previous ROM I flashed with a kernel. I'm not too concerned with customization, more with stability.
I've been having a few minor bugs and crashes and I'd like to try perhaps the stock kernel to see if that might help, but I have some questions:
1) Does it matter when flashing a kernel whether the ROM is TW or AOSP?
2) Are there multiple versions of kernels that correspond with the Android version of the ROM?
3) What's the best/easiest way to flash a kernel, presumably through the custom recovery like a ROM?
4) Where can I find the stock kernel? I found this thread (http://forum.xda-developers.com/showthread.php?t=2610870) with the stock MJ9 kernel, but going back to my first two questions I'm not sure if it would work with my current ROM.
Thanks ahead of time for any insight anyone can provide.
Click to expand...
Click to collapse
1) Does it matter when flashing a kernel whether the ROM is TW or AOSP?
Yes. TW and AOSP kernels are different.. The only one, that I believe, that can be used with both is Devil kernel for Dual Booting
2) Are there multiple versions of kernels that correspond with the Android version of the ROM?
Yes. Usually every version of android that gets updated.. the kernel does as well
3) What's the best/easiest way to flash a kernel, presumably through the custom recovery like a ROM?
Yes you can flash kernels through a custom recovery. Most of the time they are included with the Rom that you flash. A lot of the custom ones out have flashable zip for you to flash them through a recovery.
4) Where can I find the stock kernel? I found this thread (http://forum.xda-developers.com/showthread.php?t=2610870) with the stock MJ9 kernel, but going back to my first two questions I'm not sure if it would work with my current ROM.
No this will NOT work with a AOSP rom.. The kernel will be specific to that ROM and every other TW 4.3 ROM, but NOT AOSP
lacoursiere18 said:
1) Does it matter when flashing a kernel whether the ROM is TW or AOSP?
Yes. TW and AOSP kernels are different.. The only one, that I believe, that can be used with both is Devil kernel for Dual Booting
Click to expand...
Click to collapse
Thanks for the explanations, that helps tremendously. I'm confused now, however, because several people on the AOKP thread (http://forum.xda-developers.com/showthread.php?t=2453566) claim to be on "stock kernel". Is there a stock kernel for AOSP that I'm missing?
michaellasalle said:
Thanks for the explanations, that helps tremendously. I'm confused now, however, because several people on the AOKP thread (http://forum.xda-developers.com/showthread.php?t=2453566) claim to be on "stock kernel". Is there a stock kernel for AOSP that I'm missing?
Click to expand...
Click to collapse
Yea the one that flashes with AOKP.. loll
lacoursiere18 said:
Yea the one that flashes with AOKP.. loll
Click to expand...
Click to collapse
Well that's what I thought, but why then would I be using an OMNI kernel (3.0.64-OMNI-g5f47648) when I have flashed the last three AOKP nightly ROMs that have come out? Or am I missing something here?
michaellasalle said:
Well that's what I thought, but why then would I be using an OMNI kernel (3.0.64-OMNI-g5f47648) when I have flashed the last three AOKP nightly ROMs that have come out? Or am I missing something here?
Click to expand...
Click to collapse
Maybe he uses that kernel.. AOSP kernels, I believe are pretty similar.. I may be wrong, I am by NO MEANS a kernel guru..I would open you zip of your ROM (AOKP) and take a peak.. if there is a boot.img than it flashes a kernel.. and if your says OMNI then thats the kernel the dev has used..
Stock
If I'm on the stock rom and want to go back to the original kernel can I just restore the boot img in recovery?
nealman said:
If I'm on the stock rom and want to go back to the original kernel can I just restore the boot img in recovery?
Click to expand...
Click to collapse
Should be able to if you back it up previously.. but make sure it is same rom.. TouchWiz for TouchWiz.. AOSP for AOSP
lacoursiere18 said:
Should be able to if you back it up previously.. but make sure it is same rom.. TouchWiz for TouchWiz.. AOSP for AOSP
Click to expand...
Click to collapse
Thank you sir. It worked just fine.
I have a noob question, I'm currently using n3bula 3.9 custom rom and it's been running fine for a while. I noticed that users chose the agni kernel whereas I chose the stock one. So my question is, is it possible to flash just the kernel from recovery without losing my data? I've spent so much time and effort customizing my phone, therefore, I just want to change the kernel. Any help will be appreciated. Thanks.
yazalsaidi said:
I have a noob question, I'm currently using n3bula 3.9 custom rom and it's been running fine for a while. I noticed that users chose the agni kernel whereas I chose the stock one. So my question is, is it possible to flash just the kernel from recovery without losing my data? I've spent so much time and effort customizing my phone, therefore, I just want to change the kernel. Any help will be appreciated. Thanks.
Click to expand...
Click to collapse
I would think that as long as it doesn't break anything you should be fine. Probably do a backup first if you're worried about it.
Thanks for the response Michael, however, that was the response I was dreading! I'm actually worried I'll lose my WhatsApp and Viber accounts because even if I backed up my data, I'd still have to register my old WhatsApp and Viber numbers all over again which I don't have anymore.. ??

Categories

Resources