[HOWTO][TUT] Create a Custom ROM for Samsung Galaxy i9003

What do you think?


  • Total voters
    154
Search This thread
B

bangalorerohan

Guest
Hey there,



This is a guide on How to create a ROM


For boot sound, boot animation and themeing
Installing cygwin and Setting the kitchen up!
Finalizing , de-odexing, additional option and packing the ROM

Things you will need

-Cygwin
-Android Kitchen
-Patience
-Base ROM

--All files attached at the end--

-MagicISO

PS-> WIndows 7 users set the UAC level to minimum until you finish the whole thing. And also, make sure that nothing wxcept the META-INF folder in your ROM ins capital in letters! Just a small obseravtion in my third ROM! =P

First of all, let us extract the ROM files:

As you can see, In the folder of the XXKPH ROM, you have a system.rfs file. Copy that out to a seperate folder. In case, of any other base ROM, you can find it in the PDA file.

Now use MagicISO in order to extract the system.rfs into a seperate folder!

After that, you may find something with folders like, : app, vendor,etc,media and xbin.
 
Last edited:
B

bangalorerohan

Guest
Adding your apps!

Step 2

You are done with the first step!
Now, rename the folder where you have extracted system.rfs to “System” (without quotes) and move it to another folder. Call the new folder as “Custom FW”. Now create a folder called data, in which you create a sub-folder “app”. All the apps what you want to be pre-installed and can be deleted by the user go in here. (only .apk format). If you want apps which the user can not un-install, put the .apk in system/app.
 
B

bangalorerohan

Guest
Step 3

You may want to add custom boot sound and some themes,right? Okay! So here is the method.

Cutom Boot sound
First, navigate to /system/etc and find PowerOn.wav. This will enable you to change the boot sound. Replace it with a short tone of .wav format only. Now you,have changed the boot sound

To change the boot animation

1) Download the bootanimation and samsungani file attached below.
2) Put them in the /system/bin folder and replace the existing files there
3) Now download any boot animation, and rename the bootanimation to “sanim.zip”.
4) Now, navigate to /system/media and replace the “ODEanim” with “sanim.zip”
You are done with the bootanimation change

TO change the theme

Just replace the framework-res.apk and twframework-res.apk in the /system/framework folder
 
Last edited:
B

bangalorerohan

Guest
Installing Cygwin

Installing the Cygwin and Setting up the Kitchen

Download the Cygwin files attached below. Extract the zip to a folder. Now, you can see 3 icons, a read-me,a setup, and a folder. Choose the setup. Here You will choose install from local directory. Next, Navigate to the the folder of extraction of cygwin and choose the folder Cygwin_packages inside the cygwin extraction folder. Wait for some time. Then, You will come across a list of file. Click the 2-circle-arrows,untill, it displays “install”

After the procedure is complete, run the batch file. Now, minimise it and extract the android kitchen.
Keep it in some location like C:\Kitchen

Now, open the batch file window and type

cd C:\Kitchen

Wait for some time and then when the location the changed, type

./menu

As this is a HTC kitchen, you can't use all the features,

Now, go back to the folder “custom FW” and create a zip ( I repeat zip and NOT rar) of all the folder in the “Custom FW”. After that is done, navigate to the kitchen folder (C:\Ktichen) and palce the .zip in the “original_update” folder
 
B

bangalorerohan

Guest
Come back to the Cygwin Batch window. Now you select 1 (i.e. the first option and press enter.

Then, again press 1 twice!

Now after this is done, you can also use option 2 (rooting). You can change the ROM's name using option 8.

Step 5

De-odexing the FW.

In the batch window, choose option 0 and then choose 1.

Using this you can de-odex your FW.

Next, choose 99 to build and pack you ROM

And you are done with the custom ROM

---------------------------------------------------
Thanks to @sakindia123

Extracting and odin build
Code:
xvf ODIN_FILE.tar.md5
NOTE:.md5 is optional

Rebuilding
Code:
$ tar -H ustar -c amss boot.img csc.rfs recovery.img system.rfs >ODIN_FILE.tar
$ md5sum -t ODIN_FILE.tar >>ODIN_FILE.tar (signing the file)
$ mv ODIN_FILE.tar ODIN_FILE.tar.md5
Of course,u Have to put the name of ur file in place of ODIN_FILE

Mounting rfs(on linux)
Code:
 mkdir system_mount
$ mount -o loop system.rfs system_mount
$ cp /folder/application.apk system_mount/app/  (adding aplications)
$ rm system_mount/app/application.apk           (removing applications)
$ cp /folder/application.apk system_mount/app/application.apk  (replacing aplications)
$ umount system_mount

Regards,
Rohan Mallya! :D :D =D
 
Last edited:
B

bangalorerohan

Guest
More things! ☻☻

You can zipalign and sign the ROM in HTC Android Kitchen itself! While COmpiling your ROM, Just select the interactive method! You can do it all there!
If you want to changes the build date and all, you can open the build.prop(present in /system folder) and change the values!
 
Last edited:

sakindia123

Inactive Recognized Developer
May 6, 2011
4,043
9,548
Noida
r u sure u hav not copied this from elsewhere....bcoz the boot ani thing is wrong......i9003 has different format.....(i mayb wrong)
 
B

bangalorerohan

Guest
@ronhoover88 I went through it now. But, I think you cant use that meta-inf folder, the kernel adn the root script from that guide..If you feel this is thread is a WASTE OF TIME..Please tell me..I will make an attempt to delete it!
 
B

bangalorerohan

Guest
The bootanimation thing is totally from vivek's thread..try it! It woooorks!
 

Top Liked Posts