yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] Rolandas3:
Deodexing?

Hi, tried to make custom ROM using this tutorial. Basically it is stock ROM (JPY), but deodexed in order to make possibility to change themes :). Still, one app (infoalarm) in system/app folder remained odexed. Is it safe to flash new ROM?

Thanks a lot for answer and also for author for the tutorial

Rolandas
[Galaxy S I9000 Android Development] flores.diane02:
guys i dont get the final thing .... once update.zip is made by the kitchen where do i put this update.zip

why can't we make a .tar file to install it using ODIN

please do let us know experts as i am trying to do this on galaxy i5801/i5800 ROM JPF

please suggest
[Galaxy S I9000 Android Development] ragin:
Hey this is a half ass guide, not at all complete. You may end up suffering because you used it.

PS : The worst part is this kitchen was made for HTC users. It doesn't even support i9000.
[Galaxy S I9000 Android Development] PhilAd:
u should use the kitchen to generate the ROM and deodex/zipalign it ... everything else should be made manually by replacing files, change update(r) script and add additional scripts
[Galaxy S I9000 Android Development] AdamJuva:
Solved.....
[Galaxy S I9000 Android Development] coldflid:
For what i used it ir works fine.

It zipalligns correctly, deodexes correctly, checks update script forma error correctly.

Moreno thanx enough, the rest i do it by myself.
[Galaxy S I9000 Android Development] Rahulrulez:
If this method doesn't work, what should I do if I want to cook my own ROM?
[Galaxy S I9000 Android Development] rahul.oberoy:
hay dude thax for this tutorial ........ and plz tell me how to create it for ODIN flasheble ROM

i want to create a ROM which is to be flashed using ODIN plz help me...

thanx
[Galaxy S I9000 Android Development] g00ndu:
And it is also very interesting to find the troll to come back to the thread. :D
[Galaxy S I9000 Android Development] DjSound:
Thanks for the answer ;)
[Galaxy S I9000 Android Development] corgar:
just a question, what about deodexing system apps? why is not recommended?

i'm just seeing if kitchen can't find and odex files skip the deodexing process for that apk. and go to the next one
[Galaxy S I9000 Android Development] corgar:
got an errore while deodexing infoalarm any advice on that? already tried to deodex only that file but can't do it
[Galaxy S I9000 Android Development] Azdian:
nice work, u r kfoo :D
[Galaxy S I9000 Android Development] g00ndu:
Are you using xUltimate for deodexing? If you are, please download latest baksmali and smali jars (thanks Jesusfreke) as the xUltimate ones are not updayex.
[Galaxy S I9000 Android Development] corgar:
Alredy downloaded. I always Get an error in infoalarm
[Galaxy S I9000 Android Development] jim_panse:
If you only try to deodex the only file, the framework is missing. Copy the files of your framework folder to the folder where your apk is located. Or just use "Pull and Deodex" all.
[Galaxy S I9000 Android Development] g00ndu:
Yup, just pull and deodex all, while your com is doing the dirty work, you can make your wife a cup of coffee....
[Galaxy S I9000 Android Development] zat81:
Have someone tried to cook SMS app like Handcent SMS?
[Galaxy S I9000 Android Development] corgar:
Already Tried to deodex all always got error on infoalarm :(
[Galaxy S I9000 Android Development] corgar:
And another question. We don't have boot.img. how to create a script to flash zimage and modem? I've read to use redbend_ua but how? Thx guys
[Galaxy S I9000 Android Development] g00ndu:
This is part of the update script. Go download any custom rom and unzip it. You can see how we have structured the zImage and the modem.bin. You can download the SEARCH rom if you are interested.

Hope this helps.
[Galaxy S I9000 Android Development] g00ndu:
Did you update the baksmali and smali.jar to the latest ones? 1.2.5?

Once downloaded, renamed them to baksmali.jar and smali.jar and replaced them in the xUltimate jar folder.

Hope this helps.
[Galaxy S I9000 Android Development] Samdroid_G_S:
Sorry if this is noob but I noticed in the Updates folder you said not to change the Modem.bin but how would I go about installing another modem?

I noticed in my base rom I have a chose I have a Cache.rfs , Factoryfs.rfs , modem.bin param.lfs , sbl.bin SS_DL.dll and a zimage.

So if I wanted to use the modem from my base rom instead of the one included could I change the modem as well and use the Kernal (zimage) from there as well?

Sorry still trying to figure it all out , just got my phone back not in a hurry to brick it so I just want to be sure.
[Galaxy S I9000 Android Development] g00ndu:
Yes you can use your own modem.bin in the updates folder. For zImage you can also replace that as well. However, most customized rom is in the kernel (aka zImage). For eg., hardcore's kernel, trasig o/c kernel, supercurio kernel, lastufo's kernel. When you d/l those kernels, unzip them and you will see the zImage file. Get that file and replace the one in the updates folder.

Whatever it is, once you created the update zip, you will need to sign them. Signing them will create the SHA1 files in the META-INF folder.
[Galaxy S I9000 Android Development] wifi802.11abgn:
nice work :) thanks .....
[Galaxy S I9000 Android Development] djmarques:
I get this failure:

E: cant symlink /system/bin/cat

E:Failure at line 6

What´s wrong? :(
[Galaxy S I9000 Android Development] g00ndu:
Do you have toolbox in your update zip file?
[Galaxy S I9000 Android Development] Samdroid_G_S:
Thanks , Just curious how do I sign the files though , I found sign .apks but nothing for Zimage. What do I do with the SHA1 files?

Also is porting a theme hard to do that is not for the same firmware?
[Galaxy S I9000 Android Development] g00ndu:
Only after you created the update.zip then you sign the update zip. There is no need to sign the apks. For signing update zip, you can look for stericson's autosign program here in xda. Just run through option 1, 2, 3 and finally 4.

If firmwares are from different regions, it is trickier. If they are from same region, it will be easier.
[Galaxy S I9000 Android Development] Samdroid_G_S:
Different region firmwares :( and thanks ill check out that autosign program :).
[Galaxy S I9000 Android Development] djmarques:
Where should this toolbox be placed?

I think i have no toolbox... where do i get it?

Thanks...
[Galaxy S I9000 Android Development] manuekb:
help

Help I followed all the steps but in the end the last zip file is created inside the folder OUTPUT_ZIP gives me error when trying to open it
[Galaxy S I9000 Android Development] corgar:
We need a workaround in the kitchen. We don't have boot.img and when we try to check for error the rom we got a lot of symlink error. And i always get an error deodexing infoalarm....
[Galaxy S I9000 Android Development] g00ndu:
@corgar, typing on the sgs is a hassle, I'm not @ my pc now, but I will see what I can do once I get my hands on the pc.
[Galaxy S I9000 Android Development] g00ndu:
toolbox is placed in the /system/bin folder.
[Galaxy S I9000 Android Development] corgar:
found this link hope can be usefull for most
[Galaxy S I9000 Android Development] zat81:
Does someone know how to customize homepage icons? For instance in most ROM Marke, Gmail, Google Maps are predefined in the first screen of the home page, but if I would like to change them with my favourite apps?
[Galaxy S I9000 Android Development] djmarques:
Ok, toolbox was there...
[Galaxy S I9000 Android Development] jim_panse:
Dj, look if cat is in system/bin folder. The script gives you this error because theres nothing to symlink. Ps :hamster hier ;)
[Galaxy S I9000 Android Development] djmarques:
yeah cat is also there ...

Ps: hi hamsterchen ;)
[Galaxy S I9000 Android Development] jim_panse:
Then it should work. Did you pull the files from your Phone or did you extract the factoyfs?
[Galaxy S I9000 Android Development] djmarques:
extracted factory.rfs like in the video
[Galaxy S I9000 Android Development] jim_panse:
Weird. The script clearly says that it cant symlink it...

Can you post line 6 of your script?
[Galaxy S I9000 Android Development] djmarques:
Line 6:

symlink toolbox SYSTEM:bin/cat

When i test the update script in the kitchen comes no failure.

i think i take yours :P
[Galaxy S I9000 Android Development] jim_panse:
What kitchen? Im oldfashioned. I test on the phone. Yeah, you can take mine ;)
[Galaxy S I9000 Android Development] corgar:
kitchen doesn't work fine with sgs phone. We don't have boot.img and when i try to verify package i miss a lot of symlink
[Galaxy S I9000 Android Development] djmarques:
kitchen from this video.
[Galaxy S I9000 Android Development] corgar:
you got a kitchen for sgs? can you share a link pls?
[Galaxy S I9000 Android Development] djmarques:
This Kitchen...
[Galaxy S I9000 Android Development] Boaty:
I got the same symlink error after creating and trying to install my own ROM. However after restoring my Nandroid backup I got all my programs force closing.
[Galaxy S I9000 Android Development] corgar:
got a lot of error with that kitchen, symlink etc. Any advice on how to create a "false" boot.img?
[Galaxy S I9000 Android Development] g00ndu:
I don't think we need the boot.img at all, iirc. The workflow is as follows:

1. Download firmware.

2. Decompile tar files.

3. Decompile .rfs files using Magiciso.

4. Do whatever mod you want with the files.

5. Make update script.

6. Arrange the structure of the folders (system and META-INF) in the proper manner.

7. Zip the file up.

8. Sign the update.zip (META will be generated).

9. Upload to phone and get ready to flash.

The only hurdle now is the symlink issue. Once that solved you will be able to create your own rom.

Those with symlink issues, suggest that you compare your update script with Jim Panse's one. See the difference and modify it accordingly.

Don't forget that you may have issued a command to "del_recursive" the system folder, and as such, the cat command might get deleted too.

Hope this helps.
[Galaxy S I9000 Android Development] alexxandro84:
Excuse me, three questions:

1-Is there a Tutorial for changing colors, theme, and ICONS?

2-Can I use a JP5 ( or JPU or JPX o JPY ) PDA instead of this?

3-and then can i use the kernel voodoo 5.0.3 instead of this? and JP5 modem file?
[Galaxy S I9000 Android Development] Boaty:
I think you are almost right. I came over the symlink problem. You just have to delete all te files that are symlinked in the updater script from the folder system/bin in your working rom folder then the flash proces will move on after recompiling your update.zip. But then I came across another problem: at the following line

set_perm_recursive 0 0 0777 0777 SYSTEM:etc/init.d

The problem is that in my system folder from the factoryfs.rfs there is no folder system/etc/init.d so the script will fail at this line. If I look in Doc's rom I see this folder however, with some additional files in it, but I don't know if these can be copied and where they are for, and what they are supposed to do.
[Galaxy S I9000 Android Development] g00ndu:
Doc had included those scripts in the init.d folder. So, this is an additional folder.
[Galaxy S I9000 Android Development] jim_panse:
If you dont have files in this folder, delete the line in the script
[Galaxy S I9000 Android Development] g00ndu:
@ alexxandro84,

1. There is, not in this forum, but scattered around in the xda. Need to do a search by yourself.

2. Yes you can.

3. Yes you can.
[Galaxy S I9000 Android Development] g00ndu:
Jim, too cold to sleep? :D or you are gonna surprise users here with new rom? :D
[Galaxy S I9000 Android Development] velenoso84:
Excuse the English, you can find all the files Customer.xml in the folder CSC
[Galaxy S I9000 Android Development] zat81:
I see that other cooked rom have that folder, mine not! Why?

Anyway...the file is "others.xml" in CSC folder, but you can customize icons for default launcher by xml tag <Launcher>.

What if I had more launchers? Such as Gigerbread one or Launcher pro? How can I customize icons?
[Galaxy S I9000 Android Development] alexxandro84:
there are modem.bin, zimage and redbend_ua in Rombasics.zip

instead

there are zimage, redbend_ua and .gitignore in

http://project-voodoo.org/downloads/Voodoo-stable-5.0.1-Froyo-GT-I9000-unsigned-update.zip

I want to create a ROM based on official JP5 (Italian FW) with voodoo 5.0.1 preinstalled
[Galaxy S I9000 Android Development] jim_panse:
Take modem.bin from the fw you want and zimage from the voodoo kernel.
[Galaxy S I9000 Android Development] alexxandro84:
only these two files?

not redbend_ua and/or .gitignore?

Where can i find a JPU modem?
[Galaxy S I9000 Android Development] jim_panse:
You need redbeend to.

Jpu modem is in jpu firmware.
[Galaxy S I9000 Android Development] HBS27:
Thanks man, this seems quite interesting. I'll definitely give it a try. Has anyone successfully cooked a ROM and can report about errors and FC.
[Galaxy S I9000 Android Development] alexxandro84:
then modem and redbend from the JPU and zimage from the voodoo kernel, right?

for exemple, i downloaded JPY on Samfirmware.com and now i have JPY_JPY_JPY.tar file with:

-cache.rfs

-factoryfs.rfs

-modem.bin

-param.lfs

-zimage

but not redbend file....now?

I'm sorry, i have last question:

how do I add ITV CSC in my rom?
[Galaxy S I9000 Android Development] g00ndu:
Redbend from either jim's update zip or the SEARCH update zip file.

Take a rom that has your csc files (if currently you are on a rom that has the ITV csc in it.

Use adb to pull your /system/csc folder and also the SW_configuration.xml file to the root of the system folder.
[Galaxy S I9000 Android Development] myHercules:
No system folder

Hey thanks for making the videos. I just tried it last night, but at the building rom stage when I use cygdrive, build rom, it keeps coming back with "no system folder found".

I checked inside my CFW folder and there is a system folder, also the zip has a system folder. I used the JPY_JPY_JPY.tar, extracted factory.rfs, used magic ISO to copy the contents. I used the ROM basics folder from ur first post, add the zImage (speedmod), didn't do any theming, or add any apps. Just wanted to a basic ROM first to try the whole process out.

Have I missed something?

Thanks
[Galaxy S I9000 Android Development] sold1erjjt:
Hey big thanks for the work to put this out there, I know this sound reall noobish but I have a Galaxy s Captivate, does the same process apply to make a custom ROM? I assume yes but just to be sure. Thanks in advanced

Sent from my bullet proof phone
[Galaxy S I9000 Android Development] g00ndu:
Yes
[Galaxy S I9000 Android Development] falcon_knife34:
thanks you're awesome but i have some problems if you help me with it i will be glad
[Galaxy S I9000 Android Development] g00ndu:
Post it here, and we will try to help each other out.
[Galaxy S I9000 Android Development] falcon_knife34:
here is the problem i made all these steps to jpu rom then when i flashed my update.zip into my phone nothing changed but update.zip i changed nearly everything the,bootanimation,shutdownanimation what did i do wrong?
[Galaxy S I9000 Android Development] edici:
sweet, tutorial, will try it out tomorrow!

- Mike
[Galaxy S I9000 Android Development] lookchinz2375:
Help me please

I use this rom -> I9000XXJPU-REV03-PDA-low-CL747761.tar.md5 -> factoryfs.rfs for cooking

I try to choose "9- Check update-script for errors"

It found 60 errrors.

Example

1/86: show_progress 0.1 0

2/86: format SYSTEM:

3/86: delete_recursive SYSTEM:

4/86: delete_recursive DATA:dalvik-cache

5/86: copy_dir PACKAGE:system SYSTEM:

6/86: symlink toolbox SYSTEM:bin/cat

>> ERROR: system/bin/cat found in working folder

7/86: symlink toolbox SYSTEM:bin/chmod

>> ERROR: system/bin/chmod found in working folder

8/86: symlink toolbox SYSTEM:bin/chown

>> ERROR: system/bin/chown found in working folder

I use this cook rom in recovery mode, it is shown like this.
[Galaxy S I9000 Android Development] ragin:
This is seriously a STICKY material, what do you think? Please give your support & not let this go to a 10th or a 20th page. Just a suggestion.
[Galaxy S I9000 Android Development] jim_panse:
Pls, dont use the frkn klitchen. Test it on your own mobile phone!
[Galaxy S I9000 Android Development] lookchinz2375:
Same Error
[Galaxy S I9000 Android Development] g00ndu:
Delete line 6, 7, 8 in your update script. As the error message says, you have the actual commands in the working directory.
[Galaxy S I9000 Android Development] themate1987:
this is awesome....i can't wait to create my own rom :D
[Galaxy S I9000 Android Development] Nokia7Vista:
First, Sorry for not replying for all as I don't have time

School and exams will start soon...

========================================

& Thanks for sticking this

+ For those who have problem with compiling or creating the update.zip file, I'm searching for a new tool for fixing this
[Galaxy S I9000 Android Development] Darkyy:
>> Nokia7Vista

Great thread, thanks a lot for your effort to bring the ROM cooking closer to everyone.

I think I have some inputs for this thread... ;)

Happy new year!

- darkyy.
[Galaxy S I9000 Android Development] bigmo7:
Here's a question, how much more do you play around with ROM than illustrated in this thread? Like do you just tweak everything? :p
[Galaxy S I9000 Android Development] OzanOs:
thank you for this great tutorial!

but I got a problem. I created a Rom and if I want to flash it with CWM I got the Error "Status 4" and the install process aborts.

I used this settings

Base Rom:

I9000XXJPY

Kernel:

voodoo.advanced.v69.2

Modem:

XXJPY_Modem

Theme:

R64Theme 27-12-10 JPUXY colour animation

Apps:

added a few to data/app

Any ideas??

ps:

I wish everybody a happy new year :D
[Galaxy S I9000 Android Development] g00ndu:
You are in recovery 2e, or cwm recovery?

Did you signed your zip file?
[Galaxy S I9000 Android Development] Darkyy:
Depends on what I need to do ;)

I didn't watch the tutorial :)

I start more & more to write some bash scripts to simplify things / make things more secure.
[Galaxy S I9000 Android Development] hunhool:
Hi,

First of all,happy new year to everybody :)

Followed the instruction on the first page I created my own ROM succesfully.

BUT I cannot install it :(

Copied to sd root and try to install via cwm and just nothing happening.

Currently using xxjpy doc v7 kitchen.

I tried to install via cwm/install zip and tried to rename it to update.zip and install as an update...

Any ideas whats wrong?

There is no error messages
[Galaxy S I9000 Android Development] OzanOs:
Im trying to install it in the ClockworkMod Recovery (v2.5.1.0 SpeedMod)

and have I specially to do anything to sign it?? I think the kitchen sings it automaticly?

I cooked 2 Roms. The first one included the "update

r

-script" for the Theme and this way it just installed the theme nothing else.

Then I deleted it and now absolutly nothing happens. ("update-script" is included)

Just get the Error: Status 4
[Galaxy S I9000 Android Development] g00ndu:
To those who wants to cook their own rom, please forget about using the kitchen.

I have personally not use that kitchen myself, and I believe Jim had not used it.

And for those who has problem in flashing, you will need to sign your update zip. Stericson had provided a simple tool to sign your zip file.

Also please make sure you are in either cwm recovery, 2e recovery, voodoo kernel, speedmod kernel, else you will always encounter signature error.
[Galaxy S I9000 Android Development] hunhool:
Can you give me a link for sign the .zip

Is there any other way to cook a rom for myself?

Cheers
[Galaxy S I9000 Android Development] OzanOs:
thank you g00ndu

here you can find it

http://xdaforums.com/showthread.php?t=473580

and I think you should also delete the update-binary, cause I coulnt find this file in any CFW's I looked in.
[Galaxy S I9000 Android Development] g00ndu:
If my understanding is correct, update-script can be stand alone. Updater-script must be used in combination with the update-binary. Correct me if I'm wrong.
[Galaxy S I9000 Android Development] jim_panse:
You're wright, g00ndu.

Why the **** is this thread sticky?
[Galaxy S I9000 Android Development] webstar1:
Chill your beans jim, its sticky for new xdaers who want to try and build a rom so they have a starting point of developing and understand Moe about android. :)
[Galaxy S I9000 Android Development] g00ndu:
Bro Jiimmy, there are many aspiring rom cooks who wanna do some simple cooking. I will try my best to answer them. Maybe webstar1 can help too?
[Galaxy S I9000 Android Development] splish2010:
Seeing as Doc's school is taking a while to get off the ground, maybe Webstar, Jim, Darky and G00ndu could find the time to collaborate on their own tutorial maybe?

Only if you all have the time of course. I just think that the combined talents of you (and other devs) could help educate us noobs.
[Galaxy S I9000 Android Development] webstar1:
I don't mind, ask the rest of devs as well though.
[Galaxy S I9000 Android Development] coldflid:
Awesome!

I've just started creating my ROM basing me on the JPY.
[Galaxy S I9000 Android Development] coldflid:
I cooked a ROM based on darky's one, i just took Prolauncher and TWLauncher out so i just had the gingerbread launcher, i also preinstalled some apps.

It worked out fine, however some apps didn't preinstall :eek:
[Galaxy S I9000 Android Development] coldflid:
I've had an idea.

Why not just replace the factoryfs.rfs?

Let me explain myself, here's my methot(haven't tried it thoug, gonna try it in an hour or so):

Let's say we want to use the JPY rom as the base.

Therefore we extract the factoryfs.rfs from the JPY_JPY_JPY.tar

Then we open it with magic iso. We extract all files inside it.

We then change whatever we want, add superuser/app to system for example.

When we have everything, we go to magic iso and open the factoryfs.rfs. Then we substitute the files inside it with the edited ones made by us.

Then we save the factoryfs.rfs

We put the edited factoryfs.rfs into the JPY_JPY_JPY.tar substituting the original one.

At the end of this we have everything we want in the original one but with the new factoryfs.rfs

Therefore we can now flash it with Odin, and it should work... it should right?

I've just thought about it, let me know what you think about it.

I think it makes more sense since you are changing the factoryfs.rfs with the one you have only and nothing else.

Bye, good luck, hope it helps... and works
[Galaxy S I9000 Android Development] g00ndu:
I seriously doubt that it will work this way. Don't forget you need to tar it back, and I understand that this will be the problem.
[Galaxy S I9000 Android Development] coldflid:
You were correct, it would work (i think) if magic iso would let me overwrite the files in the factoryfs.rfs with mine, but it doesnt...

Anybody knows a program with which i could overwrite files in it?
[Galaxy S I9000 Android Development] OzanOs:
why you dont just try 7zip. I dont know if it works but I know that 7zip includes the function to create ".tar" files.
[Galaxy S I9000 Android Development] coldflid:
Im going to try it.

Thanks :)
[Galaxy S I9000 Android Development] g00ndu:
no, it won't work this way too.

I don't know which program can do it, but definitely not 7zip. Perhaps this is run in linux environment. correct me if i'm wrong again....
[Galaxy S I9000 Android Development] alexxandro84:
sorry, i want to create a rom, JPY stock + voodoo 5.0.3

watching the second video,

"base rom" folder (on the video) and "stock+Voodoo-5.0.3-Froyo-GT-I9000-XXJPY-unsigned-update" folder have different files

for example, voodoo hasn't updates folders and root file and modem.bin file, etc. etc.
[Galaxy S I9000 Android Development] coldflid:
Here's my question, i used the factoryfs.rfs file from JPY rom to base my tar file.

I added data/app folder, and everything else.

Now i compressed it into a zip.

If a copy it into my internal sd card and on clockworkmod : choose zip from sd card and i choose my zip, will it work, or will i brick my phone?
[Galaxy S I9000 Android Development] Rigolox:
Basic althought interesting, thanks.