How difficult would it be to "rip" a kernel from a ROM, to use in a different ROM? Is it a matter of pulling certain files from the zip and creating and signing a new zip, or is it much more involved?
Try it and find out. It's pretty easy to find. Not all ROMs include a kernel, so try out the Andromeda one for example, which does include a kernel.
ragnarokx said:
How difficult would it be to "rip" a kernel from a ROM, to use in a different ROM? Is it a matter of pulling certain files from the zip and creating and signing a new zip, or is it much more involved?
Click to expand...
Click to collapse
ragnarokx said:
How difficult would it be to "rip" a kernel from a ROM, to use in a different ROM? Is it a matter of pulling certain files from the zip and creating and signing a new zip, or is it much more involved?
Click to expand...
Click to collapse
If the rom you want to put it in has a kernel then it is just a matter of replacing the zImage in one with the other. Then resign.
For a rom that doesnt have one it could get a little uglier but still easy. (I just use one that has a kernel in it.)
smeyerhuky said:
If the rom you want to put it in has a kernel then it is just a matter of replacing the zImage in one with the other. Then resign.
For a rom that doesnt have one it could get a little uglier but still easy. (I just use one that has a kernel in it.)
Click to expand...
Click to collapse
So all I need is the "zImage"? I don't need the "redbend_ua" or files in any other folder?
And I did want to transplant this kernel to a ROM that doesn't come with a kernel, but you're saying that's not easy to do. So what if instead of putting the kernel directly in the ROM, I take a stand-alone kernel zip, put my zImage in there, resign, and install the kernel after I install the ROM. Would that work?
[QOUTE]So all I need is the "zImage"? I don't need the "redbend_ua" or files in any other folder? [/QOUTE]
as long as the rom your using had redbend_ua then there is no need to copy it over, but its the same redbend_ua for both probably.
ragnarokx said:
So what if instead of putting the kernel directly in the ROM, I take a stand-alone kernel zip, put my zImage in there, resign, and install the kernel after I install the ROM. Would that work?
Click to expand...
Click to collapse
That is what I always do., ps I include my keyboard hack as well. Don't forget to resign...
Sent from my SPH-D700 using XDA App
Related
Hello. I've used ADB to extract from the system folder the hole files of my android. I would like to know if is possible for me to make a ROM from there.
Also i would like to ask if i can use the META-INF and boot.img wich is on other roms into this one, in order to create a zip file ready for use of flasshing. Thanks
jgcaap said:
Hello. I've used ADB to extract from the system folder the hole files of my android. I would like to know if is possible for me to make a ROM from there.
Also i would like to ask if i can use the META-INF and boot.img wich is on other roms into this one, in order to create a zip file ready for use of flasshing. Thanks
Click to expand...
Click to collapse
It may be possible but certainly not recommended.
This is actually no different than taking the /system folder from the rom that you had flashed.
The best way is compiling your rom from source (which of course requires Linux).
The problem with using another rom's boot.img is that the kernel and drivers may not necessarily match those called by those in /system which may cause a lot of errors and instability that is assuming you can get it to boot.
Hello Guys,
I need to make a flashable ROM.... I already have boot.img and system from nand backup... Now all i need is the META-INF.... Where can I get it? Thanks.
You can pull the meta-inf from any other rom. Be careful though with your flashing. Especially if your are changing the boot.img. If something goes wrong, the phone will stay at your splash screen. the only thing you will be able to do is restore from a backup. So def. nandroid.
smoochiezz24 said:
You can pull the meta-inf from any other rom. Be careful though with your flashing. Especially if your are changing the boot.img. If something goes wrong, the phone will stay at your splash screen. the only thing you will be able to do is restore from a backup. So def. nandroid.
Click to expand...
Click to collapse
So what do i do to make the ROM then?
I really don't suggest you try to make your own ROM if you don't know to set it up at all. The only reason i'm saying this is because you have to learn the basic file system structure before you even get into modding the system. The flashable zip has the same structure. And it's critical that things are in the right place. It's just not easy for me to show you with out you doing some research. What exactly are you looking to change that the other already made roms don't have? I can surely help you out with modding a rom but I can't tell you how to create a rom.
smoochiezz24 said:
I really don't suggest you try to make your own ROM if you don't know to set it up at all. The only reason i'm saying this is because you have to learn the basic file system structure before you even get into modding the system. The flashable zip has the same structure. And it's critical that things are in the right place. It's just not easy for me to show you with out you doing some research. What exactly are you looking to change that the other already made roms don't have? I can surely help you out with modding a rom but I can't tell you how to create a rom.
Click to expand...
Click to collapse
Okay, my ROM consist of Android Revolution Dual Core and Tweaks and removed nearly all HTC apks and edited some extra files and themed i
Okay. Sounds cool enough. Have you modded the files on your PC and are looking to flash them to your phone to test them out? Or are the modded files already on your phone and you just want to package the whole thing up?
If you're looking to make your own ROM just extract out the ROM you're basing it on, delete the apks you don't want and then ZIP it up again. Otherwise you have to deal with setting up the Android kitchen to make your own ROM
smoochiezz24 said:
Okay. Sounds cool enough. Have you modded the files on your PC and are looking to flash them to your phone to test them out? Or are the modded files already on your phone and you just want to package the whole thing up?
Click to expand...
Click to collapse
The modded files are already on my phone
I would like to learn how one can change the kernel/modem in a ROM's zip BEFORE flashing it. I often use the Entropy Kernel after I flash a new ROM. The Kernel has a zimage file. How do I incorporate it into the zip? Same for modem file.
Thanks in advance.
NeoMustain said:
I would like to learn how one can change the kernel/modem in a ROM's zip BEFORE flashing it. I often use the Entropy Kernel after I flash a new ROM. The Kernel has a zimage file. How do I incorporate it into the zip? Same for modem file.
Thanks in advance.
Click to expand...
Click to collapse
Whats worked for me:
First get 7zip if you are on windows
Open the kernel zip with 7zip move the redbend_ua and zImage into this location (rom name here).zip/updates
For modem do the same, open up the modem zip with 7zip, and then move the modim.bin into (rom name here).zip/update
You may need to delete the redbend and zImage already in the rom, but just overwriting it with the new ones should work
Once the new kernel/modem is copied over, just put it on your sdcard and you should be able to flash it without any problems
Sent from my SAMSUNG-SGH-I997 using XDA
or just the zimage...since the ua is same...
Never tried it without doing the ua when it came to the kernel, but it does make sense since i never moved the ua when ever id move the modem
Sent from my SAMSUNG-SGH-I997 using XDA
The ua is universal on all roms... its just an installer for the modem and kernel ... no need to change it. If the rom already has it then just replace the zimage and your good.
Sent from my SAMSUNG-SGH-I997 using xda premium
I request some experienced sr. member to comeup by posting new thread covering some of topics like safely adding and removing apks, libs. Fonts, apps, wallpapers, kernel. Modem etc. in Rom's zip with little flavouring. It will help new member to start some development work.
Thanks guys ... 1 more small step
hey can anyone give instructions on fixing RIL bug...it would be so much helpful...thnx
Is it safe to modify zips that contain ROM's. I'm planning to make a subtly modified Galaxy S 4G Beam.
I'm not sure what you mean by "safe"
As long as you aren't expecting the ROM to be signed, you "safely" put just about anything in there.
You just need to make sure that the right things happen when you flash the ROM. The "first" script is usually META-INF/com/google/android/updater-script
th3controller said:
Is it safe to modify zips that contain ROM's. I'm planning to make a subtly modified Galaxy S 4G Beam.
Click to expand...
Click to collapse
Sure is I do it all the time. I'll give you a tip that I learned the hard way. Before you do anything make a copy of the zip you want to play with. Then put the original somewhere. Play with the copy all you want and if you totally f it up you still have the original to start over from.
Most of us do it all the time.
I'd first check everything separately by copying it to the phone and setting permissions with root explorer or an equivalent. If it works you can put it in right place in the ROM zip. I usually make 2 similar compact flashable zips - 1 for the 'new' relevant files and 1 for the 'old' relevant files. If anything goes wrong I flash the old back.
sent from me
itzik2sh said:
Most of us do it all the time.
I'd first check everything separately by copying it to the phone and setting permissions with root explorer or an equivalent. If it works you can put it in right place in the ROM zip. I usually make 2 similar compact flashable zips - 1 for the 'new' relevant files and 1 for the 'old' relevant files. If anything goes wrong I flash the old back.
sent from me
Click to expand...
Click to collapse
Thank you, the changes made to the .zip is not major.
I'm using WinZip.
I use 7zip.
sent from me
When compiling ROM's, should the package be compressed or uncompressed?
I've used ultra compression (zip -9) with success. I recommend you do the same since it'll save you storage space and bandwidth
FBis251 said:
I've used ultra compression (zip -9) with success. I recommend you do the same since it'll save you storage space and bandwidth
Click to expand...
Click to collapse
I thought -9 was MEGA compression. Isn't Ultra compression -8?
bhundven said:
I thought -9 was MEGA compression. Isn't Ultra compression -8?
Click to expand...
Click to collapse
Tried to look it up in the manual but it didn't say mega or ultra :/. Now we'll never know.
Hi everyone! First of all, sorry for my english.
My question is very simple. I am going to flash Aero Kernel into my Moto G xt1034.
In case something goes wrong or i want to go back to stock kernel, does reflash the rom via fastboot replaces the kernel? I mean, Aero Kernel is ereased and replaced by the stock kernel?
Thank you very much in advance!
Yep, boot.img is your kernel, so you need to flash that at least. But, I think aero is replacing your kernel modules too (eg the WiFi driver), so you need to flash the system image too. Or backup the original modules from the /system/lib/modules directory.
Rhyn said:
Yep, boot.img is your kernel, so you need to flash that at least. But, I think aero is replacing your kernel modules too (eg the WiFi driver), so you need to flash the system image too. Or backup the original modules from the /system/lib/modules directory.
Click to expand...
Click to collapse
Thank you. Does flashing stock Rom replaces those modules ?
neucoas said:
Thank you. Does flashing stock Rom replaces those modules ?
Click to expand...
Click to collapse
If you mean by flashing is fastboot flash etc, then yes. The system.sparesechunk.0-3 files contains your full system partition including the kernel modules. But if you do a cwm backup from your stock system partition before flashing aero and flash that back, that will work too.
Edit: if you just do a backup from /system/lib/modules directory, you should include /system/lib/hw/power.msm8226.so too, hence aero installer also deletes that too.
Usually if you uncertain what a flashable zip do, you can always examine the META-INF/com/google/android/updater-script file. Thats the installer, you can open it with a simple text editor. Usually not too hard to understand, its quite a simple language.
Rhyn said:
If you mean by flashing is fastboot flash etc, then yes. The system.sparesechunk.0-3 files contains your full system partition including the kernel modules. But if you do a cwm backup from your stock system partition before flashing aero and flash that back, that will work too.
Edit: if you just do a backup from /system/lib/modules directory, you should include /system/lib/hw/power.msm8226.so too, hence aero installer also deletes that too.
Usually if you uncertain what a flashable zip do, you can always examine the META-INF/com/google/android/updater-script file. Thats the installer, you can open it with a simple text editor. Usually not too hard to understand, its quite a simple language.
Click to expand...
Click to collapse
Thank you very much! :victory: