Thursday, July 12, 2012

Create a Custom ROM FOR Galaxy SL

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

Hey there,

This Post is Originally Written By BangaloreRohan


This is a guide on How to create a 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.

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.

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

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
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,

The essential files! :P

For the Kitchen ( thanks to dsixida)

For cygwin
Remeber to thank and vote in the POLL!!
Custom booting files ( one you have to replace for the bootanimation before you add sanim.zip!)(samsungani and bootanimation files)
MagicISO
Credits -.-

Misledz
Ganaboy
ronhoover88
Namaless
Vivek
Erahgon

0 comments :

Post a Comment