Replace only the kernel - Nexus S General

I don't want to flash a new kernel on top of previous one. Is there a way to uninstall just the kernel and flash a new kernel? I don't want to reflash roms either.

I'm not sure I understand your question. If you flash a new kernel over an existing one it works perfectly but uninstalling it would brick your phone.
Not to sound rude but perhaps you should do some more research into kernel and rom flashing since doing these things wrong can cause major issues.
Sent from my Nexus S MV from the XDA Premium app.

raviluke said:
I don't want to flash a new kernel on top of previous one. Is there a way to uninstall just the kernel and flash a new kernel? I don't want to reflash roms either.
Click to expand...
Click to collapse
first, this is a kernel http://en.wikipedia.org/wiki/Kernel_(computing)
you cant uninstall a kernel, as you can see. your device would become an expensive brick. now to reply to your question, i only have one thought..

Wipe dalvic cache.
Sent from my Nexus S 4G using xda premium

just reflash the new kernel you want. if there is something to do additionally, the dev will remark that in his instructions...no worries!

Related

Do i have to use ODIN all the time when changing roms?

i have come from Xperia X10i. where i could flash roms in minutes with Xrecovery thx to J&Z & Trip for his wonderful roms without the need of connecting my phone to a pc.
I am a bit confused now. i have made up my mind about custom roms, Villain and Lightening. i want to try both.
I dont want to damage my SGS2 as it looks very very delicate. My questions is do i have to use ODIN all the time for changing and testing roms? or is there an easier way. The reason for this question is as:
My X10 usb port got damaged due to flashing different radios/basebands for different roms and i decided to get SGS2.
Odin is probably the easiest way to flash a rom but most custom ROMs are flashable with clockwork recovery. You first have to flash a custom kernel with odin to get clockwork though.
Sent from my GT-I9000 using XDA Premium App
zabihjan said:
i have come from Xperia X10i. where i could flash roms in minutes with Xrecovery thx to J&Z & Trip for his wonderful roms without the need of connecting my phone to a pc.
I am a bit confused now. i have made up my mind about custom roms, Villain and Lightening. i want to try both.
I dont want to damage my SGS2 as it looks very very delicate. My questions is do i have to use ODIN all the time for changing and testing roms? or is there an easier way. The reason for this question is as:
My X10 usb port got damaged due to flashing different radios/basebands for different roms and i decided to get SGS2.
Click to expand...
Click to collapse
Depends on the rom dev, if they make the rom flashable thru cwm recovery (cognition,batista etc) or odin like litening, villain.
Honestly both are pretty simple and quick. I have all my user apps, touchwiz config backed up thru titanium backup. So it only takes 5 to 10 mts to flash a new rom and restoring apps.
And don't worry you are not going to brick a samsung phone, odin will always rescue you if you can get into download mode
Sent from my GT-I9100 using XDA Premium App
@hansonator
@kirdroid
thank you both.
moderators pls close my thread.
resolved.
do you know if cmw4 is compatible with rom manager? i know that chainfire's modified cmw4 isnt.
p00kienrayray said:
do you know if cmw4 is compatible with rom manager? i know that chainfire's modified cmw4 isnt.
Click to expand...
Click to collapse
Answer is still NO .
Or at least no posts to say it is .
jje
I tested it out and it does.
Sent from my GT-I9100 using Tapatalk
hansonator said:
Odin is probably the easiest way to flash a rom but most custom ROMs are flashable with clockwork recovery. You first have to flash a custom kernel with odin to get clockwork though.
Sent from my GT-I9000 using XDA Premium App
Click to expand...
Click to collapse
I used clockwork mod all the time wigth my HD2 but i didn't like the CWM boot up screen that appeared for a few seconds is that also on the GS2 or not seen as this is a native Android phone?
jonny68 said:
I used clockwork mod all the time wigth my HD2 but i didn't like the CWM boot up screen that appeared for a few seconds is that also on the GS2 or not seen as this is a native Android phone?
Click to expand...
Click to collapse
There is no Cwm boot animation.
pulser_g2 said:
There is no Cwm boot animation.
Click to expand...
Click to collapse
that's good, if i was to flash your ROM for example do i need to install CWM on my GS2 first?

Custom kernel queries

Hi there, just want to begin by saying how amazing this community is. I'm new to whole Android scene (just came over from iOS) but what a welcome it has been! I'm blown away by the amount of ways you can customize your Nexus 7, really puts the iPad to shame
So I've rooted my Nexus 7 and am now hoping to install a custom kernel...however I have quite a few questions pertaining to this procedure.
1) How do I install a custom kernel (ie Trinity)?
2) I'm looking to improve battery life without compromising performance, what kernel would you recommend for this?
3) Can I still get OTA if I have a custom kernel?
4) Can I revert back to stock kernel and if so, how do I do this?
Sorry to come across as a newb, I saw a lot of helpful threads on custom ROMs however I found the stuff on kernels a bit daunting...Hopefully this thread will be helpful for others as well
Thanks again everyone.
Sent from my Nexus 7 using xda app-developers app
1. just flash it in recovery, dont wipe a thing.
2. trinity
3. kernels dont have anything to do with ota. if its still enabled in your rom then yes.
4. either fastboot flash a stock boot.img or just reflash your rom without wiping anything.
5.
Worth noting that when a new rom is installed it installs its own kernel so you'll have to reflash your kernel.
I also recommend faux for good battery life. Both that and Trinity are good.
Sent from my LG-P999 using xda app-developers app

Kernel repacking?

my old phone was the HTC One X and I remember having to repack the kernel for the rom I was using
1) is it the same here with the Nexus 4 after rooting/unlocking? any automatic repackers out there?
Also,
2) do I still need to "fastboot flash boot boot.img" everytime I flash a new rom
PS pretty excited about getting back into the android scene. my nexus 4 is coming in tomorrow.
From what I know I never had to repack any kernel on my nexus phones. All you need to do is run the unlock command once through fast boot and you can flash whatever you like. This phone is made so you can run what you like without jumping through hoops like the branded phones.
Sent from my Nexus 4 using xda app-developers app
can anyone second that?
once the bootloader is unlocked, and have a custom recovery installed, you can flash any nexus 4 kernel you want(compatible kernel). you dont have to repack anything.
Thanks simms22
is flashing the boot.img required after flashing a rom?
misterpho06 said:
Thanks simms22
is flashing the boot.img required after flashing a rom?
Click to expand...
Click to collapse
if thats the kernel that you are flashing. theres only one that i can think of that requires flashing the boot.img, all the others are flashable via the recovery. but, to answer the question, after every rom flash, youll have to reflash your custom kernel, as the rom will overwrite the kernel that you are running.
misterpho06 said:
Thanks simms22
is flashing the boot.img required after flashing a rom?
Click to expand...
Click to collapse
Coming from a One X myself, I can confirm that you don't need to go hunting for a repacked ramdisk for use with your kernel of choice.
As the Nexus is fully unlocked, (not some half-arsed partial unlock that was the case with the One X), all the kernels can be flashed directly within recovery
Sent from my Nexus 4 using xda premium
THANK YOU for your responses guys.
any opinion on the best rom/kernel available right now for the nexus4?
I would really like the features of AOKP and cyanogenmod but hates little bugs.
Probably might stick with stock rom but maybe a franco kernel for now??
rasbean jelly rom, trinity kernel. stock rom is good too. but theres no best, theres whats best for your needs. experiment with a few different roms/kernels, find what you and your device likes best

[Q] Nexus 4 Custom Kernel Help

Hi, I am a recent iPhone convert thanks to the Nexus 4. So obviously I am new to rooting, custom ROMS, and custom kernels. I am currently rooted and am running a recent CM 10.1 nightly. However, battery life isn't all that great.
A friend of mine told me that a custom kernel can drastically improve battery life without hurting performance. So here I am hoping that someone can help me. Can anyone recommend a good kernel that will improve battery life without hurting speed?
Also, what are the steps for installing a custom kernel? What about going back to stock in case I have to send my phone in for an RMA or something like that? Is that easy to do?
Thanks in advance for the help!
Try Franco or Harsh or trinity .
Custom kernels are more about under clocking a few things here and there to get best balance between performance and battery life thats and some tweaks which are generally inbuilt .
But tbh not all phone's are same what works for me and few others might not fetch u the same results, i've experienced this over my previous nexus device .
Some combo of ROM/kernel might work for u and not so well for other's i would say try out all the main stream kernels and some more if your'e feeling epxerimental give each kernel 2 to 5 days and see which u like the best.
Personally i've had good results with harsh kernel and franco and trinity .
berz said:
Try Franco or Harsh or trinity .
Custom kernels are more about under clocking a few things here and there to get best balance between performance and battery life thats and some tweaks which are generally inbuilt .
But tbh not all phone's are same what works for me and few others might not fetch u the same results, i've experienced this over my previous nexus device .
Some combo of ROM/kernel might work for u and not so well for other's i would say try out all the main stream kernels and some more if your'e feeling epxerimental give each kernel 2 to 5 days and see which u like the best.
Personally i've had good results with harsh kernel and franco and trinity .
Click to expand...
Click to collapse
Do you have one that you would suggest for a first time newbie? Also, what is the process for installing it and potentially uninstalling it back to stock?
Everything is easy to do. AS LONG AS YOU READ FIRST before doing anything You can start by reading the guides found here in the Nexus 4 General thread.
So far, the best for both performance and battery for me is Trinity kernel.
By the way, to install a custom kernel:
1. Install proper drivers for nexus 4 in your pc.
2. Unlock your bootloader.
3. Install custom recovery like CWM or TWRP Recovery
4. Start flashing your choice of kernels!
Sent from my Nexus 4 using xda premium
wtfshouldidonow said:
Everything is easy to do. AS LONG AS YOU READ FIRST before doing anything You can start by reading the guides found here in the Nexus 4 General thread.
So far, the best for both performance and battery for me is Trinity kernel.
By the way, to install a custom kernel:
1. Install proper drivers for nexus 4 in your pc.
2. Unlock your bootloader.
3. Install custom recovery like CWM or TWRP Recovery
4. Start flashing your choice of kernels!
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Thanks for the advice! I am currently using CWM and have an unlocked boot loader. Is it as simple as downloading a zip, going into recovery, and installing the zip from "sd card"? If so, where can I find the zip for trinity? And how can I go back to stock in case something goes wrong?
There are post on xda and you could Google it. Just download it on your nexus and flash it
Sent from my Galaxy Nexus using xda app-developers app
strausd said:
Thanks for the advice! I am currently using CWM and have an unlocked boot loader. Is it as simple as downloading a zip, going into recovery, and installing the zip from "sd card"? If so, where can I find the zip for trinity? And how can I go back to stock in case something goes wrong?
Click to expand...
Click to collapse
If you want to be always safe and sure, then BEFORE flashing anything, go to CWM, choose backup and restore, then choose backup. That is called a nandroid backup. It might take a long time depending on how much apps you have. After the nandroid backup takes place, then you're free to flash the zip for trinity that you've downloaded.
I also suggest that you do backups often and delete old ones (you can delete old backups in the "backups and restore" part of CWM). So that incase anything goes wrong when you flash something, just go back to recovery mode, then restore your latest backup and you can undo your wrongs
Sent from my Nexus 4 using xda premium
wtfshouldidonow said:
If you want to be always safe and sure, then BEFORE flashing anything, go to CWM, choose backup and restore, then choose backup. That is called a nandroid backup. It might take a long time depending on how much apps you have. After the nandroid backup takes place, then you're free to flash the zip for trinity that you've downloaded.
I also suggest that you do backups often and delete old ones (you can delete old backups in the "backups and restore" part of CWM). So that incase anything goes wrong when you flash something, just go back to recovery mode, then restore your latest backup and you can undo your wrongs
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
So nandroid backups also backup the kernel?
strausd said:
So nandroid backups also backup the kernel?
Click to expand...
Click to collapse
bump. i also need to know the answer to this question.
EDIT: nvm found my answer, it backups the kernel too.
admins can delete this
imeem said:
bump. i also need to know the answer to this question.
Click to expand...
Click to collapse
nandroid backs up everything. it basically takes a snapshot of the state your device is in when you back it up, then restored your phone to exactly how it was before the backup.
Coming from HTC One S (and a whole lot of HTC family before that) and not having to deal with S-Off dilemma is a whole new free world for me (you can say i am institutionalized).
If I want to flash a rom and not the kernel included in it, can I just remove the boot.img file from the rom's zip and flash it? Or is that not a good idea?
justthefacts said:
Coming from HTC One S (and a whole lot of HTC family before that) and not having to deal with S-Off dilemma is a whole new free world for me (you can say i am institutionalized).
If I want to flash a rom and not the kernel included in it, can I just remove the boot.img file from the rom's zip and flash it? Or is that not a good idea?
Click to expand...
Click to collapse
no. you need to flash the whole zip. without a kernel, your device is an expensive brick. the kernel control pretty much everything and connects the hardware to the software. you can always flash another kernel after flashing the rom zip.
simms22 said:
no. you need to flash the whole zip. without a kernel, your device is an expensive brick. the kernel control pretty much everything and connects the hardware to the software. you can always flash another kernel after flashing the rom zip.
Click to expand...
Click to collapse
Thanks for the reply.
Are all kernels pretty much compatible with all roms?
justthefacts said:
Thanks for the reply.
Are all kernels pretty much compatible with all roms?
Click to expand...
Click to collapse
all nexus 4 kernels are compatible with all nexus 4 roms. if you flash a non nexus 4 kernel onto your nexus, you will most likely brick it.
Sounds great. This will be my first Nexus experience. Love this forum already. A very mature crowd.

Help with kernels

I don't get how to flash kernels. Than if I do flash a kernel how would I go back to the one I am now. Please help I want to flash kernels
Sent from my SPH-L720 using xda app-developers app
danzelcool said:
I don't get how to flash kernels. Than if I do flash a kernel how would I go back to the one I am now. Please help I want to flash kernels
Sent from my SPH-L720 using xda app-developers app
Click to expand...
Click to collapse
Well to start. You can read the stickies, the how tos, and watch some of the videos.
Then there is also that g o o g l e thingy.
That would really help. It will probably keep you from turning your device into a shiny paperweight.
Sent from my SPH-L720 using XDA Premium 4 mobile app
I've not had good luck with custom or source kernels. I use oudhs recovery and do a backup within recovery before flashing a kernel. The only combination my phone behaves with is stock kernel. I don't know why nor do I have any speculations. My phone just doesn't work right with custom or source built kernels. The phone either heats up fast or the Google keyboard I use starts acting flaky, so that's why I stay stock rooted hotspot mod with custom recovery. This phone is a totally different beast than my s2.
oscarthegrouch said:
I've not had good luck with custom or source kernels. I use oudhs recovery and do a backup within recovery before flashing a kernel. The only combination my phone behaves with is stock kernel. I don't know why nor do I have any speculations. My phone just doesn't work right with custom or source built kernels. The phone either heats up fast or the Google keyboard I use starts acting flaky, so that's why I stay stock rooted hotspot mod with custom recovery. This phone is a totally different beast than my s2.
Click to expand...
Click to collapse
I agree. S4 acts way different than my S3 as far as flashing things go. Seems the S4 is way more sensitive and does some wonky stuff sometimes.
danzelcool said:
I don't get how to flash kernels. Than if I do flash a kernel how would I go back to the one I am now. Please help I want to flash kernels
Sent from my SPH-L720 using xda app-developers app
Click to expand...
Click to collapse
First, download a custom kernel such as Chronic or KTweaker, then nandroid, wipe caches, flash the kernel zip, fix permissions, and reboot. ROMs come with their own kernels; to get your original kernel back, just reflash your ROM.
Sent from my Carbonized Chronic SPH-L720
---------- Post added at 02:56 AM ---------- Previous post was at 02:36 AM ----------
oscarthegrouch said:
I've not had good luck with custom or source kernels. I use oudhs recovery and do a backup within recovery before flashing a kernel. The only combination my phone behaves with is stock kernel. I don't know why nor do I have any speculations. My phone just doesn't work right with custom or source built kernels. The phone either heats up fast or the Google keyboard I use starts acting flaky, so that's why I stay stock rooted hotspot mod with custom recovery. This phone is a totally different beast than my s2.
Click to expand...
Click to collapse
What ROM/kernel combinations do you use? The only buggy kernel I've used is KTweaker. On Carbon 4.3, it reboots whenever my phone attempts to stream video. It may help to change your governor, especially if the kernel's default is Interactive.
Sent from my Carbonized Chronic SPH-L720

Categories

Resources