[Q] How to integrate a custom kernel in a custom rom? - Desire HD Q&A, Help & Troubleshooting

Hey Rom chiefs
With Dsixda`s kitchen I`ve created a lot of roms for myself with some apps added or removed, integrate the Theme which I made with UOT kitchen, changed the camera app, the launcher, and so on
My two problems:
1.How do I integrate the google apps in Cyanogen mod?
2. How do I change the kernel?
->How I tried it in 2 different Roms:
Extract the Rom using the kitchen\extract the Zimage from the Kernel\rename it to boot.img and changed it with the boot.img from the rom
BUT. After I flashed the Rom(without errors) I had bootloops. What did I do wrong?
Thanks in advance

Using the kitchen extract the boot image.
Then take the zImage of the kernel you wish to use and replace the original zImage. Remember to copy any modules from the custom kernel to there respective folders in /system.
Then build your boot image. That's your kernel sorted.
For GAPPs, its similar. Unzip the archive and copy everything from \system\app into \system\app in your working folder.
Rinse & repeat this for everything in the unzipped GAPPs package.
Now you can build your ROM.

Big THX
Will try it this weekend

Thanks
:good: Thanks ! for the superb guide .

TY
Andy said:
Using the kitchen extract the boot image.
Then take the zImage of the kernel you wish to use and replace the original zImage. Remember to copy any modules from the custom kernel to there respective folders in /system.
Then build your boot image. That's your kernel sorted.
For GAPPs, its similar. Unzip the archive and copy everything from \system\app into \system\app in your working folder.
Rinse & repeat this for everything in the unzipped GAPPs package.
Now you can build your ROM.
Click to expand...
Click to collapse
Thank you very much.
Helped alot when making my rom.:highfive:

Gapps on almost uneaque device
Andy said:
Using the kitchen extract the boot image.
Then take the zImage of the kernel you wish to use and replace the original zImage. Remember to copy any modules from the custom kernel to there respective folders in /system.
Then build your boot image. That's your kernel sorted.
For GAPPs, its similar. Unzip the archive and copy everything from \system\app into \system\app in your working folder.
Rinse & repeat this for everything in the unzipped GAPPs package.
Now you can build your ROM.
Click to expand...
Click to collapse
Im trying to get gapps on the moverio BT-300. (Google app support ecosystem specifically i can side load some apps) I have root via magisk but all the code is so exclusive to this device im looking for pointers on where to begin. All installers ive tried so far cause bootloops. I think its due to the aditional moverio sdk on top of android 5.1. Im only an amateur and im probably the closest thing to a dev working on the device for like the 6 of us on my thread so any advice as to where to start is really appreciated!! Thank you xda community

Related

How to add apk files into a rom

hey i want to add some files like htc clock.apk and calculator.apk to N.S.A rom, so how do i go about it. Any help
Thank you.
unzip the ROM, add them to the app folder and rezip it and then flash the ROM (making sure the recovery utility you're using allows non-signed ROMs)
i am using clockworkmod recovery, does it allow flashing unsigned rom??
Thanks
unquestioning
shoemeistah said:
unquestioning
Click to expand...
Click to collapse
Sorry, what does that means.
Yes, you have to remove the signing checking option in it (under advanced or something, have a play about)
hey use Android kitchen to Modify the Rom as want
>you can add and remove apps
>you can create your own custom rom if want..!!
>And you can sign the modified ROM
READ THE INSTRUCTION YOU'LL GET TO KNOW
try it out works great here is the link:
http://forum.xda-developers.com/showthread.php?t=633246
harish.awe said:
hey use Android kitchen to Modify the Rom as want
>you can add and remove apps
>you can create your own custom rom if want..!!
>And you can sign the modified ROM
READ THE INSTRUCTION YOU'LL GET TO KNOW
try it out works great here is the link:
http://forum.xda-developers.com/showthread.php?t=633246
Click to expand...
Click to collapse
It's a LOT easier to just do it yourself...
?
does this work for the captivate
Don't know, go ask in the captivate forum and not the Desire one
Hi all, i'm a new user and i have some trouble adding .apk's into cooked roms.
In particular, i'm trying to add some .apk into /system/app of InsertCoin Gingerbread 1.0.5
I have unzipped the rom, add those apk's, zipped again but when i flash it from recovery it says "Can't Find Update Script".
Iryon said:
Hi all, i'm a new user and i have some trouble adding .apk's into cooked roms.
In particular, i'm trying to add some .apk into /system/app of InsertCoin Gingerbread 1.0.5
I have unzipped the rom, add those apk's, zipped again but when i flash it from recovery it says "Can't Find Update Script".
Click to expand...
Click to collapse
Don't(!) unzip the rom. Just open the archive using 7zip or winzip (or something like that; right-click zip and choose 'open archive'). Then just move apk to correct folder. If you're taking apk's from another rom, open that using 7zip as well. Then, drag the program from one rom to the other. When you're finished and want to flash the rom, make sure you've disabled 'signature verification' in recovery (it is an option in recovery).
Thank you, i was able to flash my first "modded" version with different boot/down animation, Teeter game (i love it) and Titanium Backup
The only thing i was not able to do was Root Explorer, i tried to put it in system/app and in data/app but when i flash rom it doesn't appear in the drawer.
Any suggestion?
Iryon said:
Thank you, i was able to flash my first "modded" version with different boot/down animation, Teeter game (i love it) and Titanium Backup
The only thing i was not able to do was Root Explorer, i tried to put it in system/app and in data/app but when i flash rom it doesn't appear in the drawer.
Any suggestion?
Click to expand...
Click to collapse
I have been learning how to do this in the last few days and have had similar issues as you. I can get some to install fine and appear in the drawer but not all.
I have only been adding the apk's to system/app and not data/app. Should the apk's be added to one of these, both of them or another folder completely?
Can anyone help the two of us out?
I used apk swapper but all the apps are not working

Combining themes/mods before flashing?

Searching around has given little result. Most other threads talk about ripping framework.apks apart and combining them.
What I'm more interested is in combining things together and flashing them at one go (UVOC kernels, modified rosie.apks, modified battery on the notification bar), instead of one by one (renaming 1 zip to update.zip, drop into SD, boot, flash update zip, reboot, renaming another zip to update.zip, drop into SD, boot, flash, rinse, repeat).
For example, I have 3 zips,
A modified rosie.apk to give a transparent app drawer (fx-2.10.405.2_rosie-dnd_transappdrw.zip)
A Battery Custom Z (UOT-ZC-10-08-16-17-1.zip)
and a UVOC Kernel (thanks to richardtrip) (UVOC_Kernel.zip)
Opening them up through winrar,
the rosie has 2 folders, system/app and META-INF
the battery z has framework and also META-INF (which I assume to be the same?)
the UVOC kernal has system/lib, boot.img and META-INF as well.
how do I go about combining them into 1 zip? just cut/paste in winrar? then autosign?
And shouldn't the framework folder in the battery z zip be in system/framework?
Thanks in advance!
eden2812 said:
Searching around has given little result. Most other threads talk about ripping framework.apks apart and combining them.
What I'm more interested is in combining things together and flashing them at one go (UVOC kernels, modified rosie.apks, modified battery on the notification bar), instead of one by one (renaming 1 zip to update.zip, drop into SD, boot, flash update zip, reboot, renaming another zip to update.zip, drop into SD, boot, flash, rinse, repeat).
For example, I have 3 zips,
A modified rosie.apk to give a transparent app drawer (fx-2.10.405.2_rosie-dnd_transappdrw.zip)
A Battery Custom Z (UOT-ZC-10-08-16-17-1.zip)
and a UVOC Kernel (thanks to richardtrip) (UVOC_Kernel.zip)
Opening them up through winrar,
the rosie has 2 folders, system/app and META-INF
the battery z has framework and also META-INF (which I assume to be the same?)
the UVOC kernal has system/lib, boot.img and META-INF as well.
how do I go about combining them into 1 zip? just cut/paste in winrar? then autosign?
And shouldn't the framework folder in the battery z zip be in system/framework?
Thanks in advance!
Click to expand...
Click to collapse
you would also have to re-write the update script and/or binary
Rewriting update scripts and binary.. Oh boy.
I haven't gotten too far into ROMs yet. I don't think I will be rewriting scripts any time soon.
Thanks for you help anyway, Androhero!
On a side note, even if I were to flash the update.zips one by one...
Shouldn't the framework folder in the battery z zip be in system/framework instead of just sitting in the root of the zip? Does this even matter? or is that the way it is
Not nessesarly, thats what the update script is for, it basicall tells the recovery what to put where, you can also use it to delete files and carry out other commands, look in the meta inf folder the update script is in the google folder just open it with notepad
Sent from my HTC Desire using Tapatalk
Why do you need to rename to Update.zip if i may ask... just use clockwork... that way it gets a few less steps at least
1. Put all zips on sd card
2. flash rom
3. reboot to rom, let it load for 30 mins
4. Go back into recovery, flash all mods, in correct order (if you have to that flashes framework-res or something)
5. reboot
6. Have fun
AndroHero said:
Not nessesarly, thats what the update script is for, it basicall tells the recovery what to put where, you can also use it to delete files and carry out other commands, look in the meta inf folder the update script is in the google folder just open it with notepad
Sent from my HTC Desire using Tapatalk
Click to expand...
Click to collapse
So where exactly is the update script located?
Beaverman20 said:
Why do you need to rename to Update.zip if i may ask... just use clockwork... that way it gets a few less steps at least
1. Put all zips on sd card
2. flash rom
3. reboot to rom, let it load for 30 mins
4. Go back into recovery, flash all mods, in correct order (if you have to that flashes framework-res or something)
5. reboot
6. Have fun
Click to expand...
Click to collapse
I'm not exactly sure. I always thought that was the way.

[Q] help with DSIXDA Kitchen

can I extract the contents of a mod.zip and take the .jar or .apk and copy and paste them into the framework dir of the working working folder? i tried copying a custom .apk file into the framework dir of the working folder and it went into a boot loop.
alucke
There could be several reasons for a boot loop. If I understand you correctly, you are working on a ROM using dsixda's kitchen, and you want to add an apk before flashing? Could you provide more information like what apk and what folder you are trying to add it to? I suspect it might have something to do with the signature of the apk. I'm not 100% sure but I believe that the system apks all need the same signature when flashing a new ROM.
alucke said:
can I extract the contents of a mod.zip and take the .jar or .apk and copy and paste them into the framework dir of the working working folder? i tried copying a custom .apk file into the framework dir of the working folder and it went into a boot loop.
alucke
Click to expand...
Click to collapse
If you are changing things within the framework you also need to edit the .xml files within the framework. The best way to learn is to take the stock rom and load it into a working folder. then take a custom rom that you can find all the differences to stock on when loaded on your phone and load that into the kitchen. Compare the stock roms working folder with the custom rom working folder and take note of all the differences and figure out how they were achieved. Dont just look at apk files. Look at the update script as well as the xml files in all the folders too. Repeat with another ROM and you will start to see how to change things around yourself.

[CWM][ALL] Base CWM zip packages - just add APPS!

Ok forum, so I got this idea: because a lot of people ask for CWM packages of this and that, why not let them create CWM flashable stuff without having to beg devs or other users to make them?
I think it saves them (yes, I am talking about YOU!) and us the trouble. So I created these two base CWM flashable zips to get everyone started:
Data_Skeleton.zip - Used for apps that you can uninstall afterwards.
System_Skeleton.zip - Used for anything that should be installed as a system app
Now, a short guide on how to use them:
1. Download the appropriate ZIP for what you plan to package. If you want to make a regular app package use Data_Skeleton.zip, for system apps, use System_Skeleton.zip.
2. Open the zip file with anything else other than Windows Explorer! Use 7zip, winzip, winrar or anything else, just not Explorer!
3. Look inside the zip! DO NOT DELETE ANYTHING! All you need to do is ADD STUFF!
4. Browse into the "data" or "system" zip folders, then down into the "app" folder inside.
5. After you get to the "app" folder, copy and paste the APKs you want to flash in the folder.
REMEMBER: do not DELETE anything! ADD APK files ONLY in the "app" folder.
6. Wait for the APK files you copy to get added to the archive.
7. Close the archive.
8. Rename and copy the archive to your SD card.
9. Boot into CWM and flash the copied zip file you just created.
10. Enjoy!!
Sooooo, quick 10-step process into cooking you own CWM Zips. You can do much more with them than flashing apps, but for general purpose usage, this should be enough!
Thanks and complaints go underneath.
PS: this idea was given to me by lambstone in a separate thread! Thanks a lot mate!!!
Peace,
C.
Nice thread, waiting for other..............
There's market apps that does this I.e apps2zip
Sent from my LG-P999 using Tapatalk 2 Beta-2
Ayysr,
App2zip works well for this purpose, but only when it works. There are apps that can't be zipped correctly, mainly those that rely on libs, media and/or other files that can't be included automagically. Needless to say that some apps (mainly games and such) store data on the SD card.
All of this can be easily accomplished by copying the files in a zip file; also learning something about Android in the process, wouldn't you say?
Peace,
C.
cheatman said:
Ayysr,
App2zip works well for this purpose, but only when it works. There are apps that can't be zipped correctly, mainly those that rely on libs, media and/or other files that can't be included automagically. Needless to say that some apps (mainly games and such) store data on the SD card.
All of this can be easily accomplished by copying the files in a zip file; also learning something about Android in the process, wouldn't you say?
Peace,
C.
Click to expand...
Click to collapse
Your right, I was not trying to deny your effort in any way
Sent from my LG-P999 using Tapatalk 2 Beta-2
I actually wasn't expecting anyone to comment on this thread to begin with
The fact that you mentioned app2zip is perfect! I know the intent is not to deny my effort, in fact, I am happy new information surfaced because it's useful and appropriate.
Very few contribute to such posts with relevant info for others. I think this is the point: sharing insightful and relevant stuff with others. But judging by the number of thanks you have, you already know this very well already
So, thanks! And glad to have you in my thread
Peace,
C.
cheatman said:
I actually wasn't expecting anyone to comment on this thread to begin with
The fact that you mentioned app2zip is perfect! I know the intent is not to deny my effort, in fact, I am happy new information surfaced because it's useful and appropriate.
Very few contribute to such posts with relevant info for others. I think this is the point: sharing insightful and relevant stuff with others. But judging by the number of thanks you have, you already know this very well already
So, thanks! And glad to have you in my thread
Peace,
C.
Click to expand...
Click to collapse
have trying to put 5 apk files on data/app exactly doing what it's in your post, then rename it to apk.zip, but when i'm trying flashing from cwm it's geting error
E:Can't open /sdcard/apk.zip
(bad)
Installation aborted
do I miss something??
edit: i'm using data_skeleton.zip
Make sure you don't extract the ZIP. Open it and add files. If you extract it, you get that error message (usually). That is a problem related to the unzip process in CWM, it's not very "compatible"
I have also re-upped the DATA CWM zip, maybe it got borked in the process. So download again from first post. It works on my tab. You can test it by just getting the zip and flashing it empty, like that.
cheatman said:
Make sure you don't extract the ZIP. Open it and add files. If you extract it, you get that error message (usually). That is a problem related to the unzip process in CWM, it's not very "compatible"
Click to expand...
Click to collapse
No dude, I do not extract the zip file, I do exzctly what you said in 1st post, just open it with winrar, look for Data-app, then adding apk files on app section/folder inside the zip files, i just try once again to make sure, and i just add 1 different apk file, but still not work, btw i always use this same method before when I' want to replace boot animation for ICS CM9 ROM and adding some apk file to ROM file, and it's always work.
cheatman said:
I have also re-upped the DATA CWM zip, maybe it got borked in the process. So download again from first post. It works on my tab. You can test it by just getting the zip and flashing it empty, like that.
Click to expand...
Click to collapse
will try this one..,
EDIT: have try your 2nd Data_skeleton.zip, it's work when flashing from cwm with or without add apk files, but not with previous zip file, thought the problem it's coming from your zip file..,
Glad the second one works!
Thanks for letting me know the first zip was borked!
Its a good thread man, makes creating flash able zips simple, you should also look into zipsigner2 on the play market
Sent from my LG-P999 using Tapatalk 2 Beta-2
Thx for the great work!!
Does this one only works for apks?? say i would like to add some files to system/bin or system/lib what do i need to add??
Thx again
You need to create the appropriate folder structure on your PC/Laptop/Mac drive (system/bin or system/lib as per your example) and add it to the archive.
Do not create the folders directly inside the archive as they seem to get borked. Instead archive the folders after you create them locally. It also works if you extract the skeleton archive as an example, delete the "system" folder from inside it and add to the archive the system folder from your drive to replace the original one.
Sounds more complicated than it is. With these CWM Zips you can create any zip that changes either "/data/*" or "/system/*"
Anything, including full ROMs, libs, firmware etc (i.e. except kernel!) can go inside. Play with them. You can't mess your tab with them. Worst case, you need to flash again your ICS copy and factory reset...
Peace,
C.
yeah jejeje i just mess up i am trying to flash a sound driver for my phone (by the way it works in my live with walkman) but they are not working so.
but it is great because i was able to use your file to flash my phone it seems to be universal.
thx again for your work.
Is it possible for this to work for radio images?
Sent from my Nexus S 4G using Tapatalk 2 Beta-5
No, it can't be used for radio images.
First off, radio images need to be flashed (i.e. not copied to a folder as this script does) and secondly because as far as I know with the latest versions of CWM don't support this anymore.
The old zips used to flash radio don't seem to be supported anymore. I recently encountered this problem while flashing a friend's HTC Buzz/Wildfire. So, no, I have no idea how to flash radio using CWM anymore. You can flash using Odin, though...
Peace,
C.
cheatman said:
You need to create the appropriate folder structure on your PC/Laptop/Mac drive (system/bin or system/lib as per your example) and add it to the archive.
Do not create the folders directly inside the archive as they seem to get borked. Instead archive the folders after you create them locally. It also works if you extract the skeleton archive as an example, delete the "system" folder from inside it and add to the archive the system folder from your drive to replace the original one.
Click to expand...
Click to collapse
Ah, this explains how come my /system/app zips were coming out fine but my /system/framework were messed up, thanks for the explanation.
I wonder if it's possible for a small tutorial in how to add our own text to a zip when it's being flashed.
I guess I could reupload the zips without the intro section (stating my nickname and galaxy tab / version etc.) if I weren't so lazy...
The problem with changing the text is that although a tutorial can be made, it requires external tools and such, which would make this waaay to complicated and out of the scope of this thread.
For your purposes (I assume you are using some version of Windows), here's my advice: extract the Zip archive, look for the "updater-script" file, change it and make sure you run it through a "dos2unix" tool to convert CR/LFs. Then add it back to the archive.
To everyone else: if this doesn't work for you, just stick to adding apps to the zip. You should be safe, there's no need to edit any files anyway!
Peace,
C.
Great, apparently it was just that simple, worked great, <3
Dumb question - is this only for Galaxy tab? Or can I use it on my Captivate?

[HELP]Implement Swipe to remove notification for GB

Someday I found this:
[HOWTO]Implement Swipe to Remove Notification
I like this function but my phone can't update to 4.1.2 (I8160-TGY don't have JellyBean Firmware...)
So I tried to modify it.
But deodex the whole ROM is a hard work.
So I found this:
[Toturial][Windows] How Editing The ODEX framework files? [Simplified]
I tried to decompile framework.odex ,and compile without modifications ,then my phone can boot normally.
So I'm sure this method is possible.
========================
So now I know how to decompile and compile.
And I find many thread about this but I still have no idea...
Even if I can compile it after modify, I still got bootloop.
Here is my deodexed framework.jar and SystemUI.apk:
https://www.dropbox.com/s/vj5u68g4qfo7zwp/Desktop.rar
Can any devs help me to modify it?
THANKS A LOT!!!
changes umanalm
I found that if I compile and decompile again, some string become different.
So now I don't know how to decompile correctly........
I use baksmali1.4.2 and decompile via command line:
java -jar baksmali-1.4.2.jar -a 10 -x framework.odex
When you compile apk your output is not signed. that is reason why you cant boot
here is what to do
1. Open output apk with 7-zip
2. Open original apk with 7-zip
3. Take meta-inf folder from original and drag to new apk
4. You will have signed apk and you can push it to your device
hope this will help you
btw. for decompiling i use
apktool d path\original.apk path\outputfolder
for compiling
apktool b path\outputfolder path\output.apk
Rox said:
When you compile apk your output is not signed. that is reason why you cant boot
here is what to do
1. Open output apk with 7-zip
2. Open original apk with 7-zip
3. Take meta-inf folder from original and drag to new apk
4. You will have signed apk and you can push it to your device
hope this will help you
btw. for decompiling i use
apktool d path\original.apk path\outputfolder
for compiling
apktool b path\outputfolder path\output.apk
Click to expand...
Click to collapse
I know that.
Because my phone haven't DEODEX, so I Just put classes.dex into framework.jar and odex it.
So it's not my question, but thank you for reply.
Why dont you just deodex rom using android kitchen and do your mods?
Sent from my GT-I8160
Rox said:
Why dont you just deodex rom using android kitchen and do your mods?
Sent from my GT-I8160
Click to expand...
Click to collapse
I tried.
But I can't boot after I deodex my rom.
I use system.tar.md5 to make CWM Flashable ROM.
These is my method: (Android Kitchen version is 0.223, I already download 0.224 but I never use it....)
1.Choose 1 to decompress system.tar.md5 and make Work Folder.
2.Then choose 0 to Advanced option, and choose 11 to de-odex the whole ROM.
3.Repack a CWM Flashabe ROM.
4.Format all partition and flash it.
5.Reboot, and the screen stay in "SAMSUNG GT-I8160".
Is there any wrong? or I have to use Android Kitchen 0.224?
You probably make some mistake.
Can you post updater script to see if problem is there.
Btw. You can try copying system folder to sd card from root directory and than use it as working folder for kitchen
Edit:
Oh, you formatted all partitions? You dont need to format them you possibly lost some device specific files required for boot. Try without formatting
Sent from my GT-I8160
Rox said:
You probably make some mistake.
Can you post updater script to see if problem is there.
Btw. You can try copying system folder to sd card from root directory and than use it as working folder for kitchen
Edit:
Oh, you formatted all partitions? You dont need to format them you possibly lost some device specific files required for boot. Try without formatting
Sent from my GT-I8160
Click to expand...
Click to collapse
Thanks!
This time I make a deodexed ROM via kitchen 0.224, And flash it without formatting.
It still can't boot, and when I enter to CWM, it can't mount any partition.
So I reflash stock ROM via Odin v3.07....
Oh, few days ago I tried to make a CWM flashable zip with only de-odexed /system/app and /system/framework.
It also can't boot.......

Categories

Resources