How to Change Kernel? - Android Q&A, Help & Troubleshooting

Hello,
i know that the boot img contains the kernel.. but how can i now change somthing inside?
ROMS I open with winrar and then change everything I want.
Does it work a different way at Kernel?
Thanks in advance.

spartanier7 said:
Hello,
i know that the boot img contains the kernel.. but how can i now change somthing inside?
ROMS I open with winrar and then change everything I want.
Does it work a different way at Kernel?
Thanks in advance.
Click to expand...
Click to collapse
No, changing the kernel involves unpacking the boot.img and editing the RAM disk. I'd recommend this guide for doing this on Windows:
forum.xda-developers.com/showthread.php?t=1630130
Sent from my SCH-I535 using xda premium

i think you will get the result easier if u just take the certain kernel and flash it afterwards

Related

Try to get AOSP lockscreen

Hi,
since I don't really like the Glass lockscreen on YP-G1,I wanna change it to AOSP style.
However,UOT kitchen can't make it though I've tried many times uploading files
So,I searched for way to mod these files manually in forum.Like:
http://forum.xda-developers.com/showthread.php?t=969354
Stuck ROM's is fully odexed,so I got android.policy.jar and android.policy.odex.After decompiling android.policy.odex(340KB),editing codes,recompiling,I got a dex file(296KB).It was smaller than before,making me confused...
Then I renamed it to 'classes.dex' putting into android.policy.jar,and made a CWM zip and flashed it as usual.
Reboot,ah,just got a bootloop
Anyone could give me a hand?This stuff almost made me mad...
If AOSP lockscreen's codes were not exist in firmware,then what I've done was just in vain...
But Klin has succeed in changing lock style via UOT.So there should be sth wrong in editing these codes for me.
Keep working on it.
fromnowon said:
If AOSP lockscreen's codes were not exist in firmware,then what I've done was just in vain...
But Klin has succeed in changing lock style via UOT.So there should be sth wrong in editing these codes for me.
Keep working on it.
Click to expand...
Click to collapse
You have to change a method in android.policy.jar. I think it was in class lockpatternkeyguardview.
Sent using Tapatalk
klin1344 said:
You have to change a method in android.policy.jar. I think it was in class lockpatternkeyguardview.
Sent using Tapatalk
Click to expand...
Click to collapse
Hi,Klin.
Could you please send me your android.policy.jar and android.policy.odex?I downloaded your custom ROM R5,but couldn't be unpacked by UltraISO,even failed to mount the rfs file in Linux
Thax!
Ok, I'll give it to you when I get home this afternoon. But my rom is deodexed, so it doesn't have android.policy.jar.odex.
And also, the reason you can't mount the factoryfs.rfs is because it is an extremely image in an Odin flashable format. If you want it sooner, you could download r4 and mount it and take the file you need.
Sent using Tapatalk
klin1344 said:
Ok, I'll give it to you when I get home this afternoon. But my rom is deodexed, so it doesn't have android.policy.jar.odex.
And also, the reason you can't mount the factoryfs.rfs is because it is an extremely image in an Odin flashable format. If you want it sooner, you could download r4 and mount it and take the file you need.
Sent using Tapatalk
Click to expand...
Click to collapse
Thank you~
Starting to learn Android,I'm interested in everything about it.
Sorry for the delay, but here ya go.
There is no odex version because it is already deodexed.
So, would using a deodexed android.policy.jar on a stock odexed rom not work?
Sent using Tapatalk
iJimaniac said:
So, would using a deodexed android.policy.jar on a stock odexed rom not work?
Sent using Tapatalk
Click to expand...
Click to collapse
Probably not. But you could try it if you want, and if it boot loops just adb push the original one to your phone. But if your rom is a different framework other than 2.3.6 than this definitely won't work.
Sent using Tapatalk
klin1344 said:
Sorry for the delay, but here ya go.
There is no odex version because it is already deodexed.
Click to expand...
Click to collapse
Thx.
In fact I got lots of bootloop while testing such things,haha
I would investigate this file and hope to find sth.
Thx again!

splash screen

How would i go about changing my splash screen? i have the image i wanna use but is there a way i could flash it or is it built into the kernel?
You mean the one before boot animation? If yes, it's inbuilt in kernel, and it's calling boot logo.
thanks.. i never messed with a kernel before so could someone tell me a program i could use to extract it..
txtmikhail said:
thanks.. i never messed with a kernel before so could someone tell me a program i could use to extract it..
Click to expand...
Click to collapse
7zip, winrar, or anything else like that
Pandemic said:
7zip, winrar, or anything else like that
Click to expand...
Click to collapse
really, are you sure?
Pandemic said:
7zip, winrar, or anything else like that
Click to expand...
Click to collapse
No.. that will not work for a .img file.....:silly:
Madfysh said:
really, are you sure?
Click to expand...
Click to collapse
no sorry, im crazy that are the wrong files, deeply sorry and i dont know i dont have unlocked bl, so i dont know, again sorry
[DEV][TOOLS] Unpack Repack boot.img (Kernel) Files And Modify Ramdisk: http://forum.xda-developers.com/showthread.php?t=1477845

boot.img creation from the stock ftf

Hi everyone,
I'm noob here. I'm using Xperia S. And now learning mote about android.
However I have a question, how can I make boot.img from my ftf file?
Sure, I extracted the ftf, decrypt the kernel.sin into kernel.elf.
From kernel.elf, I decrypt it again and get 4 files, one image (I suppose it is kernel zImage), one ramdisk.gz, one file forgotten and another is elf.4.
Okay, now the problem comes.
The main purpose of me is to change the bootlogo of my Xperia S.
I searched for a day to change the bootlogo, most need to add the rle file into boot.img file (ramdisk).
For sure I read through the site how to unpack, edit and repack the boot image.
The kernel and ramdisk of mine are extracted from ftf but not existing custom Rom,
1. Can I directly use the mkbootimg program to create boot.img? Will it work out?
2. Do I need to aware of any parameters or setting for Xperia S? Since I worried that different devices have diff setting.
3. Is it better to make it on linux? I found mkbootimg.c in c language file but not precompiled program as tutorial, the link given is broken. Can work also?
Sorry, I'm really quite new and very noob, I tried searching and many other things, but still can't figure it out.
Hope that pros here can help me...
Sent from my LT26i using xda app-developers app
Trevor Chuah said:
Hi everyone,
I'm noob here. I'm using Xperia S. And now learning mote about android.
However I have a question, how can I make boot.img from my ftf file?
Sure, I extracted the ftf, decrypt the kernel.sin into kernel.elf.
From kernel.elf, I decrypt it again and get 4 files, one image (I suppose it is kernel zImage), one ramdisk.gz, one file forgotten and another is elf.4.
Okay, now the problem comes.
The main purpose of me is to change the bootlogo of my Xperia S.
I searched for a day to change the bootlogo, most need to add the rle file into boot.img file (ramdisk).
For sure I read through the site how to unpack, edit and repack the boot image.
The kernel and ramdisk of mine are extracted from ftf but not existing custom Rom,
1. Can I directly use the mkbootimg program to create boot.img? Will it work out?
2. Do I need to aware of any parameters or setting for Xperia S? Since I worried that different devices have diff setting.
3. Is it better to make it on linux? I found mkbootimg.c in c language file but not precompiled program as tutorial, the link given is broken. Can work also?
Sorry, I'm really quite new and very noob, I tried searching and many other things, but still can't figure it out.
Hope that pros here can help me...
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
how did you decrypt kernel.sin ? can you explain step by step ? Im also a noob
ShivangDave said:
how did you decrypt kernel.sin ? can you explain step by step ? Im also a noob
Click to expand...
Click to collapse
For how to decrypt the kernel.sin, you can use Flashtool (not Sony official one)
Under Tools (perhaps I remember correctly), there is a option about decrypt SIN, and then you can choose the kernel.sin you want to decrypt.
Have to tried kernel kitchen?
neectron said:
Have to tried kernel kitchen?
Click to expand...
Click to collapse
Yes, I tried Kernel Kitchen by champion at that time after I asked this question since nobody answer this thread.
I use command way to perform this boot.img creation also. It work that time. now forgot some part dy.
Trevor Chuah said:
Yes, I tried Kernel Kitchen by champion at that time after I asked this question since nobody answer this thread.
I use command way to perform this boot.img creation also. It work that time. now forgot some part dy.
Click to expand...
Click to collapse
Oh,now I see question is so old
neectron said:
Oh,now I see question is so old
Click to expand...
Click to collapse
yeah, very old. haha
Anyway, thank you for your kindly reply.
Moving my way toward developer (super noob developer). haha

Stock ROM modification.. Help please!!!!

Hello,
I want to make a custom ROM based on a stock i9001 ROM. However when I extracted the tar file there were IMG and ext4 files. I know how to make a rom via cygwin when i have: 1) system folder
2) META-INF folder
And 3) boot.img
I don't know what to do to the stock ROM
(.tar) to be like this
*** sorry for my bad english
Sent from my Galaxy Nexus using xda premium
kagouro said:
Hello,
I want to make a custom ROM based on a stock i9001 ROM. However when I extracted the tar file there were IMG and ext4 files. I know how to make a rom via cygwin when i have: 1) system folder
2) META-INF folder
And 3) boot.img
I don't know what to do to the stock ROM
(.tar) to be like this
*** sorry for my bad english
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
explain more
Help Building a CUSTOM(from STOCK ROM)
Newbie here---
- I have downloaded the HTC stock RUU for my device.
- I used Android Kitchen cygwin to extract the files, setup the working folder.
- Added root permissions,BusyBox
- Built the rom from working folder.
Wanted to test whether this works or not... But Phone Got stuck on HTC logo .. Not even BOOTANIMATION.
What did i miss or DO wrong here??
Where in these steps worked flawlessly when i took a custom rom? What else should be done here?? Help would be Appreciated!!!
Learn More About Kitchen. Add Root, Busybox, Put apk files in System/aps etc. What do you want to do?
cheqolada said:
Learn More About Kitchen. Add Root, Busybox, Put apk files in System/aps etc. What do you want to do?
Click to expand...
Click to collapse
I'm Sorry, The ROM i built from the working folder did not boot. My question was what went wrong?
kagouro said:
Hello,
I want to make a custom ROM based on a stock i9001 ROM. However when I extracted the tar file there were IMG and ext4 files. I know how to make a rom via cygwin when i have: 1) system folder
2) META-INF folder
And 3) boot.img
I don't know what to do to the stock ROM
(.tar) to be like this
*** sorry for my bad english
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Maybe this is what you search:
http://forum.xda-developers.com/showthread.php?t=1976412
yashwantpiduru said:
I'm Sorry, The ROM i built from the working folder did not boot. My question was what went wrong?
Click to expand...
Click to collapse
My Answer is for kagouro - Becouse i Don't see your post when I write.
If Your Phone is dedected in adb you can use logcat (adb logcat in windows cmd) if phone don't dedected in adb - flash recovery via fastboot, join in recovery , instal working rom and found bad files in rom (try add modyfication singly - first root, second busybox etc - in this metod you can see whad mod don't work - probably stupid method but work :cyclops
yashwantpiduru said:
Newbie here---
- I have downloaded the HTC stock RUU for my device.
- I used Android Kitchen cygwin to extract the files, setup the working folder.
- Added root permissions,BusyBox
- Built the rom from working folder.
Wanted to test whether this works or not... But Phone Got stuck on HTC logo .. Not even BOOTANIMATION.
What did i miss or DO wrong here??
Where in these steps worked flawlessly when i took a custom rom? What else should be done here?? Help would be Appreciated!!!
Click to expand...
Click to collapse
Kitchen will replace certain necessary parts of your ROM if it isn't compatible with the kitchen, it puts them back when you compile. When you compiled your ROM did you take the guided option? Also, and probably the first thing I should have asked, is your phone compatible with kitchen?
Sent from my SPH-D710 using xda premium
Stryke_the_Orc said:
Kitchen will replace certain necessary parts of your ROM if it isn't compatible with the kitchen, it puts them back when you compile. When you compiled your ROM did you take the guided option? Also, and probably the first thing I should have asked, is your phone compatible with kitchen?
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
My phone is compatible with the kitchen.
Yeah I took the guided step! Still no luck
sent from my oc'd incS
yashwantpiduru said:
My phone is compatible with the kitchen.
Yeah I took the guided step! Still no luck
sent from my oc'd incS
Click to expand...
Click to collapse
OK, just for giggles try this, take the meta-inf folder from a rom you know works and using 7zip replace the one in your rom. Let me know if that helped at all:beer:
Sent from my SPH-D710 using xda premium
Stryke_the_Orc said:
OK, just for giggles try this, take the meta-inf folder from a rom you know works and using 7zip replace the one in your rom. Let me know if that helped at all:beer:
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Sure! its late! I will try and let you know asap!
P.S: actually I tried this as well adding aroma installer to the rom! That had some ext3 error ! Dont have a clue what's that?
sent from my oc'd incS
yashwantpiduru said:
Sure! its late! I will try and let you know asap!
P.S: actually I tried this as well adding aroma installer to the rom! That had some ext3 error ! Dont have a clue what's that?
sent from my oc'd incS
Click to expand...
Click to collapse
Ext3 is a mount point, I'm not sure what it would be specific to your device, but it tells me there's an error in your updater script
Sent from my SPH-D710 using xda premium
Stryke_the_Orc said:
Ext3 is a mount point, I'm not sure what it would be specific to your device, but it tells me there's an error in your updater script
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Thanks for the heads up... I am gonna check the updater script.
sent from my oc'd incS

[Q] how to change kernel before flashing rom?

i want to change the rom kernel before installing it please tell me how to do it? i have a rom which has a very good kernel but i dont know how to put that in the new rom which im going to flash today please guide your help is appreciated
FarrukhQadri said:
i want to change the rom kernel before installing it please tell me how to do it? i have a rom which has a very good kernel but i dont know how to put that in the new rom which im going to flash today please guide your help is appreciated
Click to expand...
Click to collapse
Open original rom with WinRAR or 7zip, overwrite the boot.img file with the kernel you want to add, flash the rom.
C13v3r0n3 said:
Open original rom with WinRAR or 7zip, overwrite the boot.img file with the kernel you want to add, flash the rom.
Click to expand...
Click to collapse
Thanks buddy
hi
extract zimage using kitchen and rebuild with the modified zimage.
omarrana said:
extract zimage using kitchen and rebuild with the modified zimage.
Click to expand...
Click to collapse
How I can find zimage? In which folder it's located in? And kitchen works on Windows?
FarrukhQadri said:
How I can find zimage? In which folder it's located in? And kitchen works on Windows?
Click to expand...
Click to collapse
thanks for answering

Categories

Resources