I'm just coming from the S2 EG4T where, from what I understand, the kernel and recovery were all contained in one file. Is this different for the S4...are they separate?
If they are separate files, I am rooted, and want to get a custom recovery so I can flash some mods. Do I also need a custom kernel or do I only need a custom kernel to over/underclock/get additional governors and schedulers?
Thanks for helping me understand this new phone of mine.
Foulwx
yes recovery is separate thankfully. you are free to flash kernels all you want and your recovery will be untouched.
see the kernel threads for info on what they features they offer.
Foulwx said:
I'm just coming from the S2 EG4T where, from what I understand, the kernel and recovery were all contained in one file. Is this different for the S4...are they separate?
If they are separate files, I am rooted, and want to get a custom recovery so I can flash some mods. Do I also need a custom kernel or do I only need a custom kernel to over/underclock/get additional governors and schedulers?
Thanks for helping me understand this new phone of mine.
Foulwx
Click to expand...
Click to collapse
Yups, what lafester said is corrrect. For the recovery, I recommend TWRP v2.5.0.2. You can download and install via Goomanager from the app store. It's a touch-based recovery and it also supports up to 64GB exFat microSDs.
As for custom kernels, my current favorite is agat's v0.2.0 kernel.
Related
Basically I've never flashed a custom kernel before so I'm trying to do some research so if someone could give me some incite or point me in the right direction I'd really appreciate it.
The only thing I'm not sure of is if I flash a custom kernel will it prevent me from receiving any future ota updates? If so, any ideas where to find a flashable stock kernel? I couldn't find one. I really want to stay with the stock rom. Had my fill of custom roms on my phone.
Sent from my Nexus 7
Y u not like roms?!
nick2418 said:
Basically I've never flashed a custom kernel before so I'm trying to do some research so if someone could give me some incite or point me in the right direction I'd really appreciate it.
The only thing I'm not sure of is if I flash a custom kernel will it prevent me from receiving any future ota updates? If so, any ideas where to find a flashable stock kernel? I couldn't find one. I really want to stay with the stock rom. Had my fill of custom roms on my phone.
Sent from my Nexus 7
Click to expand...
Click to collapse
Let's see. AFAIK yes, non-stock kernels will prevent you from getting those long-awaited OTAs (not sure though as the first thing I did after getting my N7 was to flash PA ).
If you really like the stock experience but still want a custom kernel, you must flash a custom recovery to flash kernels. The latest TWRP touch is what you need.
After you've flashed the recovery, just download the kernel zip, reboot to recovery, flash, profit.
As for a kernel, you can go with M-Kernel, DerKernel, franco.Kernel, Faux and so on and so forth. I love M-Kernel personally. You can tweak it with TricksterMOD for a smokin' good overclock as well as purty good battery life
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Also, just asking, what do you mean by a "a flashable stock kernel"? If you already have the stock kernel, why flash the same over it?
AFAIK updates to stock kernel are provided by OTAs.
I guess I was looking for a way to return to the stock kernel if need be. I have my recovery and understand that part. Just trying to make sure I understand kernels better before I brick my n7. Thanks for the help!
Sent from my Nexus 7
i also need a stock flashable kernel..just in cased i wan to revert back...
Sent from both my sexy galaxy nexus and nexus 7 X)
nick2418 said:
I guess I was looking for a way to return to the stock kernel if need be. I have my recovery and understand that part. Just trying to make sure I understand kernels better before I brick my n7. Thanks for the help!
Sent from my Nexus 7
Click to expand...
Click to collapse
Oh, ok. If you flash the stock ROM, it flashes the kernel as well (but it's a lot of work reflashing a ROM just for the kernel )
What you can do is this: extract the stock ROM zip and flash the boot.img you get.
Here's a link to the stock ROM: https://dl.google.com/dl/android/aosp/nakasig-jop40d-factory-efcec044.tgz
Edit: I figured I'd explain the rest as well...
After you download that file, untar it: nakasig-jop40d-factory-efcec044.tgz will untar to a folder probably named:nakasig-jop40d-factory-efcec044
Open that folder. You will find a zip (probably image-nakasig-jop40d.zip or something like that), unzip it.
You'll find four files. boot.img is the one you need. Flash it to your device with fastboot.
If you wan a flashable zip, unzip any custom kernel, replace the awesome custom boot.img with the boring stock one and rezip. You should be able to flash it from TWRP or CWM.
Note that the stock kernel nukes CWM on first boot. I assume you don't have root. Do this:
1. Connect the N7 to your PC. [you should have debugging enabled in dev options]
2. Open an adb shell and type this: mv /system/recovery-from-boot.p /system/recovery-from/boot.p.bak
3. ???
4. Profit
[If you do have root, open a file manager, remount /system as read/write and rename /system/recovery-from-boot.p to something.]
Click thanks if I helped!
That's why I was hoping to find the JOP40D stock kernel as a flashable zip. But I'll give the boot. I'm a shot. Thanks again!
Sent from my Nexus 7
nick2418 said:
That's why I was hoping to find the JOP40D stock kernel as a flashable zip. But I'll give the boot. I'm a shot. Thanks again!
Sent from my Nexus 7
Click to expand...
Click to collapse
I added some stuff, see if it helps.
It would be nice if you clicked "thanks" below my post
stock flashable 4.1.2 kernel for grouper(put up by faux as a "reset" kernel) http://faux.androidro.ms/grouper-faux123-reset-kernel-4.1.2.zip (should be fine on 4.2.1)
flashable in twrp or cwm recovery. no hoops to jump through flashing or after flashing this. it doesnt nuke your recovery.
simms22 said:
stock flashable 4.1.2 kernel for grouper(put up by faux as a "reset" kernel) http://faux.androidro.ms/grouper-faux123-reset-kernel-4.1.2.zip
flashable in twrp or cwm recovery. no hoops to jump through flashing or after flashing this. it doesnt nuke your recovery.
Click to expand...
Click to collapse
Will that work with OP's 4.2.1?
Awesoham said:
Will that work with OP's 4.2.1?
Click to expand...
Click to collapse
yea. i occasionally run a 4.1.2 trinity kernel on my 4.2.1 rasbean jelly rom
After reading the forum for a few few hours and finding some great info and reading more.
My noob question(please dont bite my head of for asking)
can you flash a kernal without installing a rom? Just got my N7 unlocked it, rooted no probs. and want to take things one thing at a time.
Thanks
ajg007 said:
After reading the forum for a few few hours and finding some great info and reading more.
My noob question(please dont bite my head of for asking)
can you flash a kernal without installing a rom? Just got my N7 unlocked it, rooted no probs. and want to take things one thing at a time.
Thanks
Click to expand...
Click to collapse
yes. you can flash a custom kernel without flashing a rom. pretty much all of the custom kernels can run on stock roms. youll need a custom recovery to flash it though(or flash franco kermel through fastboot).
Absolutely. Kernel is usually contained in a boot.img while ROMs by definition are modifications to a system.img. Most ROMs either use a modified stock boot image, a custom built boot image or the CyanogenMod boot image .
The boot.img usually contains a kernel and a ramdisk. This ramdisk tells the kernel how to interface with system.img which us why I said earlier "modified" since not all boot image use stock ramdisk and need to be modified.
As for you question. There are always ways to make a 3rd party kernel integrate with a ROM or repackage a internal boot image of a ROM to contain a stock kernel. My suggestion would be find a rom you like and then flash the old boot image. This will not work on all devices so i suggest looking it up in you developers section. If worst comes to worse i would recommend googling or searching the forums for unpacking and repacking boot.img and then trying your luck at that.
Please do this at your own risk. I am not to be held responsible for your actions.
Sent from my Galaxy Nexus using xda app-developers app
Loglud said:
Absolutely. Kernel is usually contained in a boot.img while ROMs by definition are modifications to a system.img. Most ROMs either use a modified stock boot image, a custom built boot image or the CyanogenMod boot image .
The boot.img usually contains a kernel and a ramdisk. This ramdisk tells the kernel how to interface with system.img which us why I said earlier "modified" since not all boot image use stock ramdisk and need to be modified.
As for you question. There are always ways to make a 3rd party kernel integrate with a ROM or repackage a internal boot image of a ROM to contain a stock kernel. My suggestion would be find a rom you like and then flash the old boot image. This will not work on all devices so i suggest looking it up in you developers section. If worst comes to worse i would recommend googling or searching the forums for unpacking and repacking boot.img and then trying your luck at that.
Please do this at your own risk. I am not to be held responsible for your actions.
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
most custom kernels are using koushs' anykernel nowadays, so theres no ramdisk involved, besides the ramdisk that comes with the roms kernel. this way theres a better chance of compatibility. except for franco kernel and cm kernel, which use there own ramdisk. anykernel grabs the available ramdisk(the roms default kernels ramsisk).
Hi Guys, This is my first post here in Q & A Section and I want to ask something regarding the Jelly Blast Custom Kernel built-in when installed, I want to ask it on Jelly Blast Thread but sadly, the thread is closed so I decided to make a question so I can gain some stock knowledge when I've this ROM running on my phone. If I uninstall Jelly Blast using my backup NANDROID, Will the built-in custom kernel will be also uninstalled ? Thanks.
if your nandroid backup includes boot.img (kernel) and you restore it fully (i mean not partially by selecting manually what all to restore) the existing kernel (kuro) of your custom Rom should also be replaced afaik .
Yes If UR Backup contains kernel.
URL Jelly blast keRnel will be Uninstalled.
nikufellow said:
if your nandroid backup includes boot.img (kernel) and you restore it fully (i mean not partially by selecting manually what all to restore) the existing kernel (kuro) of your custom Rom should also be replaced afaik .
Click to expand...
Click to collapse
D_Rising_Pheonix said:
Yes If UR Backup contains kernel.
URL Jelly blast keRnel will be Uninstalled.
Click to expand...
Click to collapse
How about If I will flash my in-box firmware using Odin, Does Odin will fail flashing the stock firmware If I'm using Custom ROM w/ Custom Kernel? Is there additional things to insert with Odin before flashing or just normal flashing by Doky?, I mean Do I need to insert BOOTLOADER, totoro_0623.pit, tick repartion etc. I really like the ROM so much and after I got all my questions answered, I'll install the ROM and Does the Custom ROM and Custom Kernel will be Uninstalled If I flashed my in-box firmware using Odin ? Thanks. And sorry for too many questions.
no Additional things just
Follow this Tutorial.
in the given link
www.yhdgames.blogspot.com/2012/07/flash-stock-rom-on-galaxy-ywith-odin.html?m=1
I think he means this link
http://forum.xda-developers.com/showthread.php?t=1465800
Don't listen to none xda guides they don't know what their talking about also flashing via Odin will flash still stock kernel also
tingtingin said:
I think he means this link
http://forum.xda-developers.com/showthread.php?t=1465800
Don't listen to none xda guides they don't know what their talking about also flashing via Odin will flash still stock kernel also
Click to expand...
Click to collapse
Yes, At terms of flashing, XDA is only my trusted site and sure not to leave my phone to dust.
Hi, I have some question about flashing a custom kernel (+Franco kernel):
1. Let's say I have Franco Kernel and a new version comes out, do I need to flash it again or I can use the app to flash it? Also, do I need to wipe something before I flash?
2. If I switch to another kernel from Franco, what exactly do I have to do? Just wipe cache+dalvik and re-flash my rom?
3. Will I have to re-flash the kernel after each rom update?
Thanks!
Hi I'm not sure about #1 because I don't use Franco's app, but 2) Sometimes you can just flash a new kernel over the old one. Personally I prefer to dirty flash my ROM, then flash my choice of kernel. 3) You'll need to flash the kernel after a ROM update. The ROM is compiled with it's own kernel.
chrisbo4 said:
Hi I'm not sure about #1 because I don't use Franco's app, but 2) Sometimes you can just flash a new kernel over the old one. Personally I prefer to dirty flash my ROM, then flash my choice of kernel. 3) You'll need to flash the kernel after a ROM update. The ROM is compiled with it's own kernel.
Click to expand...
Click to collapse
So I need to dirty flash my ROM (=wipe cache+dalvik & flash) then install a new kernel? Thanks.
Still need an answer to Q1 though
I use CM 10.1 and just flash the new Franco kernel ZIP over the old one and it's been fine...
[email protected] said:
Hi, I have some question about flashing a custom kernel (+Franco kernel):
1. Let's say I have Franco Kernel and a new version comes out, do I need to flash it again or I can use the app to flash it? Also, do I need to wipe something before I flash?
2. If I switch to another kernel from Franco, what exactly do I have to do? Just wipe cache+dalvik and re-flash my rom?
3. Will I have to re-flash the kernel after each rom update?
Thanks!
Click to expand...
Click to collapse
1. When a new version comes out all you have to do is flash the new version on top of the old one. You can simply download it from the app and let it do a auto-flash. No need to wipe anything.
2. It depends. Some kernels will need you to flash the stock kernel first then flash the custom kernel you want to you. Ex. Faux kernel. Don't forget to read the first post of every thread to look for installation instructions.
3. Yes, you will need to reflash the kernel after a rom is flashed. Make sure to flash the kernel last.
Sent from my SGH-T999 using Tapatalk 2
scream4cheese said:
1. When a new version comes out all you have to do is flash the new version on top of the old one. You can simply download it from the app and let it do a auto-flash. No need to wipe anything.
2. It depends. Some kernels will need you to flash the stock kernel first then flash the custom kernel you want to you. Ex. Faux kernel. Don't forget to read the first post of every thread to look for installation instructions.
3. Yes, you will need to reflash the kernel after a rom is flashed. Make sure to flash the kernel last.
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
1. Does the app need a special recovery to work? I have a TWRP recovery..
2. What do you mean by stock kernel? And is it correct that Franco is the only kernel that I need to re-flash my ROM to switch to another kernel because it changes something in the ramdisk? If so, do I just need to do a dirty flash?
Thanks.
[email protected] said:
1. Does the app need a special recovery to work? I have a TWRP recovery..
2. What do you mean by stock kernel? And is it correct that Franco is the only kernel that I need to re-flash my ROM to switch to another kernel because it changes something in the ramdisk? If so, do I just need to do a dirty flash?
Thanks.
Click to expand...
Click to collapse
1. No special recovery needed. I too use TWRP.
2. Nothing special need be done to flash to Franco. Going from Franco to another kernel it is easiest to reflash your ROM. You are correct about the ramdisk.
grubbster said:
1. No special recovery needed. I too use TWRP.
2. Nothing special need be done to flash to Franco. Going from Franco to another kernel it is easiest to reflash your ROM. You are correct about the ramdisk.
Click to expand...
Click to collapse
2. So going from Franco to another kernel - just dirty flash without a factory reset?
Thank you very much.
[email protected] said:
1. Does the app need a special recovery to work? I have a TWRP recovery..
2. What do you mean by stock kernel? And is it correct that Franco is the only kernel that I need to re-flash my ROM to switch to another kernel because it changes something in the ramdisk? If so, do I just need to do a dirty flash?
Thanks.
Click to expand...
Click to collapse
1. Having a recovery is good. When you download a new kernel there is an option to let it do a auto-flash and it'll flash it you. The phone will reboot itself when it's done.
2. Some custom kernels need to flash the stock kernel, (the original factory kernel that it's shipped in) if you're going to switch to another custom kernel like Faux's kernel. So when the next time you want to make a switch to another kernel, please make sure to read the first post of the thread to look for instructions to install the kernel. If you're updating to a new rom or switching to a new rom, you will need to flash whichever custom kernel you were using on top of the updated/new rom. When you flash a new rom, it is recommended to do a full wipe to avoid issues. After every rom flash you need to flash the kernel.
http://forum.xda-developers.com/showthread.php?t=2008222
---------- Post added at 10:20 AM ---------- Previous post was at 10:19 AM ----------
[email protected] said:
2. So going from Franco to another kernel - just dirty flash without a factory reset?
Thank you very much.
Click to expand...
Click to collapse
No. no. You don't need to do a factory reset. I don't know how many times I'm going to say this but read my answers to all of your questions again. (Don't mean to sound like a jerk or anything)
scream4cheese said:
1. Having a recovery is good. When you download a new kernel there is an option to let it do a auto-flash and it'll flash it you. The phone will reboot itself when it's done.
2. Some custom kernels need to flash the stock kernel, (the original factory kernel that it's shipped in) if you're going to switch to another custom kernel like Faux's kernel. So when the next time you want to make a switch to another kernel, please make sure to read the first post of the thread to look for instructions to install the kernel. If you're updating to a new rom or switching to a new rom, you will need to flash whichever custom kernel you were using on top of the updated/new rom. When you flash a new rom, it is recommended to do a full wipe to avoid issues. After every rom flash you need to flash the kernel.
http://forum.xda-developers.com/showthread.php?t=2008222
---------- Post added at 10:20 AM ---------- Previous post was at 10:19 AM ----------
No. no. You don't need to do a factory reset. I don't know how many times I'm going to say this but read my answers to all of your questions again. (Don't mean to sound like a jerk or anything)
Click to expand...
Click to collapse
I think that's what he was saying/asking... That's correct, no need to factory reset.
Is it possible to take a custom ROM that uses a custom kernel and modify it, either by flashing or manually editing the zip file, to use a stock kernel instead?
Just a thought I had to help those with locked bootloaders.
Apoplectic1 said:
Is it possible to take a custom ROM that uses a custom kernel and modify it, either by flashing or manually editing the zip file, to use a stock kernel instead?
Just a thought I had to help those with locked bootloaders.
Click to expand...
Click to collapse
If it uses a TW based kernel, no changes are needed of course. AOSP is different enough that booting it on a locked bootloader stuck on a different kernel is generally accepted as not something to spend time on. Just putting a stock kernel in the ROM zip doesn't help since Safestrap doesn't flash them anyway. In order to make it work, you'd have to make sure everything was set up the way the kernel wants it and calls for things.
Sent from my SGH-I337 running GPE
DeadlySin9 said:
If it uses a TW based kernel, no changes are needed of course. AOSP is different enough that booting it on a locked bootloader stuck on a different kernel is generally accepted as not something to spend time on. Just putting a stock kernel in the ROM zip doesn't help since Safestrap doesn't flash them anyway. In order to make it work, you'd have to make sure everything was set up the way the kernel wants it and calls for things.
Sent from my SGH-I337 running GPE
Click to expand...
Click to collapse
Well damn, thought I was onto something .
I may give writing my own TW based kernel+ROM package a go then.