Related
Although it does seem rom cooking is difficult, in fact, it's easy to create a simple rom, with everything you want in it. There are still a few things missing which i'll add in the next few days
Here it goes....
Lets start with a bit of theory:
Needed programs:
Cygwin
7zip
Baksmali/smali
Apk manager
Text editor (notepad ++ for example)
SGS kitchen (https://github.com/rmgeren/Android-Kitchen/tree/galaxy_s)
Autosmali: http://forum.xda-developers.com/showthread.php?t=970728
First of all, download the cwm stock deodexed rom from here http://forum.xda-developers.com/showthread.php?t=948790
This will save a lot of time since you wont need to deodex, nor to extract /system from factoryfs.rfs
There are three folders inside:
META-INF - here is where the updater-script and updater-binary are located. This files are very important, because they are in charge of making the phone copy files from the zip, symlinking etc...
updates - here is were the kernel (zimage) and modem (modem.bin) are located
system - here are all libs, apks and things that will be copied to /system
Explanation of some directories in /system
System/app:
Here are all system apps
System/framework:
By modding files here, you'll be able to theme.
System/lib:
Here are libs needed for many things to work.
System/Build.prop:
Mod this line to change the name of the rom shown in about ro.build.display.id=
System/media -
Ringtones, bootanimations and othet things are stored here
System/etc:
Here are some files you might want to mod, like hosts ( for adfree), files for gps, and you can create an init.d folder for scripts that you want to get executed at startup (if kernel supports it)
Those are all the main directories you'll need to mod
Setting up the kitchen
Download cygwin and install it. Then download rmgeren's sgs kitchen. Create a folder called kitchen wherever you want and copy all files of rmgeren's github into it.
Create a folder inside kitchen called WORKING_111111_111111
Extract the zip of the stock deodexed rom to kitchen/WORKING_111111_111111/
In case you are having any problems with it, please do take a look at this post : http://forum.xda-developers.com/showpost.php?p=5626300&postcount=3
Cleaning up system/app
I usually delete this apks:
Aldiko
Layar
Infoalarm
Dualclock
Protips
Samsung widgets
Minidiary
Writeandgo
Phonesetupwizard
Days
Pressreader
APK Modding:
For theming use method 1, for modding xml use method 2
Method 1 - right click on the apk and select 7zip and extract in /* (* is the name of the apk)
Open the folder, then res, then drawable-hdpi, and then mod the pngs you want.
Once yoy're finished, open the apk with 7zip and replace res/drawable-hdpi with the new one
Method 2-
Place the apk inThe apk modding folder (apk manager)
Open script, choose a project to work on (22 in windows), then decompile (for some apks you'll need dependencies).
Go to projects and the folder of your apk, then mod any xml you need to mod
Recompile it, it will ask if it is a system/app. Just answer Y or N.
You'll be asked another thing, type Y, press enter
Then it'll say something about a keep folder, go to the keep folder and look for the xmls you modded and delete them. In case you cant find one, delete the ones you can find and delete resources.arsc
Now press enter
You'll have an unsigned*.apk just rename it to the old ones name.
Theming
Same process that you use for apks, but this time you mod twframework-res.apk and framework-res.apk, you also mod systemui.apk for status bar
Some xml and pngs you might want to mod (framework-res.apk)
Xml:
Res/values/styles.xml
Res/values/bools.xml
Res/drawable/progress_horizontal (for colour of this bar View attachment 637481)
Png's (drawable-hdpi)
default_wallpaper.png - it's the default homescreen wallpaper
For overscroll glow:
overscroll_glow.png
overscroll_edge.png
For this (the bar you move) View attachment 637482:
seek_thumb_normal.png
seek_thumb_selected.png
seek_thumb_pressed.png
There are many more, but this are a few that are quite useful. You can easily find out about any, but in case you can't, you can just ask here and i'll be glad to answer
If you want to pre-install a theme, just copy the files of the theme into the correct places. For example system/framework to system/framework
For ctr off animation, decompile framework-res.apk, go to res/values/bools.xml
and in the line: config_animateScreenLights, turn it to false. If you want a more step by step guide, try this guide: http://forum.xda-developers.com/showthread.php?t=977501
Using baksmali/smali
To mod classes.dex, i use baksmali/smali
I use ubuntu for this, but you can use another linux distro if you want.
This is what i do in Ubuntu:
Steps to follow:
1. Get the .jar you want to mod. framework.jar for example
2. Open it and get classes.dex
3. I usually copy it to the desktop
4. Open terminal
5. Type sudo su and then your password
6. then cd /home/Coldflid/Desktop ( type the location where you have copied it).
7. java -jar baksmali-1.2.6.jar classes.dex
8. Once you've modded it, type java -jar smali-1.2.6.jar (name of the output folder)
9. A new .dex file will be generated, just replace the old one with the new one
This is what i do in windows
1. Grab the jar you want to mod
2. Open it with 7zip and get classes.dex
3. Copy classes.dex to the same folder autosmali is in
4. Run baksmali.bat
5. Make the desired changes
6. Create AutoSmali_In folder and place the folder of the decompiled classes.dex inside
7. Run smali.bat
8. Rename AutoSmali_Out.dex to classes.dex and replace the old one in the .jar with the new one (using 7zip)
Finishing the rom
Now that you've finished with modding, theming etc... Now replace apks with new ones, add a few that you want, and copy libs if needed.
You can add ringtones from other phones to system/media, bootanimation of sgs ii etc...
Replace the kernel with the kernel you like the most, and the modem with the one that works best for you.
Now it's time to zipalign. Open cygwin, type cd c:/ * (where * is where you have the kitchen). Press enter
type ./menu, then press enter
Now you just select the zipalign option.
When it finished, select all three folders of the rom and right click, 7zip, add to file, zip, name it and then you're good to go.
Install it using cwm.
If you want to make it flashable through odin, follow darky's guide:
http://forum.xda-developers.com/showthread.php?t=960946
If this was useful, hit the thanks button
Hope you like it.
If there's something wrong, tell me and i'll correct it. Also post if it was useful
Thanks
rmgeren for sgs android kitchen
[Ramad] for stock deodexed roms
creator of baksmali/smali and the creator of cygwin
Daneshm90 for apk manager
Thanks to dsixda for cygwin faq, and to gazza1988 for suggesting the idea of including it in this post
Thanks to Daneshm90 for the ctr off animation tutorial i've linked to in this thread
schmittx for autosmali: http://forum.xda-developers.com/showthread.php?t=970728
Reserved...
thanks alot...will try this so how can we make wipe and non wipe? is there a way?
zaanrider said:
thanks alot...will try this so how can we make wipe and non wipe? is there a way?
Click to expand...
Click to collapse
You need to modify the updater-script
Enviado desde mi GT-I9000 usando Tapatalk
There's option for Wipe state in kitchen right?
Not interested in doing this myself, but a very informative guide, much knowledge gained......only one critisism....how about some credits ie ramad for deodexed etc etc....once again many thanks
Insanity cm 015/glitch
Thanks for the guide. Always wanted to try, now this guide make me want to do it. Thanks gain Coldflid! You are Awesome!
Hi Tweaky,
I am not a ROM cooker but hopefully I can pass info to UTO Kitchen. A lot of devs like to add "overscroll glow". Can you tell us how to revert this if possible?
I for one like the default overscroll effect like this http://www.youtube.com/watch?v=dOyWCDhlxv8
And if it is possible I would like to pass the information to UOT.
Thanks.
Hello.. I did exactly what you said in OP. Can you assist me, what if I've to add custom kernel in my custom ROM? There's option for it in Kitchen. I placed zImage into working folder, Kitchen moved it to /updates. I packed the files in zip using menu BUILD ROM in kitchen. I got bootloops..
Can you help me please?
Very nice Cold, GJ m8. Helped me a lot
cenonmin said:
Hi Tweaky,
I am not a ROM cooker but hopefully I can pass info to UTO Kitchen. A lot of devs like to add "overscroll glow". Can you tell us how to revert this if possible?
I for one like the default overscroll effect like this http://www.youtube.com/watch?v=dOyWCDhlxv8
And if it is possible I would like to pass the information to UOT.
Thanks.
Click to expand...
Click to collapse
overglow sux
Fr4gg0r said:
overglow sux
Click to expand...
Click to collapse
Same here I never really liked it.
Rahulrulez said:
Same here I never really liked it.
Click to expand...
Click to collapse
Fr4gg0r said:
overglow sux
Click to expand...
Click to collapse
I dislike it in samsung roms, but i do like it in cyanogenmod.
cenonmin said:
Hi Tweaky,
I am not a ROM cooker but hopefully I can pass info to UTO Kitchen. A lot of devs like to add "overscroll glow". Can you tell us how to revert this if possible?
I for one like the default overscroll effect like this http://www.youtube.com/watch?v=dOyWCDhlxv8
And if it is possible I would like to pass the information to UOT.
Thanks.
Click to expand...
Click to collapse
To get rid of it, get classes.dex from the framework.jar of the rom you're running that has it, and get classes.dex from stock framework.jar
Using baksmali, decompile classes.dex from both.
Then get the overscroll glow source. Open the decompiled classes.dex folder of the stock one and the source. Find the files that have been modded and copy them to the folder of the decompiled classes.dex of the rom that has the overscroll glow.
Then use smali to compile it back to classes.dex and then copy it into framework.jar
This will become easier as soon as i post the baksmali/smali guide.
Anyway, i'm going to upload the JVP original scroll source.
Rahulrulez said:
Hello.. I did exactly what you said in OP. Can you assist me, what if I've to add custom kernel in my custom ROM? There's option for it in Kitchen. I placed zImage into working folder, Kitchen moved it to /updates. I packed the files in zip using menu BUILD ROM in kitchen. I got bootloops..
Can you help me please?
Click to expand...
Click to collapse
I wouldn't use the build rom option, much better if you select the folders and make the zip with winrar or 7zip.
Just extract ramads deodexed stock rom zip, and change the zimage in /updates, then compress META-INF, system and updates into a zip and you have ramad's stock deodexed rom with the kernel you chose. Same process for every rom (location of zimage may vary though, some devs tend to place zimage in other folders)
somberi said:
Thanks for the guide. Always wanted to try, now this guide make me want to do it. Thanks gain Coldflid! You are Awesome!
Click to expand...
Click to collapse
Thanks. there's no problem in trying and seeing what you can do, you may prove to be the best rom cooker
slaphead20 said:
Not interested in doing this myself, but a very informative guide, much knowledge gained......only one critisism....how about some credits ie ramad for deodexed etc etc....once again many thanks
Insanity cm 015/glitch
Click to expand...
Click to collapse
Will add the credits as soon as i add the baksmali/smali part
Rahulrulez said:
There's option for Wipe state in kitchen right?
Click to expand...
Click to collapse
Yup, but it'll work on update-script only, (amend scripting) which you can't use in older versions than cwm 2.x
Wipe/no wipe is just if it deletes /dbdata and /data or not.
Vertumus said:
Very nice Cold, GJ m8. Helped me a lot
Click to expand...
Click to collapse
Thanks, glad it was useful
Thing's i'll add today:
Baksmali/smali tutorial
I'll upload META-INF no wipe and META-INF wipe that you can use
Modding the updater-script tutorial
So wiping data means only recursive deletion of /system, /cache, /data and datadata. am i right??
One more thing. when i zip the rom contents using winrar or 7zip, what compression settings should be used?
Rahulrulez said:
So wiping data means only recursive deletion of /system, /cache, /data and datadata. am i right??
One more thing. when i zip the rom contents using winrar or 7zip, what compression settings should be used?
Click to expand...
Click to collapse
Wiping data means wiping /data (where apks you've installed are stored) and /dbdata (where the data of the apps is stored)
Just use winrar, select the folders, add to file, and you type a name and in file format you choose zip
Hi i have done all my modding and themeing etc, but as i follow instruction to zipalign
i do cd c:/kitchen then ./menu (as instructed) and all i get is constant error messages
ie scripts/check_binaries: line 12: clear: command not found
lots of stuff about asking for help for htc android kitchen
ignore and proceed anyway? y or n
i type y and then get another one saying "gcc" is not installed
y or n to continue?
then perl, then wget, then cpeo, then i get a menu, should i be getting those error messeages and is it safe to continue?
EDIT can i suggest the OP links to this post as it contains info on how to setup the rom kitchen properly, and avoids errors like the ones i am experiencing,
Hey awesome guide. Have been trying to learn.
Heres my question if i wanted to use a premade JVP theme such as crysis or any of those that works on deodexed ROMS such as the ones from that section how would i do that?
Thanks and awesome guide
EDIT: Alright I got it booting finally I just have 4 more questions and then Im done.
1. For the captivate port how did y'all fix the home button fix, I have a flashable zip I created that fixes the home button but I know that used to be a problem on the old i9000 2.3.3 ROMs, so I'm just wondering how you implement that
2. How do you implement the CRT Screen Off Animation
3. If I wanted to use this theme http://forum.xda-developers.com/showthread.php?t=1083188 in my ROM how do I implement it into the ZIP?
THank you so much!
I want to integrate TalonDEV modem in JVP..
I found this in kernel updater-script of JVP zip (CWM flashable)
Code:
show_progress(0.200000, 80);
ui_print(" ");
ui_print("Installing Primary Kernel...");
run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml7");
show_progress(0.200000, 90);
ui_print(" ");
ui_print("Installing Secondary Kernel...");
run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml8");
Whereas, in TalonDev modem's updater-script, it is written like this -
Code:
set_perm(0, 0, 0755, "/tmp/bmlwrite");
ui_print("Flashing kernel...");
run_program("/tmp/bmlwrite", "/tmp/zImage", "/dev/block/bml7");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
ui_print("Done. Please reboot.");
Somehow, I'm finding it difficult to know the different between these two. There's redband_ua in ROM's updater-script. Is it necessary? Or I can replace it with the script from Kernel's updater-script?
Please tell me meaning and difference between following lines -
run_program("/tmp/bmlwrite", "/tmp/zImage", "/dev/block/bml7");
and
run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml7");
run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml8");
totally confused in bml7 and bml8. Kernel needs to be restored in both bml7 and bml8? Because in TalonDev's kernel installation script, it is given ONLY bml7
Please help me
Is there any way to run smali, baksmali on windows?
Rahulrulez said:
Is there any way to run smali, baksmali on windows?
Click to expand...
Click to collapse
Yes. Works a charm. Syntax is:
java -jar baksmali.jar
java -jar smali.jar
Obviously you need java installed
This isn't necessary anymore, the dsixda kitchen now fully supports our phone.
Get the dsixda kitchen from HERE. And unzip it to a place of your choosing.
REMINDER: This will only work on Linux and/or Cygwin. Tutorials for that are on the kitchen page.
Thx for sharing your knowledge...it can give a massive headache when u don't know a thing about this stuff, like me..i will learn with my die-hard mode ..
anyway I have a question for you..about bootanimation on your v2 rom..how you disable it.? How you do that.?sammy using a proprietary file for his bootanim rite.?a .qmg file,am I rite? How you do that.? Seriously,i do wanna know..
I'm more interested on modding theme,crt anim,etc...but my knowledge limit my passion...
sent from another space
jahlee said:
Thx for sharing your knowledge...it can give a massive headache when u don't know a thing about this stuff, like me..i will learn with my die-hard mode ..
anyway I have a question for you..about bootanimation on your v2 rom..how you disable it.? How you do that.?sammy using a proprietary file for his bootanim rite.?a .qmg file,am I rite? How you do that.? Seriously,i do wanna know..
I'm more interested on modding theme,crt anim,etc...but my knowledge limit my passion...
sent from another space
Click to expand...
Click to collapse
Allow me to answer on behalf Just insert this into build.prob:
debug.sf.nobootanimation=1
Boot up actually faster! Get more build tweak here:
http://www.android-hilfe.de/root-ha...imus-3d/145592-tweaks-scripts-collection.html
cowithgun said:
Allow me to answer on behalf Just insert this into build.prob:
debug.sf.nobootanimation=1
Boot up actually faster! Get more build tweak here:
http://www.android-hilfe.de/root-ha...imus-3d/145592-tweaks-scripts-collection.html
Click to expand...
Click to collapse
Actually THIS is the original thread. The one you linked to gives no credit to knzo for his discoveries. (I know you didn't mean anything bad though )
KezraPlanes said:
Actually THIS is the original thread. The one you linked to gives no credit to knzo for his discoveries. (I know you didn't mean anything bad though )
Click to expand...
Click to collapse
sorry! didn't mean it, was googling those property based on your build.prob and it just land there!
I also just learn thru a hard way that after compiling acro68 kernel, I need to copy the dhd.ko module into the ROM. Finally able to get wifi!
cowithgun said:
sorry! didn't mean it, was googling those property based on your build.prob and it just land there!
I also just learn thru a hard way that after compiling acro68 kernel, I need to copy the dhd.ko module into the ROM. Finally able to get wifi!
Click to expand...
Click to collapse
I forgot to mention that, sorry xD
And I know you didn't mean it, it's okay Just always look on XDA first
KezraPlanes said:
I forgot to mention that, sorry xD
And I know you didn't mean it, it's okay Just always look on XDA first
Click to expand...
Click to collapse
You provide more than enough! Your first optimized ROM! I learn a lot by looking at it. Then, with this tutorial, I was able to build my first customized ROM by following exactly that you wrote.
You should change the "**MIGHT**" work to "**SURELY**" work!
cowithgun said:
You provide more than enough! Your first optimized ROM! I learn a lot by looking at it. Then, with this tutorial, I was able to build my first customized ROM by following exactly that you wrote.
You should change the "**MIGHT**" work to "**SURELY**" work!
Click to expand...
Click to collapse
Thanks for the compliment.
I will keep the **MIGHT** because there are always people who try crazy things (me included) like random porting of ROMs so it's safer this way. xD
If anyone interested to try compile acro68 kernel, I recommend to look into this link: http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source
Very detailed, step by step and only need to change the kernel source to point to: https://github.com/arco/samsung-kernel-ancora/tree/gingerbread (for GB)
Once the make is successful, you will get an zImage.
Now, in Kitchen, you should have already use option 20 to extract the boot image. Replace the newly generated zImage to get a shiny new kernel. Of cause, you need to pack it back and finally build your ROM.
Finally, replace the ./samsung-kernel-ancora/drivers/net/wireless/bcm4329/dhd.ko to ROM's system/etc/wifi/dhd.ko.
cowithgun said:
Allow me to answer on behalf Just insert this into build.prob:
debug.sf.nobootanimation=1
Boot up actually faster! Get more build tweak here:
http://www.android-hilfe.de/root-ha...imus-3d/145592-tweaks-scripts-collection.html
Click to expand...
Click to collapse
Thanks for that link..appreciate that..? Will testing rite now..
Sent from another space
Can we use this for the exhibit ii
via Dan swagger
Actually, regarding the instructions in Post 1, you could probably skip all of them and do this only:
Rename the file tools/edify_defs/GT-I9001 to: GT-I8150
Kezra if i wanna change the launcher just delate the touchui.apk on the app folder and add some launcher? Heheh sorry for the noob question im a complete noob on rom building
Sent from my GT-I8150 using XDA App
can anyone help mee??? if i wanna install my modified rom i get error in cwm (bad) can't open ;( why?
DarthJonathan said:
Kezra if i wanna change the launcher just delate the touchui.apk on the app folder and add some launcher? Heheh sorry for the noob question im a complete noob on rom building
Sent from my GT-I8150 using XDA App
Click to expand...
Click to collapse
try to answer your question, corect me if im wrong XD
just delete a TWLauncher.apk and replace with your launcher, don't forget to change the permission XD
Hello guys,
Latest Arabic rom link :
Here
Could you please make this rom deodex ?
I am trying to make it using dsixda kitchen but I could not.
i found something in this forum....can this mathod used for sgw?look likes same i follow some of the guide.....
Hey Guys,
I am going to explain some of the files in a custom rom,the small and easy to mod files because the aim is to educate newbies and NOT advanced devs.
Ok,So,I have seen a lot of questions being asked nowadays about making custom roms.This guide is NOT about building a custom rom but about editing and modding it.I am doing this guide taking CM7 as base,not stock,so there might be differences between the roms you choose to mod.Also,I am prone to mistakes here and there.If i made any,please comment about it and i will remove it.Also,please feel free to give your suggestions about making this guide better
What you would need:
Notepad++
WinRar or any other zip/rar manager like 7zip or WinZip
If you want go advanced,you would also need these things
Cygwin
Smali/Baksmali
APK Multi tool or anything like that,i dont care
And most importantly,a brain and eyes(So,Dont ask me stupid questions like,how de fuk du i xtarct? and then in brackets,sorry for my english)
GUIDE:
So,first up,download a rom of your choice(Dont forget to get the permissions for modding from the developer) and extract it.When you extract it,you will see 2 folders and 1 file,it varies.It depends on the contents of the rom.
The folders are:
1.META-INF
2.system
The file:
1.boot.img
So,
Open up system and the first folder you are going to see is 'apps'.
As you already see,this is the place where all the apps go,for the history.You might also see some .odex files below the apps.So,if you remove an app,you should delete the odex file too.If you want to add an app,just drag and drop Take care not to delete each and every app you find,because each of them has their own functions.Also,if you delete contact.apk and replace it with a better dialer like Exdialer,you wont be able to add or delete contacts.So,there are some files better left alone.
If you want to know how to merge them,then use google,there are a lot of tutorials on deodexing.If you want to edit an app,then use APK multi tool,again please use google,lots of tuts on this one too.
Also,you will find an app here and its a main one,systemui.apk By editing systemui.apk,you can get transparent status bars,transparent notification bars,centre the clock.Things like that.The idea with which you edit Systemui.apk and framework-res.apk,thats how your rom is going to look like.These files handle the visual things and they are awesome too.For some systemui mods,refer HERE
Next,the 'bin' folder,this guide is aimed at the noobs,so nothing about this,this is a bit advanced stuff,so sorry.
Next up,the 'etc' folder.There are a lot of things that go here.I wont be going to full details for the moment because i am having exams,so no time.However,i will be explaining the easy to explain files.
One thing you will notice is the 'init.d' folder.If you want to add any script like LagFree v2,just put the files of the init.d folder in the script's folder here,nothing else.You dont need to copy any other files like META-INF.
Another file,is CHANGELOG-CM,just as the name suggests its a file giving you changelogs
Another file is NOTICE.html..Its just a file showing copyrights and all that stuff.You wouldnt need to edit that,would you?
Will add more about the other files soon
Next,the 'fonts' folder..You guys need an explanation for that??
Next,'framework' folder.Here you will find framework-res.apk(Obviously,duh...).I wont tell about any other file because this is aimed at new users,not advanced guys.Framework-res is where all the icons in notification bar are.The battery icons,they are all in framework.Also,lockscreen icons
go here..Most of the icons.If i have to start on anything.It would take me weeks,theres so much to write about framework.Also take care not to mess up the framework.Because its like the skeleton(thats what i know ) of a rom.If a framework is incorrectly configured,the rom wont boot.So,keep that in your mind always when you edit framework.
Next,the 'libs' folder,This guide is aimed at newbies,so not touching this part.
And comes 'media'..Most probably you will find 2-3 folders here.Audio,bootanimation.zip and wallpapers.
If you want to change the default,its in build.prop,not here,i will explain that later.If you need to add some audio,its just drag and drop,nothing much,just put them in the right folders,like alarms,ringtones and notifications
If you need to add wallpapers,reszie the pictures to 640x480,thats the resolution that works for ace.Also resize it to 107x80 and save it as another pic with a _small at the end.For eg,the default file is defaultwallpaper.jpg,you make another pic with 107x80 called defaultwallper_small.jpg.
Then,theres the bootanimation.zip..However way you change this thing.Always name it bootanimation.If you want to know how to make a boot animation,then refer freeyourandroid.com
Next up is 'tts' folder..Sorry but i dont know much about this folder.I think this folder contains the languages for the tts app but i am not sure about it.Same goes for 'usr' and 'wifi' folders.But since this thread is aimed at newbies,i dont think there wouldnt a point in writing them up anyway
Next up is build.prop file.Open it with notepad++...build.prop file is pretty self explanatory.
Here you can change the most basic things like the android version that setting shows..Wondered how people are making 2.3.4 look like 4.0.3 in settings??Its build.prop.Also,you can change what 'About phone' shows here.
Other things,you can change things like,how long your wifi scans,how much battery your phone saves while in sleep,Dalvik VM heapsize and default ringtones.If you are wondering what # stands for,it signifies that,that particular tweak is not running,so you can take out the # if its a tweak you like.You could also use it say things like,Additional build properties.You could make it #AdditionalBuildProperties and go to the next line and give your tweaks there.Some build.prop tweaks can be found in slaid480's thread in Galaxy Ace S5830 titled "[MOD]Build.prop tweaks for SGA" or you can go to freeyourandroid.com and find some tweaks there,however the tweaks listed there are universal,so practise caution when playing with build.prop
Now to boot.img..Theres an awesome guide about this in freeyourandroid.com Please have a look at it,because there are lots to write about this one.This is where Cygwin comes in,for instructions on unpacking and repacking and commands and info about boot.img,referHERE and HERE.My summarized version,boot.img is where you can replace kernels.This is where you can make those low-level changes
Then,to META-INF folder.You would find lots of folders here but the file that you would edit consistently is update script.Find it and open it with Notepad++..Unless you edited xbin and bin files,this is not hard to do..Just change around ui_print to what you like.Dont touch anything else if you dont know what you are doing.If you DID edit xbin or bin files,you would need to touch advanced things like symlink tagged ones(I had to give them some sort of a tag)
Now on making it a flashable zip,archive them to a zip file.Get a signer here: http://forum.xda-developers.com/show...96&postcount=2
The instructions on using that are given with it.Just rename it back to the name you like after signing it.
ganesh...will this work on stock ROM ?
Sent from my GT-I8150 using xda premium
When i build the Rom, do i have to zip and sign, or not?
bagux said:
When i build the Rom, do i have to zip and sign, or not?
Click to expand...
Click to collapse
You better sign it. xD
I created a Custom rom using dsixda kitchen and all the roms work fine until i deodex them and add su permissions the rom doesnt boot and if use the boot.img file after building the custom rom i get a Status 7 error for the tmp\boot.img file
i reffered some sites it says this is a problem with the updater-script
can someone help me out with this error
yup...the problem comes from the updater script. you need to replace the updater script with the modified one. if you need to install only the rom (without the kernel) you can find one in my post. check my sig about customizing a rom. if you want to install the kernel you need to modify the script used to install the kernel. the other way, you can install the kernel separately with faqbly or mai77's method.
SSSidGGG said:
I created a Custom rom using dsixda kitchen and all the roms work fine until i deodex them and add su permissions the rom doesnt boot and if use the boot.img file after building the custom rom i get a Status 7 error for the tmp\boot.img file
i reffered some sites it says this is a problem with the updater-script
can someone help me out with this error
Click to expand...
Click to collapse
boot.img is for kernel and you can install it after installing ur rom... and yes, wenever u deodex ur rom it will show bootloop so u can manually deodex ur rom, if u add su permissions then nothing would happen.. another solution to make deodexed rom to work could be by replacing the META-INF from another rom. u can make ur kernel work by copying the META-INF from a rom which has custom kernel in it
SOURCE:i hav tried all this
I have installed the roms without the kernel but the problem is i want it to be deodexed and if i build a rom which is deodexed without the boot.img file the phone is stuck at the samsung galaxy y boot screen
can u put up a detailed explanation on how to make custom roms and all plz i really need help
i have reffered a lot of post but the only working method was of dsixda kitchen and
the roms only boot if i just rename it and build it if i add any su or deodex the phone doesnt boot
hell_lock said:
boot.img is for kernel and you can install it after installing ur rom... and yes, wenever u deodex ur rom it will show bootloop so u can manually deodex ur rom, if u add su permissions then nothing would happen.. another solution to make deodexed rom to work could be by replacing the META-INF from another rom. u can make ur kernel work by copying the META-INF from a rom which has custom kernel in it
SOURCE:i hav tried all this
Click to expand...
Click to collapse
Thanks for the help i will try it out
and another thing can u insert the uot kitchen theme to the custom rom without acctualy having to flash it again and again from the recovery
don't forget to clean your dalvik-cache after install your rom. in most cases it can causes bootloop if the dex file isn't match with the apk file.
SSSidGGG said:
Thanks for the help i will try it out
and another thing can u insert the uot kitchen theme to the custom rom without acctualy having to flash it again and again from the recovery
Click to expand...
Click to collapse
after getting the modded files from UOT kitchen u can directly flash them... no need of reflashing the rom..
I will try that and is the only solution to get rid of the bootloop caysed by deodexing
hell_lock said:
after getting the modded files from UOT kitchen u can directly flash them... no need of reflashing the rom..
Click to expand...
Click to collapse
no i meant getting the uot theme into the custom rom
like if i flash my rom the theme automatically gets flashed kind of that
SSSidGGG said:
no i meant getting the uot theme into the custom rom
like if i flash my rom the theme automatically gets flashed kind of that
Click to expand...
Click to collapse
Open zip folder you got after modding the files after that copy those files and replace the stock files with them for
eg: moded.zip>app>xxx.apk ---copy
customrom.zip>app> ---- paste and replace the old files
tried that already i get stuck at the main flash screen
thanks anyways
SSSidGGG said:
tried that already i get stuck at the main flash screen
thanks anyways
Click to expand...
Click to collapse
Sometime not all application can deodex in my case with ultimate deodex samsung keyboard n email can deodex. But when i try with dsixda kitchen email app can deodex.
Sent from my GT-S5360
^ he is right.. some apps cant be deodexed.. try installing the rom with no special features except su... then keep adding features one by one... dont put the modded files from UOT directly before flashing the custom rom cuz sometimes they can also lead to bootloop... first check whether ur rom is booting or not and then all kind of stuffs
if you replace the theme you 'must' clean your dalvik cache. please make sure that you also have delete systemUI.odex file in /system/app.
Can someone give a real detailed explanation on how to create a fll custom including themes in the rom and how to create kernel for that particular rom
and how to fix the status 7 bug even with other custom rom's lernel i get the same status 7 error some one plz help
and also how do i deodex without getting stuck for a bootloop
check my sig. you can also visit hell_lock's post about make a rom from kitchen. the only one method to solve your error 7 problem is by using meta-inf folder from other custom rom. for deodexing method you can see chamatht's post about how to deodex system app and framework.
SSSidGGG said:
Can someone give a real detailed explanation on how to create a fll custom including themes in the rom and how to create kernel for that particular rom
and how to fix the status 7 bug even with other custom rom's lernel i get the same status 7 error some one plz help
and also how do i deodex without getting stuck for a bootloop
Click to expand...
Click to collapse
this is u need
http://forum.xda-developers.com/showthread.php?t=1590330
&
http://forum.xda-developers.com/showthread.php?t=1616501
thanks for the reply but these are the two posts fom where i actually learned creating rom and hell_lock also had this status 7 problem
so guys using meta inf from other rom should be done after building the whole rom or during the working folder step
you can find a meta-inf folder in my post you can use that instead if you only want to install the rom without the kernel.
Thanks dude but when i add the meta inf folder during zipalign there is a error and guys i got go launcher ex as the launcher but it is not the default one i get an option to choose and i remember that i deleted the launcher.apk file
And the alarm is missing in my phone after installing this rom
:thumbup:
Sent from my GT-S5360 using XDA
PORTING GUIDE By kD
Disclaimer : I'm not responsible for any damage caused to your phone due to this guide or me! if you will point over me. I will simply laugh at you!
This isn't gonna make fully functional rom port for you! it is just the start!
Prerequisites :
1.You need one ROM of LG P350 and Other ROM from the device you want to port it
2. ADB [ Please google for that! it is Universal android package ]
3. Little Mind
Now Let's start the Port
First of all
EXTRACT Both ROMS ZIP One should be P350 ROM and Other should be the ROM you want to port!
Name P350 ROM as BASE and Other Device ROM as PORT
CHANGE KERNEL:
1. Open both BASE and PORT Folders
2. Copy & Replace Boot.img file from BASE TO PORT
3. You're Done
Click to expand...
Click to collapse
NOTE NOW BELOW DONE ALL THE FOLDERS ARE LOCATED IN SYSTEM FOLDER
CHANGE BIN FILES
1. Open BASE AND PORT Bin Folders
2. Copy the below written bin files from BASE TO PORT
Code:
am
ami304d
bmgr
brcm_patchram_plus
hci_attach
fix_permissions
ime
input
monkey
pm
port-bridge
rild
servicemanager
vold
3. You're done
Click to expand...
Click to collapse
CHANGE ETC FILES:
1. Open ETC Folder in
2. Now Delete the Below written etc files from PORT
3. Now Get these etc files from BASE and Copy them to PORT
Code:
bluetooth
dhcpd
firmware
permissions
ppp
wifi
wl
apns-conf.xml
dbus.conf
gps.conf
hosts
media-profiles.xml
resolv.conf
vold.fstab
4. You're done
Click to expand...
Click to collapse
CHANGE LIBS:
1. Open lib folder in Both PORT and BASE
2. Delete the below written libs from PORT
3. Now Copy ALL the Folders and libs which are written below from BASE TO PORT
Code:
hw
egl
libauth.so
libcm.so
libbluedroid
libbluetooth
libbluetoothd
libcamera
libcameraservice
libdiag.so
libdbus.so
libdss.so
libdsm.so
libdll
libgsl.so
libgstk_exp.so
libmiscta.so
libmmgsdilib.so
libmmipl.so
libmmjpeg.so
liblog
libnv.so
libinput.so [ it is only needed for ics and above based roms ]
liboem_rapi.so
liboemcamera.so
libhardware_legacy
liboncrpc.so
libpbmlib.so
libqmi.so
libqueue.so
libril.so
libril-qc-1.so
libsensorservice
libwebcore
libwms.so
libwmsts.so
4. Yeah! You're done!
Click to expand...
Click to collapse
CHANGE USR Files
1. Open USR folder in both PORT and BASE
2. Now Change the below given folders from BASE to PORT
Code:
keylayout
keychars
3. You're done!
Click to expand...
Click to collapse
CHANGE XBIN FILES
1. Open xbin folder in both PORT AND BASE
2. Change below given xbin files from BASE TO PORT
Code:
HCIDUMP
HCITOOL
HCICONFIG
3. You're done
Click to expand...
Click to collapse
CHANGE BUILD.PROP File
1. Open both Build.prop file with Notepad of PORT AND BASE
2. Now change the below given lines from BASE TO PORT
Code:
ro.product.board=
ro.product.model=
ro.product.brand=
ro.product.name=
ro.product.device=
ro.product.manufacturer=
ro.build.product=
ro.sf.lcd_density=120
ro.sf.hw_lcd_density=120
3. You're done
Click to expand...
Click to collapse
Now Just make zip of PORT Folder contents! Now you need to sign it!
You can sign your rom with [TOOL] RegawMOD Zip Signer v1.0 | 9-28-2010 - xda-developers
If you don't sign your rom you can disable signature verification in recovery!
Now you've finished porting your first rom! I'm not 100 % that it will boot but most likely it should boot up! if it don't boots! Adb logcat is still there!
Hit thanks if you liked my work!
nc tutorials..
but i think you have to give links.
for the roms?
and put some pics and videos for complete tutorials.
bcoz for a newbies like me. its to complicated to understand.
but thanks anyway
Will do that soon thanks for recommdation :d
And yeah don't say thanks press thanks is sexy
rom2maru said:
And yeah don't say thanks press thanks is sexy
Click to expand...
Click to collapse
LOL. i already press it. sory for that .
Sent from my LG-P350 using xda premium
Anyway plz have a try porting with this menthdod :d
rom2maru said:
Anyway plz have a try porting with this menthdod :d
Click to expand...
Click to collapse
i will try it later. for now im too busy with my work.
Sent from my LG-P350 using xda premium
ohh ok no problem ;D
n1ck018 said:
nc tutorials..
but i think you have to give links.
for the roms?
and put some pics and videos for complete tutorials.
bcoz for a newbies like me. its to complicated to understand.
but thanks anyway
Click to expand...
Click to collapse
yes please, some pics and links
pd: may pass this rom to p350?: http://forum.xda-developers.com/show....php?t=1836116
rom2maru said:
THIS IS THE PORTING GUIDE FOR YOU ALL. SO GUYS YOU CAN ALSO BE ANDROID DEVELOPER.....
NOTE : THIS GUIDE IS FOR PORTING P500 ROMS TO P350 BUT ONLY OLD BASEBAND. YOU CAN TRY WITH VARIOUS DEVICES LIKE GT540 BUT P500 IS BEST FOR PORTING..
IMPORTANT : I'M NOT RESPONSIBLE FOR ANY HARM CAUSE TO YOUR PHONE. IT WILL NOT DO ANY HARM BUT THEN ALSO SAFETY IS NECCESSARY...
'''''''''''''''''''''''''''''''''''THIS WILL NOT MAKE A FULLY FUNCTIONAL ROM'''''''''''''''''''''''''''''''''''''
Code:
FIRST OF DOWNLOAD The Rom You Want to Port and One Rom For Base
NOW COPY BOTH THE ROMS SOMEWHERE
NOW EXTRACT BOTH THE ROMS
''''''''''''''''''''''''''''''''''''SO NOW THE PORTING STARTS'''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''
Code:
OPEN BOTH THE FOLDERS
NOW RENAME BOTH THE FOLDER AS The rom you want port AS PORT
AND The ROM Which u take as base AS BASE
NOW OPEN BOTH PORT AND BASE FOLDER
SO GUYS NOW PORTING STARTS :
Code:
first copy this boot.img from base folder to port folder. boot.img is main
NOW OPEN THE SYSTEM > BIN FODLDER AND COPY THIS FILES FROM BASE TO PORT
Code:
am
ami304d
bmgr
brcm_patchram_plus
hci_attach
fix_permissions
ime
input
monkey
pm
port-bridge
rild
servicemanager
vold
NOW OPEN SYSTEM > ETC FOLDER AND COPY THE FOLLOWING FILES FROM BASE TO PORT BUT FIRST DELETE THIS FILES FROM PORT
Code:
bluetooth
dhcpd
firmware
permissions
ppp
wifi
wl
apns-conf.xml
dbus.conf
gps.conf
hosts
media-profiles.xml
resolv.conf
vold.fstab
THIS WERE THE ETC FOLDER FILES NOW GO TO SYSTEM > LIB FOLDER AND COPY THIS FILES FROM BASE TO PORT. BUT FIRST DELETE THAT FILES FROM PORT
Code:
modules
hw
egl
THIS THREE WERE FOLDER NOW THE LIBS. COPY IT FROM BASE TO PORT
Code:
libauth.so
libcm.so
libbluedroid
libbluetooth
libbluetoothd
libcamera
libcameraservice
libdiag.so
libdbus.so
libdss.so
libdsm.so
libdll
libgsl.so
libgstk_exp.so
libmiscta.so
libmmgsdilib.so
libmmipl.so
libmmjpeg.so
liblog
libnv.so
liboem_rapi.so
liboemcamera.so
libhardware_legacy
liboncrpc.so
libpbmlib.so
libqmi.so
libqueue.so
libril.so
libril-qc-1.so
libsensorservice
libwebcore
libwms.so
libwmsts.so
THIS WERE THE LIBS THAT WERE NEEDED FOR PORTING
NOW OPEN THE SYSTEM > USR FOLDER NOW COPY THE TWO FOLDERS FROM BASE TO PORT BUT FIRST DELETE THAT FOLD FROM PORT
Code:
keychars
keylayout
THIS WERE THE USR FILES NEEDED FOR PORT
NOW OPEN THE SYSTEM > XBIN FOLDER AND COPY THE THREE FILES FROM BASE TO PORT
Code:
HCIDUMP
HCITOOL
HCICONFIG
SO GUYS NOW THE LAST PART OF PORTING THAT IS BUILD.PROP. OPEN THE BUILD.PROP FROM SYSTEM > BUILD.PROP OPEN IT USING NOTEPAD. OPEN BOTH BASE ND PORT BOTH BUILD.PROP
NOW U NEED TO CHANGE THE FOLLOWING FROM BASE TO PORT
SO GUYS JUST CHANGE THIS FIELDS FROM BASE TO PORT AND ADD ONE LINE AT THE END
SO GUYS SAVE IT AND CLOSE BOTH THE FOLDERS. NOW YOU JUST NEED TO CREATE ZIP OF IT (DONT MAKE FOLDER ZIP MAKE CONTENTS ZIP)
AND GUYS FOR SIGNING DOWNLOAD ZIP SIGNER FROM HERE AND SIGN IT
[TOOL] RegawMOD Zip Signer v1.0 | 9-28-2010 - xda-developers
IF NOT SIGNED THEN AT THE TIME OF FLASHING TURN OFF ZIP VERIFICATION. SO GUYS YOU HAD GOT UR OWN ROM. NOW YOU ARE ANDROID DEVELOPER
Enjoy Porting !
Click to expand...
Click to collapse
your tutorials are always awesome :good:
i want to ask that can i port cm 10 of p500 to our device using cm 7 or cm 9 of our device????????????????????
if yes then.....
i tried with cm 9 but when flashing got error like getprop ro.product.name == p500 and unknown commands so what can be cause??????
pkprasanna said:
i want to ask that can i port cm 10 of p500 to our device using cm 7 or cm 9 of our device????????????????????
if yes then.....
i tried with cm 9 but when flashing got error like getprop ro.product.name == p500 and unknown commands so what can be cause??????
Click to expand...
Click to collapse
I had this error when porting a rom CM9 from p500 to p350, but I exclude this part of the update script, and the rom installed, however it is not on the screen starts Penguin.
Re: ICS
gabripop said:
I had this error when porting a rom CM9 from p500 to p350, but I exclude this part of the update script, and the rom installed, however it is not on the screen starts Penguin.
Click to expand...
Click to collapse
I have the same problem ...
prachetas13 said:
I have the same problem ...
Click to expand...
Click to collapse
I do not think there is a kernel that works legally in the CM9 p350 must be why the system does not start ...
Its a problem of updater-script.
There is a line starting with assert(getprop(.....
Delete this line...
If you find any other line starting with this then delete them also.
And you can only port roms only with same version . Like if the port rom is cm9 than base should also be cm9.
I will try this. I have bad exeperience whith another thread, only get kernel pannic and don't boot.
But your thread look s with more details.
Sent from my LG-P350 using xda app-developers app
Sir can i port
Sir Can i port CM9 From P500 or AOKP or Slim based I mean any ics based rom ? to p350 from gt540 or p500 ? If yes i would surely like to try ;D
Hi man, I use your guide and it works, only whith 2 of P500, but i have a trouble, I can't see the status bar and the screen on calls. any tip????
Thank's for all.
Porting Rom's whith you guide.
Your_girlfriend_cheats_us said:
Hi man, I use your guide and it works, only whith 2 of P500, but i have a trouble, I can't see the status bar and the screen on calls. any tip????
Thank's for all.
Click to expand...
Click to collapse
View attachment 1457794
View attachment 1457795
this are the logcat s of both Roms, I hope not being abussing you.
Thanks for all man, U R cool.
LuisAkira2301 told me that I must add libs:
libui
libsurfarcefinger
And it really works. So, It's fixed now, Thanks man, you too.
So Release it !!!!!!!!!! Man !! and Don't Forgot to Add Credits
I want to know how hard it is to make your own custom ROM. How much time will it take me and is there a good and clear guide?
Thanks
Sent from my Galaxy Nexus using xda app-developers app
First, you should read the sticky that talks about setting up and compiling aosp. It's in General. You'll need Linux.
sent from my Google Galaxy Nexus
What results are you trying to achieve by doing your own Rom?
It really isn't hard once you're set up for it. You'll need Linux which isn't a big deal cause its free just make sure if you don't straight boot to Linux you give your VM enough space to sync a repo
Sent from my Galaxy Nexus using xda premium
Thanks everybody. I am quite a noob. Anyone knows a clear guide?
Sent from my Galaxy Nexus using xda app-developers app
Creating ROM from OTA is really easy, I don't like ROMs which is built from sources so I don't never use AOSP ROMs..
Creating Rom OTA (the easy way):
Make Custom nandroid backup via Nexus toolkit: System folder and boot files "system.img" & "boot.img"
then add system.img and boot.img to .zip file and then you have to use Ubuntu to install Dsixda's Android kitchen and then add the .ZIP file to Original_update folder.
Then open menu.sh via terminal and then choose:
"1. Set up working folder from ROM"
when it asks something then always write yes, except then if it asks do you wan't to delete recovery bla bla bla...
and when it asks about the update script then select the default one "amend bla bla bla (1)"
Now it is ready to begin modifying it..
select (0) and then (11) and de-odex ROM then add init.d support, add busybox and root permissions, extract boot.img and ipen default.prop from boot_extracted folder and change the ro.secure line from 0 to 1, then it is insecured.. build boot.img from the extracted files..
then (99) build ROM..
or download apktools and modify apps, e.g. enabling rotation from default android launcher or from lockscreen..
etc.
It's easy.. but building ROM from sources is harder and requires enough good PC with 64-bit CPU..
DDd
manumanfred said:
and ipen default.prop from boot_extracted folder and change the ro.secure line from 0 to 1, then it is insecured..
Click to expand...
Click to collapse
Wrong, ro.secure=0 IS already insecure.. And another tip: ccache.
Lol... This is a Nexus, why don't you like to build from source? That's a joke, right? Seems to me that you are holding it wrong.
sent from my Google Galaxy Nexus
manumanfred said:
Creating ROM from OTA is really easy, I don't like ROMs which is built from sources so I don't never use AOSP ROMs..
Creating Rom OTA (the easy way):
Make Custom nandroid backup via Nexus toolkit: System folder and boot files "system.img" & "boot.img"
then add system.img and boot.img to .zip file and then you have to use Ubuntu to install Dsixda's Android kitchen and then add the .ZIP file to Original_update folder.
Then open menu.sh via terminal and then choose:
"1. Set up working folder from ROM"
when it asks something then always write yes, except then if it asks do you wan't to delete recovery bla bla bla...
and when it asks about the update script then select the default one "amend bla bla bla (1)"
Now it is ready to begin modifying it..
select (0) and then (11) and de-odex ROM then add init.d support, add busybox and root permissions, extract boot.img and ipen default.prop from boot_extracted folder and change the ro.secure line from 0 to 1, then it is insecured.. build boot.img from the extracted files..
then (99) build ROM..
or download apktools and modify apps, e.g. enabling rotation from default android launcher or from lockscreen..
etc.
It's easy.. but building ROM from sources is harder and requires enough good PC with 64-bit CPU..
DDd
Click to expand...
Click to collapse
Isn't that just modifying my current ROM with my own name?
bk201doesntexist said:
Wrong, ro.secure=0 IS already insecure.. And another tip: ccache.
Lol... This is a Nexus, why don't you like to build from source? That's a joke, right? Seems to me that you are holding it wrong.
sent from my Google Galaxy Nexus
Click to expand...
Click to collapse
Building from source is a lot harder, or isn't it?
Sent from my Galaxy Nexus using xda app-developers app
It's not hard to build from source, it just takes a LONG time! Then you've gotta learn how to add mods from Gerrit code, etc. and it can be annoying.
Making a ROM using dsixda's kitchen is easier as you're using the stock image as a base so it'll work but you've then got more of a task getting new code in as you've gotta decompile it all, edit it and then recompile
mrgnex said:
Isn't that just modifying my current ROM with my own name?
Building from source is a lot harder, or isn't it?
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
Yep, then you make own ROM from the stock ROM..
Building ROM from source is different thing and harder..
---------- Post added at 02:52 PM ---------- Previous post was at 02:51 PM ----------
bk201doesntexist said:
Wrong, ro.secure=0 IS already insecure.. And another tip: ccache.
Lol... This is a Nexus, why don't you like to build from source? That's a joke, right? Seems to me that you are holding it wrong.
sent from my Google Galaxy Nexus
Click to expand...
Click to collapse
oh yeah, sorry: from 1 to 0!
I don't like AOSP ROMs, except CM ROMs but I don't want to use CM ROM on my Nexus.
Ummm. Any ROM you compile is from source. It doesn't take a long time. My dual core 2.4 GH laptop will do it in a couple hours. There are several tutorials online. If you're willing to learn it's not that hard. Compiling aosp or cm is pretty much the same process.